bbd8642f2a5f46a733ffc754d4d3cf7c350ace48
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / mt7628an_iptime.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7628an.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 aliases {
10 label-mac-device = &ethernet;
11 };
12
13 keys {
14 compatible = "gpio-keys";
15
16 reset {
17 label = "reset";
18 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
19 linux,code = <KEY_RESTART>;
20 debounce-interval = <60>;
21 };
22
23 wps {
24 label = "wps";
25 gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
26 linux,code = <KEY_WPS_BUTTON>;
27 debounce-interval = <60>;
28 };
29 };
30 };
31
32 &spi0 {
33 status = "okay";
34
35 flash@0 {
36 compatible = "jedec,spi-nor";
37 reg = <0>;
38 spi-max-frequency = <40000000>;
39
40 partitions {
41 compatible = "fixed-partitions";
42 #address-cells = <1>;
43 #size-cells = <1>;
44
45 uboot: partition@0 {
46 label = "u-boot";
47 reg = <0x0 0x20000>;
48 read-only;
49 };
50
51 partition@20000 {
52 label = "config";
53 reg = <0x20000 0x10000>;
54 read-only;
55 };
56
57 factory: partition@30000 {
58 label = "factory";
59 reg = <0x30000 0x10000>;
60 read-only;
61 };
62
63 partition@40000 {
64 compatible = "denx,uimage";
65 label = "firmware";
66 reg = <0x40000 0x7c0000>;
67 };
68 };
69 };
70 };
71
72 &pinctrl {
73 state_default: pinctrl0 {
74 gpio {
75 ralink,group = "uart1", "wdt";
76 ralink,function = "gpio";
77 };
78 };
79 };
80
81 &ehci {
82 status = "disabled";
83 };
84
85 &ohci {
86 status = "disabled";
87 };
88
89 &ethernet {
90 mtd-mac-address = <&uboot 0x1fc20>;
91 };
92
93 &pcie {
94 status = "okay";
95 };
96
97 &pcie0 {
98 wifi@0,0 {
99 compatible = "mediatek,mt76";
100 reg = <0x0000 0 0 0 0>;
101 mediatek,mtd-eeprom = <&factory 0x8000>;
102 ieee80211-freq-limit = <5000000 6000000>;
103 };
104 };
105
106 &wmac {
107 status = "okay";
108 };