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