Commit 68edf2d8 authored by J.R. Divya Antony's avatar J.R. Divya Antony Committed by Bjorn Andersson
Browse files

arm64: dts: qcom: msm8916-asus-z00l: Add SDCard

parent 21e95ec2
Loading
Loading
Loading
Loading
+33 −0
Original line number Original line Diff line number Diff line
@@ -43,6 +43,21 @@
		};
		};
	};
	};


	reg_sd_vmmc: regulator-sdcard-vmmc {
		compatible = "regulator-fixed";
		regulator-name = "sdcard-vmmc";
		regulator-min-microvolt = <2950000>;
		regulator-max-microvolt = <2950000>;

		gpio = <&msmgpio 87 GPIO_ACTIVE_HIGH>;
		enable-active-high;

		startup-delay-us = <200>;

		pinctrl-names = "default";
		pinctrl-0 = <&sd_vmmc_en_default>;
	};

	usb_id: usb-id {
	usb_id: usb-id {
		compatible = "linux,extcon-usb-gpio";
		compatible = "linux,extcon-usb-gpio";
		id-gpios = <&msmgpio 110 GPIO_ACTIVE_HIGH>;
		id-gpios = <&msmgpio 110 GPIO_ACTIVE_HIGH>;
@@ -125,6 +140,16 @@
	pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off>;
	pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off>;
};
};


&sdhc_2 {
	status = "okay";
	vmmc-supply = <&reg_sd_vmmc>;

	pinctrl-names = "default", "sleep";
	pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>;
	pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>;
	cd-gpios = <&msmgpio 38 GPIO_ACTIVE_LOW>;
};

&usb {
&usb {
	status = "okay";
	status = "okay";
	extcon = <&usb_id>, <&usb_id>;
	extcon = <&usb_id>, <&usb_id>;
@@ -262,6 +287,14 @@
		bias-disable;
		bias-disable;
	};
	};


	sd_vmmc_en_default: sd-vmmc-en-default {
		pins = "gpio87";
		function = "gpio";

		drive-strength = <2>;
		bias-disable;
	};

	touchscreen_default: touchscreen-default {
	touchscreen_default: touchscreen-default {
		pins = "gpio13";
		pins = "gpio13";
		function = "gpio";
		function = "gpio";