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