Commit 140e816a authored by Markus Reichl's avatar Markus Reichl Committed by Heiko Stuebner
Browse files

arm64: dts: rockchip: Add SDR104 mode to SD-card I/F on rk3399-roc-pc



Add SDR104 capability and regulators to SD card node.

Signed-off-by: default avatarMarkus Reichl <m.reichl@fivetechno.de>
Link: https://lore.kernel.org/r/1b9b8314-8778-2d48-6f7a-3502c2146c42@fivetechno.de


Signed-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
parent a308163a
Loading
Loading
Loading
Loading
+22 −1
Original line number Diff line number Diff line
@@ -135,6 +135,19 @@ vcc1v8_s3: vcca1v8_s3: vcc1v8-s3 {
		vin-supply = <&vcc_1v8>;
	};

	vcc3v0_sd: vcc3v0-sd {
		compatible = "regulator-fixed";
		enable-active-high;
		gpio = <&gpio4 RK_PD6 GPIO_ACTIVE_HIGH>;
		pinctrl-names = "default";
		pinctrl-0 = <&vcc3v0_sd_en>;
		regulator-name = "vcc3v0_sd";
		regulator-boot-on;
		regulator-min-microvolt = <3000000>;
		regulator-max-microvolt = <3000000>;
		vin-supply = <&vcc3v3_sys>;
	};

	vcc3v3_sys: vcc3v3-sys {
		compatible = "regulator-fixed";
		regulator-name = "vcc3v3_sys";
@@ -610,6 +623,12 @@ wifi_enable_h: wifi-enable-h {
		};
	};

	sdmmc {
		vcc3v0_sd_en: vcc3v0-sd-en {
			rockchip,pins = <4 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>;
		};
	};

	pmic {
		pmic_int_l: pmic-int-l {
			rockchip,pins = <1 RK_PC5 RK_FUNC_GPIO &pcfg_pull_up>;
@@ -662,13 +681,15 @@ &saradc {

&sdmmc {
	bus-width = <4>;
	cap-mmc-highspeed;
	cap-sd-highspeed;
	cd-gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>;
	disable-wp;
	max-frequency = <150000000>;
	pinctrl-names = "default";
	pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_bus4>;
	sd-uhs-sdr104;
	vmmc-supply = <&vcc3v0_sd>;
	vqmmc-supply = <&vcc_sdio>;
	status = "okay";
};