rootfs: fix USE_APK detection
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_hilink_hlk-7621a-evb.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later
2
3 #include "mt7621.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "hilink,hlk-7621a-evb", "mediatek,mt7621-soc";
10 model = "HiLink HLK-7621A evaluation board";
11
12 keys {
13 compatible = "gpio-keys";
14
15 reset {
16 label = "reset";
17 gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
18 linux,code = <KEY_RESTART>;
19 };
20 };
21 };
22
23 &spi0 {
24 status = "okay";
25
26 flash@0 {
27 compatible = "jedec,spi-nor";
28 reg = <0>;
29 spi-max-frequency = <44000000>;
30 broken-flash-reset;
31
32 partitions {
33 compatible = "fixed-partitions";
34 #address-cells = <1>;
35 #size-cells = <1>;
36
37 partition@0 {
38 label = "u-boot";
39 reg = <0x0 0x30000>;
40 read-only;
41 };
42
43 partition@30000 {
44 label = "u-boot-env";
45 reg = <0x30000 0x10000>;
46 read-only;
47 };
48
49 factory: partition@40000 {
50 label = "factory";
51 reg = <0x40000 0x10000>;
52 read-only;
53 };
54
55 partition@50000 {
56 compatible = "denx,uimage";
57 label = "firmware";
58 reg = <0x50000 0x1fb0000>;
59 };
60 };
61 };
62 };
63
64 &gmac1 {
65 status = "okay";
66 label = "wan";
67 phy-handle = <&ethphy4>;
68 };
69
70 &mdio {
71 ethphy4: ethernet-phy@4 {
72 reg = <4>;
73 };
74 };
75
76 &switch0 {
77 ports {
78 port@0 {
79 status = "okay";
80 label = "lan1";
81 };
82
83 port@1 {
84 status = "okay";
85 label = "lan2";
86 };
87
88 port@2 {
89 status = "okay";
90 label = "lan3";
91 };
92
93 port@3 {
94 status = "okay";
95 label = "lan4";
96 };
97 };
98 };
99
100 &pcie {
101 status = "okay";
102 };
103
104 &pcie2 {
105 wifi@0,0 {
106 compatible = "mediatek,mt76";
107 reg = <0x0000 0 0 0 0>;
108 mediatek,mtd-eeprom = <&factory 0x8000>;
109 };
110 };
111
112 &state_default {
113 gpio {
114 groups = "wdt";
115 function = "gpio";
116 };
117 };