ramips: add support for ALFA Network Quad-E4G
[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";
29
30                 reset {
31                         label = "reset";
32                         gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
33                         linux,code = <KEY_RESTART>;
34                 };
35         };
36
37         leds {
38                 compatible = "gpio-leds";
39
40                 led_status: status {
41                         label = "zbt-wg3526:green:status";
42                         gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
43                 };
44         };
45 };
46
47 &sdhci {
48         status = "okay";
49 };
50
51 &spi0 {
52         status = "okay";
53
54         m25p80@0 {
55                 compatible = "jedec,spi-nor";
56                 reg = <0>;
57                 spi-max-frequency = <10000000>;
58
59                 partitions {
60                         compatible = "fixed-partitions";
61                         #address-cells = <1>;
62                         #size-cells = <1>;
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                         firmware: partition@50000 {
83                                 compatible = "denx,uimage";
84                                 label = "firmware";
85                         };
86                 };
87         };
88 };
89
90 &pcie {
91         status = "okay";
92 };
93
94 &pcie0 {
95         wifi0: wifi@0,0 {
96                 compatible = "pci14c3,7603";
97                 reg = <0x0000 0 0 0 0>;
98                 mediatek,mtd-eeprom = <&factory 0x0000>;
99         };
100 };
101
102 &pcie1 {
103         wifi1: wifi@0,0 {
104                 compatible = "pci14c3,7662";
105                 reg = <0x0000 0 0 0 0>;
106                 mediatek,mtd-eeprom = <&factory 0x8000>;
107                 ieee80211-freq-limit = <5000000 6000000>;
108
109                 led {
110                         led-sources = <2>;
111                 };
112         };
113 };
114
115 &ethernet {
116         mtd-mac-address = <&factory 0xe000>;
117 };
118
119 &pinctrl {
120         state_default: pinctrl0 {
121                 gpio {
122                         ralink,group = "wdt", "rgmii2", "jtag", "mdio";
123                         ralink,function = "gpio";
124                 };
125         };
126 };