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