ramips: add support for EnGenius ESR600
[oweals/openwrt.git] / target / linux / ramips / dts / mt7621_zbtlink_zbt-wg3526.dtsi
1 #include "mt7621.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7         compatible = "zbtlink,zbt-wg3526", "mediatek,mt7621-soc";
8
9         aliases {
10                 led-boot = &led_status;
11                 led-failsafe = &led_status;
12                 led-running = &led_status;
13                 led-upgrade = &led_status;
14                 label-mac-device = &wifi0;
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         keys {
28                 compatible = "gpio-keys-polled";
29                 poll-interval = <20>;
30
31                 reset {
32                         label = "reset";
33                         gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
34                         linux,code = <KEY_RESTART>;
35                 };
36         };
37
38         leds {
39                 compatible = "gpio-leds";
40
41                 led_status: status {
42                         label = "zbt-wg3526:green:status";
43                         gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
44                 };
45         };
46 };
47
48 &sdhci {
49         status = "okay";
50 };
51
52 &spi0 {
53         status = "okay";
54
55         m25p80@0 {
56                 compatible = "jedec,spi-nor";
57                 reg = <0>;
58                 spi-max-frequency = <10000000>;
59
60                 partitions {
61                         compatible = "fixed-partitions";
62                         #address-cells = <1>;
63                         #size-cells = <1>;
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                         firmware: partition@50000 {
84                                 compatible = "denx,uimage";
85                                 label = "firmware";
86                         };
87                 };
88         };
89 };
90
91 &pcie {
92         status = "okay";
93 };
94
95 &pcie0 {
96         wifi0: wifi@0,0 {
97                 compatible = "pci14c3,7603";
98                 reg = <0x0000 0 0 0 0>;
99                 mediatek,mtd-eeprom = <&factory 0x0000>;
100         };
101 };
102
103 &pcie1 {
104         wifi1: wifi@0,0 {
105                 compatible = "pci14c3,7662";
106                 reg = <0x0000 0 0 0 0>;
107                 mediatek,mtd-eeprom = <&factory 0x8000>;
108                 ieee80211-freq-limit = <5000000 6000000>;
109
110                 led {
111                         led-sources = <2>;
112                 };
113         };
114 };
115
116 &ethernet {
117         mtd-mac-address = <&factory 0xe000>;
118 };
119
120 &pinctrl {
121         state_default: pinctrl0 {
122                 gpio {
123                         ralink,group = "wdt", "rgmii2", "jtag", "mdio";
124                         ralink,function = "gpio";
125                 };
126         };
127 };