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