e926514f7b2a3ab5c43aa00c4651b3bef0a04220
[openwrt/openwrt.git] / target / linux / ramips / dts / ZBT-WG2626.dts
1 /dts-v1/;
2
3 #include "mt7621.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
9 model = "ZBT-WG2626";
10
11 memory@0 {
12 device_type = "memory";
13 reg = <0x0 0x1c000000>, <0x20000000 0x4000000>;
14 };
15
16 chosen {
17 bootargs = "console=ttyS0,115200";
18 };
19
20 palmbus: palmbus@1E000000 {
21 i2c@900 {
22 status = "okay";
23 };
24 };
25
26 gpio-keys-polled {
27 compatible = "gpio-keys-polled";
28 #address-cells = <1>;
29 #size-cells = <0>;
30 poll-interval = <20>;
31
32 reset {
33 label = "reset";
34 gpios = <&gpio0 18 1>;
35 linux,code = <KEY_RESTART>;
36 };
37 };
38
39 gpio-leds {
40 compatible = "gpio-leds";
41
42 status {
43 label = "zbt-wg2626:green:status";
44 gpios = <&gpio0 24 1>;
45 };
46 };
47 };
48
49 &sdhci {
50 status = "okay";
51 };
52
53 &spi0 {
54 status = "okay";
55
56 m25p80@0 {
57 #address-cells = <1>;
58 #size-cells = <1>;
59 compatible = "jedec,spi-nor";
60 reg = <0>;
61 linux,modalias = "m25p80";
62 spi-max-frequency = <10000000>;
63
64 partition@0 {
65 label = "u-boot";
66 reg = <0x0 0x30000>;
67 read-only;
68 };
69
70 partition@30000 {
71 label = "u-boot-env";
72 reg = <0x30000 0x10000>;
73 read-only;
74 };
75
76 factory: partition@40000 {
77 label = "factory";
78 reg = <0x40000 0x10000>;
79 read-only;
80 };
81
82 partition@50000 {
83 label = "firmware";
84 reg = <0x50000 0xfb0000>;
85 };
86 };
87 };
88
89 &pcie {
90 status = "okay";
91
92 pcie0 {
93 mt76@0,0 {
94 reg = <0x0000 0 0 0 0>;
95 device_type = "pci";
96 mediatek,mtd-eeprom = <&factory 0x8000>;
97 mediatek,2ghz = <0>;
98 };
99 };
100
101 pcie1 {
102 mt76@1,0 {
103 reg = <0x0000 0 0 0 0>;
104 device_type = "pci";
105 mediatek,mtd-eeprom = <&factory 0x0000>;
106 mediatek,5ghz = <0>;
107 };
108 };
109 };
110
111 &ethernet {
112 mtd-mac-address = <&factory 0xe000>;
113 };
114
115 &pinctrl {
116 state_default: pinctrl0 {
117 gpio {
118 ralink,group = "wdt", "rgmii2", "wdt rst", "jtag", "mdio";
119 ralink,function = "gpio";
120 };
121 };
122 };