ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9531_alfa-network_n2q.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include <dt-bindings/leds/common.h>
4
5 #include "qca9531_alfa-network_r36a.dtsi"
6
7 / {
8 model = "ALFA Network N2Q";
9 compatible = "alfa-network,n2q", "qca,qca9531";
10
11 aliases {
12 led-boot = &led_usb;
13 led-failsafe = &led_usb;
14 led-upgrade = &led_usb;
15 };
16
17 gpio-export-pcf8574 {
18 compatible = "gpio-export";
19 #size-cells = <0>;
20
21 poe-passthrough {
22 gpio-export,name = "poe-passthrough";
23 gpio-export,output = <1>;
24 gpios = <&pcf8574 0 GPIO_ACTIVE_LOW>;
25 };
26
27 usb-power {
28 gpio-export,name = "usb-power";
29 gpio-export,output = <0>;
30 gpios = <&pcf8574 2 GPIO_ACTIVE_LOW>;
31 };
32 };
33
34 i2c {
35 compatible = "i2c-gpio";
36 #address-cells = <1>;
37 #size-cells = <0>;
38
39 sda-gpios = <&gpio 11 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
40 scl-gpios = <&gpio 3 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
41
42 pcf8574: pcf8574@20 {
43 compatible = "nxp,pcf8574";
44 reg = <0x20>;
45 gpio-controller;
46 #gpio-cells = <2>;
47 };
48 };
49
50 leds {
51 compatible = "gpio-leds";
52
53 pinctrl-names = "default";
54 pinctrl-0 = <&enable_gpio4 &enable_gpio16>;
55
56 lan1 {
57 label = "orange:lan1";
58 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
59 };
60
61 lan2 {
62 label = "orange:lan2";
63 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
64 };
65
66 led_usb: usb {
67 function = LED_FUNCTION_USB;
68 color = <LED_COLOR_ID_GREEN>;
69 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
70 linux,default-trigger = "usbport";
71 trigger-sources = <&hub_port0>;
72 };
73
74 minipcie {
75 label = "green:minipcie";
76 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
77 };
78
79 wlan {
80 function = LED_FUNCTION_WLAN;
81 color = <LED_COLOR_ID_GREEN>;
82 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
83 linux,default-trigger = "phy0tpt";
84 };
85 };
86
87 leds-pcf8574 {
88 compatible = "gpio-leds";
89
90 poe-passthrough {
91 label = "green:poe-passthrough";
92 gpios = <&pcf8574 1 GPIO_ACTIVE_LOW>;
93 };
94
95 signal1 {
96 label = "red:signal1";
97 gpios = <&pcf8574 3 GPIO_ACTIVE_LOW>;
98 };
99
100 signal2 {
101 label = "orange:signal2";
102 gpios = <&pcf8574 4 GPIO_ACTIVE_LOW>;
103 };
104
105 signal3 {
106 label = "green:signal3";
107 gpios = <&pcf8574 5 GPIO_ACTIVE_LOW>;
108 };
109 };
110 };
111
112 &eth0 {
113 nvmem-cells = <&macaddr_art_1002 (-2)>;
114 nvmem-cell-names = "mac-address";
115 };
116
117 &eth1 {
118 nvmem-cells = <&macaddr_art_1002 (-1)>;
119 nvmem-cell-names = "mac-address";
120 };
121
122 &pcie0 {
123 status = "okay";
124 };