Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Nishanth Menon <nm@ti.com>
To: Andrew Davis <afd@ti.com>
Cc: Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
	Rob Herring <robh+dt@kernel.org>,
	Vignesh Raghavendra <vigneshr@ti.com>,
	<linux-kernel@vger.kernel.org>, <devicetree@vger.kernel.org>,
	<linux-arm-kernel@lists.infradead.org>,
	Tero Kristo <kristo@kernel.org>, <vaishnav.a@ti.com>,
	<u-kumar1@ti.com>
Subject: Re: [PATCH 3/3] arm64: dts: ti: k3-j7200-mcu-wakeup: Split fss node up
Date: Tue, 25 Apr 2023 07:27:44 -0500	[thread overview]
Message-ID: <20230425122744.hkahpv6yvprd6qzy@creature> (raw)
In-Reply-To: <f5861b8b-637a-e127-2945-8994a472015a@ti.com>

On 13:55-20230424, Andrew Davis wrote:
> On 4/24/23 12:36 PM, Nishanth Menon wrote:
> > fss node claims to be entirely a syscon node, but it is really two
> > parts of it - one a syscon that controls the hbmc mux and a simple bus
> > where ospi, hbmc peripherals are located. So model it accordingly by
> > splitting the node up and using ti,j721e-system-controller to describe
> > the syscon
> > 
> > Signed-off-by: Nishanth Menon <nm@ti.com>
> > ---
> >   .../boot/dts/ti/k3-j7200-mcu-wakeup.dtsi      | 21 +++++++++++++------
> >   1 file changed, 15 insertions(+), 6 deletions(-)
> > 
> > diff --git a/arch/arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi b/arch/arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi
> > index b58a31371bf3..7653cb191be1 100644
> > --- a/arch/arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi
> > +++ b/arch/arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi
> > @@ -338,18 +338,27 @@ mcu_spi2: spi@40320000 {
> >   		status = "disabled";
> >   	};
> > -	fss: syscon@47000000 {
> > -		compatible = "syscon", "simple-mfd";
> > +	hbmc_syscon: syscon@47000000 {
> > +		compatible = "ti,j721e-system-controller", "syscon", "simple-mfd";
> >   		reg = <0x00 0x47000000 0x00 0x100>;
> > -		#address-cells = <2>;
> > -		#size-cells = <2>;
> > -		ranges;
> > +		#address-cells = <1>;
> > +		#size-cells = <1>;
> > +		ranges = <0x00 0x00 0x47000000 0x100>;
> > -		hbmc_mux: hbmc-mux {
> > +		hbmc_mux: mux-controller@4 {
> >   			compatible = "mmio-mux";
> > +			reg = <0x4 0x2>;
> >   			#mux-control-cells = <1>;
> >   			mux-reg-masks = <0x4 0x2>; /* HBMC select */
> >   		};
> > +	};
> > +
> > +	fss: bus@47030000 {
> > +		compatible = "simple-bus";
> > +		reg = <0x0 0x47030000 0x0 0x100>;
> > +		#address-cells = <2>;
> > +		#size-cells = <2>;
> > +		ranges;
> >   		hbmc: hyperbus@47034000 {
> >   			compatible = "ti,am654-hbmc";
> 
> 
> I hope all the things you had to do here show you what I mean in my
> comments on [0] :)

yup.

> 
> I've posted a first step patch that allows "reg-mux" node to work with
> regular reg properties[1]. Which means this patch could have been just this:
> 
> --- a/arch/arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi
> +++ b/arch/arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi
> @@ -305,15 +305,16 @@ wkup_i2c0: i2c@42120000 {
>                 status = "disabled";
>         };
> -       fss: syscon@47000000 {
> -               compatible = "syscon", "simple-mfd";
> +       fss: bus@47000000 {
> +               compatible = "simple-bus";
>                 reg = <0x00 0x47000000 0x00 0x100>;
>                 #address-cells = <2>;
>                 #size-cells = <2>;
>                 ranges;
>                 hbmc_mux: hbmc-mux {
> -                       compatible = "mmio-mux";
> +                       compatible = "reg-mux";
> +                       reg = <0x00 0x47000004 0x00 0x2>;
>                         #mux-control-cells = <1>;
>                         mux-reg-masks = <0x4 0x2>; /* HBMC select */
>                 };
> 
> Andrew
> 
> [0] https://lore.kernel.org/all/76da0b98-3274-b047-db11-ecabc117ae11@ti.com/
> [1] https://lore.kernel.org/all/20230424184810.29453-1-afd@ti.com/

yes, this is a better approach. Lets see the conclusion of the
discussion.


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

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  reply	other threads:[~2023-04-25 12:28 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-24 17:36 [PATCH 0/3] arm64: dts: ti: k3-j7200: Fixes for various dtbs_checks warnings Nishanth Menon
2023-04-24 17:36 ` [PATCH 1/3] arm64: dts: ti: k3-j7200-mcu-wakeup: Remove 0x unit address prefix from nodename Nishanth Menon
2023-04-24 17:36 ` [PATCH 2/3] arm64: dts: ti: k3-j7200-mcu-wakeup: Switch mcu_syscon to ti,j721e-system-controller Nishanth Menon
2023-04-24 17:36 ` [PATCH 3/3] arm64: dts: ti: k3-j7200-mcu-wakeup: Split fss node up Nishanth Menon
2023-04-24 18:34   ` Kumar, Udit
2023-04-24 18:55   ` Andrew Davis
2023-04-25 12:27     ` Nishanth Menon [this message]
2023-06-06 16:16 ` [PATCH 0/3] arm64: dts: ti: k3-j7200: Fixes for various dtbs_checks warnings Nishanth Menon
2023-06-15 13:40 ` (subset) " Vignesh Raghavendra

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=20230425122744.hkahpv6yvprd6qzy@creature \
    --to=nm@ti.com \
    --cc=afd@ti.com \
    --cc=devicetree@vger.kernel.org \
    --cc=kristo@kernel.org \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=robh+dt@kernel.org \
    --cc=u-kumar1@ti.com \
    --cc=vaishnav.a@ti.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox