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