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