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