compatible = "gpio-leds";
status {
- label = "dir-615-h1:amber:status";
+ label = "amber:status";
gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
};
led_status_green: status2 {
- label = "dir-615-h1:green:status";
+ label = "green:status";
gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
default-state = "on";
};
wan {
- label = "dir-615-h1:amber:wan";
+ label = "amber:wan";
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
};
wan2 {
- label = "dir-615-h1:green:wan";
+ label = "green:wan";
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
};
wps {
- label = "dir-615-h1:blue:wps";
+ label = "blue:wps";
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
};
};
};
ðernet {
- mtd-mac-address = <&factory 0x28>;
+ nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cell-names = "mac-address";
pinctrl-names = "default";
pinctrl-0 = <&rgmii_pins &mdio_pins>;
};
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_28: macaddr@28 {
+ reg = <0x28 0x6>;
+ };
+};