ath79: enable UART in SoC DTSI files
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9533_dlink_dap-13xx.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 led-boot = &led_power;
11 led-failsafe = &led_status;
12 led-running = &led_power;
13 led-upgrade = &led_status;
14 };
15
16 keys {
17 compatible = "gpio-keys";
18
19 wps {
20 label = "wps";
21 linux,code = <KEY_WPS_BUTTON>;
22 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
23 };
24
25 reset {
26 label = "reset";
27 linux,code = <KEY_RESTART>;
28 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
29 };
30 };
31
32 leds {
33 compatible = "gpio-leds";
34
35 led_power: power {
36 label = "green:power";
37 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
38 };
39
40 led_status: status {
41 label = "red:status";
42 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
43 };
44
45 rssilow {
46 label = "red:rssilow";
47 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
48 };
49
50 rssimediumlow {
51 label = "green:rssimediumlow";
52 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
53 };
54
55 rssimediumhigh {
56 label = "green:rssimediumhigh";
57 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
58 };
59
60 rssihigh {
61 label = "green:rssihigh";
62 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
63 };
64 };
65 };
66
67 &spi {
68 status = "okay";
69
70 flash@0 {
71 compatible = "jedec,spi-nor";
72 reg = <0>;
73 spi-max-frequency = <50000000>;
74
75 partitions {
76 compatible = "fixed-partitions";
77 #address-cells = <1>;
78 #size-cells = <1>;
79
80 partition@0 {
81 label = "u-boot";
82 reg = <0x0 0x10000>;
83 read-only;
84 };
85
86 art: partition@10000 {
87 label = "art";
88 reg = <0x10000 0x10000>;
89 read-only;
90 };
91
92 partition@20000 {
93 label = "mp";
94 reg = <0x20000 0x10000>;
95 read-only;
96 };
97
98 partition@30000 {
99 label = "config";
100 reg = <0x30000 0x10000>;
101 read-only;
102 };
103
104 partition@40000 {
105 label = "firmware";
106 reg = <0x40000 0x7c0000>;
107 compatible = "denx,uimage";
108 };
109 };
110 };
111 };
112
113 &eth0 {
114 status = "okay";
115 };
116
117 &wmac {
118 status = "okay";
119
120 mtd-cal-data = <&art 0x1000>;
121 };