ramips: fix dtc warnings
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / DWR-512-B.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 = "dlink,dwr-512-b", "ralink,rt5350-soc";
10 model = "D-Link DWR-512 B";
11
12 aliases {
13 led-status = &led_status;
14 };
15
16 gpio-keys-polled {
17 compatible = "gpio-keys-polled";
18 poll-interval = <20>;
19
20 wps {
21 label = "wps";
22 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
23 linux,code = <KEY_WPS_BUTTON>;
24 };
25
26 reset {
27 label = "reset";
28 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
29 linux,code = <KEY_RESTART>;
30 };
31 };
32
33 gpio-leds {
34 compatible = "gpio-leds";
35
36 sms {
37 label = "dwr-512-b:green:sms";
38 gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
39 };
40 led_status: status {
41 label = "dwr-512-b:green:status";
42 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
43 };
44 2g {
45 label = "dwr-512-b:green:2g";
46 gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
47 };
48 3g {
49 label = "dwr-512-b:green:3g";
50 gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
51 };
52 sstrengthr {
53 label = "dwr-512-b:red:sigstrength";
54 gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
55 };
56 sstrengthg {
57 label = "dwr-512-b:green:sigstrength";
58 gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
59 };
60 };
61
62 gpio-export {
63 compatible = "gpio-export";
64 #size-cells = <0>;
65
66 slic_int {
67 gpio-export,name = "slic_int";
68 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
69 };
70 modem3g_enable {
71 gpio-export,name = "modem3g_enable";
72 gpio-export,output = <1>;
73 gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>;
74 };
75 };
76 };
77
78 &spi0 {
79 status = "okay";
80
81 mx25l6405d@0 {
82 #address-cells = <1>;
83 #size-cells = <1>;
84 compatible = "jedec,spi-nor";
85 reg = <0>;
86 spi-max-frequency = <30000000>;
87 m25p,fast-read;
88
89 partition@0 {
90 label = "jboot";
91 reg = <0x0 0x10000>;
92 read-only;
93 };
94
95 partition@10000 {
96 label = "firmware";
97 reg = <0x10000 0x7e0000>;
98 };
99
100 config: partition@7f0000 {
101 label = "config";
102 reg = <0x7f0000 0x10000>;
103 };
104 };
105 };
106
107 &spi1 {
108 status = "okay";
109
110 spidev@1 {
111 #address-cells = <1>;
112 #size-cells = <1>;
113 compatible = "siliconlabs,si3210";
114
115 reg = <0>;
116 spi-max-frequency = <1000000>;
117 };
118 };
119
120 &pinctrl {
121 state_default: pinctrl0 {
122 gpio {
123 ralink,group = "i2c", "jtag", "uartf";
124 ralink,function = "gpio";
125 };
126 };
127 };
128
129 &esw {
130 mediatek,portmap = <0x2f>;
131 };
132
133 &ethernet {
134 mtd-mac-address = <&config 0xe07e>;
135 };
136
137 &wmac {
138 ralink,mtd-eeprom = <&config 0xe08a>;
139 ralink,led-polarity = <1>;
140 mtd-mac-address = <&config 0xe07e>;
141 };