]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
arm64: dts: ti: k3-am65: Enable SDHCI nodes at the board level
authorAndrew Davis <afd@ti.com>
Fri, 17 Nov 2023 16:33:38 +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 AM65 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-1-afd@ti.com
Signed-off-by: Nishanth Menon <nm@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-am6528-iot2050-basic-common.dtsi
arch/arm64/boot/dts/ti/k3-am654-base-board.dts
arch/arm64/boot/dts/ti/k3-am6548-iot2050-advanced-common.dtsi

index ab1dffa5c1c6ff1335dd3d9ec13d3d7ea6ba41ad..6cbdf370cfcc6bd91271d0a066eca691e869d851 100644 (file)
 };
 
 &sdhci1 {
+       status = "okay";
        pinctrl-names = "default";
        pinctrl-0 = <&main_mmc1_pins_default>;
        ti,driver-strength-ohm = <50>;
index 72e7c455bf726612f851805702ff99309ea5a883..cc59fc648b56fd7ee0c7b50f9e35e9a650d35bff 100644 (file)
                ti,otap-del-sel-hs400 = <0x0>;
                ti,trm-icp = <0x8>;
                dma-coherent;
+               status = "disabled";
        };
 
        sdhci1: mmc@4fa0000 {
                ti,clkbuf-sel = <0x7>;
                ti,trm-icp = <0x8>;
                dma-coherent;
+               status = "disabled";
        };
 
        scm_conf: scm-conf@100000 {
index 5ab434c02ab6b44acfaa775d2c84aac2b5cee418..e4d7cba7c62f068a91ceed0b8cf104a6788cc21c 100644 (file)
        /delete-node/ l2-cache1;
 };
 
-/* eMMC */
-&sdhci0 {
-       status = "disabled";
-};
-
 &main_pmx0 {
        main_uart0_pins_default: main-uart0-default-pins {
                pinctrl-single,pins = <
index 1637ec5ab5eda55c1f692bd81e1e77f69bfbcdc3..822c288d2797635f51387fc95c212c5b7b614d06 100644 (file)
 };
 
 &sdhci0 {
+       status = "okay";
        pinctrl-names = "default";
        pinctrl-0 = <&main_mmc0_pins_default>;
        bus-width = <8>;
  * disable sdhci1
  */
 &sdhci1 {
+       status = "okay";
        vmmc-supply = <&vdd_mmc1_sd>;
        pinctrl-names = "default";
        pinctrl-0 = <&main_mmc1_pins_default>;
index be55494b1f3fcaa7f1d8a94655abcc4374a2d432..a847209c3df5293ecfbc1801eef97e2bc0f58c86 100644 (file)
@@ -43,6 +43,7 @@
 
 /* eMMC */
 &sdhci0 {
+       status = "okay";
        pinctrl-names = "default";
        pinctrl-0 = <&main_mmc0_pins_default>;
        bus-width = <8>;