ramips: dts: rt5350: reset FE and ESW cores together
[openwrt/openwrt.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 = <&gpio 38 GPIO_ACTIVE_LOW>;
19 linux,code = <KEY_RESTART>;
20 debounce-interval = <60>;
21 };
22
23 wps {
24 label = "wps";
25 gpios = <&gpio 45 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 nvmem-layout {
51 compatible = "fixed-layout";
52 #address-cells = <1>;
53 #size-cells = <1>;
54
55 macaddr_uboot_1fc20: macaddr@1fc20 {
56 reg = <0x1fc20 0x6>;
57 };
58 };
59 };
60
61 partition@20000 {
62 label = "config";
63 reg = <0x20000 0x10000>;
64 read-only;
65 };
66
67 factory: partition@30000 {
68 label = "factory";
69 reg = <0x30000 0x10000>;
70 read-only;
71
72 nvmem-layout {
73 compatible = "fixed-layout";
74 #address-cells = <1>;
75 #size-cells = <1>;
76
77 eeprom_factory_0: eeprom@0 {
78 reg = <0x0 0x400>;
79 };
80
81 eeprom_factory_8000: eeprom@8000 {
82 reg = <0x8000 0x200>;
83 };
84 };
85 };
86
87 partition@40000 {
88 compatible = "denx,uimage";
89 label = "firmware";
90 reg = <0x40000 0x7c0000>;
91 };
92 };
93 };
94 };
95
96 &state_default {
97 gpio {
98 groups = "uart1", "wdt";
99 function = "gpio";
100 };
101 };
102
103 &ehci {
104 status = "disabled";
105 };
106
107 &ohci {
108 status = "disabled";
109 };
110
111 &ethernet {
112 nvmem-cells = <&macaddr_uboot_1fc20>;
113 nvmem-cell-names = "mac-address";
114 };
115
116 &pcie {
117 status = "okay";
118 };
119
120 &pcie0 {
121 wifi@0,0 {
122 compatible = "mediatek,mt76";
123 reg = <0x0000 0 0 0 0>;
124 nvmem-cells = <&eeprom_factory_8000>;
125 nvmem-cell-names = "eeprom";
126 ieee80211-freq-limit = <5000000 6000000>;
127 };
128 };
129
130 &wmac {
131 status = "okay";
132
133 nvmem-cells = <&eeprom_factory_0>;
134 nvmem-cell-names = "eeprom";
135 };