Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f0e05e6d authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ARM: dts: msm: specify GPIO LEDs configuration for QCS605"

parents fadd274a 0b3c35ae
Loading
Loading
Loading
Loading
+173 −0
Original line number Diff line number Diff line
@@ -61,3 +61,176 @@
		"ADC3_IN", "ADC3_OUT";
	qcom,wsa-max-devs = <0>;
};

&tlmm {
	pwr_led_green_default: pwr_led_green_default {
		mux {
			pins = "gpio106";
			function = "gpio";
		};
		config {
			pins = "gpio106";
			drive-strength = <8>;   /* 8 mA */
			bias-disable;
			output-low;
		};
	};

	pwr_led_red_default: pwr_led_red_default {
		mux {
			pins = "gpio111";
			function = "gpio";
		};
		config {
			pins = "gpio111";
			drive-strength = <8>;   /* 8 mA */
			bias-disable;
			output-low;
		};
	};

	wifi_led_green_default: wifi_led_green_default {
		mux {
			pins = "gpio114";
			function = "gpio";
		};
		config {
			pins = "gpio114";
			drive-strength = <8>;   /* 8 mA */
			bias-disable;
			output-low;
		};
	};

	wifi_led_red_default: wifi_led_red_default {
		mux {
			pins = "gpio115";
			function = "gpio";
		};
		config {
			pins = "gpio115";
			drive-strength = <8>;   /* 8 mA */
			bias-disable;
			output-low;
		};
	};

	key_wcnss_default: key_wcnss_default {
		mux {
			pins = "gpio120";
			function = "gpio";
		};
		config {
			pins = "gpio120";
			drive-strength = <8>;   /* 8 mA */
			bias-pull-up;
			input-enable;
		};
	};

	key_record_default: key_record_default {
		mux {
			pins = "gpio119";
			function = "gpio";
		};
		config {
			pins = "gpio119";
			drive-strength = <8>;   /* 8 mA */
			bias-pull-up;
			input-enable;
		};
	};

	key_snapshot_default: key_snapshot_default {
		mux {
			pins = "gpio91";
			function = "gpio";
		};
		config {
			pins = "gpio91";
			drive-strength = <8>;   /* 8 mA */
			bias-pull-up;
			input-enable;
		};
	};
};

&soc {
	gpio-leds {
		compatible = "gpio-leds";
		pinctrl-names = "default";
		pinctrl-0 = <&pwr_led_green_default
				&pwr_led_red_default
				&wifi_led_green_default
				&wifi_led_red_default>;
		status = "okay";

		led@1 {
			label = "PWR_LED:red:106";
			gpios = <&tlmm 106 GPIO_ACTIVE_HIGH>;
			linux,default-trigger = "wlan";
			default-state = "off";
		};

		led@2 {
			label = "PWR_LED:green:111";
			gpios = <&tlmm 111 GPIO_ACTIVE_HIGH>;
			linux,default-trigger = "wlan";
			default-state = "on";
		};

		led@3 {
			label = "WIFI_LED:red:114";
			gpios = <&tlmm 114 GPIO_ACTIVE_HIGH>;
			linux,default-trigger = "wlan";
			default-state = "on";
		};

		led@4 {
			label = "WIFI_LED:green:115";
			gpios = <&tlmm 115 GPIO_ACTIVE_HIGH>;
			linux,default-trigger = "wlan";
			default-state = "off";
		};
	};

	gpio_keys {
		compatible = "gpio-keys";
		label = "gpio-keys";

		pinctrl-names = "default";
		pinctrl-0 = <&key_snapshot_default
				&key_record_default
				&key_wcnss_default>;
		status = "okay";
		cam_snapshot {
			label = "cam_snapshot";
			gpios = <&tlmm 91 GPIO_ACTIVE_LOW>;
			linux,input-type = <1>;
			linux,code = <766>;
			gpio-key,wakeup;
			debounce-interval = <15>;
			linux,can-disable;
		};

		cam_record {
			label = "cam_record";
			gpios = <&tlmm 119 GPIO_ACTIVE_LOW>;
			linux,input-type = <1>;
			linux,code = <766>;
			gpio-key,wakeup;
			debounce-interval = <15>;
			linux,can-disable;
		};

		wcnss_key {
			label = "wcnss_key";
			gpios = <&tlmm 120 GPIO_ACTIVE_LOW>;
			linux,input-type = <1>;
			linux,code = <528>;
			gpio-key,wakeup;
			debounce-interval = <15>;
			linux,can-disable;
		};
	};
};