* option) any later version.
*/
+#include <dt-bindings/leds/common.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/gpio/gpio.h>
leds {
compatible = "gpio-leds";
- wps {
+ led-0 {
gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
- label = "tp-link:green:wps";
+ color = <LED_COLOR_ID_GREEN>;
+ function = LED_FUNCTION_WPS;
};
- system_green: system {
+ system_green: led-1 {
gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
- label = "tp-link:blue:system";
+ color = <LED_COLOR_ID_GREEN>;
+ function = LED_FUNCTION_STATUS;
};
- usb1 {
+ led-2 {
gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
- label = "tp-link:green:usb1";
+ color = <LED_COLOR_ID_GREEN>;
+ function = LED_FUNCTION_USB;
+ function-enumerator = <1>;
};
- usb2 {
+ led-3 {
gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
- label = "tp-link:green:usb2";
+ color = <LED_COLOR_ID_GREEN>;
+ function = LED_FUNCTION_USB;
+ function-enumerator = <2>;
};
+ };
+
+ gpio_export {
+ compatible = "gpio-export";
+ #size-cells = <0>;
- usbpower {
- gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
- label = "tp-link:usb:power";
+ usb-pwr {
+ gpio-export,name = "usb_pwr";
+ gpio-export,output = <1>;
+ gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
+ };
};
- };
buttons {
compatible = "gpio-keys";