ath79: add support for Compex WPJ531 (16M)
[openwrt/staging/dedeckeh.git] / target / linux / ath79 / dts / qca9563_tplink_re450.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 "qca956x.dtsi"
7
8 / {
9 aliases {
10 label-mac-device = &eth0;
11 led-boot = &led_power;
12 led-failsafe = &led_power;
13 led-running = &led_power;
14 led-upgrade = &led_power;
15 mdio-gpio0 = &mdio2;
16 };
17
18 leds {
19 compatible = "gpio-leds";
20
21 led_power: power {
22 label = "tp-link:blue:power";
23 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
24 };
25
26 wlan2g {
27 label = "tp-link:blue:wlan2g";
28 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
29 linux,default-trigger = "phy1tpt";
30 };
31
32 wlan5g {
33 label = "tp-link:blue:wlan5g";
34 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
35 linux,default-trigger = "phy0tpt";
36 };
37
38 lan_link {
39 label = "tp-link:green:lan_link";
40 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
41 };
42
43 lan_data {
44 label = "tp-link:green:lan_data";
45 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
46 };
47
48 wps_blue {
49 label = "tp-link:blue:wps";
50 gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
51 };
52
53 wps_red {
54 label = "tp-link:red:wps";
55 gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
56 };
57 };
58
59 keys {
60 compatible = "gpio-keys";
61
62 reset {
63 label = "Reset button";
64 linux,code = <KEY_RESTART>;
65 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
66 debounce-interval = <60>;
67 };
68
69 power {
70 label = "Power button";
71 linux,code = <KEY_POWER>;
72 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
73 debounce-interval = <60>;
74 };
75
76 leds {
77 label = "LED control button";
78 linux,code = <BTN_0>;
79 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
80 debounce-interval = <60>;
81 };
82
83 wps {
84 label = "WPS button";
85 linux,code = <KEY_WPS_BUTTON>;
86 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
87 debounce-interval = <60>;
88 };
89 };
90
91 mdio2: mdio {
92 compatible = "virtual,mdio-gpio";
93
94 gpios = <&gpio 3 GPIO_ACTIVE_HIGH>, /* MDC */
95 <&gpio 4 GPIO_ACTIVE_HIGH>; /* MDIO */
96 #address-cells = <1>;
97 #size-cells = <0>;
98
99 phy4: ethernet-phy@4 {
100 reg = <4>;
101 device_type = "ethernet-phy";
102 reset-gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
103 };
104 };
105 };
106
107 &pcie {
108 status = "okay";
109 };
110
111 &uart {
112 status = "okay";
113 };
114
115 &gpio {
116 status = "okay";
117 };
118
119 &spi {
120 status = "okay";
121
122 num-cs = <1>;
123
124 flash@0 {
125 compatible = "jedec,spi-nor";
126 reg = <0>;
127 spi-max-frequency = <25000000>;
128
129 partitions: partitions {
130 compatible = "fixed-partitions";
131 #address-cells = <1>;
132 #size-cells = <1>;
133 };
134 };
135 };
136
137 &eth0 {
138 status = "okay";
139
140 phy-mode = "sgmii";
141 phy-handle = <&phy4>;
142
143 mtd-mac-address = <&info 0x8>;
144 };
145
146 &wmac {
147 status = "okay";
148
149 mtd-cal-data = <&art 0x1000>;
150 mtd-mac-address = <&info 0x8>;
151 };