qualcommax: apply special PHY LEDs configuration for Xiaomi AX3600
[openwrt/staging/nbd.git] / target / linux / qualcommax / files / arch / arm64 / boot / dts / qcom / ipq8071-ax3600.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /* Copyright (c) 2021, Robert Marko <robimarko@gmail.com> */
3
4 /dts-v1/;
5
6 #include "ipq8071-ax3600.dtsi"
7 #include <dt-bindings/leds/common.h>
8
9 / {
10 model = "Xiaomi AX3600";
11 compatible = "xiaomi,ax3600", "qcom,ipq8074";
12
13 leds {
14 compatible = "gpio-leds";
15
16 led_system_blue: system-blue {
17 label = "blue:system";
18 gpios = <&tlmm 42 GPIO_ACTIVE_HIGH>;
19 };
20
21 led_system_yellow: system-yellow {
22 label = "yellow:system";
23 gpios = <&tlmm 43 GPIO_ACTIVE_HIGH>;
24 };
25
26 network-yellow {
27 label = "yellow:network";
28 gpios = <&tlmm 22 GPIO_ACTIVE_HIGH>;
29 };
30
31 network-blue {
32 label = "blue:network";
33 gpios = <&tlmm 21 GPIO_ACTIVE_HIGH>;
34 };
35
36 aiot {
37 label = "blue:aiot";
38 gpios = <&tlmm 51 GPIO_ACTIVE_HIGH>;
39 linux,default-trigger = "phy0tpt";
40 };
41 };
42 };
43
44 &pcie_qmp0 {
45 status = "okay";
46 };
47
48 &pcie0 {
49 status = "okay";
50
51 perst-gpio = <&tlmm 52 GPIO_ACTIVE_HIGH>;
52
53 bridge@0,0 {
54 reg = <0x00000000 0 0 0 0>;
55 #address-cells = <3>;
56 #size-cells = <2>;
57 ranges;
58
59 wifi0: wifi@1,0 {
60 status = "okay";
61
62 compatible = "qcom,ath10k";
63 reg = <0x00010000 0 0 0 0>;
64
65 qcom,ath10k-calibration-variant = "Xiaomi-AX3600";
66 nvmem-cell-names = "calibration";
67 nvmem-cells = <&caldata_qca9889>;
68 };
69 };
70 };
71
72 &wifi {
73 qcom,ath11k-calibration-variant = "Xiaomi-AX3600";
74 };
75
76 &qca8075_1 {
77 leds {
78 #address-cells = <1>;
79 #size-cells = <0>;
80
81 led@0 {
82 reg = <0>;
83 color = <LED_COLOR_ID_GREEN>;
84 function = LED_FUNCTION_WAN;
85 default-state = "keep";
86 };
87 };
88 };
89
90 &qca8075_2 {
91 leds {
92 #address-cells = <1>;
93 #size-cells = <0>;
94
95 led@0 {
96 reg = <0>;
97 color = <LED_COLOR_ID_GREEN>;
98 function = LED_FUNCTION_LAN;
99 default-state = "keep";
100 };
101 };
102 };
103
104 &qca8075_3 {
105 leds {
106 #address-cells = <1>;
107 #size-cells = <0>;
108
109 led@0 {
110 reg = <0>;
111 color = <LED_COLOR_ID_GREEN>;
112 function = LED_FUNCTION_LAN;
113 default-state = "keep";
114 };
115 };
116 };
117
118 &qca8075_4 {
119 leds {
120 #address-cells = <1>;
121 #size-cells = <0>;
122
123 led@0 {
124 reg = <0>;
125 color = <LED_COLOR_ID_GREEN>;
126 function = LED_FUNCTION_LAN;
127 default-state = "keep";
128 };
129 };
130 };