Linux Audio

Check our new training course

Loading...
v6.2
 1// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 2
 3#include <dt-bindings/leds/common.h>
 4#include "qcom-ipq4018-ap120c-ac.dtsi"
 5
 6/ {
 7	leds {
 8		compatible = "gpio-leds";
 9
10		status: led-status {
11			label = "ap120c-ac:blue:status";
12			function = LED_FUNCTION_STATUS;
13			color = <LED_COLOR_ID_BLUE>;
14			gpios = <&tlmm 5 GPIO_ACTIVE_LOW>;
15			default-state = "keep";
16		};
17
18		led-wlan2g {
19			label = "ap120c-ac:green:wlan2g";
20			function = LED_FUNCTION_WLAN;
21			color = <LED_COLOR_ID_GREEN>;
22			gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
23			linux,default-trigger = "phy0tpt";
24		};
25
26		led-wlan5g {
27			label = "ap120c-ac:red:wlan5g";
28			function = LED_FUNCTION_WLAN;
29			color = <LED_COLOR_ID_RED>;
30			gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
31			linux,default-trigger = "phy1tpt";
32		};
33	};
34};
v5.14.15
 1// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 2
 
 3#include "qcom-ipq4018-ap120c-ac.dtsi"
 4
 5/ {
 6	leds {
 7		compatible = "gpio-leds";
 8
 9		status: status {
10			label = "ap120c-ac:blue:status";
 
 
11			gpios = <&tlmm 5 GPIO_ACTIVE_LOW>;
12			default-state = "keep";
13		};
14
15		wlan2g {
16			label = "ap120c-ac:green:wlan2g";
 
 
17			gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
18			linux,default-trigger = "phy0tpt";
19		};
20
21		wlan5g {
22			label = "ap120c-ac:red:wlan5g";
 
 
23			gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
24			linux,default-trigger = "phy1tpt";
25		};
26	};
27};