ramips: drop redundant chosen/bootargs
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7628an_hilink_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 keys {
14 compatible = "gpio-keys";
15
16 reset {
17 label = "reset";
18 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
19 linux,code = <KEY_RESTART>;
20 };
21 };
22
23 leds {
24 compatible = "gpio-leds";
25
26 wlan {
27 label = "hlk-7628n:green:wlan";
28 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
29 };
30 };
31 };
32
33 &state_default {
34 gpio {
35 groups = "i2c";
36 function = "gpio";
37 };
38 };
39
40 &uart1 {
41 status = "okay";
42 };
43
44 &spi0 {
45 status = "okay";
46
47 flash@0 {
48 compatible = "jedec,spi-nor";
49 reg = <0>;
50 spi-max-frequency = <10000000>;
51
52 partitions {
53 compatible = "fixed-partitions";
54 #address-cells = <1>;
55 #size-cells = <1>;
56
57 partition@0 {
58 label = "u-boot";
59 reg = <0x0 0x30000>;
60 read-only;
61 };
62
63 partition@30000 {
64 label = "u-boot-env";
65 reg = <0x30000 0x10000>;
66 read-only;
67 };
68
69 factory: partition@40000 {
70 label = "factory";
71 reg = <0x40000 0x10000>;
72 read-only;
73 };
74
75 partition@50000 {
76 compatible = "denx,uimage";
77 label = "firmware";
78 reg = <0x50000 0x1fb0000>;
79 };
80 };
81 };
82 };
83
84 &wmac {
85 status = "okay";
86 };