ath79: add support for Compex WPJ531 (16M)
[openwrt/staging/dedeckeh.git] / target / linux / ath79 / dts / qca9533_tplink_cpexxx.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 aliases {
10 led-boot = &led_link4;
11 led-failsafe = &led_link4;
12 led-running = &led_link4;
13 led-upgrade = &led_link4;
14 label-mac-device = &wmac;
15 };
16
17 leds: leds {
18 compatible = "gpio-leds";
19
20 link1 {
21 label = "tp-link:green:link1";
22 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
23 };
24
25 link2 {
26 label = "tp-link:green:link2";
27 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
28 };
29
30 link3 {
31 label = "tp-link:green:link3";
32 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
33 };
34
35 led_link4: link4 {
36 label = "tp-link:green:link4";
37 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
38 };
39 };
40
41 keys {
42 compatible = "gpio-keys";
43
44 reset {
45 label = "Reset button";
46 linux,code = <KEY_RESTART>;
47 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
48 };
49 };
50 };
51
52 &uart {
53 status = "okay";
54 };
55
56 &spi {
57 status = "okay";
58
59 num-cs = <1>;
60
61 flash@0 {
62 #address-cells = <1>;
63 #size-cells = <1>;
64 compatible = "jedec,spi-nor";
65 reg = <0>;
66 spi-max-frequency = <25000000>;
67
68 partitions {
69 compatible = "fixed-partitions";
70 #address-cells = <1>;
71 #size-cells = <1>;
72
73 uboot: partition@0 {
74 label = "u-boot";
75 reg = <0x000000 0x020000>;
76 read-only;
77 };
78
79 partition@20000 {
80 label = "partition-table";
81 reg = <0x020000 0x010000>;
82 read-only;
83 };
84
85 info: partition@30000 {
86 label = "info";
87 reg = <0x030000 0x010000>;
88 read-only;
89 };
90
91 partition@40000 {
92 label = "firmware";
93 reg = <0x040000 0x780000>;
94 compatible = "tplink,firmware";
95 };
96
97 config: partition@7c0000 {
98 label = "config";
99 reg = <0x7c0000 0x030000>;
100 read-only;
101 };
102
103 art: partition@7f0000 {
104 label = "art";
105 reg = <0x7f0000 0x010000>;
106 read-only;
107 };
108 };
109 };
110 };
111
112 &wmac {
113 status = "okay";
114
115 mtd-cal-data = <&art 0x1000>;
116 mtd-mac-address = <&info 0x8>;
117 };
118
119 &eth0 {
120 status = "okay";
121
122 phy-handle = <&swphy4>;
123
124 mtd-mac-address = <&info 0x8>;
125 };