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