Commit 4bf9fac3 authored by Manikanta Mylavarapu's avatar Manikanta Mylavarapu Committed by Bjorn Andersson
Browse files

arm64: dts: qcom: ipq5424: enable GPIO based LEDs and Buttons

parent 27b85be2
Loading
Loading
Loading
Loading
+43 −0
Original line number Diff line number Diff line
@@ -7,6 +7,8 @@

/dts-v1/;

#include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
#include "ipq5424.dtsi"

/ {
@@ -17,6 +19,33 @@ aliases {
		serial0 = &uart1;
	};

	gpio-keys {
		compatible = "gpio-keys";
		pinctrl-0 = <&gpio_keys_default>;
		pinctrl-names = "default";

		button-wps {
			label = "wps";
			linux,code = <KEY_WPS_BUTTON>;
			gpios = <&tlmm 19 GPIO_ACTIVE_LOW>;
			debounce-interval = <60>;
		};
	};

	leds {
		compatible = "gpio-leds";
		pinctrl-0 = <&gpio_leds_default>;
		pinctrl-names = "default";

		led-0 {
			color = <LED_COLOR_ID_GREEN>;
			function = LED_FUNCTION_WLAN;
			gpios = <&tlmm 42 GPIO_ACTIVE_HIGH>;
			linux,default-trigger = "phy0tx";
			default-state = "off";
		};
	};

	vreg_misc_3p3: regulator-usb-3p3 {
		compatible = "regulator-fixed";
		regulator-min-microvolt = <3300000>;
@@ -102,6 +131,20 @@ &ssphy_0 {
};

&tlmm {
	gpio_keys_default: gpio-keys-default-state {
		pins = "gpio19";
		function = "gpio";
		drive-strength = <8>;
		bias-pull-up;
	};

	gpio_leds_default: gpio-leds-default-state {
		pins = "gpio42";
		function = "gpio";
		drive-strength = <8>;
		bias-pull-down;
	};

	spi0_default_state: spi0-default-state {
		clk-pins {
			pins = "gpio6";