ipq40xx: only include ath10k-board-qca4019 for the generic subtarget
[openwrt/staging/chunkeey.git] / target / linux / ramips / dts / mt7628an_skylab_skw92a.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7628an.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "skylab,skw92a", "mediatek,mt7628an-soc";
10 model = "SKYLAB SKW92A";
11
12 aliases {
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 };
16
17 leds {
18 compatible = "gpio-leds";
19
20 led_power: wps {
21 label = "green:wps";
22 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
23 };
24
25 wlan {
26 label = "green:wlan";
27 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
28 };
29 };
30
31 keys {
32 compatible = "gpio-keys";
33
34 reset {
35 label = "reset";
36 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_RESTART>;
38 };
39 };
40 };
41
42 &state_default {
43 gpio {
44 groups = "wdt", "refclk", "wled_an";
45 function = "gpio";
46 };
47 };
48
49 &ethernet {
50 nvmem-cells = <&macaddr_factory_28>;
51 nvmem-cell-names = "mac-address";
52 };
53
54 &wmac {
55 status = "okay";
56
57 mediatek,mtd-eeprom = <&factory 0x0>;
58 };
59
60 &spi0 {
61 status = "okay";
62
63 flash@0 {
64 compatible = "jedec,spi-nor";
65 reg = <0>;
66 spi-max-frequency = <10000000>;
67
68 partitions {
69 compatible = "fixed-partitions";
70 #address-cells = <1>;
71 #size-cells = <1>;
72
73 partition@0 {
74 label = "u-boot";
75 reg = <0x0 0x30000>;
76 read-only;
77 };
78
79 partition@30000 {
80 label = "u-boot-env";
81 reg = <0x30000 0x10000>;
82 read-only;
83 };
84
85 factory: partition@40000 {
86 label = "factory";
87 reg = <0x40000 0x10000>;
88 read-only;
89 };
90
91 partition@50000 {
92 label = "firmware";
93 reg = <0x50000 0xfb0000>;
94 compatible = "denx,uimage";
95 };
96 };
97 };
98 };
99
100 &uart1 {
101 status = "okay";
102 };
103
104 &factory {
105 compatible = "nvmem-cells";
106 #address-cells = <1>;
107 #size-cells = <1>;
108
109 macaddr_factory_28: macaddr@28 {
110 reg = <0x28 0x6>;
111 };
112 };