ath79: add support for Compex WPJ531 (16M)
[openwrt/staging/dedeckeh.git] / target / linux / ath79 / dts / qca9558_tplink_tl-wr941n-v7-cn.dts
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 "qca955x.dtsi"
8
9 / {
10 compatible = "tplink,tl-wr941n-v7-cn", "qca,qca9558";
11 model = "TP-Link TL-WR941N v7 (CN)";
12
13 aliases {
14 led-boot = &led_system;
15 led-failsafe = &led_system;
16 led-running = &led_system;
17 led-upgrade = &led_system;
18 label-mac-device = &eth0;
19 };
20
21 leds {
22 compatible = "gpio-leds";
23
24 led_system: system {
25 label = "tp-link:green:system";
26 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
27 default-state = "on";
28 };
29
30 wlan {
31 label = "tp-link:green:wlan";
32 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
33 linux,default-trigger = "phy0tpt";
34 };
35
36 qss {
37 label = "tp-link:green:qss";
38 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
39 };
40 };
41
42 keys {
43 compatible = "gpio-keys";
44
45 reset {
46 label = "reset";
47 linux,code = <KEY_RESTART>;
48 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
49 debounce-interval = <60>;
50 };
51
52 wps {
53 label = "qss";
54 linux,code = <KEY_WPS_BUTTON>;
55 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
56 debounce-interval = <60>;
57 };
58 };
59 };
60
61 &uart {
62 status = "okay";
63 };
64
65 &spi {
66 status = "okay";
67 num-cs = <1>;
68
69 flash@0 {
70 compatible = "jedec,spi-nor";
71 reg = <0>;
72 spi-max-frequency = <25000000>;
73
74 partitions {
75 compatible = "fixed-partitions";
76 #address-cells = <1>;
77 #size-cells = <1>;
78
79 uboot: partition@0 {
80 label = "u-boot";
81 reg = <0x000000 0x020000>;
82 read-only;
83 };
84
85 partition@20000 {
86 compatible = "tplink,firmware";
87 label = "firmware";
88 reg = <0x020000 0x3d0000>;
89 };
90
91 art: partition@7f0000 {
92 label = "art";
93 reg = <0x3f0000 0x010000>;
94 read-only;
95 };
96 };
97 };
98 };
99
100 &mdio0 {
101 status = "okay";
102
103 switch0@1f {
104 compatible = "qca,ar8236";
105 reg = <0x1f>;
106 };
107 };
108
109 &eth0 {
110 status = "okay";
111 phy-mode = "mii";
112 mtd-mac-address = <&uboot 0x1fc00>;
113 fixed-link {
114 speed = <100>;
115 full-duplex;
116 };
117 };
118
119 &wmac {
120 status = "okay";
121 mtd-cal-data = <&art 0x1000>;
122 mtd-mac-address = <&uboot 0x1fc00>;
123 };