compatible = "gpio-leds";
rssi {
- label = "hdrm200:red:rssi";
+ label = "red:rssi";
gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
};
led_system: system {
- label = "hdrm200:green:system";
+ label = "green:system";
gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
};
air {
- label = "hdrm200:green:wifi";
+ label = "green:wifi";
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
};
};
};
};
-&gpio0 {
- status = "okay";
-};
-
&gpio1 {
status = "okay";
};
pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
port@4 {
status = "okay";
};
};
+&gsw {
+ mediatek,port4-gmac;
+ mediatek,ephy-base = /bits/ 8 <8>;
+};
+
&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};
&uart {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};