ramips: mt7621: update pinctrl nodes
[oweals/openwrt.git] / target / linux / ramips / dts / mt7621_zbtlink_zbt-we1326.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-we1326", "mediatek,mt7621-soc";
10         model = "Zbtlink ZBT-WE1326";
11
12         aliases {
13                 label-mac-device = &wifi1;
14         };
15
16         chosen {
17                 bootargs = "console=ttyS0,115200";
18         };
19
20         keys {
21                 compatible = "gpio-keys";
22
23                 reset {
24                         label = "reset";
25                         gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
26                         linux,code = <KEY_RESTART>;
27                 };
28         };
29 };
30
31 &state_default {
32         gpio {
33                 groups = "wdt";
34                 function = "gpio";
35         };
36 };
37
38 &spi0 {
39         status = "okay";
40
41         m25p80@0 {
42                 compatible = "jedec,spi-nor";
43                 reg = <0>;
44                 spi-max-frequency = <10000000>;
45
46                 partitions {
47                         compatible = "fixed-partitions";
48                         #address-cells = <1>;
49                         #size-cells = <1>;
50
51                         partition@0 {
52                                 label = "u-boot";
53                                 reg = <0x0 0x30000>;
54                                 read-only;
55                         };
56
57                         partition@30000 {
58                                 label = "u-boot-env";
59                                 reg = <0x30000 0x10000>;
60                                 read-only;
61                         };
62
63                         factory: partition@40000 {
64                                 label = "factory";
65                                 reg = <0x40000 0x10000>;
66                                 read-only;
67                         };
68
69                         partition@50000 {
70                                 compatible = "denx,uimage";
71                                 label = "firmware";
72                                 reg = <0x50000 0xfb0000>;
73                         };
74                 };
75         };
76 };
77
78 &ethernet {
79         mtd-mac-address = <&factory 0xe000>;
80 };
81
82 &pcie {
83         status = "okay";
84 };
85
86 &pcie0 {
87         wifi0: mt76@0,0 {
88                 reg = <0x0000 0 0 0 0>;
89                 mediatek,mtd-eeprom = <&factory 0x8000>;
90                 ieee80211-freq-limit = <5000000 6000000>;
91         };
92 };
93
94 &pcie1 {
95         wifi1: mt76@0,0 {
96                 reg = <0x0000 0 0 0 0>;
97                 mediatek,mtd-eeprom = <&factory 0x0000>;
98                 ieee80211-freq-limit = <2400000 2500000>;
99         };
100 };
101
102 &sdhci {
103         status = "okay";
104 };