arm64: dts: ti: k3-am65: Enable EPWM nodes at the board level
authorAndrew Davis <afd@ti.com>
Fri, 28 Oct 2022 14:24:10 +0000 (09:24 -0500)
committerNishanth Menon <nm@ti.com>
Fri, 4 Nov 2022 02:46:00 +0000 (21:46 -0500)
EPWM nodes defined in the top-level AM65x 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>
Tested-by: Jan Kiszka <jan.kiszka@siemens.com>
Reviewed-by: Bryan Brattlof <bb@ti.com>
Link: https://lore.kernel.org/r/20221028142417.10642-5-afd@ti.com
arch/arm64/boot/dts/ti/k3-am65-main.dtsi

index 74fd807..49287f8 100644 (file)
                power-domains = <&k3_pds 40 TI_SCI_PD_EXCLUSIVE>;
                clocks = <&ehrpwm_tbclk 0>, <&k3_clks 40 0>;
                clock-names = "tbclk", "fck";
+               status = "disabled";
        };
 
        ehrpwm1: pwm@3010000 {
                power-domains = <&k3_pds 41 TI_SCI_PD_EXCLUSIVE>;
                clocks = <&ehrpwm_tbclk 1>, <&k3_clks 41 0>;
                clock-names = "tbclk", "fck";
+               status = "disabled";
        };
 
        ehrpwm2: pwm@3020000 {
                power-domains = <&k3_pds 42 TI_SCI_PD_EXCLUSIVE>;
                clocks = <&ehrpwm_tbclk 2>, <&k3_clks 42 0>;
                clock-names = "tbclk", "fck";
+               status = "disabled";
        };
 
        ehrpwm3: pwm@3030000 {
                power-domains = <&k3_pds 43 TI_SCI_PD_EXCLUSIVE>;
                clocks = <&ehrpwm_tbclk 3>, <&k3_clks 43 0>;
                clock-names = "tbclk", "fck";
+               status = "disabled";
        };
 
        ehrpwm4: pwm@3040000 {
                power-domains = <&k3_pds 44 TI_SCI_PD_EXCLUSIVE>;
                clocks = <&ehrpwm_tbclk 4>, <&k3_clks 44 0>;
                clock-names = "tbclk", "fck";
+               status = "disabled";
        };
 
        ehrpwm5: pwm@3050000 {
                power-domains = <&k3_pds 45 TI_SCI_PD_EXCLUSIVE>;
                clocks = <&ehrpwm_tbclk 5>, <&k3_clks 45 0>;
                clock-names = "tbclk", "fck";
+               status = "disabled";
        };
 
        icssg0: icssg@b000000 {