ath79: cleanup mikrotik routerboot partitions
[openwrt/staging/jow.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 compatible = "mikrotik,routerboot-partitions";
77 #address-cells = <1>;
78 #size-cells = <1>;
79
80 partition@0 {
81 label = "bootloader1";
82 reg = <0x0 0x0>;
83 read-only;
84 };
85
86 hard_config {
87 read-only;
88 };
89
90 bios {
91 size = <0x1000>;
92 read-only;
93 };
94
95 partition@10000 {
96 label = "bootloader2";
97 reg = <0x10000 0x0>;
98 read-only;
99 };
100
101 soft_config {
102 };
103 };
104
105 partition@20000 {
106 compatible = "mikrotik,minor";
107 label = "firmware";
108 reg = <0x020000 0xfe0000>;
109 };
110 };
111 };
112 };
113
114 &wmac {
115 status = "okay";
116
117 qca,no-eeprom;
118 };
119
120 &pcie0 {
121 status = "okay";
122
123 wifi@0,0 {
124 compatible = "qcom,ath10k";
125 reg = <0 0 0 0 0>;
126 };
127 };