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