Commit 2e3ea3e7 authored by Manivannan Sadhasivam's avatar Manivannan Sadhasivam Committed by Wei Xu

arm64: dts: hisilicon: hikey: Standardize LED labels and triggers

For all 96Boards, the following standard is used for onboard LEDs.

green:user1  default-trigger: heartbeat
green:user2  default-trigger: mmc0/disk-activity(onboard-storage)
green:user3  default-trigger: mmc1 (SD-card)
green:user4  default-trigger: none, panic-indicator
yellow:wlan  default-trigger: phy0tx
blue:bt      default-trigger: hci0-power

So lets adopt the same for HiKey, which is one of the 96Boards
CE platform.
Signed-off-by: default avatarManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarWei Xu <xuwei5@hisilicon.com>
parent 8aa2fca8
...@@ -340,42 +340,43 @@ wlcore: wlcore@2 { ...@@ -340,42 +340,43 @@ wlcore: wlcore@2 {
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
user_led4 {
label = "user_led4"; user_led1 {
label = "green:user1";
gpios = <&gpio4 0 0>; /* <&gpio_user_led_1>; */ gpios = <&gpio4 0 0>; /* <&gpio_user_led_1>; */
linux,default-trigger = "heartbeat"; linux,default-trigger = "heartbeat";
}; };
user_led3 { user_led2 {
label = "user_led3"; label = "green:user2";
gpios = <&gpio4 1 0>; /* <&gpio_user_led_2>; */ gpios = <&gpio4 1 0>; /* <&gpio_user_led_2>; */
linux,default-trigger = "mmc0"; linux,default-trigger = "mmc0";
}; };
user_led2 { user_led3 {
label = "user_led2"; label = "green:user3";
gpios = <&gpio4 2 0>; /* <&gpio_user_led_3>; */ gpios = <&gpio4 2 0>; /* <&gpio_user_led_3>; */
linux,default-trigger = "mmc1"; linux,default-trigger = "mmc1";
}; };
user_led1 { user_led4 {
label = "user_led1"; label = "green:user4";
gpios = <&gpio4 3 0>; /* <&gpio_user_led_4>; */ gpios = <&gpio4 3 0>; /* <&gpio_user_led_4>; */
panic-indicator; panic-indicator;
linux,default-trigger = "cpu0"; linux,default-trigger = "none";
}; };
wlan_active_led { wlan_active_led {
label = "wifi_active"; label = "yellow:wlan";
gpios = <&gpio3 5 0>; /* <&gpio_wlan_active_led>; */ gpios = <&gpio3 5 0>; /* <&gpio_wlan_active_led>; */
linux,default-trigger = "phy0tx"; linux,default-trigger = "phy0tx";
default-state = "off"; default-state = "off";
}; };
bt_active_led { bt_active_led {
label = "bt_active"; label = "blue:bt";
gpios = <&gpio4 7 0>; /* <&gpio_bt_active_led>; */ gpios = <&gpio4 7 0>; /* <&gpio_bt_active_led>; */
linux,default-trigger = "hci0rx"; linux,default-trigger = "hci0-power";
default-state = "off"; default-state = "off";
}; };
}; };
......
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