compatible = "gpio-leds";
statw {
- label = "timecloud:white:status";
+ label = "white:status";
gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
};
led_statuso: stato {
- label = "timecloud:orange:status";
+ label = "orange:status";
gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
};
};
};
&gmac0 {
- mtd-mac-address = <&factory 0xe000>;
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
};
&switch0 {
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
+};