From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3985EC07E95 for ; Fri, 16 Jul 2021 05:46:20 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2F072613DF for ; Fri, 16 Jul 2021 05:46:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2F072613DF Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=microchip.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1C5118296A; Fri, 16 Jul 2021 07:46:15 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=quarantine dis=none) header.from=microchip.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=microchip.com header.i=@microchip.com header.b="grVt7fo8"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7A592828EB; Fri, 16 Jul 2021 07:46:12 +0200 (CEST) Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id DB81281FC6 for ; Fri, 16 Jul 2021 07:46:05 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=microchip.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=Claudiu.Beznea@microchip.com DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1626414365; x=1657950365; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=HT5MJPfLhhXXgZj++Yf/B+lPU97FpuiQsF2VJyWJ560=; b=grVt7fo82PVnh1OEpuj6pBszBC4GHR+I+zZQB8FSuZUJq4tB5HmqW3uD 8IfpS9yY3mQdlTWcCaze8ewJ8qjjEh/c3H+aOFx5dK/DqlRsF2jd/+XBC NO7eO8AfroDETq2miV0EwueDSu2mj1Nvsu9roksrrm+/z6j+dgV/xbgjZ FnDDGAV/f99ww1B6RXg8nSR6meqo/z739f4n730yK9B+LI7b8lumRM3Z8 MQ8JZ+VrRByYZh36ZxbHRcKPnKYtfWmITTUXgXwtosdUviDFskNrY8rQW xB85ptFEZYsBh5yWtZFvwaR5AYqxt7jD+4kjpehUM0lSk/Cgojin0xAr3 w==; IronPort-SDR: d/mLmwklXAoGA1dzKDrzGfRzxQ67D0Y2WbbXh4BALx96APPcYkaEqlhdjCq0L2AG4pjX9Yi5hP qbW28Sn/Yl6/ggizzUmr2ChtcckUK8vMhfRn8WZxTkQ97mXKYYvOx4EQnMVYzJzvKzRZfWoGHK TCKyUBa5P6Qxw0IcBu2PcqToJHwMJ6IvoZnQb3H1FmWPP3xhCxIHwYnAQ+xwIiIksWRzvRqv26 T02lfNMgxWnWfjjT29fmGv2NECDoWCzUVTnsyIv9b7btBG5VGZTDo1P8LzZgyFr5UoBm0bmDUD Hq0FgFSE/2bcWbg1BRrf28mh X-IronPort-AV: E=Sophos;i="5.84,244,1620716400"; d="scan'208";a="122260087" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 15 Jul 2021 22:46:03 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Thu, 15 Jul 2021 22:46:03 -0700 Received: from m18063-ThinkPad-T460p.mchp-main.com (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2176.2 via Frontend Transport; Thu, 15 Jul 2021 22:46:01 -0700 From: Claudiu Beznea To: , , CC: , Claudiu Beznea Subject: [PATCH 0/4] clk: at91: fix system clocks display for sam9x60 Date: Fri, 16 Jul 2021 08:43:47 +0300 Message-ID: <20210716054351.660428-1-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Hi, After added CCF support for SAM9X60 the CPU, crystal and master clocks were not displayed correctly. These clocks are now displayed by at91_cpu driver. Adapt master clock driver by adding control logic for its prescaler and divider such that these to be correctly retrived by at91_cpu driver via device tree (or any other mechanism). Thank you, Claudiu Beznea Claudiu Beznea (4): clk: at91: clk-master: split master clock in pres and divider cpu: at91: add compatible for ARM9260EJ-S ARM: dts: at91: sam9x60: add bindings for CPU configs: sam9x60ek: enable CONFIG_CPU arch/arm/dts/sam9x60.dtsi | 12 +++ configs/sam9x60ek_mmc_defconfig | 1 + configs/sam9x60ek_nandflash_defconfig | 1 + configs/sam9x60ek_qspiflash_defconfig | 1 + drivers/clk/at91/clk-master.c | 107 +++++++++++++++++++++----- drivers/clk/at91/pmc.h | 7 +- drivers/clk/at91/sam9x60.c | 44 +++++++---- drivers/clk/at91/sama7g5.c | 36 +++++---- drivers/cpu/at91_cpu.c | 1 + 9 files changed, 160 insertions(+), 50 deletions(-) -- 2.25.1