compatible = "gpio-leds";
status {
- label = "dir-620-a1:amber:status";
+ label = "amber:status";
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
};
led_status_green: status2 {
- label = "dir-620-a1:green:status";
+ label = "green:status";
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
};
wan {
- label = "dir-620-a1:amber:wan";
+ label = "amber:wan";
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
};
wan2 {
- label = "dir-620-a1:green:wan";
+ label = "green:wan";
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
};
wps {
- label = "dir-620-a1:blue:wps";
+ label = "blue:wps";
gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
};
wps2 {
- label = "dir-620-a1:amber:wps";
+ label = "amber:wps";
gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
};
};
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&esw {
&otg {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};