arm64: dts: ti: k3-am64: Enable EPWM nodes at the board level
authorAndrew Davis <afd@ti.com>
Mon, 17 Oct 2022 19:25:26 +0000 (14:25 -0500)
committerNishanth Menon <nm@ti.com>
Fri, 28 Oct 2022 13:14:48 +0000 (08:14 -0500)
EPWM nodes defined in the top-level AM64x SoC dtsi files are incomplete
and will not be functional unless they are extended with pinmux
information.

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

Disable the EPWM nodes in the dtsi files and only enable the ones that
are actually pinned out on a given board.

Signed-off-by: Andrew Davis <afd@ti.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
Reviewed-by: Bryan Brattlof <bb@ti.com>
Acked-by: Vignesh Raghavendra <vigneshr@ti.com>
Link: https://lore.kernel.org/r/20221017192532.23825-5-afd@ti.com
arch/arm64/boot/dts/ti/k3-am64-main.dtsi
arch/arm64/boot/dts/ti/k3-am642-evm.dts
arch/arm64/boot/dts/ti/k3-am642-sk.dts

index 375078ca4fdde94c2b638c7d8920fe9a4ba82e20..672575f44529b11322d2656e3830de75cb5eb47c 100644 (file)
                power-domains = <&k3_pds 86 TI_SCI_PD_EXCLUSIVE>;
                clocks = <&epwm_tbclk 0>, <&k3_clks 86 0>;
                clock-names = "tbclk", "fck";
+               status = "disabled";
        };
 
        epwm1: pwm@23010000 {
                power-domains = <&k3_pds 87 TI_SCI_PD_EXCLUSIVE>;
                clocks = <&epwm_tbclk 1>, <&k3_clks 87 0>;
                clock-names = "tbclk", "fck";
+               status = "disabled";
        };
 
        epwm2: pwm@23020000 {
                power-domains = <&k3_pds 88 TI_SCI_PD_EXCLUSIVE>;
                clocks = <&epwm_tbclk 2>, <&k3_clks 88 0>;
                clock-names = "tbclk", "fck";
+               status = "disabled";
        };
 
        epwm3: pwm@23030000 {
                power-domains = <&k3_pds 89 TI_SCI_PD_EXCLUSIVE>;
                clocks = <&epwm_tbclk 3>, <&k3_clks 89 0>;
                clock-names = "tbclk", "fck";
+               status = "disabled";
        };
 
        epwm4: pwm@23040000 {
                power-domains = <&k3_pds 90 TI_SCI_PD_EXCLUSIVE>;
                clocks = <&epwm_tbclk 4>, <&k3_clks 90 0>;
                clock-names = "tbclk", "fck";
+               status = "disabled";
        };
 
        epwm5: pwm@23050000 {
                power-domains = <&k3_pds 91 TI_SCI_PD_EXCLUSIVE>;
                clocks = <&epwm_tbclk 5>, <&k3_clks 91 0>;
                clock-names = "tbclk", "fck";
+               status = "disabled";
        };
 
        epwm6: pwm@23060000 {
                power-domains = <&k3_pds 92 TI_SCI_PD_EXCLUSIVE>;
                clocks = <&epwm_tbclk 6>, <&k3_clks 92 0>;
                clock-names = "tbclk", "fck";
+               status = "disabled";
        };
 
        epwm7: pwm@23070000 {
                power-domains = <&k3_pds 93 TI_SCI_PD_EXCLUSIVE>;
                clocks = <&epwm_tbclk 7>, <&k3_clks 93 0>;
                clock-names = "tbclk", "fck";
+               status = "disabled";
        };
 
        epwm8: pwm@23080000 {
                power-domains = <&k3_pds 94 TI_SCI_PD_EXCLUSIVE>;
                clocks = <&epwm_tbclk 8>, <&k3_clks 94 0>;
                clock-names = "tbclk", "fck";
+               status = "disabled";
        };
 
        ecap0: pwm@23100000 {
index 12d971c3bc3a0e8bc89667187dea16374a29633b..cef3afa10c39b81103dd1996e2151b6c5874a062 100644 (file)
        status = "disabled";
 };
 
-&epwm0 {
-       status = "disabled";
-};
-
-&epwm1 {
-       status = "disabled";
-};
-
-&epwm2 {
-       status = "disabled";
-};
-
-&epwm3 {
-       status = "disabled";
-};
-
-&epwm4 {
-       status = "disabled";
-};
-
-&epwm5 {
-       status = "disabled";
-};
-
-&epwm6 {
-       status = "disabled";
-};
-
-&epwm7 {
-       status = "disabled";
-};
-
-&epwm8 {
-       status = "disabled";
-};
-
 &icssg0_mdio {
        status = "disabled";
 };
index 1a116593a771f9515ee44c027874a33afe6fcdba..51f4ae165c13d5e795a94a094487858f27917d2c 100644 (file)
        status = "disabled";
 };
 
-&epwm0 {
-       status = "disabled";
-};
-
-&epwm1 {
-       status = "disabled";
-};
-
-&epwm2 {
-       status = "disabled";
-};
-
-&epwm3 {
-       status = "disabled";
-};
-
-&epwm4 {
-       /*
-        * EPWM4_A, EPWM4_B is available on Pin 32 and 33 on J4 (RPi hat)
-        * But RPi Hat will be used for other use cases, so marking epwm4 as disabled.
-        */
-       status = "disabled";
-};
-
-&epwm5 {
-       /*
-        * EPWM5_A, EPWM5_B is available on Pin 29 and 31 on J4 (RPi hat)
-        * But RPi Hat will be used for other use cases, so marking epwm5 as disabled.
-        */
-       status = "disabled";
-};
-
-&epwm6 {
-       status = "disabled";
-};
-
-&epwm7 {
-       status = "disabled";
-};
-
-&epwm8 {
-       status = "disabled";
-};
-
 &icssg0_mdio {
        status = "disabled";
 };