Message ID | 20230605110443.84568-1-n-francis@ti.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2604613vqr; Mon, 5 Jun 2023 04:15:52 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ52YFzxg4xO/hxiIDHsJAKhBXT/6HOug9PKBzFc0TJqF2jJWkax6TjKYbWJl5e8O92sGUu2 X-Received: by 2002:a92:cb43:0:b0:338:b887:b674 with SMTP id f3-20020a92cb43000000b00338b887b674mr16531730ilq.2.1685963751919; Mon, 05 Jun 2023 04:15:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685963751; cv=none; d=google.com; s=arc-20160816; b=VYd81LJvWOZmj3BoSGZFVdOArIzil+2vTK4WvGlOYWhxWimUgf9cSMddCE4uuxXBc5 n+H6RFQ++Z/yaepGLluzwaA1ep0JPoPsw7Kx/CqTlG88hbrlFWnMQplJ5IDAhV68cSi8 r9MYVkhH5oaKuJQLJYwPIw54Vuj8Nlv6iQRhfkacNnnZmxePzbt3LoI7yaf6wbSA97Vx UQcUvTttJ2CRfmLAU/1riv1tz7373don7CF96JvtNRAjxGvTu5kNMM8ahq1eWYFm0tmJ W9f0xouZWs8ZRB1gOPTeTdpkyeTPg+cCE2AbpRJYLNBdbb7F+SJxePDEnXY+rA0dt/9h QjUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=ZgUYvyiKVgnOmW4p//WF3VcF42d3FC8Xm2zYqVM7i28=; b=ekjj/ohpqkkoUmTUjCkBBUcXNWIyQcxU4v2hGOZPzlDqrp089F1RG93UfwxZCjNrqI A32zcWQACg6EraS7jhkmlPaZZaSG+5ybR2jwMaUKanv0K54/7VR6IA8lB46nnICaJkpo RFcdXaSARgPQJLPMlQGOwKWT51XaKT7OvF125MmBN3ATUhqK9MBQQIErVNJ4DEzVb+cH 4ybyyJznpvE7lr+hA78LeAz2GNKcijJoozlwPzeQO5YdIofmEuIsatZp6PK3WVtK0HLe inpinnwui7DHhQsF9gw58yVOOFyhl5H/aj/dHlXVynU0SgjvRIYXKVzUPeqIO9p+8PLd AG5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=UAW7cTUL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q21-20020a63d615000000b0053ef31be221si5345703pgg.841.2023.06.05.04.15.36; Mon, 05 Jun 2023 04:15:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=UAW7cTUL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231789AbjFELFD (ORCPT <rfc822;pavtiger@gmail.com> + 99 others); Mon, 5 Jun 2023 07:05:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35252 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231578AbjFELFB (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 5 Jun 2023 07:05:01 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F0A5F2; Mon, 5 Jun 2023 04:04:59 -0700 (PDT) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 355B4lvN008502; Mon, 5 Jun 2023 06:04:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1685963087; bh=ZgUYvyiKVgnOmW4p//WF3VcF42d3FC8Xm2zYqVM7i28=; h=From:To:CC:Subject:Date; b=UAW7cTULI4+z6p4wQnd8oTCXKUQGppslINJup18ncMrK3otzWMxs1rJw0Su9anl/L Eot1l7NmGZdm9OXze81iC3lfJ5OHolQg65iUHp69nvi3lARpvRasPV4Q5YCJJLzltG mQ+NqpOQj/UcpftIOlekvVyF5Cpu7idKSDxHUIII= Received: from DLEE112.ent.ti.com (dlee112.ent.ti.com [157.170.170.23]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 355B4lUq114003 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 5 Jun 2023 06:04:47 -0500 Received: from DLEE105.ent.ti.com (157.170.170.35) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 5 Jun 2023 06:04:47 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Mon, 5 Jun 2023 06:04:47 -0500 Received: from ula0497641.dhcp.ti.com (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 355B4ieT111266; Mon, 5 Jun 2023 06:04:44 -0500 From: Neha Malcom Francis <n-francis@ti.com> To: <linux-arm-kernel@lists.infradead.org>, <robh+dt@kernel.org>, <krzysztof.kozlowski+dt@linaro.org>, <conor+dt@kernel.org>, <devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org> CC: <nm@ti.com>, <vigneshr@ti.com>, <kristo@kernel.org>, <n-francis@ti.com> Subject: [PATCH] arm64: dts: ti: k3-j721s2: Change CPTS clock parent Date: Mon, 5 Jun 2023 16:34:43 +0530 Message-ID: <20230605110443.84568-1-n-francis@ti.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767861126973213600?= X-GMAIL-MSGID: =?utf-8?q?1767861126973213600?= |
Series |
arm64: dts: ti: k3-j721s2: Change CPTS clock parent
|
|
Commit Message
Neha Malcom Francis
June 5, 2023, 11:04 a.m. UTC
MAIN_PLL0 has a flag set in DM (Device Manager) that removes it's
capability to re-initialise clock frequencies. CPTS and RGMII has
MAIN_PLL3 as their parent which does not have this flag. While RGMII
needs this reinitialisation to default frequency to be able to get
250MHz with its divider, CPTS can not get its required 200MHz with its
divider. Thus, move CPTS clock parent on J721S2 from MAIN_PLL3_HSDIV1 to
MAIN_PLL0_HSDIV6.
(Note: even GTC will be moved from MAIN_PLL3 to MAIN_PLL0 in U-Boot side
for the same reason)
Signed-off-by: Neha Malcom Francis <n-francis@ti.com>
---
arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi | 2 ++
arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi | 2 ++
2 files changed, 4 insertions(+)
Comments
On 16:34-20230605, Neha Malcom Francis wrote: > MAIN_PLL0 has a flag set in DM (Device Manager) that removes it's > capability to re-initialise clock frequencies. CPTS and RGMII has > MAIN_PLL3 as their parent which does not have this flag. While RGMII > needs this reinitialisation to default frequency to be able to get > 250MHz with its divider, CPTS can not get its required 200MHz with its > divider. Thus, move CPTS clock parent on J721S2 from MAIN_PLL3_HSDIV1 to > MAIN_PLL0_HSDIV6. > > (Note: even GTC will be moved from MAIN_PLL3 to MAIN_PLL0 in U-Boot side > for the same reason) > > Signed-off-by: Neha Malcom Francis <n-francis@ti.com> > --- > arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi | 2 ++ > arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi | 2 ++ Is this the only device with this change? or are we doing that across the board? if so, could you please do this in a single series so that we don't have a mix? > 2 files changed, 4 insertions(+) > > diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi > index 2dd7865f7654..331e0c9b4db8 100644 > --- a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi > +++ b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi > @@ -738,6 +738,8 @@ cpts@310d0000 { > reg-names = "cpts"; > clocks = <&k3_clks 226 5>; > clock-names = "cpts"; > + assigned-clocks = <&k3_clks 226 5>; /* NAVSS0_CPTS_0_RCLK */ > + assigned-clock-parents = <&k3_clks 226 7>; /* MAIN_0_HSDIVOUT6_CLK */ > interrupts-extended = <&main_navss_intr 391>; > interrupt-names = "cpts"; > ti,cpts-periodic-outputs = <6>; > diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi b/arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi > index a353705a7463..b55a3e9daf85 100644 > --- a/arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi > +++ b/arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi > @@ -333,6 +333,8 @@ cpts@3d000 { > reg = <0x0 0x3d000 0x0 0x400>; > clocks = <&k3_clks 29 3>; > clock-names = "cpts"; > + assigned-clocks = <&k3_clks 29 3>; /* CPTS_RFT_CLK */ > + assigned-clock-parents = <&k3_clks 29 5>; /* MAIN_0_HSDIVOUT6_CLK */ > interrupts-extended = <&gic500 GIC_SPI 858 IRQ_TYPE_LEVEL_HIGH>; > interrupt-names = "cpts"; > ti,cpts-ext-ts-inputs = <4>; > -- > 2.34.1 >
Hi Nishanth On 05/06/23 17:19, Nishanth Menon wrote: > On 16:34-20230605, Neha Malcom Francis wrote: >> MAIN_PLL0 has a flag set in DM (Device Manager) that removes it's >> capability to re-initialise clock frequencies. CPTS and RGMII has >> MAIN_PLL3 as their parent which does not have this flag. While RGMII >> needs this reinitialisation to default frequency to be able to get >> 250MHz with its divider, CPTS can not get its required 200MHz with its >> divider. Thus, move CPTS clock parent on J721S2 from MAIN_PLL3_HSDIV1 to >> MAIN_PLL0_HSDIV6. >> >> (Note: even GTC will be moved from MAIN_PLL3 to MAIN_PLL0 in U-Boot side >> for the same reason) >> >> Signed-off-by: Neha Malcom Francis <n-francis@ti.com> >> --- >> arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi | 2 ++ >> arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi | 2 ++ > > > Is this the only device with this change? or are we doing that across > the board? if so, could you please do this in a single series so that we > don't have a mix? > Currently, this is the only device that has moved this flag in DM side. None of the other devices (except for J784S4 which also made a similar change both in DM and U-BOOT) have this change in flag for the upcoming firmware release. >> 2 files changed, 4 insertions(+) >> >> diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi >> index 2dd7865f7654..331e0c9b4db8 100644 >> --- a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi >> +++ b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi >> @@ -738,6 +738,8 @@ cpts@310d0000 { >> reg-names = "cpts"; >> clocks = <&k3_clks 226 5>; >> clock-names = "cpts"; >> + assigned-clocks = <&k3_clks 226 5>; /* NAVSS0_CPTS_0_RCLK */ >> + assigned-clock-parents = <&k3_clks 226 7>; /* MAIN_0_HSDIVOUT6_CLK */ >> interrupts-extended = <&main_navss_intr 391>; >> interrupt-names = "cpts"; >> ti,cpts-periodic-outputs = <6>; >> diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi b/arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi >> index a353705a7463..b55a3e9daf85 100644 >> --- a/arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi >> +++ b/arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi >> @@ -333,6 +333,8 @@ cpts@3d000 { >> reg = <0x0 0x3d000 0x0 0x400>; >> clocks = <&k3_clks 29 3>; >> clock-names = "cpts"; >> + assigned-clocks = <&k3_clks 29 3>; /* CPTS_RFT_CLK */ >> + assigned-clock-parents = <&k3_clks 29 5>; /* MAIN_0_HSDIVOUT6_CLK */ >> interrupts-extended = <&gic500 GIC_SPI 858 IRQ_TYPE_LEVEL_HIGH>; >> interrupt-names = "cpts"; >> ti,cpts-ext-ts-inputs = <4>; >> -- >> 2.34.1 >> >
Hi Neha Malcom Francis, On Mon, 05 Jun 2023 16:34:43 +0530, Neha Malcom Francis wrote: > MAIN_PLL0 has a flag set in DM (Device Manager) that removes it's > capability to re-initialise clock frequencies. CPTS and RGMII has > MAIN_PLL3 as their parent which does not have this flag. While RGMII > needs this reinitialisation to default frequency to be able to get > 250MHz with its divider, CPTS can not get its required 200MHz with its > divider. Thus, move CPTS clock parent on J721S2 from MAIN_PLL3_HSDIV1 to > MAIN_PLL0_HSDIV6. > > [...] I have applied the following to branch ti-k3-dts-next on [1]. Thank you! [1/1] arm64: dts: ti: k3-j721s2: Change CPTS clock parent commit: 1f36d0e8be3ae7717c801e954275fba6247b2f46 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent up the chain during the next merge window (or sooner if it is a relevant bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. [1] https://git.kernel.org/pub/scm/linux/kernel/git/ti/linux.git -- Vignesh
diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi index 2dd7865f7654..331e0c9b4db8 100644 --- a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi @@ -738,6 +738,8 @@ cpts@310d0000 { reg-names = "cpts"; clocks = <&k3_clks 226 5>; clock-names = "cpts"; + assigned-clocks = <&k3_clks 226 5>; /* NAVSS0_CPTS_0_RCLK */ + assigned-clock-parents = <&k3_clks 226 7>; /* MAIN_0_HSDIVOUT6_CLK */ interrupts-extended = <&main_navss_intr 391>; interrupt-names = "cpts"; ti,cpts-periodic-outputs = <6>; diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi b/arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi index a353705a7463..b55a3e9daf85 100644 --- a/arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi @@ -333,6 +333,8 @@ cpts@3d000 { reg = <0x0 0x3d000 0x0 0x400>; clocks = <&k3_clks 29 3>; clock-names = "cpts"; + assigned-clocks = <&k3_clks 29 3>; /* CPTS_RFT_CLK */ + assigned-clock-parents = <&k3_clks 29 5>; /* MAIN_0_HSDIVOUT6_CLK */ interrupts-extended = <&gic500 GIC_SPI 858 IRQ_TYPE_LEVEL_HIGH>; interrupt-names = "cpts"; ti,cpts-ext-ts-inputs = <4>;