ramips: replace pinctrl property names
[oweals/openwrt.git] / target / linux / ramips / dts / mt7620a_dlink_dir-810l.dts
1 /dts-v1/;
2
3 #include "mt7620a.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9         compatible = "dlink,dir-810l", "ralink,mt7620a-soc";
10         model = "D-Link DIR-810L";
11
12         aliases {
13                 led-boot = &led_power_green;
14                 led-failsafe = &led_power_green;
15                 led-running = &led_power_green;
16                 led-upgrade = &led_power_green;
17                 label-mac-device = &ethernet;
18         };
19
20         keys {
21                 compatible = "gpio-keys";
22
23                 reset {
24                         label = "reset";
25                         gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
26                         linux,code = <KEY_RESTART>;
27                 };
28
29                 wps {
30                         label = "wps";
31                         gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
32                         linux,code = <KEY_WPS_BUTTON>;
33                 };
34         };
35
36         leds {
37                 compatible = "gpio-leds";
38
39                 led_power_green: power_green {
40                         label = "dir-810l:green:power";
41                         gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
42                 };
43
44                 wan {
45                         label = "dir-810l:orange:wan";
46                         gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
47                 };
48
49                 power_orange {
50                         label = "dir-810l:orange:power";
51                         gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
52                 };
53         };
54 };
55
56 &spi0 {
57         status = "okay";
58
59         flash@0 {
60                 compatible = "jedec,spi-nor";
61                 reg = <0>;
62                 spi-max-frequency = <50000000>;
63
64                 partitions {
65                         compatible = "fixed-partitions";
66                         #address-cells = <1>;
67                         #size-cells = <1>;
68
69                         partition@0 {
70                                 label = "u-boot";
71                                 reg = <0x0 0x30000>;
72                                 read-only;
73                         };
74
75                         partition@30000 {
76                                 label = "u-boot-env";
77                                 reg = <0x30000 0x10000>;
78                                 read-only;
79                         };
80
81                         factory: partition@40000 {
82                                 label = "factory";
83                                 reg = <0x40000 0x10000>;
84                                 read-only;
85                         };
86
87                         factory5g: partition@50000 {
88                                 label = "factory5g";
89                                 reg = <0x50000 0x10000>;
90                                 read-only;
91                         };
92
93                         partition@60000 {
94                                 label = "Wolf_Config";
95                                 reg = <0x60000 0x10000>;
96                                 read-only;
97                         };
98
99                         partition@70000 {
100                                 label = "MyDlink";
101                                 reg = <0x70000 0x80000>;
102                                 read-only;
103                         };
104
105                         partition@f0000 {
106                                 label = "Jffs2";
107                                 reg = <0xf0000 0x80000>;
108                                 read-only;
109                         };
110
111                         partition@170000 {
112                                 compatible = "denx,uimage";
113                                 label = "firmware";
114                                 reg = <0x170000 0x690000>;
115                         };
116                 };
117         };
118 };
119
120 &state_default {
121         gpio {
122                 groups = "i2c", "uartf";
123                 function = "gpio";
124         };
125 };
126
127 &ethernet {
128         mtd-mac-address = <&factory 0x28>;
129         mediatek,portmap = "llllw";
130 };
131
132 &gsw {
133         pinctrl-names = "default";
134         pinctrl-0 = <&ephy_pins>;
135
136         mediatek,port4 = "ephy";
137 };
138
139 &pcie {
140         status = "okay";
141 };
142
143 &wmac {
144         pinctrl-names = "default";
145         pinctrl-0 = <&pa_pins>;
146
147         ralink,mtd-eeprom = <&factory 0x0>;
148         mtd-mac-address = <&factory 0x28>;
149 };
150
151 &pcie0 {
152         wifi@0,0 {
153                 reg = <0x0000 0 0 0 0>;
154                 mediatek,mtd-eeprom = <&factory 0x8000>;
155                 ieee80211-freq-limit = <5000000 6000000>;
156                 mtd-mac-address = <&factory 0x28>;
157                 mtd-mac-address-increment = <2>;
158         };
159 };