ipq40xx: only include ath10k-board-qca4019 for the generic subtarget
[openwrt/staging/chunkeey.git] / target / linux / ramips / dts / mt7621_zbtlink_zbt-we1326.dts
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-we1326", "mediatek,mt7621-soc";
8 model = "Zbtlink ZBT-WE1326";
9
10 aliases {
11 label-mac-device = &wifi1;
12 };
13
14 chosen {
15 bootargs = "console=ttyS0,115200";
16 };
17
18 keys {
19 compatible = "gpio-keys";
20
21 reset {
22 label = "reset";
23 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
24 linux,code = <KEY_RESTART>;
25 };
26 };
27 };
28
29 &state_default {
30 gpio {
31 groups = "wdt";
32 function = "gpio";
33 };
34 };
35
36 &spi0 {
37 status = "okay";
38
39 flash@0 {
40 compatible = "jedec,spi-nor";
41 reg = <0>;
42 spi-max-frequency = <10000000>;
43
44 partitions {
45 compatible = "fixed-partitions";
46 #address-cells = <1>;
47 #size-cells = <1>;
48
49 partition@0 {
50 label = "u-boot";
51 reg = <0x0 0x30000>;
52 read-only;
53 };
54
55 partition@30000 {
56 label = "u-boot-env";
57 reg = <0x30000 0x10000>;
58 read-only;
59 };
60
61 factory: partition@40000 {
62 label = "factory";
63 reg = <0x40000 0x10000>;
64 read-only;
65 };
66
67 partition@50000 {
68 compatible = "denx,uimage";
69 label = "firmware";
70 reg = <0x50000 0xfb0000>;
71 };
72 };
73 };
74 };
75
76 &gmac0 {
77 nvmem-cells = <&macaddr_factory_e000>;
78 nvmem-cell-names = "mac-address";
79 };
80
81 &switch0 {
82 ports {
83 port@0 {
84 status = "okay";
85 label = "lan1";
86 };
87
88 port@1 {
89 status = "okay";
90 label = "lan2";
91 };
92
93 port@2 {
94 status = "okay";
95 label = "lan3";
96 };
97
98 port@3 {
99 status = "okay";
100 label = "lan4";
101 };
102
103 port@4 {
104 status = "okay";
105 label = "wan";
106 nvmem-cells = <&macaddr_factory_e006>;
107 nvmem-cell-names = "mac-address";
108 };
109 };
110 };
111
112 &pcie {
113 status = "okay";
114 };
115
116 &pcie0 {
117 wifi0: mt76@0,0 {
118 reg = <0x0000 0 0 0 0>;
119 mediatek,mtd-eeprom = <&factory 0x8000>;
120 ieee80211-freq-limit = <5000000 6000000>;
121 };
122 };
123
124 &pcie1 {
125 wifi1: mt76@0,0 {
126 reg = <0x0000 0 0 0 0>;
127 mediatek,mtd-eeprom = <&factory 0x0000>;
128 ieee80211-freq-limit = <2400000 2500000>;
129 };
130 };
131
132 &sdhci {
133 status = "okay";
134 };
135
136 &factory {
137 compatible = "nvmem-cells";
138 #address-cells = <1>;
139 #size-cells = <1>;
140
141 macaddr_factory_e000: macaddr@e000 {
142 reg = <0xe000 0x6>;
143 };
144
145 macaddr_factory_e006: macaddr@e006 {
146 reg = <0xe006 0x6>;
147 };
148 };