ath79: rename dts/image using manufacturer_board scheme
[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 "qca9533.dtsi"
8
9 / {
10 chosen {
11 bootargs = "console=ttyS0,115200n8";
12 };
13
14 aliases {
15 led-status = &system;
16 };
17
18 leds {
19 compatible = "gpio-leds";
20
21 wifi {
22 label = "tp-link:green:wlan";
23 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
24 default-state = "off";
25 linux,default-trigger = "phy0tpt";
26 };
27
28 system: wifi_qss {
29 label = "tp-link:green:qss";
30 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
31 default-state = "off";
32 };
33
34 wan {
35 label = "tp-link:green:wan";
36 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
37 default-state = "off";
38 };
39
40 lan1 {
41 label = "tp-link:green:lan1";
42 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
43 default-state = "off";
44 };
45
46 lan2 {
47 label = "tp-link:green:lan2";
48 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
49 default-state = "off";
50 };
51
52 lan3 {
53 label = "tp-link:green:lan3";
54 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
55 default-state = "off";
56 };
57
58 lan4 {
59 label = "tp-link:green:lan4";
60 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
61 default-state = "off";
62 };
63 };
64
65 keys {
66 compatible = "gpio-keys";
67 #address-cells = <1>;
68 #size-cells = <0>;
69
70 reset {
71 label = "Reset button";
72 linux,code = <KEY_RESTART>;
73 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
74 debounce-interval = <60>;
75 };
76
77 rfkill {
78 label = "RFKILL button";
79 linux,code = <KEY_RFKILL>;
80 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
81 debounce-interval = <60>;
82 };
83 };
84 };
85
86 &uart {
87 status = "okay";
88 };
89
90 &spi {
91 status = "okay";
92 num-cs = <1>;
93
94 flash@0 {
95 #address-cells = <1>;
96 #size-cells = <1>;
97 compatible = "jedec,spi-nor";
98 reg = <0>;
99 spi-max-frequency = <25000000>;
100
101 partitions {
102 compatible = "fixed-partitions";
103 #address-cells = <1>;
104 #size-cells = <1>;
105
106 uboot: partition@0 {
107 label = "u-boot";
108 reg = <0x000000 0x020000>;
109 read-only;
110 };
111
112 partition@20000 {
113 label = "firmware";
114 reg = <0x020000 0x3d0000>;
115 };
116
117 art: partition@3f0000 {
118 label = "art";
119 reg = <0x3f0000 0x010000>;
120 read-only;
121 };
122 };
123 };
124 };
125
126 &eth1 {
127 mtd-mac-address = <&uboot 0x1fc00>;
128 };
129
130 &eth0 {
131 status = "okay";
132 phy-handle = <&swphy4>;
133
134 mtd-mac-address = <&uboot 0x1fc00>;
135 mtd-mac-address-increment = <1>;
136 };
137
138 &wmac {
139 status = "okay";
140 mtd-cal-data = <&art 0x1000>;
141 mtd-mac-address = <&uboot 0x1fc00>;
142 };