ramips: fix WiFi MAC addresses for D-Link DIR-810L
[oweals/openwrt.git] / target / linux / ramips / dts / rt5350_wiznet_wizfi630a.dts
1 /dts-v1/;
2
3 #include "rt5350.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9         compatible = "wiznet,wizfi630a", "ralink,rt5350-soc";
10         model = "WIZnet WizFi630A";
11
12         aliases {
13                 led-boot = &led_run;
14                 led-failsafe = &led_run;
15                 led-running = &led_run;
16                 led-upgrade = &led_run;
17         };
18
19         chosen {
20                 bootargs = "console=ttyS1,115200";
21         };
22
23         leds {
24                 compatible = "gpio-leds";
25
26                 led_run: run {
27                         label = "wizfi630a::run";
28                         gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
29                 };
30
31                 wps {
32                         label = "wizfi630a::wps";
33                         gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
34                 };
35
36                 uart1 {
37                         label = "wizfi630a::uart1";
38                         gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
39                 };
40
41                 uart2 {
42                         label = "wizfi630a::uart2";
43                         gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
44                 };
45         };
46
47         keys {
48                 compatible = "gpio-keys-polled";
49                 poll-interval = <20>;
50
51                 reset {
52                         label = "reset";
53                         gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
54                         linux,code = <KEY_RESTART>;
55                 };
56
57                 wps {
58                         label = "wps";
59                         gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
60                         linux,code = <KEY_WPS_BUTTON>;
61                 };
62
63                 scm1 {
64                         label = "SCM1";
65                         gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
66                         linux,code = <BTN_0>;
67                 };
68
69                 scm2 {
70                         label = "SCM2";
71                         gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
72                         linux,code = <BTN_1>;
73                 };
74         };
75 };
76
77 &gpio1 {
78         status = "okay";
79 };
80
81 &spi0 {
82         status = "okay";
83
84         m25p80@0 {
85                 compatible = "jedec,spi-nor";
86                 reg = <0>;
87                 spi-max-frequency = <10000000>;
88
89                 partitions {
90                         compatible = "fixed-partitions";
91                         #address-cells = <1>;
92                         #size-cells = <1>;
93
94                         partition@0 {
95                                 #size-cells = <1>;
96                                 label = "uboot";
97                                 reg = <0x0 0x30000>;
98                                 read-only;
99                         };
100
101                         partition@30000 {
102                                 #size-cells = <1>;
103                                 label = "uboot-env";
104                                 reg = <0x30000 0x10000>;
105                                 read-only;
106                         };
107
108                         factory: partition@40000 {
109                                 #size-cells = <1>;
110                                 label = "factory";
111                                 reg = <0x40000 0x10000>;
112                                 read-only;
113                         };
114
115                         partition@50000 {
116                                 compatible = "denx,uimage";
117                                 #size-cells = <1>;
118                                 label = "firmware";
119                                 reg = <0x50000 0xfb0000>;
120                         };
121                 };
122         };
123 };
124
125 &uart {
126         status = "okay";
127         pinctrl-names = "default";
128         pinctrl-0 = <&uartf_pins>;
129 };
130
131 &pinctrl {
132         state_default: pinctrl0 {
133                 gpio {
134                         ralink,group = "i2c", "jtag" ;
135                         ralink,function = "gpio";
136                 };
137         };
138 };
139
140 &ethernet {
141         mtd-mac-address = <&factory 0x4>;
142 };
143
144 &esw {
145         mediatek,portmap = <0x17>;
146 };
147
148 &wmac {
149         ralink,mtd-eeprom = <&factory 0>;
150 };
151
152 &ehci {
153         status = "okay";
154 };
155
156 &ohci {
157         status = "okay";
158 };