Commit 2f29160f authored by Srinivas Kandagatla's avatar Srinivas Kandagatla Committed by Andy Gross

ARM: dts: db600c: Add on board leds support

This patch adds support to 4 user leds, wlan and bt led on board.
Signed-off-by: default avatarSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: default avatarAndy Gross <andy.gross@linaro.org>
parent 2ce36229
......@@ -18,4 +18,27 @@ conf {
bias-disable;
};
};
user_leds: user-leds {
mux {
pins = "gpio3", "gpio7", "gpio10", "gpio11";
function = "gpio";
};
conf {
pins = "gpio3", "gpio7", "gpio10", "gpio11";
function = "gpio";
output-low;
};
};
};
&pm8921_mpps {
mpp_leds: mpp-leds {
pinconf {
pins = "mpp7", "mpp8";
function = "digital";
output-low;
};
};
};
......@@ -153,6 +153,53 @@ serial@16640000 {
};
};
leds {
pinctrl-names = "default";
pinctrl-0 = <&user_leds>, <&mpp_leds>;
compatible = "gpio-leds";
user-led0 {
label = "user0-led";
gpios = <&tlmm_pinmux 3 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "heartbeat";
default-state = "off";
};
user-led1 {
label = "user1-led";
gpios = <&tlmm_pinmux 7 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "mmc0";
default-state = "off";
};
user-led2 {
label = "user2-led";
gpios = <&tlmm_pinmux 10 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "mmc1";
default-state = "off";
};
user-led3 {
label = "user3-led";
gpios = <&tlmm_pinmux 11 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "none";
default-state = "off";
};
wifi-led {
label = "WiFi-led";
gpios = <&pm8921_mpps 7 GPIO_ACTIVE_HIGH>;
default-state = "off";
};
bt-led {
label = "BT-led";
gpios = <&pm8921_mpps 8 GPIO_ACTIVE_HIGH>;
default-state = "off";
};
};
pci@1b500000 {
status = "okay";
vdda-supply = <&pm8921_s3>;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment