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