e4c31ae6b1aec7df5e587f5936cf11d532d7510f
[openwrt/staging/hauke.git] / target / linux / ramips / dts / rt3662_samsung_cy-swr1100.dts
1 #include "rt3883.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "samsung,cy-swr1100", "ralink,rt3662-soc", "ralink,rt3883-soc";
8 model = "Samsung CY-SWR1100";
9
10 aliases {
11 led-boot = &led_power;
12 led-failsafe = &led_power;
13 led-running = &led_power;
14 led-upgrade = &led_power;
15 };
16
17 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 compatible = "nvmem-cells";
41 label = "factory";
42 reg = <0x34000 0x4000>;
43 #address-cells = <1>;
44 #size-cells = <1>;
45 read-only;
46
47 eeprom_factory_0: eeprom@0 {
48 reg = <0x0 0x200>;
49 };
50
51 eeprom_factory_2000: eeprom@2000 {
52 reg = <0x2000 0x200>;
53 };
54 };
55
56 partition@38000 {
57 label = "nvram";
58 reg = <0x38000 0x8000>;
59 read-only;
60 };
61
62 partition@40000 {
63 label = "devconf";
64 reg = <0x40000 0x10000>;
65 read-only;
66 };
67
68 partition@50000 {
69 compatible = "seama";
70 label = "firmware";
71 reg = <0x50000 0x7b0000>;
72 };
73 };
74 };
75
76 rtl8367 {
77 compatible = "realtek,rtl8367";
78 gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
79 gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
80 realtek,extif0 = <1 0 1 1 1 1 1 1 2>;
81 };
82
83 keys {
84 compatible = "gpio-keys";
85
86 reset {
87 label = "reset";
88 gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
89 linux,code = <KEY_RESTART>;
90 };
91
92 wps {
93 label = "wps";
94 gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
95 linux,code = <KEY_WPS_BUTTON>;
96 };
97 };
98
99 leds {
100 compatible = "gpio-leds";
101
102 wps {
103 label = "blue:wps";
104 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
105 };
106
107 usb {
108 label = "blue:usb";
109 gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
110 trigger-sources = <&ohci_port1>, <&ehci_port1>;
111 linux,default-trigger = "usbport";
112 };
113
114 led_power: power {
115 label = "blue:power";
116 gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
117 };
118 };
119 };
120
121 &gpio1 {
122 status = "okay";
123 };
124
125 &state_default {
126 gpio {
127 groups = "i2c", "spi";
128 function = "gpio";
129 };
130 };
131
132 &ethernet {
133 port@0 {
134 mediatek,fixed-link = <1000 1 1 1>;
135 phy-mode = "rgmii";
136 };
137 };
138
139 &pci {
140 status = "okay";
141 };
142
143 &pci1 {
144 status = "okay";
145
146 wifi@0,0 {
147 compatible = "pci1814,3091";
148 reg = <0x10000 0 0 0 0>;
149 nvmem-cells = <&eeprom_factory_2000>;
150 nvmem-cell-names = "eeprom";
151 };
152 };
153
154 &wmac {
155 ralink,2ghz = <0>;
156 nvmem-cells = <&eeprom_factory_0>;
157 nvmem-cell-names = "eeprom";
158 };
159
160 &ehci {
161 status = "okay";
162 };
163
164 &ohci {
165 status = "okay";
166 };