compatible = "gpio-leds";
wlan1 {
- label = "jhr-n926r:red:wlan";
+ label = "red:wlan";
gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
};
wlan2 {
- label = "jhr-n926r:yellow:wlan";
+ label = "yellow:wlan";
gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
};
wlan3 {
- label = "jhr-n926r:green:wlan";
+ label = "green:wlan";
gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
};
led_system: system {
- label = "jhr-n926r:blue:system";
+ label = "blue:system";
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
};
};
};
ðernet {
- mtd-mac-address = <&factory 0x2e>;
+ nvmem-cells = <&macaddr_factory_2e>;
+ nvmem-cell-names = "mac-address";
};
&esw {
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_2e: macaddr@2e {
+ reg = <0x2e 0x6>;
+ };
+};