ramips: provide label MAC address
[openwrt/staging/lynxis.git] / target / linux / ramips / dts / mt7628an_netgear_r6120.dts
1 /dts-v1/;
2
3 #include "mt7628an.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "netgear,r6120", "mediatek,mt7628an-soc";
10 model = "Netgear R6120";
11
12 aliases {
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
17 label-mac-device = &ethernet;
18 };
19
20 keys {
21 compatible = "gpio-keys-polled";
22 poll-interval = <20>;
23
24 reset {
25 label = "reset";
26 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
27 linux,code = <KEY_RESTART>;
28 };
29 };
30
31 leds {
32 compatible = "gpio-leds";
33
34 lan {
35 label = "r6120:green:lan";
36 gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
37 };
38
39 led_power: power {
40 label = "r6120:green:power";
41 gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
42 };
43
44 wlan {
45 label = "r6120:green:wlan2g";
46 gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
47 };
48
49 wlan_orange {
50 label = "r6120:orange:wlan2g";
51 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
52 };
53
54 wan {
55 label = "r6120:green:wan";
56 gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
57 };
58
59 wan_orange {
60 label = "r6120:orange:wan";
61 gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
62 };
63 };
64
65 usb-regulator {
66 compatible = "regulator-fixed";
67
68 regulator-name = "USB-power";
69 gpio = <&gpio1 13 GPIO_ACTIVE_HIGH>;
70 regulator-min-microvolt = <5000000>;
71 regulator-max-microvolt = <5000000>;
72 enable-active-high;
73
74 regulator-always-on;
75 };
76 };
77
78 &pinctrl {
79 state_default: pinctrl0 {
80 gpio {
81 ralink,group = "p0led_an", "p1led_an", "p2led_an",
82 "p3led_an", "p4led_an", "wdt",
83 "wled_an", "uart1";
84 ralink,function = "gpio";
85 };
86 };
87 };
88
89 &spi0 {
90 status = "okay";
91
92 flash@0 {
93 compatible = "jedec,spi-nor";
94 reg = <0>;
95 spi-max-frequency = <10000000>;
96
97 partitions {
98 compatible = "fixed-partitions";
99 #address-cells = <1>;
100 #size-cells = <1>;
101
102 partition@0 {
103 label = "u-boot";
104 reg = <0x0 0x40000>;
105 read-only;
106 };
107
108 factory: partition@40000 {
109 label = "factory";
110 reg = <0x40000 0x20000>;
111 read-only;
112 };
113
114 partition@60000 {
115 label = "nvram";
116 reg = <0x60000 0x30000>;
117 read-only;
118 };
119
120 partition@90000 {
121 compatible = "denx,uimage";
122 label = "firmware";
123 reg = <0x90000 0xf60000>;
124 };
125
126 partition@ff0000 {
127 label = "reserved";
128 reg = <0xff0000 0x10000>;
129 read-only;
130 };
131 };
132 };
133 };
134
135 &wmac {
136 status = "okay";
137 mtd-mac-address = <&factory 0x4>;
138 mediatek,mtd-eeprom = <&factory 0x0>;
139 };
140
141 &ethernet {
142 mtd-mac-address = <&factory 0x4>;
143 };
144
145 &pcie {
146 status = "okay";
147 };
148
149 &pcie0 {
150 wifi@0,0 {
151 reg = <0x0000 0 0 0 0>;
152 mediatek,mtd-eeprom = <&factory 0x8000>;
153 ieee80211-freq-limit = <5000000 6000000>;
154 mtd-mac-address = <&factory 0x4>;
155 mtd-mac-address-increment = <(2)>;
156 };
157 };