ramips: mt7620: tidy up ethernet node in DTS files
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620n_asus_rt-n14u.dts
1 /dts-v1/;
2
3 #include "mt7620n.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "asus,rt-n14u", "ralink,mt7620n-soc";
10 model = "Asus RT-N14U";
11
12 aliases {
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
17 };
18
19 leds {
20 compatible = "gpio-leds";
21
22 wan {
23 label = "rt-n14u:blue:wan";
24 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
25 };
26
27 lan {
28 label = "rt-n14u:blue:lan";
29 gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
30 };
31
32 usb {
33 label = "rt-n14u:blue:usb";
34 gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
35 trigger-sources = <&ohci_port1>, <&ehci_port1>;
36 linux,default-trigger = "usbport";
37 };
38
39 led_power: power {
40 label = "rt-n14u:blue:power";
41 gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
42 };
43
44 air {
45 label = "rt-n14u:blue:air";
46 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
47 };
48 };
49
50 keys {
51 compatible = "gpio-keys";
52
53 reset {
54 label = "reset";
55 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
56 linux,code = <KEY_RESTART>;
57 };
58
59 wps {
60 label = "wps";
61 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
62 linux,code = <KEY_WPS_BUTTON>;
63 };
64 };
65 };
66
67 &gpio2 {
68 status = "okay";
69 };
70
71 &gpio3 {
72 status = "okay";
73 };
74
75 &spi0 {
76 status = "okay";
77
78 flash@0 {
79 compatible = "jedec,spi-nor";
80 reg = <0>;
81 spi-max-frequency = <10000000>;
82
83 partitions {
84 compatible = "fixed-partitions";
85 #address-cells = <1>;
86 #size-cells = <1>;
87
88 partition@0 {
89 label = "u-boot";
90 reg = <0x0 0x30000>;
91 read-only;
92 };
93
94 partition@30000 {
95 label = "u-boot-env";
96 reg = <0x30000 0x10000>;
97 read-only;
98 };
99
100 factory: partition@40000 {
101 label = "factory";
102 reg = <0x40000 0x10000>;
103 read-only;
104 };
105
106 partition@50000 {
107 compatible = "denx,uimage";
108 label = "firmware";
109 reg = <0x50000 0xfb0000>;
110 };
111 };
112 };
113 };
114
115 &ehci {
116 status = "okay";
117 };
118
119 &ohci {
120 status = "okay";
121 };
122
123 &ethernet {
124 mtd-mac-address = <&factory 0x4>;
125
126 mediatek,portmap = "wllll";
127 };
128
129 &wmac {
130 ralink,mtd-eeprom = <&factory 0x0>;
131 };
132
133 &state_default {
134 default {
135 groups = "ephy", "wled", "i2c";
136 function = "gpio";
137 };
138 };