[2/3] arm64: dts: ti: k3-j784s4-mcu-wakeup: Add bootph-pre-ram property for SPL nodes
Message ID | 20230806164838.18088-3-a-nandan@ti.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp1016751vqr; Sun, 6 Aug 2023 10:11:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF6e7uIH4k+v1r6w5KJFXVABx8CBDcgY1AuuXUz+kv++aeHgqfYQx5TwAJqxNXYB5fMzk0I X-Received: by 2002:a05:6a00:1ac7:b0:687:22ce:365f with SMTP id f7-20020a056a001ac700b0068722ce365fmr9195515pfv.29.1691341879823; Sun, 06 Aug 2023 10:11:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691341879; cv=none; d=google.com; s=arc-20160816; b=nbUQE3Igv5rSdDG8H1kgcYfghghpfPXmIWMy3R/nAmzN8ecX30u/qq8N6nZMPn2+b2 v2De2aykLfYouvtxDC24klyiUTXHm0TknUwnyK3DWZULkcP6/TImynDp/Q6iSQBUE64/ W4e5BZtjcj5hpQysQBxo/EcHymemIAP9mVDVjmIewn8PeyyKH+jIs9blRbmXmX65g0wY erKT4+yBO5mbAY8uC18FRigb1uTqR8CuVMLu17blYc5W0qGNNR1tR2ZpX6Ngr4swoRNP u6/04wuiXMR+xHL44JiYyEfh2F+ZlcIoobz/LDH8jYT6DFyKLs3HUPT4RjgQG0GAUgGk H23Q== 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 :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=gOgHxaFNknEPQkRXnHJvFNHYD58prAaSGp1BrvLOPEk=; fh=AOFcl182NPcBrF8V1t7LgZHFt53dFJmF6BGNBNOJCmM=; b=lwiQX8IObfQx22qjYAbDXY7zRf5Ol7PDU0ZIawKM/dgjlBSgdRdF5vPxm/4KfNIvdE ThfizLnpEZ2yHHwyrwXesy1MxGZOMZLUYlXuj2gKWubUKE5ncv8VZ7WH9IlAyInqwCBb oItLe0L0VlAiom0CPwSr1mYXkKsvace1ciqctTI+78H6XLNiB9s+1BocUbl/AblYp5fl gq4UQP7woerZe9/bw8ylG8OoC9E/MPZazS81TYS3yIMIt3GmAdFjv9s92Xf+blODBXtw lGNAGynGxz+x21kQ3szhwK5D9RRYgLksk1VZrituSZPCwr5B5VTPTinxGGOWTIWwt22Q Jndw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=uWYxqcmI; 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 bg26-20020a056a02011a00b00564ac1d277asi3867229pgb.234.2023.08.06.10.11.07; Sun, 06 Aug 2023 10:11:19 -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=uWYxqcmI; 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 S230452AbjHFQtF (ORCPT <rfc822;alainschaererlinux@gmail.com> + 99 others); Sun, 6 Aug 2023 12:49:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229436AbjHFQtD (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 6 Aug 2023 12:49:03 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87B4810CC; Sun, 6 Aug 2023 09:49:02 -0700 (PDT) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 376GmoqL006533; Sun, 6 Aug 2023 11:48:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1691340530; bh=gOgHxaFNknEPQkRXnHJvFNHYD58prAaSGp1BrvLOPEk=; h=From:To:Subject:Date:In-Reply-To:References; b=uWYxqcmIsoDOx1z1lqYdTbwRTW/mkX01LbIKzSOm+Wq7aukLtQrDc0X3QsYIlfbcU rK/4Rgt3ZSLcFRkmBFfMWkBT4NCphD7Uw0YkoIOXHDA83ZyxHx64szTA250fuQcsF4 8v6EQazIvpqSV/Ngf9SAbbWs8Fo/GC6QC7vUFabU= Received: from DLEE106.ent.ti.com (dlee106.ent.ti.com [157.170.170.36]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 376Gmodx086835 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Sun, 6 Aug 2023 11:48:50 -0500 Received: from DLEE100.ent.ti.com (157.170.170.30) by DLEE106.ent.ti.com (157.170.170.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Sun, 6 Aug 2023 11:48:50 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE100.ent.ti.com (157.170.170.30) 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; Sun, 6 Aug 2023 11:48:50 -0500 Received: from TI.dhcp.ti.com (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 376GmdMZ009591; Sun, 6 Aug 2023 11:48:47 -0500 From: Apurva Nandan <a-nandan@ti.com> To: Apurva Nandan <a-nandan@ti.com>, Nishanth Menon <nm@ti.com>, Vignesh Raghavendra <vigneshr@ti.com>, Tero Kristo <kristo@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, <linux-arm-kernel@lists.infradead.org>, <devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>, Udit Kumar <u-kumar1@ti.com>, Hari Nagalla <hnagalla@ti.com> Subject: [PATCH 2/3] arm64: dts: ti: k3-j784s4-mcu-wakeup: Add bootph-pre-ram property for SPL nodes Date: Sun, 6 Aug 2023 22:18:37 +0530 Message-ID: <20230806164838.18088-3-a-nandan@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230806164838.18088-1-a-nandan@ti.com> References: <20230806164838.18088-1-a-nandan@ti.com> 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 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: INBOX X-GMAIL-THRID: 1773500502571050267 X-GMAIL-MSGID: 1773500502571050267 |
Series |
arm64: dts: ti: k3-j784s4: Add bootph-pre-ram property for SPL nodes
|
|
Commit Message
Apurva Nandan
Aug. 6, 2023, 4:48 p.m. UTC
Add bootph-pre-ram property for all the nodes used in SPL stage,
for syncing it later to u-boot j784s4 dts.
Signed-off-by: Apurva Nandan <a-nandan@ti.com>
---
arch/arm64/boot/dts/ti/k3-j784s4-mcu-wakeup.dtsi | 9 +++++++++
1 file changed, 9 insertions(+)
Comments
Hi Apurva On 8/6/2023 10:18 PM, Apurva Nandan wrote: > Add bootph-pre-ram property for all the nodes used in SPL stage, > for syncing it later to u-boot j784s4 dts. > > Signed-off-by: Apurva Nandan <a-nandan@ti.com> > --- > arch/arm64/boot/dts/ti/k3-j784s4-mcu-wakeup.dtsi | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-mcu-wakeup.dtsi b/arch/arm64/boot/dts/ti/k3-j784s4-mcu-wakeup.dtsi > index 740ee794d7b9..57bf0261c343 100644 > --- a/arch/arm64/boot/dts/ti/k3-j784s4-mcu-wakeup.dtsi > +++ b/arch/arm64/boot/dts/ti/k3-j784s4-mcu-wakeup.dtsi > @@ -6,7 +6,9 @@ > */ > > &cbass_mcu_wakeup { > + bootph-pre-ram; > sms: system-controller@44083000 { > + bootph-pre-ram; > compatible = "ti,k2g-sci"; > ti,host-id = <12>; > > @@ -19,22 +21,26 @@ sms: system-controller@44083000 { > reg = <0x00 0x44083000 0x00 0x1000>; > > k3_pds: power-controller { > + bootph-pre-ram; > compatible = "ti,sci-pm-domain"; > #power-domain-cells = <2>; > }; > > k3_clks: clock-controller { > + bootph-pre-ram; > compatible = "ti,k2g-sci-clk"; > #clock-cells = <2>; > }; > > k3_reset: reset-controller { > + bootph-pre-ram; > compatible = "ti,sci-reset"; > #reset-cells = <2>; > }; > }; > > chipid@43000014 { > + bootph-pre-ram; > compatible = "ti,am654-chipid"; > reg = <0x00 0x43000014 0x00 0x4>; > }; > @@ -442,6 +448,7 @@ mcu_spi2: spi@40320000 { > }; mcu_timer0: timer@40400000 should be part of your list. > > mcu_navss: bus@28380000 { > + bootph-pre-ram; > compatible = "simple-bus"; > #address-cells = <2>; > #size-cells = <2>; > @@ -451,6 +458,7 @@ mcu_navss: bus@28380000 { > dma-ranges; > > mcu_ringacc: ringacc@2b800000 { > + bootph-pre-ram; > compatible = "ti,am654-navss-ringacc"; > reg = <0x00 0x2b800000 0x00 0x400000>, > <0x00 0x2b000000 0x00 0x400000>, > @@ -465,6 +473,7 @@ mcu_ringacc: ringacc@2b800000 { > }; > > mcu_udmap: dma-controller@285c0000 { > + bootph-pre-ram; > compatible = "ti,j721e-navss-mcu-udmap"; > reg = <0x00 0x285c0000 0x00 0x100>, > <0x00 0x2a800000 0x00 0x40000>,
On 07/08/23 10:01, Kumar, Udit wrote: > Hi Apurva > > On 8/6/2023 10:18 PM, Apurva Nandan wrote: >> Add bootph-pre-ram property for all the nodes used in SPL stage, >> for syncing it later to u-boot j784s4 dts. >> >> Signed-off-by: Apurva Nandan <a-nandan@ti.com> >> --- >> arch/arm64/boot/dts/ti/k3-j784s4-mcu-wakeup.dtsi | 9 +++++++++ >> 1 file changed, 9 insertions(+) >> >> diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-mcu-wakeup.dtsi >> b/arch/arm64/boot/dts/ti/k3-j784s4-mcu-wakeup.dtsi >> index 740ee794d7b9..57bf0261c343 100644 >> --- a/arch/arm64/boot/dts/ti/k3-j784s4-mcu-wakeup.dtsi >> +++ b/arch/arm64/boot/dts/ti/k3-j784s4-mcu-wakeup.dtsi >> @@ -6,7 +6,9 @@ >> */ >> &cbass_mcu_wakeup { >> + bootph-pre-ram; >> sms: system-controller@44083000 { >> + bootph-pre-ram; >> compatible = "ti,k2g-sci"; >> ti,host-id = <12>; >> @@ -19,22 +21,26 @@ sms: system-controller@44083000 { >> reg = <0x00 0x44083000 0x00 0x1000>; >> k3_pds: power-controller { >> + bootph-pre-ram; >> compatible = "ti,sci-pm-domain"; >> #power-domain-cells = <2>; >> }; >> k3_clks: clock-controller { >> + bootph-pre-ram; >> compatible = "ti,k2g-sci-clk"; >> #clock-cells = <2>; >> }; >> k3_reset: reset-controller { >> + bootph-pre-ram; >> compatible = "ti,sci-reset"; >> #reset-cells = <2>; >> }; >> }; >> chipid@43000014 { >> + bootph-pre-ram; >> compatible = "ti,am654-chipid"; >> reg = <0x00 0x43000014 0x00 0x4>; >> }; >> @@ -442,6 +448,7 @@ mcu_spi2: spi@40320000 { >> }; > > > mcu_timer0: timer@40400000 should be part of your list. Maybe you are referring to mcu_timer1. mcu_timer1 will be a part of u-boot.dtsi as we need to edit the node for removing k3_clks and power-domains properties from it. So we should add bootph-pre-ram there itself in uboot.dtsi as the node will be already there. > >> mcu_navss: bus@28380000 { >> + bootph-pre-ram; >> compatible = "simple-bus"; >> #address-cells = <2>; >> #size-cells = <2>; >> @@ -451,6 +458,7 @@ mcu_navss: bus@28380000 { >> dma-ranges; >> mcu_ringacc: ringacc@2b800000 { >> + bootph-pre-ram; >> compatible = "ti,am654-navss-ringacc"; >> reg = <0x00 0x2b800000 0x00 0x400000>, >> <0x00 0x2b000000 0x00 0x400000>, >> @@ -465,6 +473,7 @@ mcu_ringacc: ringacc@2b800000 { >> }; >> mcu_udmap: dma-controller@285c0000 { >> + bootph-pre-ram; >> compatible = "ti,j721e-navss-mcu-udmap"; >> reg = <0x00 0x285c0000 0x00 0x100>, >> <0x00 0x2a800000 0x00 0x40000>,
On 22:43-20230807, Apurva Nandan wrote: [..] > > mcu_timer0: timer@40400000 should be part of your list. > Maybe you are referring to mcu_timer1. mcu_timer1 will be a part of > u-boot.dtsi as we need to edit > the node for removing k3_clks and power-domains properties from it. So we > should add bootph-pre-ram > there itself in uboot.dtsi as the node will be already there. a) you need the timer even before talking to anything - u-boot needs it for basic delay - so add the pre-ram property. b) what you are doing in u-boot currently a hack - am625 in u-boot got it fixed the right way - follow the model then you dont need the hackery with deleting clock and power-domains properties.
On 07/08/23 22:51, Nishanth Menon wrote: > On 22:43-20230807, Apurva Nandan wrote: > [..] > >>> mcu_timer0: timer@40400000 should be part of your list. >> Maybe you are referring to mcu_timer1. mcu_timer1 will be a part of >> u-boot.dtsi as we need to edit >> the node for removing k3_clks and power-domains properties from it. So we >> should add bootph-pre-ram >> there itself in uboot.dtsi as the node will be already there. > a) you need the timer even before talking to anything - u-boot needs it > for basic delay - so add the pre-ram property. > b) what you are doing in u-boot currently a hack - am625 in u-boot got > it fixed the right way - follow the model then you dont need the hackery > with deleting clock and power-domains properties. > Okay, thanks!
diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-mcu-wakeup.dtsi b/arch/arm64/boot/dts/ti/k3-j784s4-mcu-wakeup.dtsi index 740ee794d7b9..57bf0261c343 100644 --- a/arch/arm64/boot/dts/ti/k3-j784s4-mcu-wakeup.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j784s4-mcu-wakeup.dtsi @@ -6,7 +6,9 @@ */ &cbass_mcu_wakeup { + bootph-pre-ram; sms: system-controller@44083000 { + bootph-pre-ram; compatible = "ti,k2g-sci"; ti,host-id = <12>; @@ -19,22 +21,26 @@ sms: system-controller@44083000 { reg = <0x00 0x44083000 0x00 0x1000>; k3_pds: power-controller { + bootph-pre-ram; compatible = "ti,sci-pm-domain"; #power-domain-cells = <2>; }; k3_clks: clock-controller { + bootph-pre-ram; compatible = "ti,k2g-sci-clk"; #clock-cells = <2>; }; k3_reset: reset-controller { + bootph-pre-ram; compatible = "ti,sci-reset"; #reset-cells = <2>; }; }; chipid@43000014 { + bootph-pre-ram; compatible = "ti,am654-chipid"; reg = <0x00 0x43000014 0x00 0x4>; }; @@ -442,6 +448,7 @@ mcu_spi2: spi@40320000 { }; mcu_navss: bus@28380000 { + bootph-pre-ram; compatible = "simple-bus"; #address-cells = <2>; #size-cells = <2>; @@ -451,6 +458,7 @@ mcu_navss: bus@28380000 { dma-ranges; mcu_ringacc: ringacc@2b800000 { + bootph-pre-ram; compatible = "ti,am654-navss-ringacc"; reg = <0x00 0x2b800000 0x00 0x400000>, <0x00 0x2b000000 0x00 0x400000>, @@ -465,6 +473,7 @@ mcu_ringacc: ringacc@2b800000 { }; mcu_udmap: dma-controller@285c0000 { + bootph-pre-ram; compatible = "ti,j721e-navss-mcu-udmap"; reg = <0x00 0x285c0000 0x00 0x100>, <0x00 0x2a800000 0x00 0x40000>,