Linux Audio

Check our new training course

Loading...
v4.17
 
 1/*
 2 * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/
 3 *
 4 * This program is free software; you can redistribute it and/or modify
 5 * it under the terms of the GNU General Public License version 2 as
 6 * published by the Free Software Foundation.
 7 */
 8
 9/*
10 * VScom OnRISC
11 * http://www.vscom.de
12 */
13
14/*#include "am33xx.dtsi"*/
15
16/ {
17	leds {
18		pinctrl-names = "default";
19		pinctrl-0 = <&user_leds>;
20
21		compatible = "gpio-leds";
22
23		power {
24			label = "onrisc:red:power";
25			linux,default-trigger = "default-on";
26			gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
27			default-state = "on";
28		};
29		wlan {
30			label = "onrisc:blue:wlan";
31			gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
32			default-state = "off";
33		};
34		app {
35			label = "onrisc:green:app";
36			gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>;
37			default-state = "off";
38		};
39	};
40};
41
42&am33xx_pinmux {
43	user_leds: pinmux_user_leds {
44		pinctrl-single,pins = <
45			AM33XX_IOPAD(0x908, PIN_OUTPUT_PULLDOWN | MUX_MODE7)	/* mii1_col.gpio3_0 PWR LED */
46			AM33XX_IOPAD(0x91c, PIN_OUTPUT_PULLDOWN | MUX_MODE7)	/* mii1_txd3.gpio0_16 WLAN LED */
47			AM33XX_IOPAD(0x920, PIN_OUTPUT_PULLDOWN | MUX_MODE7)	/* mii1_txd2.gpio0_17 APP LED */
48		>;
49	};
50};
v5.4
 1// SPDX-License-Identifier: GPL-2.0-only
 2/*
 3 * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/
 
 
 
 
 4 */
 5
 6/*
 7 * VScom OnRISC
 8 * http://www.vscom.de
 9 */
10
11/*#include "am33xx.dtsi"*/
12
13/ {
14	leds {
15		pinctrl-names = "default";
16		pinctrl-0 = <&user_leds>;
17
18		compatible = "gpio-leds";
19
20		power {
21			label = "onrisc:red:power";
22			linux,default-trigger = "default-on";
23			gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
24			default-state = "on";
25		};
26		wlan {
27			label = "onrisc:blue:wlan";
28			gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
29			default-state = "off";
30		};
31		app {
32			label = "onrisc:green:app";
33			gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>;
34			default-state = "off";
35		};
36	};
37};
38
39&am33xx_pinmux {
40	user_leds: pinmux_user_leds {
41		pinctrl-single,pins = <
42			AM33XX_PADCONF(AM335X_PIN_MII1_COL, PIN_OUTPUT_PULLDOWN, MUX_MODE7)	/* mii1_col.gpio3_0 PWR LED */
43			AM33XX_PADCONF(AM335X_PIN_MII1_TXD3, PIN_OUTPUT_PULLDOWN, MUX_MODE7)	/* mii1_txd3.gpio0_16 WLAN LED */
44			AM33XX_PADCONF(AM335X_PIN_MII1_TXD2, PIN_OUTPUT_PULLDOWN, MUX_MODE7)	/* mii1_txd2.gpio0_17 APP LED */
45		>;
46	};
47};