ath79: Add support for OpenMesh OM5P
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9533_mikrotik_routerboard-16m.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca953x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 keys {
10 compatible = "gpio-keys";
11
12 reset {
13 label = "reset";
14 linux,code = <KEY_RESTART>;
15 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
16 debounce-interval = <60>;
17 };
18 };
19 };
20
21 &spi {
22 status = "okay";
23
24 flash@0 {
25 compatible = "jedec,spi-nor";
26 reg = <0>;
27 spi-max-frequency = <40000000>;
28
29 partitions {
30 compatible = "fixed-partitions";
31 #address-cells = <1>;
32 #size-cells = <1>;
33
34 partition@0 {
35 label = "RouterBoot";
36 reg = <0x0 0x20000>;
37 read-only;
38 compatible = "mikrotik,routerboot-partitions";
39 #address-cells = <1>;
40 #size-cells = <1>;
41
42 partition@0 {
43 label = "bootloader1";
44 reg = <0x0 0x0>;
45 read-only;
46 };
47
48 hard_config: hard_config {
49 read-only;
50 };
51
52 bios {
53 size = <0x1000>;
54 read-only;
55 };
56
57 partition@10000 {
58 label = "bootloader2";
59 reg = <0x10000 0x0>;
60 read-only;
61 };
62
63 soft_config {
64 label = "soft_config";
65 };
66 };
67
68 partition@20000 {
69 compatible = "mikrotik,minor";
70 label = "firmware";
71 reg = <0x020000 0xfe0000>;
72 };
73 };
74 };
75 };
76
77 &uart {
78 status = "okay";
79 };
80
81 &wmac {
82 status = "okay";
83
84 qca,no-eeprom;
85 };