Commit fc5f2ed6 authored by Guodong Xu's avatar Guodong Xu Committed by Wei Xu

arm64: dts: hikey960: add LED nodes

HiKey960 has four user LEDs, and two special purpose LEDs: WiFi and BT
respectively.

All of them are implemented as GPIO.
Signed-off-by: default avatarGuodong Xu <guodong.xu@linaro.org>
Signed-off-by: default avatarWei Xu <xuwei5@hisilicon.com>
parent 8cb53a8d
...@@ -49,6 +49,54 @@ power { ...@@ -49,6 +49,54 @@ power {
linux,code = <KEY_POWER>; linux,code = <KEY_POWER>;
}; };
}; };
leds {
compatible = "gpio-leds";
user_led1 {
label = "user_led1";
/* gpio_150_user_led1 */
gpios = <&gpio18 6 0>;
linux,default-trigger = "heartbeat";
};
user_led2 {
label = "user_led2";
/* gpio_151_user_led2 */
gpios = <&gpio18 7 0>;
linux,default-trigger = "mmc0";
};
user_led3 {
label = "user_led3";
/* gpio_189_user_led3 */
gpios = <&gpio23 5 0>;
default-state = "off";
};
user_led4 {
label = "user_led4";
/* gpio_190_user_led4 */
gpios = <&gpio23 6 0>;
linux,default-trigger = "cpu0";
};
wlan_active_led {
label = "wifi_active";
/* gpio_205_wifi_active */
gpios = <&gpio25 5 0>;
linux,default-trigger = "phy0tx";
default-state = "off";
};
bt_active_led {
label = "bt_active";
gpios = <&gpio25 7 0>;
/* gpio_207_user_led1 */
linux,default-trigger = "hci0-power";
default-state = "off";
};
};
}; };
&i2c0 { &i2c0 {
......
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