ath79/mikrotik: use routerbootpart partitions
[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 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 = "mikrotik,routerboot-partitions";
88 #address-cells = <1>;
89 #size-cells = <1>;
90
91 partition@0 {
92 label = "bootloader1";
93 reg = <0x0 0x0>;
94 read-only;
95 };
96
97 hard_config: hard_config {
98 read-only;
99 };
100
101 bios {
102 size = <0x1000>;
103 read-only;
104 };
105
106 partition@10000 {
107 label = "bootloader2";
108 reg = <0x10000 0x0>;
109 read-only;
110 };
111
112 soft_config {
113 label = "soft_config";
114 };
115 };
116
117 partition@20000 {
118 compatible = "mikrotik,minor";
119 label = "firmware";
120 reg = <0x020000 0xfe0000>;
121 };
122 };
123 };
124 };
125
126 &uart {
127 status = "okay";
128 };
129
130 &wmac {
131 status = "okay";
132
133 qca,no-eeprom;
134 };
135
136 &pcie0 {
137 status = "okay";
138
139 wifi@0,0 {
140 compatible = "qcom,ath10k";
141 reg = <0 0 0 0 0>;
142 };
143 };