efd1038b82a361cb7d4cdc6968ebb5c01b85cc84
[openwrt/staging/lynxis.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 aliases {
13 led-status = &led_run;
14 };
15
16 chosen {
17 bootargs = "console=ttyS1,115200";
18 };
19
20 gpio-leds {
21 compatible = "gpio-leds";
22
23 led_run: run {
24 label = "wizfi630a::run";
25 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
26 };
27
28 wps {
29 label = "wizfi630a::wps";
30 gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
31 };
32
33 uart1 {
34 label = "wizfi630a::uart1";
35 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
36 };
37
38 uart2 {
39 label = "wizfi630a::uart2";
40 gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
41 };
42 };
43
44 gpio-keys-polled {
45 compatible = "gpio-keys-polled";
46 poll-interval = <20>;
47
48 reset {
49 label = "reset";
50 gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
51 linux,code = <KEY_RESTART>;
52 };
53
54 wps {
55 label = "wps";
56 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
57 linux,code = <KEY_WPS_BUTTON>;
58 };
59
60 scm1 {
61 label = "SCM1";
62 gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
63 linux,code = <BTN_0>;
64 };
65
66 scm2 {
67 label = "SCM2";
68 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
69 linux,code = <BTN_1>;
70 };
71 };
72 };
73
74 &gpio1 {
75 status = "okay";
76 };
77
78 &spi0 {
79 status = "okay";
80
81 m25p80@0 {
82 compatible = "jedec,spi-nor";
83 reg = <0>;
84 spi-max-frequency = <10000000>;
85
86 partitions {
87 compatible = "fixed-partitions";
88 #address-cells = <1>;
89 #size-cells = <1>;
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
121 &uart {
122 status = "okay";
123 pinctrl-names = "default";
124 pinctrl-0 = <&uartf_pins>;
125 };
126
127 &pinctrl {
128 state_default: pinctrl0 {
129 gpio {
130 ralink,group = "i2c", "jtag" ;
131 ralink,function = "gpio";
132 };
133 };
134 };
135
136 &ethernet {
137 mtd-mac-address = <&factory 0x4>;
138 };
139
140 &esw {
141 mediatek,portmap = <0x17>;
142 };
143
144 &wmac {
145 ralink,mtd-eeprom = <&factory 0>;
146 };
147
148 &ehci {
149 status = "okay";
150 };
151
152 &ohci {
153 status = "okay";
154 };