ramips: fix ethernet switch node in DIR-645.dts
[openwrt/svn-archive/archive.git] / target / linux / ramips / dts / DIR-645.dts
1 /dts-v1/;
2
3 /include/ "rt3883.dtsi"
4
5 / {
6 #address-cells = <1>;
7 #size-cells = <1>;
8 compatible = "DIR-645", "ralink,rt3883-soc";
9 model = "D-Link DIR-645";
10
11 memorydetect {
12 ralink,memory = <0x0 0x200000 0x10000000>;
13 };
14
15 palmbus@10000000 {
16 sysc@0 {
17 ralink,pinmux = "uartlite", "spi";
18 ralink,gpiomux = "i2c", "jtag";
19 ralink,uartmux = "gpio";
20 ralink,wdtmux = <1>;
21 };
22
23 timer@100 {
24 status = "okay";
25 };
26
27 gpio0: gpio@600 {
28 status = "okay";
29 };
30
31 gpio1: gpio@638 {
32 status = "okay";
33 };
34
35 spi@b00 {
36 status = "okay";
37
38 m25p80@0 {
39 #address-cells = <1>;
40 #size-cells = <1>;
41 compatible = "mx25l6405d";
42 reg = <0 0>;
43 linux,modalias = "m25p80";
44 spi-max-frequency = <25000000>;
45 partition@0 {
46 label = "uboot";
47 reg = <0x0 0x30000>;
48 read-only;
49 };
50 partition@30000 {
51 label = "uboot-env";
52 reg = <0x30000 0x4000>;
53 read-only;
54 };
55 factory: partition@34000 {
56 label = "factory";
57 reg = <0x34000 0x4000>;
58 read-only;
59 };
60 partition@38000 {
61 label = "nvram";
62 reg = <0x38000 0x8000>;
63 read-only;
64 };
65 partition@40000 {
66 label = "devdata";
67 reg = <0x40000 0x10000>;
68 };
69 partition@50000 {
70 label = "firmware";
71 reg = <0x50000 0x7b0000>;
72 };
73 };
74 };
75 };
76
77 ethernet@10100000 {
78 status = "okay";
79
80 mtd-mac-address = <&factory 0x28>;
81 ralink,fixed-link = <1000 1 1 1>;
82 };
83
84 wmac@10180000 {
85 status = "okay";
86 ralink,5ghz = <0>;
87 };
88
89 ehci@101c0000 {
90 status = "okay";
91 };
92
93 ohci@101c1000 {
94 status = "okay";
95 };
96
97 rtl8367b {
98 compatible = "realtek,rtl8367b";
99 gpio-sda = <&gpio0 1 0>;
100 gpio-sck = <&gpio0 2 0>;
101 realtek,extif1 = <1 0 1 1 1 1 1 1 2>;
102 };
103
104 gpio-keys-polled {
105 compatible = "gpio-keys-polled";
106 #address-cells = <1>;
107 #size-cells = <0>;
108 poll-interval = <100>;
109 reset {
110 label = "reset";
111 gpios = <&gpio0 9 0>;
112 linux,code = <0x198>;
113 };
114 wps {
115 label = "wps";
116 gpios = <&gpio0 14 0>;
117 linux,code = <0x211>;
118 };
119 };
120
121 gpio-leds {
122 compatible = "gpio-leds";
123
124 inet {
125 label = "d-link:green:inet";
126 gpios = <&gpio0 0 1>;
127 };
128 wps {
129 label = "d-link:green:wps";
130 gpios = <&gpio1 2 0>;
131 };
132 };
133
134 gpio_export {
135 compatible = "gpio-export";
136 #size-cells = <0>;
137
138 usb {
139 gpio-export,name = "usb";
140 gpio-export,output = <1>;
141 gpios = <&gpio1 6 0>;
142 };
143 };
144 };