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