ath79: add support for Teltonika RUT955
[openwrt/staging/wigyori.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 "qca9557.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 = <&art 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 = <104000000>;
77
78 partitions {
79 compatible = "fixed-partitions";
80 #address-cells = <1>;
81 #size-cells = <1>;
82
83 partition@0 {
84 label = "routerboot";
85 reg = <0x000000 0x00e000>;
86 read-only;
87 };
88
89 art: partition@e000 {
90 label = "art";
91 reg = <0x000e000 0x001000>;
92 read-only;
93 };
94
95 partition@f000 {
96 label = "bios";
97 reg = <0x000f000 0x001000>;
98 read-only;
99 };
100
101 partition@10000 {
102 label = "routerboot2";
103 reg = <0x010000 0x00f000>;
104 read-only;
105 };
106
107 partition@1f000 {
108 label = "soft_config";
109 reg = <0x001f000 0x001000>;
110 };
111
112 partition@20000 {
113 compatible = "mikrotik,minor";
114 label = "firmware";
115 reg = <0x020000 0xfe0000>;
116 };
117 };
118 };
119 };
120
121 &uart {
122 status = "okay";
123 };
124
125 &wmac {
126 status = "okay";
127
128 qca,no-eeprom;
129 };
130
131 &pcie0 {
132 status = "okay";
133
134 wifi@0,0 {
135 compatible = "qcom,ath10k";
136 reg = <0 0 0 0 0>;
137 };
138 };