ramips: extract mac address from flash on WHR-600D board
[openwrt.git] / target / linux / ramips / dts / F5D8235_V1.dts
1 /dts-v1/;
2
3 /include/ "rt2880.dtsi"
4
5 / {
6         #address-cells = <1>;
7         #size-cells = <1>;
8         compatible = "F5D8235_V1", "ralink,rt2880-soc";
9         model = "Belkin F5D8235 v1";
10
11         palmbus@300000 {
12                 gpio0: gpio@600 {
13                         status = "okay";
14                 };
15         };
16
17         pinctrl {
18                 state_default: pinctrl0 {
19                         gpio {
20                                 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
21                                 ralink,function = "gpio";
22                         };
23                 };
24         };
25
26         cfi@1f000000 {
27                 compatible = "cfi-flash";
28                 reg = <0x1f000000 0x800000>;
29
30                 bank-width = <2>;
31                 device-width = <2>;
32                 #address-cells = <1>;
33                 #size-cells = <1>;
34
35                 partition@0 {
36                         label = "uboot";
37                         reg = <0x0 0x30000>;
38                         read-only;
39                 };
40                 partition@30000 {
41                         label = "uboot-env";
42                         reg = <0x30000 0x10000>;
43                         read-only;
44                 };
45                 factory: partition@40000 {
46                         label = "factory";
47                         reg = <0x40000 0x10000>;
48                         read-only;
49                 };
50                 partition@50000 {
51                         label = "linux";
52                         reg = <0x50000 0x3b0000>;
53                 };
54         };
55
56         ethernet@400000 {
57                 status = "okay";
58                 mtd-mac-address = <&factory 0x4>;
59
60                 port@0 {
61                         ralink,fixed-link = <1000 1 1 1>;
62                 };
63         };
64
65         wmac@480000 {
66                 status = "okay";
67         };
68
69         rtl8367s {
70                 compatible = "realtek,rtl8367s";
71                 gpio-sda = <&gpio0 1 0>;
72                 gpio-sck = <&gpio0 2 0>;
73         };
74
75         gpio-keys-polled {
76                 compatible = "gpio-keys-polled";
77                 #address-cells = <1>;
78                 #size-cells = <0>;
79                 poll-interval = <100>;
80                 wps {
81                         label = "wps";
82                         gpios = <&gpio0 0 1>;
83                         linux,code = <0x211>;
84                 };
85                 reset {
86                         label = "reset";
87                         gpios = <&gpio0 9 1>;
88                         linux,code = <0x198>;
89                 };
90         };
91
92         gpio-leds {
93                 compatible = "gpio-leds";
94
95                 storage {
96                         label = "f5d8235-v1:blue:storage";
97                         gpios = <&gpio0 7 1>;
98                 };
99                 storage2 {
100                         label = "f5d8235-v1:orange:storage";
101                         gpios = <&gpio0 8 1>;
102                 };
103         };
104 };