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