ramips/mt762x: convert devices to interrupt-driven gpio-keys
[openwrt/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 = <&gpio0 18 GPIO_ACTIVE_LOW>;
26 linux,code = <KEY_RESTART>;
27 };
28 };
29 };
30
31 &pinctrl {
32 state_default: pinctrl0 {
33 gpio {
34 ralink,group = "wdt";
35 ralink,function = "gpio";
36 };
37 };
38 };
39
40 &spi0 {
41 status = "okay";
42
43 m25p80@0 {
44 compatible = "jedec,spi-nor";
45 reg = <0>;
46 spi-max-frequency = <10000000>;
47
48 partitions {
49 compatible = "fixed-partitions";
50 #address-cells = <1>;
51 #size-cells = <1>;
52
53 partition@0 {
54 label = "u-boot";
55 reg = <0x0 0x30000>;
56 read-only;
57 };
58
59 partition@30000 {
60 label = "u-boot-env";
61 reg = <0x30000 0x10000>;
62 read-only;
63 };
64
65 factory: partition@40000 {
66 label = "factory";
67 reg = <0x40000 0x10000>;
68 read-only;
69 };
70
71 partition@50000 {
72 compatible = "denx,uimage";
73 label = "firmware";
74 reg = <0x50000 0xfb0000>;
75 };
76 };
77 };
78 };
79
80 &ethernet {
81 mtd-mac-address = <&factory 0xe000>;
82 };
83
84 &pcie {
85 status = "okay";
86 };
87
88 &pcie0 {
89 wifi0: mt76@0,0 {
90 reg = <0x0000 0 0 0 0>;
91 mediatek,mtd-eeprom = <&factory 0x8000>;
92 ieee80211-freq-limit = <5000000 6000000>;
93 };
94 };
95
96 &pcie1 {
97 wifi1: mt76@0,0 {
98 reg = <0x0000 0 0 0 0>;
99 mediatek,mtd-eeprom = <&factory 0x0000>;
100 ieee80211-freq-limit = <2400000 2500000>;
101 };
102 };
103
104 &sdhci {
105 status = "okay";
106 };