ramips: fix dtc warnings
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / WRH-300CR.dts
1 /dts-v1/;
2
3 #include "mt7620n.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "elecom,wrh-300cr", "ralink,mt7620n-soc";
10 model = "ELECOM WRH-300CR";
11
12 aliases {
13 led-status = &led_wps;
14 };
15
16 gpio-leds {
17 compatible = "gpio-leds";
18
19 led_wps: wps {
20 label = "wrh-300cr:green:wps";
21 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
22 };
23
24 ethernet {
25 label = "wrh-300cr:green:ethernet";
26 gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
27 };
28
29 wlan {
30 label = "wrh-300cr:green:wlan";
31 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
32 };
33 };
34
35 gpio-keys-polled {
36 compatible = "gpio-keys-polled";
37 poll-interval = <20>;
38
39 reset {
40 label = "reset";
41 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
42 linux,code = <KEY_RESTART>;
43 };
44
45 wps {
46 label = "wps";
47 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
48 linux,code = <KEY_WPS_BUTTON>;
49 };
50 };
51 };
52
53 &gpio1 {
54 status = "okay";
55 };
56
57 &gpio2 {
58 status = "okay";
59 };
60
61 &gpio3 {
62 status = "okay";
63 };
64
65 &spi0 {
66 status = "okay";
67
68 m25p80@0 {
69 #address-cells = <1>;
70 #size-cells = <1>;
71 compatible = "jedec,spi-nor";
72 reg = <0>;
73 spi-max-frequency = <10000000>;
74
75 partition@0 {
76 label = "u-boot";
77 reg = <0x0 0x30000>;
78 read-only;
79 };
80
81 partition@30000 {
82 label = "u-boot-env";
83 reg = <0x30000 0x10000>;
84 };
85
86 factory: partition@40000 {
87 label = "factory";
88 reg = <0x40000 0x10000>;
89 read-only;
90 };
91
92 partition@50000 {
93 label = "recover";
94 reg = <0x50000 0x1c0000>;
95 read-only;
96 };
97
98 partition@210000 {
99 label = "firmware";
100 reg = <0x210000 0xdf0000>;
101 };
102 };
103 };
104
105 &ehci {
106 status = "okay";
107 };
108
109 &ohci {
110 status = "okay";
111 };
112
113 &ethernet {
114 mtd-mac-address = <&factory 0x2e>;
115 mediatek,portmap = "llllw";
116 };
117
118 &wmac {
119 ralink,mtd-eeprom = <&factory 0>;
120 };
121
122 &pinctrl {
123 state_default: pinctrl0 {
124 default {
125 ralink,group = "i2c", "ephy", "wled";
126 ralink,function = "gpio";
127 };
128 };
129 };