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