arm64: dts: rockchip: add emmc-powersequence to px30-evb
authorHeiko Stuebner <heiko@sntech.de>
Tue, 17 Sep 2019 08:26:52 +0000 (10:26 +0200)
committerHeiko Stuebner <heiko@sntech.de>
Thu, 3 Oct 2019 21:23:54 +0000 (23:23 +0200)
Hook the reset line into an emmc-pwrseq for it to get initialized nicely.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://lore.kernel.org/r/20190917082659.25549-6-heiko@sntech.de
arch/arm64/boot/dts/rockchip/px30-evb.dts

index d78fb17..6d50f6a 100644 (file)
                power-supply = <&vcc3v3_lcd>;
        };
 
+       emmc_pwrseq: emmc-pwrseq {
+               compatible = "mmc-pwrseq-emmc";
+               pinctrl-0 = <&emmc_reset>;
+               pinctrl-names = "default";
+               reset-gpios = <&gpio1 RK_PB3 GPIO_ACTIVE_HIGH>;
+       };
+
        sdio_pwrseq: sdio-pwrseq {
                compatible = "mmc-pwrseq-simple";
                pinctrl-names = "default";
        cap-mmc-highspeed;
        mmc-hs200-1_8v;
        non-removable;
+       mmc-pwrseq = <&emmc_pwrseq>;
        vmmc-supply = <&vcc_3v0>;
        vqmmc-supply = <&vccio_flash>;
        status = "okay";
                };
        };
 
+       emmc {
+               emmc_reset: emmc-reset {
+                       rockchip,pins = <1 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>;
+               };
+       };
+
        pmic {
                pmic_int: pmic_int {
                        rockchip,pins =