4560dc5ca84b9387687d23488e1b26eefdf11aaf
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / DB-WRT01.dts
1 /dts-v1/;
2
3 #include "mt7620a.dtsi"
4
5 / {
6 compatible = "ralink,mt7620a-soc";
7 model = "Planex DB-WRT01";
8
9 gpio-leds {
10 compatible = "gpio-leds";
11
12 power {
13 label = "db-wrt01:orange:power";
14 gpios = <&gpio1 1 1>;
15 };
16 };
17
18 gpio-keys-polled {
19 compatible = "gpio-keys-polled";
20 #address-cells = <1>;
21 #size-cells = <0>;
22 poll-interval = <20>;
23
24 s1 {
25 label = "wps";
26 gpios = <&gpio0 2 1>;
27 linux,code = <0x211>;
28 };
29 };
30 };
31
32 &gpio1 {
33 status = "okay";
34 };
35
36 &spi0 {
37 status = "okay";
38
39 m25p80@0 {
40 #address-cells = <1>;
41 #size-cells = <1>;
42 compatible = "jedec,spi-nor";
43 reg = <0>;
44 linux,modalias = "m25p80", "mx25l6405d";
45 spi-max-frequency = <10000000>;
46
47 partition@0 {
48 label = "u-boot";
49 reg = <0x0 0x30000>;
50 read-only;
51 };
52
53 partition@30000 {
54 label = "u-boot-env";
55 reg = <0x30000 0x10000>;
56 read-only;
57 };
58
59 factory: partition@40000 {
60 label = "factory";
61 reg = <0x40000 0x10000>;
62 read-only;
63 };
64
65 partition@50000 {
66 label = "firmware";
67 reg = <0x50000 0x7b0000>;
68 };
69 };
70 };
71
72 &pinctrl {
73 state_default: pinctrl0 {
74 gpio {
75 ralink,group = "i2c", "spi refclk", "rgmii1";
76 ralink,function = "gpio";
77 };
78 };
79 };
80
81 &ethernet {
82 pinctrl-names = "default";
83 pinctrl-0 = <&ephy_pins>;
84 mtd-mac-address = <&factory 0x4>;
85 mediatek,portmap = "llllw";
86 };
87
88 &gsw {
89 mediatek,port4 = "ephy";
90 };
91
92 &wmac {
93 ralink,mtd-eeprom = <&factory 0>;
94 };
95
96 &pcie {
97 status = "okay";
98 };