ath79: wpj563: enable 2nd USB controller
[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 flash@0 {
64 compatible = "jedec,spi-nor";
65 reg = <0>;
66 spi-max-frequency = <40000000>;
67
68 partitions {
69 compatible = "fixed-partitions";
70 #address-cells = <1>;
71 #size-cells = <1>;
72
73 partition@0 {
74 label = "RouterBoot";
75 reg = <0x0 0x20000>;
76 read-only;
77 compatible = "mikrotik,routerboot-partitions";
78 #address-cells = <1>;
79 #size-cells = <1>;
80
81 partition@0 {
82 label = "bootloader1";
83 reg = <0x0 0x0>;
84 read-only;
85 };
86
87 hard_config: hard_config {
88 read-only;
89 };
90
91 bios {
92 size = <0x1000>;
93 read-only;
94 };
95
96 partition@10000 {
97 label = "bootloader2";
98 reg = <0x10000 0x0>;
99 read-only;
100 };
101
102 soft_config {
103 label = "soft_config";
104 };
105 };
106
107 partition@20000 {
108 compatible = "mikrotik,minor";
109 label = "firmware";
110 reg = <0x020000 0xfe0000>;
111 };
112 };
113 };
114 };
115
116 &wmac {
117 status = "okay";
118
119 qca,no-eeprom;
120 };
121
122 &pcie0 {
123 status = "okay";
124
125 wifi@0,0 {
126 compatible = "qcom,ath10k";
127 reg = <0 0 0 0 0>;
128 };
129 };