base-files: correctly split install-key function for APK
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9556_mikrotik_routerboard-wap-g-5hact2hnd.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca955x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "mikrotik,routerboard-wap-g-5hact2hnd", "qca,qca9556";
10 model = "MikroTik RouterBOARD wAP G-5HacT2HnD";
11
12 aliases {
13 mdio-gpio1 = &mdio2;
14 };
15
16 keys {
17 compatible = "gpio-keys";
18
19 reset {
20 label = "reset";
21 linux,code = <KEY_RESTART>;
22 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
23 debounce-interval = <60>;
24 };
25 };
26
27 mdio2: mdio {
28 compatible = "virtual,mdio-gpio";
29
30 gpios = <&gpio 12 GPIO_ACTIVE_HIGH>, /* MDC */
31 <&gpio 11 GPIO_ACTIVE_HIGH>; /* MDIO */
32 #address-cells = <1>;
33 #size-cells = <0>;
34
35 phy0: ethernet-phy@0 {
36 reg = <0>;
37 device_type = "ethernet-phy";
38
39 phy-mode = "sgmii";
40
41 at803x-override-sgmii-link-check;
42 };
43 };
44 };
45
46 &eth1 {
47 status = "okay";
48
49 pll-data = <0x03000101 0x80000101 0x80001313>;
50 phy-handle = <&phy0>;
51
52 qca955x-sgmii-fixup;
53
54 gmac-config {
55 device = <&gmac>;
56 };
57 };
58
59 &spi {
60 status = "okay";
61
62 flash@0 {
63 compatible = "jedec,spi-nor";
64 reg = <0>;
65 spi-max-frequency = <40000000>;
66
67 partitions {
68 compatible = "fixed-partitions";
69 #address-cells = <1>;
70 #size-cells = <1>;
71
72 partition@0 {
73 label = "RouterBoot";
74 reg = <0x0 0x20000>;
75 compatible = "mikrotik,routerboot-partitions";
76 #address-cells = <1>;
77 #size-cells = <1>;
78
79 partition@0 {
80 label = "bootloader1";
81 reg = <0x0 0x0>;
82 read-only;
83 };
84
85 hard_config {
86 read-only;
87 };
88
89 bios {
90 size = <0x1000>;
91 read-only;
92 };
93
94 partition@10000 {
95 label = "bootloader2";
96 reg = <0x10000 0x0>;
97 read-only;
98 };
99
100 soft_config {
101 };
102 };
103
104 partition@20000 {
105 compatible = "mikrotik,minor";
106 label = "firmware";
107 reg = <0x020000 0xfe0000>;
108 };
109 };
110 };
111 };
112
113 &wmac {
114 status = "okay";
115
116 qca,no-eeprom;
117 };
118
119 &pcie0 {
120 status = "okay";
121
122 wifi@0,0 {
123 compatible = "qcom,ath10k";
124 reg = <0 0 0 0 0>;
125 };
126 };