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