#include <dt-bindings/input/input.h>
#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/mtd/partitions/uimage.h>
/ {
compatible = "dlink,dir-510l", "ralink,mt7620a-soc";
compatible = "gpio-leds";
led_status: status {
- label = "dir-510l:green:status";
+ label = "green:status";
gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
};
status-red {
- label = "dir-510l:red:status";
+ label = "red:status";
gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
};
};
status = "okay";
};
-&gpio0 {
- status = "okay";
-};
-
&spi0 {
status = "okay";
};
partition@210000 {
- compatible = "amit,jimage";
+ compatible = "openwrt,uimage", "denx,uimage";
+ openwrt,ih-magic = <IH_MAGIC_OKLI>;
+ openwrt,offset = <0x10000>;
label = "firmware";
reg = <0x210000 0xde0000>;
};
&pcie0 {
mt76x0e@0,0 {
reg = <0x0000 0 0 0 0>;
- mtd-mac-address = <&config 0xe490>;
- mtd-mac-address-increment = <(2)>;
+ nvmem-cells = <&macaddr_config_e490>;
+ nvmem-cell-names = "mac-address";
+ mac-address-increment = <(2)>;
mediatek,mtd-eeprom = <&config 0xe05d>;
};
};
-&gsw {
- mediatek,port4 = "ephy";
-};
-
&state_default {
default {
groups = "i2c", "uartf";
function = "gpio";
};
};
+
+&config {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_config_e490: macaddr@e490 {
+ reg = <0xe490 0x6>;
+ };
+};