diff mbox series

[v3,4/9] arm64: dts: ti: Split k3-j784s4-j742s2-main-common.dtsi

Message ID 20240731-b4-upstream-j742s2-v3-4-da7fe3aa9e90@ti.com (mailing list archive)
State New, archived
Headers show
Series Introduce J742S2 SoC and EVM | expand

Commit Message

Manorit Chawdhry July 31, 2024, 5:10 p.m. UTC
k3-j784s4-j742s2-main-common.dtsi will be included in k3-j742s2-main.dtsi at a
later point so move j784s4 related stuff to k3-j784s4-main.dtsi

Signed-off-by: Manorit Chawdhry <m-chawdhry@ti.com>
---
 .../boot/dts/ti/k3-j784s4-j742s2-main-common.dtsi   | 13 -------------
 arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi          | 21 +++++++++++++++++++++
 arch/arm64/boot/dts/ti/k3-j784s4.dtsi               |  2 ++
 3 files changed, 23 insertions(+), 13 deletions(-)

Comments

Nishanth Menon Aug. 7, 2024, 1:09 p.m. UTC | #1
On 22:40-20240731, Manorit Chawdhry wrote:
> k3-j784s4-j742s2-main-common.dtsi will be included in k3-j742s2-main.dtsi at a
> later point so move j784s4 related stuff to k3-j784s4-main.dtsi

Reword as suggested for the evm.

> 
> Signed-off-by: Manorit Chawdhry <m-chawdhry@ti.com>
> ---
[...]
> diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi
> new file mode 100644
> index 000000000000..2ea470d1206d
> --- /dev/null
> +++ b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi
> @@ -0,0 +1,21 @@
> +// SPDX-License-Identifier: GPL-2.0-only OR MIT
> +/*
> + * Device Tree Source for J784S4 SoC Family Main Domain peripherals
> + *
> + * Copyright (C) 2022-2024 Texas Instruments Incorporated - https://www.ti.com/
> + */
> +
> +&cbass_main {
> +	c71_3: dsp@67800000 {
> +		compatible = "ti,j721s2-c71-dsp";
> +		reg = <0x00 0x67800000 0x00 0x00080000>,
> +		      <0x00 0x67e00000 0x00 0x0000c000>;
> +		reg-names = "l2sram", "l1dram";
> +		ti,sci = <&sms>;
> +		ti,sci-dev-id = <40>;
> +		ti,sci-proc-ids = <0x33 0xff>;
^^ vendor specific properties

> +		resets = <&k3_reset 40 1>;
> +		firmware-name = "j784s4-c71_3-fw";
^^ common properties
> +		status = "disabled";
> +	};
> +};

Since we are refactoring, we can use this opportunity to cleanup a bit
when the node is getting introduced.

> diff --git a/arch/arm64/boot/dts/ti/k3-j784s4.dtsi b/arch/arm64/boot/dts/ti/k3-j784s4.dtsi
> index 16ade4fd9cbd..f5afa32157cb 100644
> --- a/arch/arm64/boot/dts/ti/k3-j784s4.dtsi
> +++ b/arch/arm64/boot/dts/ti/k3-j784s4.dtsi
> @@ -168,3 +168,5 @@ cpu7: cpu@103 {
>  		};
>  	};
>  };
> +
> +#include "k3-j784s4-main.dtsi"
> 
> -- 
> 2.45.1
>
Nishanth Menon Aug. 7, 2024, 1:20 p.m. UTC | #2
On 22:40-20240731, Manorit Chawdhry wrote:
> k3-j784s4-j742s2-main-common.dtsi will be included in k3-j742s2-main.dtsi at a
> later point so move j784s4 related stuff to k3-j784s4-main.dtsi
> 
> Signed-off-by: Manorit Chawdhry <m-chawdhry@ti.com>
> ---
>  .../boot/dts/ti/k3-j784s4-j742s2-main-common.dtsi   | 13 -------------
>  arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi          | 21 +++++++++++++++++++++
>  arch/arm64/boot/dts/ti/k3-j784s4.dtsi               |  2 ++
>  3 files changed, 23 insertions(+), 13 deletions(-)
> 
> diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-j742s2-main-common.dtsi b/arch/arm64/boot/dts/ti/k3-j784s4-j742s2-main-common.dtsi
> index 17abd0f1560a..91352b1f63d2 100644
> --- a/arch/arm64/boot/dts/ti/k3-j784s4-j742s2-main-common.dtsi
> +++ b/arch/arm64/boot/dts/ti/k3-j784s4-j742s2-main-common.dtsi
> @@ -2405,19 +2405,6 @@ c71_2: dsp@66800000 {
>  		status = "disabled";
>  	};
>  
> -	c71_3: dsp@67800000 {
> -		compatible = "ti,j721s2-c71-dsp";
> -		reg = <0x00 0x67800000 0x00 0x00080000>,
> -		      <0x00 0x67e00000 0x00 0x0000c000>;
> -		reg-names = "l2sram", "l1dram";
> -		ti,sci = <&sms>;
> -		ti,sci-dev-id = <40>;
> -		ti,sci-proc-ids = <0x33 0xff>;
> -		resets = <&k3_reset 40 1>;
> -		firmware-name = "j784s4-c71_3-fw";
> -		status = "disabled";
> -	};
> -

This patch can be squashed in.

>  	main_esm: esm@700000 {
>  		compatible = "ti,j721e-esm";
>  		reg = <0x00 0x700000 0x00 0x1000>;
> diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi
> new file mode 100644
> index 000000000000..2ea470d1206d
> --- /dev/null
> +++ b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi
> @@ -0,0 +1,21 @@
> +// SPDX-License-Identifier: GPL-2.0-only OR MIT
> +/*
> + * Device Tree Source for J784S4 SoC Family Main Domain peripherals
> + *
> + * Copyright (C) 2022-2024 Texas Instruments Incorporated - https://www.ti.com/
> + */
> +
> +&cbass_main {
> +	c71_3: dsp@67800000 {
> +		compatible = "ti,j721s2-c71-dsp";
> +		reg = <0x00 0x67800000 0x00 0x00080000>,
> +		      <0x00 0x67e00000 0x00 0x0000c000>;
> +		reg-names = "l2sram", "l1dram";
> +		ti,sci = <&sms>;
> +		ti,sci-dev-id = <40>;
> +		ti,sci-proc-ids = <0x33 0xff>;
> +		resets = <&k3_reset 40 1>;
> +		firmware-name = "j784s4-c71_3-fw";
> +		status = "disabled";
> +	};
> +};

I am looking at https://www.ti.com/lit/ug/spruje3/spruje3.pdf (page 26),
Device Comparison:

CPSW/Serdes, PCIE is also different? Was that missed?

> diff --git a/arch/arm64/boot/dts/ti/k3-j784s4.dtsi b/arch/arm64/boot/dts/ti/k3-j784s4.dtsi
> index 16ade4fd9cbd..f5afa32157cb 100644
> --- a/arch/arm64/boot/dts/ti/k3-j784s4.dtsi
> +++ b/arch/arm64/boot/dts/ti/k3-j784s4.dtsi
> @@ -168,3 +168,5 @@ cpu7: cpu@103 {
>  		};
>  	};
>  };
> +
> +#include "k3-j784s4-main.dtsi"
> 
> -- 
> 2.45.1
>
Manorit Chawdhry Aug. 8, 2024, 4:52 a.m. UTC | #3
Hi Nishanth,

> > diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi
> > new file mode 100644
> > index 000000000000..2ea470d1206d
> > --- /dev/null
> > +++ b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi
> > @@ -0,0 +1,21 @@
> > +// SPDX-License-Identifier: GPL-2.0-only OR MIT
> > +/*
> > + * Device Tree Source for J784S4 SoC Family Main Domain peripherals
> > + *
> > + * Copyright (C) 2022-2024 Texas Instruments Incorporated - https://www.ti.com/
> > + */
> > +
> > +&cbass_main {
> > +	c71_3: dsp@67800000 {
> > +		compatible = "ti,j721s2-c71-dsp";
> > +		reg = <0x00 0x67800000 0x00 0x00080000>,
> > +		      <0x00 0x67e00000 0x00 0x0000c000>;
> > +		reg-names = "l2sram", "l1dram";
> > +		ti,sci = <&sms>;
> > +		ti,sci-dev-id = <40>;
> > +		ti,sci-proc-ids = <0x33 0xff>;
> > +		resets = <&k3_reset 40 1>;
> > +		firmware-name = "j784s4-c71_3-fw";
> > +		status = "disabled";
> > +	};
> > +};
> 
> I am looking at https://www.ti.com/lit/ug/spruje3/spruje3.pdf (page 26),
> Device Comparison:
> 
> CPSW/Serdes, PCIE is also different? Was that missed?

I had talked to Siddharth in the past regarding that and he had
mentioned that no change would be required with the previous patchsets
that I had shared, adding him to the thread 

Regards,
Manorit
Manorit Chawdhry Aug. 8, 2024, 4:56 a.m. UTC | #4
Hi Nishanth,

On 08:20-20240807, Nishanth Menon wrote:
> On 22:40-20240731, Manorit Chawdhry wrote:
> > k3-j784s4-j742s2-main-common.dtsi will be included in k3-j742s2-main.dtsi at a
> > later point so move j784s4 related stuff to k3-j784s4-main.dtsi
> > 
> > Signed-off-by: Manorit Chawdhry <m-chawdhry@ti.com>
> > ---
> >  .../boot/dts/ti/k3-j784s4-j742s2-main-common.dtsi   | 13 -------------
> >  arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi          | 21 +++++++++++++++++++++
> >  arch/arm64/boot/dts/ti/k3-j784s4.dtsi               |  2 ++
> >  3 files changed, 23 insertions(+), 13 deletions(-)
> > 
> > diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-j742s2-main-common.dtsi b/arch/arm64/boot/dts/ti/k3-j784s4-j742s2-main-common.dtsi
> > index 17abd0f1560a..91352b1f63d2 100644
> > --- a/arch/arm64/boot/dts/ti/k3-j784s4-j742s2-main-common.dtsi
> > +++ b/arch/arm64/boot/dts/ti/k3-j784s4-j742s2-main-common.dtsi
> > @@ -2405,19 +2405,6 @@ c71_2: dsp@66800000 {
> >  		status = "disabled";
> >  	};
> >  
> > -	c71_3: dsp@67800000 {
> > -		compatible = "ti,j721s2-c71-dsp";
> > -		reg = <0x00 0x67800000 0x00 0x00080000>,
> > -		      <0x00 0x67e00000 0x00 0x0000c000>;
> > -		reg-names = "l2sram", "l1dram";
> > -		ti,sci = <&sms>;
> > -		ti,sci-dev-id = <40>;
> > -		ti,sci-proc-ids = <0x33 0xff>;
> > -		resets = <&k3_reset 40 1>;
> > -		firmware-name = "j784s4-c71_3-fw";
> > -		status = "disabled";
> > -	};
> > -
> 
> This patch can be squashed in.
> 

The idea was that we can see what changes are happening and where are
things getting moved and hence had kept the patch like this, would be
easier to review I believe, do you want it squashed right now or should
I be doing it later once you are fine with all the changes and all the
reviews are done?

Regards,
Manorit
s-vadapalli Aug. 8, 2024, 5:28 a.m. UTC | #5
On Thu, Aug 08, 2024 at 10:22:27AM +0530, Manorit Chawdhry wrote:
> Hi Nishanth,
> 
> > > diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi
> > > new file mode 100644
> > > index 000000000000..2ea470d1206d
> > > --- /dev/null
> > > +++ b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi
> > > @@ -0,0 +1,21 @@
> > > +// SPDX-License-Identifier: GPL-2.0-only OR MIT
> > > +/*
> > > + * Device Tree Source for J784S4 SoC Family Main Domain peripherals
> > > + *
> > > + * Copyright (C) 2022-2024 Texas Instruments Incorporated - https://www.ti.com/
> > > + */
> > > +
> > > +&cbass_main {
> > > +	c71_3: dsp@67800000 {
> > > +		compatible = "ti,j721s2-c71-dsp";
> > > +		reg = <0x00 0x67800000 0x00 0x00080000>,
> > > +		      <0x00 0x67e00000 0x00 0x0000c000>;
> > > +		reg-names = "l2sram", "l1dram";
> > > +		ti,sci = <&sms>;
> > > +		ti,sci-dev-id = <40>;
> > > +		ti,sci-proc-ids = <0x33 0xff>;
> > > +		resets = <&k3_reset 40 1>;
> > > +		firmware-name = "j784s4-c71_3-fw";
> > > +		status = "disabled";
> > > +	};
> > > +};
> > 
> > I am looking at https://www.ti.com/lit/ug/spruje3/spruje3.pdf (page 26),
> > Device Comparison:
> > 
> > CPSW/Serdes, PCIE is also different? Was that missed?
> 
> I had talked to Siddharth in the past regarding that and he had
> mentioned that no change would be required with the previous patchsets
> that I had shared, adding him to the thread 

Manorit,

Since J784S4-EVM enables only PCIe0 and PCIe1 which matches the
instances enabled/supported on J742S2-EVM, I had informed you that for
the purpose of validation, no changes will be required w.r.t. PCIe, if
k3-j742s2-evm.dts is including k3-j784s4-evm.dts. However, considering
that the device-tree should describe the hardware, when upstreaming the
device-tree for J742S2, PCIe2 and PCIe3 should be deleted
(if k3-j784s4-evm.dts is included by k3-j742s2-evm.dts) OR dropped
(if there is a "common" file that is used to describe the peripherals
common to J742S2 and J784S4 as done in the current series).

Also, SERDES2 is not present on J742S2 SoC while J784S4 has SERDES0,
SERDES1, SERDES2 and SERDES4. There is no difference w.r.t. CPSW9G in
terms of the CPSW9G instance itself, but the difference is that CPSW9G
cannot use SERDES2. So CPSW9G can only be used with SERDES4 on J742S2
SoC, but J742S2-EVM has the SERDES4 lines connected to Display Ports,
due to which CPSW9G is essentially non-functional on J742S2-EVM.

Regards,
Siddharth.
Nishanth Menon Aug. 8, 2024, 10:48 a.m. UTC | #6
On 10:26-20240808, Manorit Chawdhry wrote:
> Hi Nishanth,
> 
> On 08:20-20240807, Nishanth Menon wrote:
> > On 22:40-20240731, Manorit Chawdhry wrote:
> > > k3-j784s4-j742s2-main-common.dtsi will be included in k3-j742s2-main.dtsi at a
> > > later point so move j784s4 related stuff to k3-j784s4-main.dtsi
> > > 
> > > Signed-off-by: Manorit Chawdhry <m-chawdhry@ti.com>
> > > ---
> > >  .../boot/dts/ti/k3-j784s4-j742s2-main-common.dtsi   | 13 -------------
> > >  arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi          | 21 +++++++++++++++++++++
> > >  arch/arm64/boot/dts/ti/k3-j784s4.dtsi               |  2 ++
> > >  3 files changed, 23 insertions(+), 13 deletions(-)
> > > 
> > > diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-j742s2-main-common.dtsi b/arch/arm64/boot/dts/ti/k3-j784s4-j742s2-main-common.dtsi
> > > index 17abd0f1560a..91352b1f63d2 100644
> > > --- a/arch/arm64/boot/dts/ti/k3-j784s4-j742s2-main-common.dtsi
> > > +++ b/arch/arm64/boot/dts/ti/k3-j784s4-j742s2-main-common.dtsi
> > > @@ -2405,19 +2405,6 @@ c71_2: dsp@66800000 {
> > >  		status = "disabled";
> > >  	};
> > >  
> > > -	c71_3: dsp@67800000 {
> > > -		compatible = "ti,j721s2-c71-dsp";
> > > -		reg = <0x00 0x67800000 0x00 0x00080000>,
> > > -		      <0x00 0x67e00000 0x00 0x0000c000>;
> > > -		reg-names = "l2sram", "l1dram";
> > > -		ti,sci = <&sms>;
> > > -		ti,sci-dev-id = <40>;
> > > -		ti,sci-proc-ids = <0x33 0xff>;
> > > -		resets = <&k3_reset 40 1>;
> > > -		firmware-name = "j784s4-c71_3-fw";
> > > -		status = "disabled";
> > > -	};
> > > -
> > 
> > This patch can be squashed in.
> > 
> 
> The idea was that we can see what changes are happening and where are
> things getting moved and hence had kept the patch like this, would be
> easier to review I believe, do you want it squashed right now or should
> I be doing it later once you are fine with all the changes and all the
> reviews are done?
> 

No. Please squash as suggested in my response to your cover-letter for
the next iteration - please use git format-patch -C -M to generate
patches (I understand you have some limitations with using b4) to
make reviews easier to do.
Nishanth Menon Aug. 8, 2024, 10:54 a.m. UTC | #7
On 10:58-20240808, Siddharth Vadapalli wrote:
> On Thu, Aug 08, 2024 at 10:22:27AM +0530, Manorit Chawdhry wrote:
> > Hi Nishanth,
> > 
> > > > diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi
> > > > new file mode 100644
> > > > index 000000000000..2ea470d1206d
> > > > --- /dev/null
> > > > +++ b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi
> > > > @@ -0,0 +1,21 @@
> > > > +// SPDX-License-Identifier: GPL-2.0-only OR MIT
> > > > +/*
> > > > + * Device Tree Source for J784S4 SoC Family Main Domain peripherals
> > > > + *
> > > > + * Copyright (C) 2022-2024 Texas Instruments Incorporated - https://www.ti.com/
> > > > + */
> > > > +
> > > > +&cbass_main {
> > > > +	c71_3: dsp@67800000 {
> > > > +		compatible = "ti,j721s2-c71-dsp";
> > > > +		reg = <0x00 0x67800000 0x00 0x00080000>,
> > > > +		      <0x00 0x67e00000 0x00 0x0000c000>;
> > > > +		reg-names = "l2sram", "l1dram";
> > > > +		ti,sci = <&sms>;
> > > > +		ti,sci-dev-id = <40>;
> > > > +		ti,sci-proc-ids = <0x33 0xff>;
> > > > +		resets = <&k3_reset 40 1>;
> > > > +		firmware-name = "j784s4-c71_3-fw";
> > > > +		status = "disabled";
> > > > +	};
> > > > +};
> > > 
> > > I am looking at https://www.ti.com/lit/ug/spruje3/spruje3.pdf (page 26),
> > > Device Comparison:
> > > 
> > > CPSW/Serdes, PCIE is also different? Was that missed?
> > 
> > I had talked to Siddharth in the past regarding that and he had
> > mentioned that no change would be required with the previous patchsets
> > that I had shared, adding him to the thread 
> 
> Manorit,
> 
> Since J784S4-EVM enables only PCIe0 and PCIe1 which matches the
> instances enabled/supported on J742S2-EVM, I had informed you that for
> the purpose of validation, no changes will be required w.r.t. PCIe, if
> k3-j742s2-evm.dts is including k3-j784s4-evm.dts. However, considering
> that the device-tree should describe the hardware, when upstreaming the
> device-tree for J742S2, PCIe2 and PCIe3 should be deleted
> (if k3-j784s4-evm.dts is included by k3-j742s2-evm.dts) OR dropped
> (if there is a "common" file that is used to describe the peripherals
> common to J742S2 and J784S4 as done in the current series).
> 
> Also, SERDES2 is not present on J742S2 SoC while J784S4 has SERDES0,
> SERDES1, SERDES2 and SERDES4. There is no difference w.r.t. CPSW9G in
> terms of the CPSW9G instance itself, but the difference is that CPSW9G
> cannot use SERDES2. So CPSW9G can only be used with SERDES4 on J742S2
> SoC, but J742S2-EVM has the SERDES4 lines connected to Display Ports,
> due to which CPSW9G is essentially non-functional on J742S2-EVM.


Thanks Siddharth. Manorit: Please address the above in the next rev.
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-j742s2-main-common.dtsi b/arch/arm64/boot/dts/ti/k3-j784s4-j742s2-main-common.dtsi
index 17abd0f1560a..91352b1f63d2 100644
--- a/arch/arm64/boot/dts/ti/k3-j784s4-j742s2-main-common.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-j784s4-j742s2-main-common.dtsi
@@ -2405,19 +2405,6 @@  c71_2: dsp@66800000 {
 		status = "disabled";
 	};
 
-	c71_3: dsp@67800000 {
-		compatible = "ti,j721s2-c71-dsp";
-		reg = <0x00 0x67800000 0x00 0x00080000>,
-		      <0x00 0x67e00000 0x00 0x0000c000>;
-		reg-names = "l2sram", "l1dram";
-		ti,sci = <&sms>;
-		ti,sci-dev-id = <40>;
-		ti,sci-proc-ids = <0x33 0xff>;
-		resets = <&k3_reset 40 1>;
-		firmware-name = "j784s4-c71_3-fw";
-		status = "disabled";
-	};
-
 	main_esm: esm@700000 {
 		compatible = "ti,j721e-esm";
 		reg = <0x00 0x700000 0x00 0x1000>;
diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi
new file mode 100644
index 000000000000..2ea470d1206d
--- /dev/null
+++ b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi
@@ -0,0 +1,21 @@ 
+// SPDX-License-Identifier: GPL-2.0-only OR MIT
+/*
+ * Device Tree Source for J784S4 SoC Family Main Domain peripherals
+ *
+ * Copyright (C) 2022-2024 Texas Instruments Incorporated - https://www.ti.com/
+ */
+
+&cbass_main {
+	c71_3: dsp@67800000 {
+		compatible = "ti,j721s2-c71-dsp";
+		reg = <0x00 0x67800000 0x00 0x00080000>,
+		      <0x00 0x67e00000 0x00 0x0000c000>;
+		reg-names = "l2sram", "l1dram";
+		ti,sci = <&sms>;
+		ti,sci-dev-id = <40>;
+		ti,sci-proc-ids = <0x33 0xff>;
+		resets = <&k3_reset 40 1>;
+		firmware-name = "j784s4-c71_3-fw";
+		status = "disabled";
+	};
+};
diff --git a/arch/arm64/boot/dts/ti/k3-j784s4.dtsi b/arch/arm64/boot/dts/ti/k3-j784s4.dtsi
index 16ade4fd9cbd..f5afa32157cb 100644
--- a/arch/arm64/boot/dts/ti/k3-j784s4.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-j784s4.dtsi
@@ -168,3 +168,5 @@  cpu7: cpu@103 {
 		};
 	};
 };
+
+#include "k3-j784s4-main.dtsi"