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