All of lore.kernel.org
 help / color / mirror / Atom feed
From: Manorit Chawdhry <m-chawdhry@ti.com>
To: Nishanth Menon <nm@ti.com>
Cc: Simon Glass <sjg@chromium.org>, Roger Quadros <rogerq@kernel.org>,
	"Vignesh Raghavendra" <vigneshr@ti.com>,
	Tom Rini <trini@konsulko.com>,
	Neil Armstrong <neil.armstrong@linaro.org>,
	Anand Gadiyar <gadiyar@ti.com>, Georgi Vlaev <g-vlaev@ti.com>,
	<u-boot@lists.denx.de>, Neha Malcom Francis <n-francis@ti.com>,
	Nikhil M Jain <n-jain1@ti.com>
Subject: Re: [PATCH 12/23] arm: dts: k3-am642-r5-sk: Use am642-sk.dts and k3-am642-sk-u-boot.dtsi
Date: Wed, 19 Apr 2023 10:23:50 +0530	[thread overview]
Message-ID: <20230419045350.3xzojrsqi5ionwyt@ula0497581> (raw)
In-Reply-To: <20230418123455.7xrp6vv4pjjid6or@culminate>

On 07:34-20230418, Nishanth Menon wrote:
> On 14:45-20230418, Manorit Chawdhry wrote:
> > Hi Nishanth,
> > 
> > On 14/04/23 13:27, Nishanth Menon wrote:
> > > Use am642-sk.dts to represent the Board and selectively enable/override
> > > the configurations necessary. And since am642-sk-u-boot.dtsi also needs
> > > to setup common properties, instead of re-inventing everything, just
> > > reuse the definitions.
> > > 
> > > Signed-off-by: Nishanth Menon <nm@ti.com>
> > > ---
> > >   arch/arm/dts/k3-am642-r5-sk.dts | 194 +++-----------------------------
> > >   1 file changed, 18 insertions(+), 176 deletions(-)
> > > 
> > > diff --git a/arch/arm/dts/k3-am642-r5-sk.dts b/arch/arm/dts/k3-am642-r5-sk.dts
> > > index 9ff4dd3dd365..8ac6cc77256c 100644
> > > --- a/arch/arm/dts/k3-am642-r5-sk.dts
> > > +++ b/arch/arm/dts/k3-am642-r5-sk.dts
> > > @@ -5,31 +5,18 @@
> > >   /dts-v1/;
> > > -#include <dt-bindings/mux/ti-serdes.h>
> > > -#include <dt-bindings/phy/phy.h>
> > > -#include <dt-bindings/net/ti-dp83867.h>
> > > -#include "k3-am642.dtsi"
> > > +#include "k3-am642-sk.dts"
> > >   #include "k3-am64-sk-lp4-1600MTs.dtsi"
> > >   #include "k3-am64-ddr.dtsi"
> > > -/ {
> > > -	chosen {
> > > -		stdout-path = "serial2:115200n8";
> > > -		tick-timer = &timer1;
> > > -	};
> > > +#include "k3-am642-sk-u-boot.dtsi"
> > would changing the location of the include affect the dt nodes somehow?
> 
> yes, ofcourse, depends on the overlap ofcourse, in this series, I have tried to
> ensure the overlap occurs only where necessary.
> board.dts:
> &node {
> 	property-x = <0>;
> };
> 
> board-u-boot.dts:
> &node {
> 	property-x = <1>;
> };
> 
> board-r5.dts:
> &node {
> 	property-x = <2>;
> };
> 
> Then:
> case a) u-boot.dtsi included in r5.dts at the very end will make the
> property 1! - but then what was the point in overriding node?
> 
> case b) u-boot.dtsi included early in r5.dts will make the property 2 -
> which was intended when we introduced the override.
> 
> Are you seeing a specific problem in this series?
> 

Ah no, I was just worried since you had moved this specific include from
bottom of the file to top so was thinking if it could change the order
of overrides, but looks like there are no common nodes as such in
u-boot.dtsi and r5-sk.dtsi to change the override order. LGTM.

[override check for u-boot.dtsi and r5-sk.dtsi]
Reviewed-by: Manorit Chawdhry <m-chawdhry@ti.com>

Regards,
Manorit

> -- 
> Regards,
> Nishanth Menon
> Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D

  reply	other threads:[~2023-04-19  4:54 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-14  7:57 [PATCH 00/23] arm: dts: k3-am64: Sync with kernel.org and Nishanth Menon
2023-04-14  7:57 ` [PATCH 01/23] Revert "ARM: dts: k3-am642-sk-u-boot: add PMIC node" Nishanth Menon
2023-04-14  7:57 ` [PATCH 02/23] arm: dts: k3-am64: Update devicetree to sync with v6.3-rc6 Nishanth Menon
2023-04-14  7:57 ` [PATCH 03/23] arm: dts: k3-am642-sk: Add a note to handle pinmux till MDIO DM conversion is done Nishanth Menon
2023-04-14  7:57 ` [PATCH 04/23] arm: dts: k3-am642-sk: Fix mmc1 pinmux pull polarity Nishanth Menon
2023-04-17 10:42   ` Roger Quadros
2023-04-17 11:12     ` Nishanth Menon
2023-04-17 11:45       ` Roger Quadros
2023-04-17 13:25         ` Nishanth Menon
2023-04-14  7:57 ` [PATCH 05/23] arm: dts: k3-am642-sk: Add main_uart1 description Nishanth Menon
2023-04-14  7:57 ` [PATCH 06/23] arm: dts: k3-am642-sk: Add main_i2c0 and eeprom Nishanth Menon
2023-04-14  7:57 ` [PATCH 07/23] arm: dts: k3-am642-sk-u-boot: Drop the i2c node Nishanth Menon
2023-04-14  7:57 ` [PATCH 08/23] arm: dts: k3-am642-sk-u-boot: Drop redundant usb dr_mode property Nishanth Menon
2023-04-14  7:57 ` [PATCH 09/23] arm: dts: k3-am642-sk-u-boot: Mark main_uart0 to be used for spl Nishanth Menon
2023-04-14  7:57 ` [PATCH 10/23] arm: dts: k3-am642-sk-u-boot: Document timer as missing upstream Nishanth Menon
2023-04-14  7:57 ` [PATCH 11/23] arm: dts: k3-am642-sk-u-boot: Drop aliases and stdout Nishanth Menon
2023-04-14  7:57 ` [PATCH 12/23] arm: dts: k3-am642-r5-sk: Use am642-sk.dts and k3-am642-sk-u-boot.dtsi Nishanth Menon
2023-04-18  9:15   ` Manorit Chawdhry
2023-04-18 12:34     ` Nishanth Menon
2023-04-19  4:53       ` Manorit Chawdhry [this message]
2023-04-14  7:57 ` [PATCH 13/23] arm: dts: k3-am642-evm: Move the mdio pinmux down to evm.dts Nishanth Menon
2023-04-14  7:57 ` [PATCH 14/23] arm: dts: k3-am642-evm: Add DDR vtt regulator Nishanth Menon
2023-04-14  7:57 ` [PATCH 15/23] arm: dts: k3-am642-evm: Add main_uart1 description Nishanth Menon
2023-04-14  7:57 ` [PATCH 16/23] arm: dts: k3-am642-evm: Add main_i2c0 and eeprom Nishanth Menon
2023-04-14  7:57 ` [PATCH 17/23] arm: dts: k3-am642-evm-u-boot: Drop the i2c node Nishanth Menon
2023-04-14  7:57 ` [PATCH 18/23] arm: dts: k3-am642-evm-u-boot: Drop stdout and cosmetic fixups Nishanth Menon
2023-04-14  7:57 ` [PATCH 19/23] arm: dts: k3-am642-evm-u-boot: Re-organize the pinmux Nishanth Menon
2023-04-14  7:57 ` [PATCH 20/23] arm: dts: k3-am642-evm-u-boot: Add missing pinmux notations Nishanth Menon
2023-04-14  7:57 ` [PATCH 21/23] arm: dts: k3-am642-r5-evm: Use am642-evm.dts and k3-am642-evm-u-boot.dtsi Nishanth Menon
2023-04-14  7:57 ` [PATCH 22/23] include: configs: am64x_evm: Change to using .env Nishanth Menon
2023-04-14  7:57 ` [PATCH 23/23] configs: am64x_evm_a53_defconfig: Just use distroboot Nishanth Menon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230419045350.3xzojrsqi5ionwyt@ula0497581 \
    --to=m-chawdhry@ti.com \
    --cc=g-vlaev@ti.com \
    --cc=gadiyar@ti.com \
    --cc=n-francis@ti.com \
    --cc=n-jain1@ti.com \
    --cc=neil.armstrong@linaro.org \
    --cc=nm@ti.com \
    --cc=rogerq@kernel.org \
    --cc=sjg@chromium.org \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=vigneshr@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.