-/dts-v1/;
-
#include "mt7621.dtsi"
#include <dt-bindings/gpio/gpio.h>
led-upgrade = &led_statuso;
};
- memory@0 {
- device_type = "memory";
- reg = <0x0 0x10000000>;
- };
-
chosen {
bootargs = "console=ttyS0,115200";
};
compatible = "gpio-leds";
statw {
- label = "timecloud:white:status";
- gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
+ label = "white:status";
+ gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
};
led_statuso: stato {
- label = "timecloud:orange:status";
- gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
+ label = "orange:status";
+ gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
};
};
keys {
- compatible = "gpio-keys-polled";
- poll-interval = <20>;
+ compatible = "gpio-keys";
reset {
label = "reset";
- gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
+ gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
BTN_0 {
label = "BTN_0";
- gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
+ gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
linux,code = <BTN_0>;
};
};
&spi0 {
status = "okay";
- m25p80@0 {
+ flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <10000000>;
};
};
-ðernet {
- mtd-mac-address = <&factory 0xe000>;
+&gmac0 {
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
};
-&pinctrl {
- state_default: pinctrl0 {
- gpio {
- ralink,group = "i2c", "uart2", "jtag";
- ralink,function = "gpio";
+&switch0 {
+ ports {
+ port@4 {
+ status = "okay";
+ label = "lan";
};
};
};
+
+&state_default {
+ gpio {
+ groups = "i2c", "uart2", "jtag";
+ function = "gpio";
+ };
+};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
+};