4b807fcaa5e53bd202aa68f23d2f11d6789e3eac
[openwrt/staging/thess.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
31 partitions {
32 compatible = "fixed-partitions";
33 #address-cells = <1>;
34 #size-cells = <1>;
35
36 partition@0 {
37 label = "u-boot";
38 reg = <0x0 0x30000>;
39 read-only;
40 };
41
42 partition@30000 {
43 label = "u-boot-env";
44 reg = <0x30000 0x10000>;
45 read-only;
46 };
47
48 factory: partition@40000 {
49 label = "factory";
50 reg = <0x40000 0x10000>;
51 read-only;
52 };
53
54 partition@50000 {
55 compatible = "denx,uimage";
56 label = "firmware";
57 reg = <0x50000 0x1fb0000>;
58 };
59 };
60 };
61 };
62
63 &switch0 {
64 ports {
65 port@0 {
66 status = "okay";
67 label = "lan1";
68 };
69
70 port@1 {
71 status = "okay";
72 label = "lan2";
73 };
74
75 port@2 {
76 status = "okay";
77 label = "lan3";
78 };
79
80 port@3 {
81 status = "okay";
82 label = "lan4";
83 };
84
85 port@4 {
86 status = "okay";
87 label = "wan";
88 };
89 };
90 };
91
92 &pcie {
93 status = "okay";
94 };
95
96 &pcie2 {
97 wifi@0,0 {
98 compatible = "mediatek,mt76";
99 reg = <0x0000 0 0 0 0>;
100 mediatek,mtd-eeprom = <&factory 0x8000>;
101 };
102 };
103
104 &state_default {
105 gpio {
106 groups = "wdt";
107 function = "gpio";
108 };
109 };