kernel: bump 4.9 to 4.9.65
[oweals/openwrt.git] / target / linux / ramips / dts / 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         chosen {
13                 bootargs = "console=ttyS1,115200";
14         };
15
16         gpio-export {
17                 compatible = "gpio-export";
18                 #size-cells = <0>;
19         };
20
21         gpio-leds {
22                 compatible = "gpio-leds";
23
24                 run {
25                         label = "wizfi630a::run";
26                         gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
27                 };
28
29                 wps {
30                         label = "wizfi630a::wps";
31                         gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
32                 };
33
34                 uart1 {
35                         label = "wizfi630a::uart1";
36                         gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
37                 };
38
39                 uart2 {
40                         label = "wizfi630a::uart2";
41                         gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
42                 };
43         };
44
45         gpio-keys-polled {
46                 compatible = "gpio-keys-polled";
47                 #address-cells = <1>;
48                 #size-cells = <0>;
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                 #address-cells = <1>;
86                 #size-cells = <1>;
87                 compatible = "jedec,spi-nor";
88                 reg = <0>;
89                 spi-max-frequency = <10000000>;
90
91                 partition@0 {
92                         #size-cells = <1>;
93                         label = "uboot";
94                         reg = <0x0 0x30000>;
95                         read-only;
96                 };
97
98                 partition@30000 {
99                         #size-cells = <1>;
100                         label = "uboot-env";
101                         reg = <0x30000 0x10000>;
102                         read-only;
103                 };
104
105                 factory: partition@40000 {
106                         #size-cells = <1>;
107                         label = "factory";
108                         reg = <0x40000 0x10000>;
109                         read-only;
110                 };
111
112                 partition@50000 {
113                         #size-cells = <1>;
114                         label = "firmware";
115                         reg = <0x50000 0xfb0000>;
116                 };
117         };
118 };
119
120 &uart {
121         status = "okay";
122         pinctrl-names = "default";
123         pinctrl-0 = <&uartf_pins>;
124 };
125
126 &pinctrl {
127         state_default: pinctrl0 {
128                 gpio {
129                         ralink,group = "i2c", "jtag" ;
130                         ralink,function = "gpio";
131                 };
132         };
133 };
134
135 &ethernet {
136         mtd-mac-address = <&factory 0x4>;
137 };
138
139 &esw {
140         mediatek,portmap = <0x17>;
141 };
142
143 &wmac {
144         ralink,mtd-eeprom = <&factory 0>;
145 };
146
147 &ehci {
148         status = "okay";
149 };
150
151 &ohci {
152         status = "okay";
153 };