arm64: dts: ti: k3-am65: Enable ECAP nodes at the board level
authorAndrew Davis <afd@ti.com>
Fri, 28 Oct 2022 14:24:11 +0000 (09:24 -0500)
committerNishanth Menon <nm@ti.com>
Fri, 4 Nov 2022 02:46:00 +0000 (21:46 -0500)
ECAP nodes defined in the top-level AM65x SoC dtsi files are incomplete
and will not be functional unless they are extended with pinmux
information. (These and the EPWM nodes could be used to trigger internal
actions but they are not used like that currently)

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

Disable the ECAP 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-6-afd@ti.com
arch/arm64/boot/dts/ti/k3-am65-iot2050-common.dtsi
arch/arm64/boot/dts/ti/k3-am65-main.dtsi
arch/arm64/boot/dts/ti/k3-am654-base-board.dts

index fa4b6eb02fa576f40d27049f76eaf19c413212ea..56562081a8e527c533e72ee747bc4aa3a4280d4b 100644 (file)
 };
 
 &ecap0 {
+       status = "okay";
        pinctrl-names = "default";
        pinctrl-0 = <&ecap0_pins_default>;
 };
index 49287f8493aea607e6aca019dd39e17a2cba1a0e..fbb631c7664d27de52dbe6aac4cdc38806cb900f 100644 (file)
                power-domains = <&k3_pds 39 TI_SCI_PD_EXCLUSIVE>;
                clocks = <&k3_clks 39 0>;
                clock-names = "fck";
+               status = "disabled";
        };
 
        main_spi0: spi@2100000 {
index 3f5a5ebfc8f3c5d9b0445dceea9ef9c9609c27b3..f4b8747ebaef62673ff252ffa56e64ba38be5ae6 100644 (file)
 };
 
 &ecap0 {
+       status = "okay";
        pinctrl-names = "default";
        pinctrl-0 = <&ecap0_pins_default>;
 };