ramips: fix dtc warnings
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / CY-SWR1100.dts
1 /dts-v1/;
2
3 #include "rt3883.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "samsung,cy-swr1100", "ralink,rt3883-soc";
10 model = "Samsung CY-SWR1100";
11
12 aliases {
13 led-status = &led_wps;
14 };
15
16 nor-flash@1c000000 {
17 compatible = "cfi-flash";
18 reg = <0x1c000000 0x800000>;
19 bank-width = <2>;
20 #address-cells = <1>;
21 #size-cells = <1>;
22
23 partition@0 {
24 label = "uboot";
25 reg = <0x0 0x30000>;
26 read-only;
27 };
28
29 partition@30000 {
30 label = "uboot-env";
31 reg = <0x30000 0x4000>;
32 read-only;
33 };
34
35 factory: partition@34000 {
36 label = "factory";
37 reg = <0x34000 0x4000>;
38 read-only;
39 };
40
41 partition@38000 {
42 label = "nvram";
43 reg = <0x38000 0x8000>;
44 read-only;
45 };
46
47 partition@40000 {
48 label = "devdata";
49 reg = <0x40000 0x10000>;
50 };
51
52 partition@50000 {
53 label = "firmware";
54 reg = <0x50000 0x7b0000>;
55 };
56 };
57
58 rtl8367 {
59 compatible = "realtek,rtl8367";
60 gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
61 gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
62 realtek,extif0 = <1 0 1 1 1 1 1 1 2>;
63 };
64
65 gpio-keys-polled {
66 compatible = "gpio-keys-polled";
67 poll-interval = <100>;
68
69 reset {
70 label = "reset";
71 gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
72 linux,code = <KEY_RESTART>;
73 };
74
75 wps {
76 label = "wps";
77 gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
78 linux,code = <KEY_WPS_BUTTON>;
79 };
80 };
81
82 gpio-leds {
83 compatible = "gpio-leds";
84
85 led_wps: wps {
86 label = "cy-swr1100:blue:wps";
87 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
88 };
89
90 usb {
91 label = "cy-swr1100:blue:usb";
92 gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
93 };
94 };
95 };
96
97 &gpio1 {
98 status = "okay";
99 };
100
101 &pinctrl {
102 state_default: pinctrl0 {
103 gpio {
104 ralink,group = "i2c", "spi";
105 ralink,function = "gpio";
106 };
107 };
108 };
109
110 &ethernet {
111 port@0 {
112 mediatek,fixed-link = <1000 1 1 1>;
113 phy-mode = "rgmii";
114 };
115 };
116
117 &pci {
118 status = "okay";
119 };
120
121 &pci1 {
122 status = "okay";
123
124 wifi@0,0 {
125 compatible = "pci0,0";
126 reg = <0x10000 0 0 0 0>;
127 ralink,5ghz = <0>;
128 ralink,mtd-eeprom = <&factory 0x2000>;
129 };
130 };
131
132 &wmac {
133 status = "okay";
134 ralink,2ghz = <0>;
135 ralink,mtd-eeprom = <&factory 0>;
136 };
137
138 &ehci {
139 status = "okay";
140 };
141
142 &ohci {
143 status = "okay";
144 };