1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include <dt-bindings/leds/common.h>
5 #include "qca9531_alfa-network_r36a.dtsi"
8 model = "ALFA Network N2Q";
9 compatible = "alfa-network,n2q", "qca,qca9531";
13 led-failsafe = &led_usb;
14 led-upgrade = &led_usb;
18 compatible = "gpio-export";
22 gpio-export,name = "poe-passthrough";
23 gpio-export,output = <1>;
24 gpios = <&pcf8574 0 GPIO_ACTIVE_LOW>;
28 gpio-export,name = "usb-power";
29 gpio-export,output = <0>;
30 gpios = <&pcf8574 2 GPIO_ACTIVE_LOW>;
35 compatible = "i2c-gpio";
39 sda-gpios = <&gpio 11 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
40 scl-gpios = <&gpio 3 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
43 compatible = "nxp,pcf8574";
51 compatible = "gpio-leds";
53 pinctrl-names = "default";
54 pinctrl-0 = <&enable_gpio4 &enable_gpio16>;
57 label = "orange:lan1";
58 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
62 label = "orange:lan2";
63 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
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>;
75 label = "green:minipcie";
76 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
80 function = LED_FUNCTION_WLAN;
81 color = <LED_COLOR_ID_GREEN>;
82 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
83 linux,default-trigger = "phy0tpt";
88 compatible = "gpio-leds";
91 label = "green:poe-passthrough";
92 gpios = <&pcf8574 1 GPIO_ACTIVE_LOW>;
96 label = "red:signal1";
97 gpios = <&pcf8574 3 GPIO_ACTIVE_LOW>;
101 label = "orange:signal2";
102 gpios = <&pcf8574 4 GPIO_ACTIVE_LOW>;
106 label = "green:signal3";
107 gpios = <&pcf8574 5 GPIO_ACTIVE_LOW>;
113 nvmem-cells = <&macaddr_art_1002 (-2)>;
114 nvmem-cell-names = "mac-address";
118 nvmem-cells = <&macaddr_art_1002 (-1)>;
119 nvmem-cell-names = "mac-address";