-/dts-v1/;
-
#include "mt7620a.dtsi"
#include <dt-bindings/gpio/gpio.h>
compatible = "gpio-leds";
wan {
- label = "keenetic-viva:green:wan";
+ label = "green:wan";
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
};
usb {
- label = "keenetic-viva:green:usb";
+ label = "green:usb";
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
trigger-sources = <&ohci_port1>, <&ehci_port1>;
linux,default-trigger = "usbport";
};
power_alert {
- label = "keenetic-viva:red:power";
+ label = "red:power";
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
};
wifi {
- label = "keenetic-viva:green:wifi";
+ label = "green:wifi";
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
};
led_power_green: power {
- label = "keenetic-viva:green:power";
+ label = "green:power";
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
};
};
&spi0 {
status = "okay";
- m25p80@0 {
+ flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <10000000>;
};
};
-&pinctrl {
- state_default: pinctrl0 {
- gpio {
- ralink,group = "i2c", "uartf";
- ralink,function = "gpio";
- };
+&state_default {
+ gpio {
+ groups = "i2c", "uartf";
+ function = "gpio";
};
};
ðernet {
- status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&rgmii2_pins &mdio_pins>;
- mtd-mac-address = <&factory 0x00004>;
+
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
port@4 {
status = "okay";
};
&gsw {
- mediatek,port4 = "gmac";
+ mediatek,port4-gmac;
+ mediatek,ephy-base = /bits/ 8 <8>;
};
&wmac {
- ralink,mtd-eeprom = <&factory 0>;
+ ralink,mtd-eeprom = <&factory 0x0>;
};
&ehci {
&ohci {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};