ath79: improve common DTSI name for TP-Link Archer C5, C7 v1/v2
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9533_tplink_tl-wr841.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6
7 #include "qca953x.dtsi"
8
9 / {
10 chosen {
11 bootargs = "console=ttyS0,115200n8";
12 };
13
14 aliases {
15 label-mac-device = &wmac;
16 };
17
18 leds: leds {
19 compatible = "gpio-leds";
20
21 wifi {
22 label = "tp-link:green:wlan";
23 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
24 linux,default-trigger = "phy0tpt";
25 };
26
27 led_qss: qss {
28 label = "tp-link:green:qss";
29 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
30 };
31
32 wan {
33 label = "tp-link:green:wan";
34 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
35 };
36
37 lan1 {
38 label = "tp-link:green:lan1";
39 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
40 };
41
42 lan2 {
43 label = "tp-link:green:lan2";
44 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
45 };
46
47 lan3 {
48 label = "tp-link:green:lan3";
49 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
50 };
51
52 lan4 {
53 label = "tp-link:green:lan4";
54 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
55 };
56 };
57
58 keys {
59 compatible = "gpio-keys";
60
61 reset {
62 label = "Reset button";
63 linux,code = <KEY_RESTART>;
64 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
65 debounce-interval = <60>;
66 };
67
68 rfkill {
69 label = "RFKILL button";
70 linux,code = <KEY_RFKILL>;
71 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
72 debounce-interval = <60>;
73 };
74 };
75 };
76
77 &uart {
78 status = "okay";
79 };
80
81 &spi {
82 status = "okay";
83
84 num-cs = <1>;
85
86 flash@0 {
87 compatible = "jedec,spi-nor";
88 reg = <0>;
89 spi-max-frequency = <25000000>;
90
91 partitions {
92 compatible = "fixed-partitions";
93 #address-cells = <1>;
94 #size-cells = <1>;
95
96 uboot: partition@0 {
97 label = "u-boot";
98 reg = <0x000000 0x020000>;
99 read-only;
100 };
101
102 partition@20000 {
103 compatible = "tplink,firmware";
104 label = "firmware";
105 reg = <0x020000 0x3d0000>;
106 };
107
108 art: partition@3f0000 {
109 label = "art";
110 reg = <0x3f0000 0x010000>;
111 read-only;
112 };
113 };
114 };
115 };
116
117 &eth1 {
118 mtd-mac-address = <&uboot 0x1fc00>;
119 };
120
121 &eth0 {
122 status = "okay";
123
124 phy-handle = <&swphy4>;
125
126 mtd-mac-address = <&uboot 0x1fc00>;
127 mtd-mac-address-increment = <1>;
128 };
129
130 &wmac {
131 status = "okay";
132
133 mtd-cal-data = <&art 0x1000>;
134 mtd-mac-address = <&uboot 0x1fc00>;
135 };