ramips: add support for ALFA Network Quad-E4G
[oweals/openwrt.git] / target / linux / ramips / dts / mt7628an_hiwifi_hc5x61a.dtsi
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 = "hiwifi,hc5x61a", "mediatek,mt7628an-soc";
11
12         aliases {
13                 led-boot = &led_system;
14                 led-failsafe = &led_system;
15                 led-running = &led_system;
16                 led-upgrade = &led_system;
17         };
18
19         chosen {
20                 bootargs = "console=ttyS0,115200";
21         };
22
23         keys {
24                 compatible = "gpio-keys";
25
26                 reset {
27                         label = "reset";
28                         gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
29                         linux,code = <KEY_RESTART>;
30                 };
31         };
32 };
33
34 &spi0 {
35         status = "okay";
36
37         flash@0 {
38                 compatible = "jedec,spi-nor";
39                 reg = <0>;
40                 spi-max-frequency = <80000000>;
41                 m25p,fast-read;
42
43                 partitions {
44                         compatible = "fixed-partitions";
45                         #address-cells = <1>;
46                         #size-cells = <1>;
47
48                         partition@0 {
49                                 label = "u-boot";
50                                 reg = <0x0 0x30000>;
51                                 read-only;
52                         };
53
54                         partition@30000 {
55                                 label = "hw_panic";
56                                 reg = <0x30000 0x10000>;
57                                 read-only;
58                         };
59
60                         factory: partition@40000 {
61                                 label = "factory";
62                                 reg = <0x40000 0x10000>;
63                                 read-only;
64                         };
65
66                         partition@50000 {
67                                 compatible = "denx,uimage";
68                                 label = "firmware";
69                                 reg = <0x50000 0xf70000>;
70                         };
71
72                         partition@fc0000 {
73                                 label = "oem";
74                                 reg = <0xfc0000 0x20000>;
75                                 read-only;
76                         };
77
78                         bdinfo: partition@fe0000 {
79                                 label = "bdinfo";
80                                 reg = <0xfe0000 0x10000>;
81                                 read-only;
82                         };
83
84                         partition@ff0000 {
85                                 label = "backup";
86                                 reg = <0xff0000 0x10000>;
87                                 read-only;
88                         };
89                 };
90         };
91 };
92
93 &ethernet {
94         mtd-mac-address = <&factory 0x4>;
95 };
96
97 &wmac {
98         status = "okay";
99 };