ath79: enable UART in SoC DTSI files
[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 aliases {
10 serial0 = &uart;
11 };
12
13 keys {
14 compatible = "gpio-keys";
15
16 reset {
17 label = "reset";
18 linux,code = <KEY_RESTART>;
19 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
20 debounce-interval = <60>;
21 };
22 };
23 };
24
25 &spi {
26 status = "okay";
27
28 flash@0 {
29 compatible = "jedec,spi-nor";
30 reg = <0>;
31 spi-max-frequency = <40000000>;
32
33 partitions {
34 compatible = "fixed-partitions";
35 #address-cells = <1>;
36 #size-cells = <1>;
37
38 partition@0 {
39 label = "RouterBoot";
40 reg = <0x0 0x20000>;
41 read-only;
42 compatible = "mikrotik,routerboot-partitions";
43 #address-cells = <1>;
44 #size-cells = <1>;
45
46 partition@0 {
47 label = "bootloader1";
48 reg = <0x0 0x0>;
49 read-only;
50 };
51
52 hard_config: hard_config {
53 read-only;
54 };
55
56 bios {
57 size = <0x1000>;
58 read-only;
59 };
60
61 partition@10000 {
62 label = "bootloader2";
63 reg = <0x10000 0x0>;
64 read-only;
65 };
66
67 soft_config {
68 label = "soft_config";
69 };
70 };
71
72 partition@20000 {
73 compatible = "mikrotik,minor";
74 label = "firmware";
75 reg = <0x020000 0xfe0000>;
76 };
77 };
78 };
79 };
80
81 &wmac {
82 status = "okay";
83
84 qca,no-eeprom;
85 };