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