#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
compatible = "engenius,esr600h", "ralink,rt3662-soc", "ralink,rt3883-soc";
compatible = "gpio-leds";
led_power: power {
- label = "blue:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_BLUE>;
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
default-state = "on";
};
wps {
- label = "blue:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_BLUE>;
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
};
};
};
factory: partition@40000 {
- compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
- #address-cells = <1>;
- #size-cells = <1>;
read-only;
- eeprom_factory_0: eeprom@0 {
- reg = <0x0 0x200>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
- eeprom_factory_8000: eeprom@8000 {
- reg = <0x8000 0x200>;
+ eeprom_factory_8000: eeprom@8000 {
+ reg = <0x8000 0x200>;
+ };
};
};
&pci1 {
status = "okay";
- wifi@0,1,0 {
+ wifi@0,0 {
compatible = "pci1814,3091";
- reg = <0x0 1 0 0 0>;
+ reg = <0x10000 0 0 0 0>;
ralink,5ghz = <0>;
nvmem-cells = <&eeprom_factory_8000>;
nvmem-cell-names = "eeprom";