ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9556_avm_fritzdvbc.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include <dt-bindings/leds/common.h>
4
5 #include "qca9556_avm_fritz-repeater.dtsi"
6
7 / {
8 compatible = "avm,fritzdvbc", "qca,qca9556";
9 model = "AVM FRITZ!WLAN Repeater DVB-C";
10
11 aliases {
12 led-boot = &led_power;
13 led-failsafe = &led_power;
14 led-running = &led_power;
15 led-upgrade = &led_power;
16 };
17
18 led_spi {
19 compatible = "spi-gpio";
20 #address-cells = <1>;
21 #size-cells = <0>;
22
23 sck-gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
24 mosi-gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
25 num-chipselects = <0>;
26
27 spi_gpio: led_gpio@0 {
28 compatible = "fairchild,74hc595";
29 reg = <0>;
30 gpio-controller;
31 #gpio-cells = <2>;
32 registers-number = <2>;
33 spi-max-frequency = <10000000>;
34
35 gpio_latch_bit {
36 gpio-hog;
37 gpios = <16 GPIO_ACTIVE_HIGH>;
38 output-high;
39 line-name = "gpio-latch-bit";
40 };
41 };
42 };
43
44 /*
45 * GPIO pins 100 or greater in the vendor GPL dump are redirected
46 * to the shift register.
47 * So OEM source pin 100 becomes 0 on the SR and so forth.
48 */
49 leds {
50 compatible = "gpio-leds";
51
52 led_power: power {
53 function = LED_FUNCTION_POWER;
54 color = <LED_COLOR_ID_GREEN>;
55 gpios = <&spi_gpio 6 GPIO_ACTIVE_LOW>;
56 };
57
58 wlan {
59 function = LED_FUNCTION_WLAN;
60 color = <LED_COLOR_ID_GREEN>;
61 gpios = <&spi_gpio 7 GPIO_ACTIVE_LOW>;
62 linux,default-trigger = "phy1tpt";
63 };
64
65 tv {
66 label = "green:tv";
67 gpios = <&spi_gpio 5 GPIO_ACTIVE_LOW>;
68 };
69
70 rssihigh {
71 label = "green:rssihigh";
72 gpios = <&spi_gpio 1 GPIO_ACTIVE_LOW>;
73 };
74
75 rssimediumhigh {
76 label = "green:rssimediumhigh";
77 gpios = <&spi_gpio 2 GPIO_ACTIVE_LOW>;
78 };
79
80 rssimedium {
81 label = "green:rssimedium";
82 gpios = <&spi_gpio 3 GPIO_ACTIVE_LOW>;
83 };
84
85 rssimediumlow {
86 label = "green:rssimediumlow";
87 gpios = <&spi_gpio 4 GPIO_ACTIVE_LOW>;
88 };
89
90 rssilow {
91 label = "green:rssilow";
92 gpios = <&spi_gpio 0 GPIO_ACTIVE_LOW>;
93 };
94 };
95 };
96
97 &pcie0 {
98 status = "okay";
99
100 wifi@0,0 {
101 compatible = "qcom,ath10k";
102 reg = <0x0000 0 0 0 0>;
103 nvmem-cells = <&cal_urlader_198a>;
104 nvmem-cell-names = "calibration";
105 };
106 };
107
108 &gpio {
109 reset-pcie-ep {
110 gpio-hog;
111 gpios = <109 GPIO_ACTIVE_HIGH>;
112 output-high;
113 line-name = "PCIE EP reset";
114 };
115
116 reset-pcie-bus {
117 gpio-hog;
118 gpios = <110 GPIO_ACTIVE_HIGH>;
119 output-high;
120 line-name = "PCIE Bus reset";
121 };
122 };