ramips/mt7621: Name DTS files based on scheme
[oweals/openwrt.git] / target / linux / ramips / dts / HLK-7628N.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include "mt7628an.dtsi"
5
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
8
9 / {
10         compatible = "hilink,hlk-7628n", "mediatek,mt7628an-soc";
11         model = "HILINK HLK-7628N";
12
13         memory@0 {
14                 device_type = "memory";
15                 reg = <0x0 0x8000000>;
16         };
17
18         chosen {
19                 bootargs = "console=ttyS0,57600";
20         };
21
22         keys {
23                 compatible = "gpio-keys-polled";
24                 poll-interval = <20>;
25
26                 reset {
27                         label = "reset";
28                         gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
29                         linux,code = <KEY_RESTART>;
30                 };
31         };
32
33         leds {
34                 compatible = "gpio-leds";
35
36                 wlan {
37                         label = "hlk-7628n:green:wlan";
38                         gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
39                 };
40         };
41 };
42
43 &pinctrl {
44         state_default: pinctrl0 {
45                 gpio {
46                         ralink,group = "i2c";
47                         ralink,function = "gpio";
48                 };
49         };
50 };
51
52 &uart1 {
53         status = "okay";
54 };
55
56 &spi0 {
57         status = "okay";
58
59         flash@0 {
60                 compatible = "jedec,spi-nor";
61                 reg = <0>;
62                 spi-max-frequency = <10000000>;
63
64                 partitions {
65                         compatible = "fixed-partitions";
66                         #address-cells = <1>;
67                         #size-cells = <1>;
68
69                         partition@0 {
70                                 label = "u-boot";
71                                 reg = <0x0 0x30000>;
72                                 read-only;
73                         };
74
75                         partition@30000 {
76                                 label = "u-boot-env";
77                                 reg = <0x30000 0x10000>;
78                                 read-only;
79                         };
80
81                         factory: partition@40000 {
82                                 label = "factory";
83                                 reg = <0x40000 0x10000>;
84                                 read-only;
85                         };
86
87                         partition@50000 {
88                                 compatible = "denx,uimage";
89                                 label = "firmware";
90                                 reg = <0x50000 0x1fb0000>;
91                         };
92                 };
93         };
94 };
95
96 &wmac {
97         status = "okay";
98 };
99