]> www.infradead.org Git - users/hch/dma-mapping.git/commitdiff
arm64: dts: ti: k3-am64: Enable SDHCI nodes at the board level
authorAndrew Davis <afd@ti.com>
Fri, 17 Nov 2023 16:33:39 +0000 (10:33 -0600)
committerNishanth Menon <nm@ti.com>
Mon, 4 Dec 2023 18:17:08 +0000 (12:17 -0600)
SDHCI nodes defined in the top-level AM64 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/20231117163339.89952-2-afd@ti.com
Signed-off-by: Nishanth Menon <nm@ti.com>
arch/arm64/boot/dts/ti/k3-am64-main.dtsi
arch/arm64/boot/dts/ti/k3-am64-phycore-som.dtsi
arch/arm64/boot/dts/ti/k3-am642-evm.dts
arch/arm64/boot/dts/ti/k3-am642-phyboard-electra-rdk.dts
arch/arm64/boot/dts/ti/k3-am642-sk.dts
arch/arm64/boot/dts/ti/k3-am642-tqma64xxl-mbax4xxl.dts
arch/arm64/boot/dts/ti/k3-am642-tqma64xxl.dtsi

index 7451434101469f8b1a58dbb977dfc7ac3b6be538..c7be378492e210e138c078d261f42e9aac928b43 100644 (file)
                ti,otap-del-sel-mmc-hs = <0x0>;
                ti,otap-del-sel-ddr52 = <0x6>;
                ti,otap-del-sel-hs200 = <0x7>;
+               status = "disabled";
        };
 
        sdhci1: mmc@fa00000 {
                ti,otap-del-sel-sdr104 = <0x6>;
                ti,otap-del-sel-ddr50 = <0x9>;
                ti,clkbuf-sel = <0x7>;
+               status = "disabled";
        };
 
        cpsw3g: ethernet@8000000 {
index f87f09d83c956a9e6c76e0032baa7142c1f19e83..b8f844f667afca5cc7e42048a235bd931dc15e25 100644 (file)
 };
 
 &sdhci0 {
+       status = "okay";
        bus-width = <8>;
        non-removable;
        ti,driver-strength-ohm = <50>;
index 45f64b6f8281093bef142f0f0f801d214fa08536..8c5651d2cf5ddc7033d51eb0701dd103de66a076 100644 (file)
        };
 };
 
+/* eMMC */
 &sdhci0 {
-       /* emmc */
+       status = "okay";
        bus-width = <8>;
        non-removable;
        ti,driver-strength-ohm = <50>;
        disable-wp;
 };
 
+/* SD/MMC */
 &sdhci1 {
-       /* SD/MMC */
        bootph-all;
+       status = "okay";
        vmmc-supply = <&vdd_mmc1>;
        pinctrl-names = "default";
        bus-width = <4>;
index 9175e96842d821f5b54eb383aecb840692ffff8d..53b64e55413f99e45ca93ec98e39cd224e3599ee 100644 (file)
 };
 
 &sdhci1 {
+       status = "okay";
        vmmc-supply = <&vcc_3v3_mmc>;
        pinctrl-names = "default";
        pinctrl-0 = <&main_mmc1_pins_default>;
index d2d3b5017ac49849e38407f1a7f62129b08b9136..1dddd6fc1a0d2dac05979333ec3c43c8ea59f421 100644 (file)
 };
 
 &sdhci0 {
+       status = "okay";
        vmmc-supply = <&wlan_en>;
        bus-width = <4>;
        non-removable;
        };
 };
 
+/* SD/MMC */
 &sdhci1 {
-       /* SD/MMC */
        bootph-all;
+       status = "okay";
        vmmc-supply = <&vdd_mmc1>;
        pinctrl-names = "default";
        bus-width = <4>;
index d95d80076a427027dc5c394b7d0660b748c2de30..55102d35cecc1e1fd66e75d5188d8072882c9968 100644 (file)
        ti,driver-strength-ohm = <50>;
        ti,fails-without-test-cd;
        /* Enabled by overlay */
-       status = "disabled";
 };
 
 &tscadc0 {
index d82d4a98306a7d349b9aff287c0f83a0f2c7959e..6c785eff7d2ffa32a2eb8512bae11dbf1422e068 100644 (file)
 };
 
 &sdhci0 {
+       status = "okay";
        non-removable;
        disable-wp;
        no-sdio;