ramips: extract mac address from flash on WHR-600D board
[openwrt/staging/chunkeey.git] / target / linux / ramips / dts / WHR-600D.dts
1 /dts-v1/;
2
3 /include/ "mt7620a.dtsi"
4
5 / {
6 compatible = "ralink,mt7620a-soc";
7 model = "Buffalo WHR-600D";
8
9 palmbus@10000000 {
10 gpio2: gpio@660 {
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 = "en25q64";
21 reg = <0 0>;
22 linux,modalias = "m25p80", "mx25l6405d";
23 spi-max-frequency = <10000000>;
24
25 partition@0 {
26 label = "u-boot";
27 reg = <0x0 0x30000>;
28 read-only;
29 };
30
31 partition@30000 {
32 label = "u-boot-env";
33 reg = <0x30000 0x10000>;
34 read-only;
35 };
36
37 factory: partition@40000 {
38 label = "factory";
39 reg = <0x40000 0x10000>;
40 read-only;
41 };
42
43 partition@50000 {
44 label = "firmware";
45 reg = <0x50000 0x5b0000>;
46 };
47
48 partition@600000 {
49 label = "usercfg";
50 reg = <0x600000 0x100000>;
51 };
52 };
53 };
54 };
55
56 pinctrl {
57 state_default: pinctrl0 {
58 gpio {
59 ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd";
60 ralink,function = "gpio";
61 };
62 };
63 };
64
65 ethernet@10100000 {
66 pinctrl-names = "default";
67 pinctrl-0 = <&ephy_pins>;
68
69 mtd-mac-address = <&factory 0x4>;
70 ralink,port-map = "llllw";
71 };
72
73 gsw@10110000 {
74 ralink,port4 = "ephy";
75 };
76
77 pcie@10140000 {
78 status = "okay";
79 };
80
81 gpio-leds {
82 compatible = "gpio-leds";
83 power {
84 label = "buffalo:red:power";
85 gpios = <&gpio0 7 1>;
86 };
87 status {
88 label = "buffalo:green:status";
89 gpios = <&gpio0 8 1>;
90 };
91 power2 {
92 label = "buffalo:green:power";
93 gpios = <&gpio0 9 1>;
94 };
95 status2 {
96 label = "buffalo:orange:status";
97 gpios = <&gpio0 10 1>;
98 };
99 internet {
100 label = "buffalo:green:internet";
101 gpios = <&gpio2 17 1>;
102 };
103 router {
104 label = "buffalo:green:router";
105 gpios = <&gpio2 18 1>;
106 };
107 router2 {
108 label = "buffalo:orange:router";
109 gpios = <&gpio2 19 1>;
110 };
111 };
112
113 gpio-keys-polled {
114 compatible = "gpio-keys-polled";
115 #address-cells = <1>;
116 #size-cells = <0>;
117 poll-interval = <20>;
118 s1 {
119 label = "reset";
120 gpios = <&gpio2 12 1>;
121 linux,code = <0x100>;
122 };
123 s2 {
124 label = "aoss";
125 gpios = <&gpio2 13 1>;
126 linux,code = <0x101>;
127 };
128 s3 {
129 label = "ap";
130 gpios = <&gpio2 14 1>;
131 linux,code = <0x102>;
132 };
133 s4 {
134 label = "bridge";
135 gpios = <&gpio2 15 1>;
136 linux,code = <0x103>;
137 };
138 };
139 };