arm64: dts: ti: k3-j721e: Enable TSCADC nodes at the board level
authorAndrew Davis <afd@ti.com>
Thu, 10 Aug 2023 00:38:12 +0000 (19:38 -0500)
committerNishanth Menon <nm@ti.com>
Thu, 10 Aug 2023 03:30:56 +0000 (22:30 -0500)
TSCADC nodes defined in the top-level J721e SoC dtsi files are incomplete
and may not be functional unless they are extended with pinmux and/or
device information.

Disable the TSCADC 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>
Link: https://lore.kernel.org/r/20230810003814.85450-12-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-common-proc-board.dts
arch/arm64/boot/dts/ti/k3-j721e-mcu-wakeup.dtsi
arch/arm64/boot/dts/ti/k3-j721e-sk.dts

index f06e7bd..9f3a809 100644 (file)
 };
 
 &tscadc0 {
+       status = "okay";
        /* BBB Header: P9.39, P9.40, P9.37, P9.38, P9.33, P9.36, P9.35 */
        adc {
                ti,adc-channels = <0 1 2 3 4 5 6>;
 };
 
 &tscadc1 {
+       status = "okay";
        /* MCU mikroBUS Header J10.1 - MCU_ADC1_AIN0 */
        adc {
                ti,adc-channels = <0>;
index 824874a..fe5207a 100644 (file)
 };
 
 &tscadc0 {
+       status = "okay";
        adc {
                ti,adc-channels = <0 1 2 3 4 5 6 7>;
        };
 };
 
 &tscadc1 {
+       status = "okay";
        adc {
                ti,adc-channels = <0 1 2 3 4 5 6 7>;
        };
index 4ecc19b..2724fa4 100644 (file)
                dmas = <&main_udmap 0x7400>,
                        <&main_udmap 0x7401>;
                dma-names = "fifo0", "fifo1";
+               status = "disabled";
 
                adc {
                        #io-channel-cells = <1>;
                dmas = <&main_udmap 0x7402>,
                        <&main_udmap 0x7403>;
                dma-names = "fifo0", "fifo1";
+               status = "disabled";
 
                adc {
                        #io-channel-cells = <1>;
index ed4994d..4032601 100644 (file)
        phy-names = "cdns3,usb3-phy";
 };
 
-&tscadc0 {
-       /* Unused */
-       status = "disabled";
-};
-
-&tscadc1 {
-       /* Unused */
-       status = "disabled";
-};
-
 &mcu_cpsw {
        pinctrl-names = "default";
        pinctrl-0 = <&mcu_cpsw_pins_default>, <&mcu_mdio_pins_default>;