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