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