7bab768fe4106b6c5f93d7a596d0ab072a59ac77
[oweals/openwrt.git] / target / linux / ramips / dts / rt3662_samsung_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,rt3662-soc", "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 = "devconf";
53                                 reg = <0x40000 0x10000>;
54                                 read-only;
55                         };
56
57                         partition@50000 {
58                                 compatible = "seama";
59                                 label = "firmware";
60                                 reg = <0x50000 0x7b0000>;
61                         };
62                 };
63         };
64
65         rtl8367 {
66                 compatible = "realtek,rtl8367";
67                 gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
68                 gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
69                 realtek,extif0 = <1 0 1 1 1 1 1 1 2>;
70         };
71
72         keys {
73                 compatible = "gpio-keys";
74
75                 reset {
76                         label = "reset";
77                         gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
78                         linux,code = <KEY_RESTART>;
79                 };
80
81                 wps {
82                         label = "wps";
83                         gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
84                         linux,code = <KEY_WPS_BUTTON>;
85                 };
86         };
87
88         leds {
89                 compatible = "gpio-leds";
90
91                 led_wps: wps {
92                         label = "cy-swr1100:blue:wps";
93                         gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
94                 };
95
96                 usb {
97                         label = "cy-swr1100:blue:usb";
98                         gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
99                         trigger-sources = <&ohci_port1>, <&ehci_port1>;
100                         linux,default-trigger = "usbport";
101                 };
102
103                 power {
104                         label = "cy-swr1100:blue:power";
105                         gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
106                 };
107         };
108 };
109
110 &gpio1 {
111         status = "okay";
112 };
113
114 &pinctrl {
115         state_default: pinctrl0 {
116                 gpio {
117                         ralink,group = "i2c", "spi";
118                         ralink,function = "gpio";
119                 };
120         };
121 };
122
123 &ethernet {
124         port@0 {
125                 mediatek,fixed-link = <1000 1 1 1>;
126                 phy-mode = "rgmii";
127         };
128 };
129
130 &pci {
131         status = "okay";
132 };
133
134 &pci1 {
135         status = "okay";
136
137         wifi@0,0 {
138                 compatible = "pci1814,3091";
139                 reg = <0x10000 0 0 0 0>;
140                 ralink,mtd-eeprom = <&factory 0x2000>;
141         };
142 };
143
144 &wmac {
145         status = "okay";
146         ralink,2ghz = <0>;
147         ralink,mtd-eeprom = <&factory 0>;
148 };
149
150 &ehci {
151         status = "okay";
152 };
153
154 &ohci {
155         status = "okay";
156 };