ralink: DIR-645 picks up incorrect MAC address in DTS file
[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 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 0x4>;
67 port@0 {
68 ralink,fixed-link = <1000 1 1 0>;
69 };
70 };
71
72 wmac@10180000 {
73 ralink,5ghz = <0>;
74 ralink,mtd-eeprom = <&factory 0>;
75 };
76
77 ehci@101c0000 {
78 status = "okay";
79 };
80
81 ohci@101c1000 {
82 status = "okay";
83 };
84
85 rtl8367b {
86 compatible = "realtek,rtl8367b";
87 gpio-sda = <&gpio0 1 0>;
88 gpio-sck = <&gpio0 2 0>;
89 realtek,extif1 = <1 0 1 1 1 1 1 1 2>;
90 };
91
92 gpio-keys-polled {
93 compatible = "gpio-keys-polled";
94 #address-cells = <1>;
95 #size-cells = <0>;
96 poll-interval = <100>;
97 reset {
98 label = "reset";
99 gpios = <&gpio0 9 0>;
100 linux,code = <0x198>;
101 };
102 wps {
103 label = "wps";
104 gpios = <&gpio0 14 0>;
105 linux,code = <0x211>;
106 };
107 };
108
109 gpio-leds {
110 compatible = "gpio-leds";
111
112 inet {
113 label = "d-link:green:inet";
114 gpios = <&gpio0 0 1>;
115 };
116 wps {
117 label = "d-link:green:wps";
118 gpios = <&gpio1 2 0>;
119 };
120 };
121
122 gpio_export {
123 compatible = "gpio-export";
124 #size-cells = <0>;
125 usb {
126 gpio-export,name = "usb";
127 gpio-export,output = <1>;
128 gpios = <&gpio1 6 0>;
129 };
130 };
131 };