#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
#include <dt-bindings/mtd/partitions/uimage.h>
/ {
compatible = "gpio-leds";
wan {
- label = "green:wan";
+ function = LED_FUNCTION_WAN;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
};
};
lan {
- label = "green:lan";
+ function = LED_FUNCTION_LAN;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
};
};
usb {
- label = "green:usb";
+ function = LED_FUNCTION_USB;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
trigger-sources = <&ohci_port1>, <&ehci_port1>;
linux,default-trigger = "usbport";
reg = <0x10000 0xfe0000>;
};
- config: partition@ff0000 {
+ partition@ff0000 {
label = "config";
reg = <0xff0000 0x10000>;
read-only;
};
macaddr_config_e496: macaddr@e496 {
+ compatible = "mac-base";
reg = <0xe496 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
&pcie0 {
wifi@0,0 {
reg = <0x0000 0 0 0 0>;
- nvmem-cells = <&eeprom_config_e083>, <&macaddr_config_e496>;
+ nvmem-cells = <&eeprom_config_e083>, <&macaddr_config_e496 2>;
nvmem-cell-names = "eeprom", "mac-address";
- mac-address-increment = <(2)>;
led {
led-sources = <0>;