arm64: dts: ti: k3-j7200: Enable SDHCI nodes at the board level
authorAndrew Davis <afd@ti.com>
Thu, 10 Aug 2023 00:38:03 +0000 (19:38 -0500)
committerNishanth Menon <nm@ti.com>
Thu, 10 Aug 2023 03:30:06 +0000 (22:30 -0500)
SDHCI nodes defined in the top-level J7200 SoC dtsi files are incomplete
and will not be functional unless they are extended.

As the attached SD/eMMC is only known about at the board integration level,
these nodes should only be enabled when provided with this information.

Disable the SDHCI 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-3-afd@ti.com
Signed-off-by: Nishanth Menon <nm@ti.com>
arch/arm64/boot/dts/ti/k3-j7200-common-proc-board.dts
arch/arm64/boot/dts/ti/k3-j7200-main.dtsi

index 92a54149117298933e7178782bba39bd91274765..dee9056f56051c50a4c52d30ad2e979daee6ebb2 100644 (file)
 
 &main_sdhci0 {
        /* eMMC */
+       status = "okay";
        non-removable;
        ti,driver-strength-ohm = <50>;
        disable-wp;
 
 &main_sdhci1 {
        /* SD card */
+       status = "okay";
        pinctrl-0 = <&main_mmc1_pins_default>;
        pinctrl-names = "default";
        vmmc-supply = <&vdd_mmc1>;
index e695f788173359bdd79e654cb7e2ed83a61bf031..5ffcbd8acf86e2d0a555983447f1cf1b35ac81ce 100644 (file)
                mmc-hs200-1_8v;
                mmc-hs400-1_8v;
                dma-coherent;
+               status = "disabled";
        };
 
        main_sdhci1: mmc@4fb0000 {
                ti,clkbuf-sel = <0x7>;
                ti,trm-icp = <0x8>;
                dma-coherent;
+               status = "disabled";
        };
 
        serdes_wiz0: wiz@5060000 {