led-0 {
color = <LED_COLOR_ID_BLUE>;
function = LED_FUNCTION_USB;
- function-enumerator = <0>;
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
trigger-sources = <&xhci_ehci_port1>;
linux,default-trigger = "usbport";
};
led-1 {
- label = "blue:wps";
color = <LED_COLOR_ID_BLUE>;
function = LED_FUNCTION_WPS;
- function-enumerator = <0>;
gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
};
led-2 {
- label = "blue:ethernet";
color = <LED_COLOR_ID_BLUE>;
function = LED_FUNCTION_LAN;
- function-enumerator = <0>;
gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
};
led-3 {
- label = "amber:internet";
color = <LED_COLOR_ID_AMBER>;
function = LED_FUNCTION_WAN;
- function-enumerator = <0>;
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
};
led-4 {
- label = "blue:internet";
color = <LED_COLOR_ID_BLUE>;
function = LED_FUNCTION_WAN;
- function-enumerator = <1>;
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};
led-5 {
- label = "blue:wireless_5g";
color = <LED_COLOR_ID_BLUE>;
function = LED_FUNCTION_WLAN;
- function-enumerator = <0>;
+ function-enumerator = <50>;
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy1tpt";
};
led-6 {
- label = "blue:wireless_2g";
color = <LED_COLOR_ID_BLUE>;
function = LED_FUNCTION_WLAN;
- function-enumerator = <1>;
+ function-enumerator = <24>;
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
led_power: led-7 {
- label = "blue:power";
color = <LED_COLOR_ID_BLUE>;
- function = LED_FUNCTION_STATUS;
- function-enumerator = <0>;
+ function = LED_FUNCTION_POWER;
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
};
};
keys {
compatible = "gpio-keys";
- led {
+ button-0 {
label = "led";
gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
debounce-interval = <60>;
linux,code = <KEY_LIGHTS_TOGGLE>;
};
- wifi {
+ button-1 {
label = "wifi on/off";
gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
debounce-interval = <60>;
linux,code = <KEY_RFKILL>;
};
- reset {
+ button-2 {
label = "reset";
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
debounce-interval = <60>;
linux,code = <KEY_RESTART>;
};
- wps {
+ button-3 {
label = "wps";
gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
debounce-interval = <60>;
reg = <0x7400000 0x400000>;
};
- factory: partition@7800000 {
+ partition@7800000 {
label = "factory";
reg = <0x7800000 0x400000>;
read-only;