ramips: drop kernel version switches
[openwrt/openwrt.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 mtd-mac-address = <&factory 0xe000>;
78 };
79
80 &switch0 {
81 ports {
82 port@0 {
83 status = "okay";
84 label = "lan1";
85 };
86
87 port@1 {
88 status = "okay";
89 label = "lan2";
90 };
91
92 port@2 {
93 status = "okay";
94 label = "lan3";
95 };
96
97 port@3 {
98 status = "okay";
99 label = "lan4";
100 };
101
102 port@4 {
103 status = "okay";
104 label = "wan";
105 mtd-mac-address = <&factory 0xe006>;
106 };
107 };
108 };
109
110 &pcie {
111 status = "okay";
112 };
113
114 &pcie0 {
115 wifi0: mt76@0,0 {
116 reg = <0x0000 0 0 0 0>;
117 mediatek,mtd-eeprom = <&factory 0x8000>;
118 ieee80211-freq-limit = <5000000 6000000>;
119 };
120 };
121
122 &pcie1 {
123 wifi1: mt76@0,0 {
124 reg = <0x0000 0 0 0 0>;
125 mediatek,mtd-eeprom = <&factory 0x0000>;
126 ieee80211-freq-limit = <2400000 2500000>;
127 };
128 };
129
130 &sdhci {
131 status = "okay";
132 };