ath79: move dts-v1 statement to ath79.dtsi
[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 serial0 = &uart;
15 };
16
17 keys {
18 compatible = "gpio-keys";
19
20 reset {
21 label = "reset";
22 linux,code = <KEY_RESTART>;
23 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
24 debounce-interval = <60>;
25 };
26 };
27
28 mdio2: mdio {
29 compatible = "virtual,mdio-gpio";
30
31 gpios = <&gpio 12 GPIO_ACTIVE_HIGH>, /* MDC */
32 <&gpio 11 GPIO_ACTIVE_HIGH>; /* MDIO */
33 #address-cells = <1>;
34 #size-cells = <0>;
35
36 phy0: ethernet-phy@0 {
37 reg = <0>;
38 device_type = "ethernet-phy";
39
40 phy-mode = "sgmii";
41
42 at803x-override-sgmii-link-check;
43 };
44 };
45 };
46
47 &eth1 {
48 status = "okay";
49
50 pll-data = <0x03000101 0x80000101 0x80001313>;
51 phy-handle = <&phy0>;
52
53 qca955x-sgmii-fixup;
54
55 gmac-config {
56 device = <&gmac>;
57 };
58 };
59
60 &spi {
61 status = "okay";
62
63 num-cs = <1>;
64
65 flash@0 {
66 compatible = "jedec,spi-nor";
67 reg = <0>;
68 spi-max-frequency = <40000000>;
69
70 partitions {
71 compatible = "fixed-partitions";
72 #address-cells = <1>;
73 #size-cells = <1>;
74
75 partition@0 {
76 label = "RouterBoot";
77 reg = <0x0 0x20000>;
78 read-only;
79 compatible = "mikrotik,routerboot-partitions";
80 #address-cells = <1>;
81 #size-cells = <1>;
82
83 partition@0 {
84 label = "bootloader1";
85 reg = <0x0 0x0>;
86 read-only;
87 };
88
89 hard_config: hard_config {
90 read-only;
91 };
92
93 bios {
94 size = <0x1000>;
95 read-only;
96 };
97
98 partition@10000 {
99 label = "bootloader2";
100 reg = <0x10000 0x0>;
101 read-only;
102 };
103
104 soft_config {
105 label = "soft_config";
106 };
107 };
108
109 partition@20000 {
110 compatible = "mikrotik,minor";
111 label = "firmware";
112 reg = <0x020000 0xfe0000>;
113 };
114 };
115 };
116 };
117
118 &uart {
119 status = "okay";
120 };
121
122 &wmac {
123 status = "okay";
124
125 qca,no-eeprom;
126 };
127
128 &pcie0 {
129 status = "okay";
130
131 wifi@0,0 {
132 compatible = "qcom,ath10k";
133 reg = <0 0 0 0 0>;
134 };
135 };