arm64: dts: ti: k3-j721e: Enable C6x DSP nodes at the board level
authorAndrew Davis <afd@ti.com>
Wed, 9 Aug 2023 18:01:45 +0000 (13:01 -0500)
committerNishanth Menon <nm@ti.com>
Thu, 10 Aug 2023 23:00:58 +0000 (18:00 -0500)
C6x DSP nodes defined in the top-level J721e SoC dtsi files are incomplete
and will not be functional unless they are extended with both mboxes and
memory-region information.

As theses only known about at the board integration level, these nodes
should only be enabled when provided with this information.

Disable the C6x DSP nodes in the dtsi files and only enable the ones that
are given the required mboxes and memory-region on a given board.

Signed-off-by: Andrew Davis <afd@ti.com>
Acked-by: Hari Nagalla <hnagalla@ti.com>
Tested-by: Udit Kumar <u-kumar1@ti.com>
Link: https://lore.kernel.org/r/20230809180145.53158-3-afd@ti.com
Signed-off-by: Nishanth Menon <nm@ti.com>
arch/arm64/boot/dts/ti/k3-j721e-beagleboneai64.dts
arch/arm64/boot/dts/ti/k3-j721e-main.dtsi
arch/arm64/boot/dts/ti/k3-j721e-sk.dts
arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi

index e475728..2f95472 100644 (file)
 };
 
 &c66_0 {
+       status = "okay";
        mboxes = <&mailbox0_cluster3>, <&mbox_c66_0>;
        memory-region = <&c66_0_dma_memory_region>,
                        <&c66_0_memory_region>;
 };
 
 &c66_1 {
+       status = "okay";
        mboxes = <&mailbox0_cluster3>, <&mbox_c66_1>;
        memory-region = <&c66_1_dma_memory_region>,
                        <&c66_1_memory_region>;
index f20ec44..f6c7e16 100644 (file)
                ti,sci-proc-ids = <0x03 0xff>;
                resets = <&k3_reset 142 1>;
                firmware-name = "j7-c66_0-fw";
+               status = "disabled";
        };
 
        c66_1: dsp@4d81800000 {
                ti,sci-proc-ids = <0x04 0xff>;
                resets = <&k3_reset 143 1>;
                firmware-name = "j7-c66_1-fw";
+               status = "disabled";
        };
 
        c71_0: dsp@64800000 {
index 764ed8f..42fe8ee 100644 (file)
 };
 
 &c66_0 {
+       status = "okay";
        mboxes = <&mailbox0_cluster3>, <&mbox_c66_0>;
        memory-region = <&c66_0_dma_memory_region>,
                        <&c66_0_memory_region>;
 };
 
 &c66_1 {
+       status = "okay";
        mboxes = <&mailbox0_cluster3>, <&mbox_c66_1>;
        memory-region = <&c66_1_dma_memory_region>,
                        <&c66_1_memory_region>;
index 1bfd5a4..7f0686c 100644 (file)
 };
 
 &c66_0 {
+       status = "okay";
        mboxes = <&mailbox0_cluster3>, <&mbox_c66_0>;
        memory-region = <&c66_0_dma_memory_region>,
                        <&c66_0_memory_region>;
 };
 
 &c66_1 {
+       status = "okay";
        mboxes = <&mailbox0_cluster3>, <&mbox_c66_1>;
        memory-region = <&c66_1_dma_memory_region>,
                        <&c66_1_memory_region>;