ramips: replace pinctrl property names
[oweals/openwrt.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";
22
23                 reset {
24                         label = "reset";
25                         gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
26                         linux,code = <KEY_RESTART>;
27                 };
28         };
29
30         leds {
31                 compatible = "gpio-leds";
32
33                 lan {
34                         label = "r6120:green:lan";
35                         gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
36                 };
37
38                 led_power: power {
39                         label = "r6120:green:power";
40                         gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
41                 };
42
43                 wlan2g_green {
44                         label = "r6120:green:wlan2g";
45                         gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
46                 };
47
48                 wlan2g_orange {
49                         label = "r6120:orange:wlan2g";
50                         gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
51                 };
52
53                 wan_green {
54                         label = "r6120:green:wan";
55                         gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
56                 };
57
58                 wan_orange {
59                         label = "r6120:orange:wan";
60                         gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
61                 };
62         };
63
64         usb-regulator {
65                 compatible = "regulator-fixed";
66
67                 regulator-name = "USB-power";
68                 gpio = <&gpio 45 GPIO_ACTIVE_HIGH>;
69                 regulator-min-microvolt = <5000000>;
70                 regulator-max-microvolt = <5000000>;
71                 enable-active-high;
72
73                 regulator-always-on;
74         };
75 };
76
77 &state_default {
78         gpio {
79                 groups = "p0led_an", "p1led_an", "p2led_an",
80                                "p3led_an", "p4led_an", "wdt",
81                                "wled_an", "uart1";
82                 function = "gpio";
83         };
84 };
85
86 &spi0 {
87         status = "okay";
88
89         flash@0 {
90                 compatible = "jedec,spi-nor";
91                 reg = <0>;
92                 spi-max-frequency = <10000000>;
93
94                 partitions {
95                         compatible = "fixed-partitions";
96                         #address-cells = <1>;
97                         #size-cells = <1>;
98
99                         partition@0 {
100                                 label = "u-boot";
101                                 reg = <0x0 0x40000>;
102                                 read-only;
103                         };
104
105                         factory: partition@40000 {
106                                 label = "factory";
107                                 reg = <0x40000 0x20000>;
108                                 read-only;
109                         };
110
111                         partition@60000 {
112                                 label = "nvram";
113                                 reg = <0x60000 0x30000>;
114                                 read-only;
115                         };
116
117                         partition@90000 {
118                                 compatible = "denx,uimage";
119                                 label = "firmware";
120                                 reg = <0x90000 0xf60000>;
121                         };
122
123                         partition@ff0000 {
124                                 label = "reserved";
125                                 reg = <0xff0000 0x10000>;
126                                 read-only;
127                         };
128                 };
129         };
130 };
131
132 &wmac {
133         status = "okay";
134 };
135
136 &ethernet {
137         mtd-mac-address = <&factory 0x4>;
138 };
139
140 &pcie {
141         status = "okay";
142 };
143
144 &pcie0 {
145         wifi@0,0 {
146                 reg = <0x0000 0 0 0 0>;
147                 mediatek,mtd-eeprom = <&factory 0x8000>;
148                 ieee80211-freq-limit = <5000000 6000000>;
149                 mtd-mac-address = <&factory 0x4>;
150                 mtd-mac-address-increment = <(2)>;
151         };
152 };