Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-only
0002 /*
0003  * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com/
0004  */
0005 
0006 /*
0007  * VScom OnRISC
0008  * http://www.vscom.de
0009  */
0010 
0011 /*#include "am33xx.dtsi"*/
0012 
0013 / {
0014         leds {
0015                 pinctrl-names = "default";
0016                 pinctrl-0 = <&user_leds>;
0017 
0018                 compatible = "gpio-leds";
0019 
0020                 power {
0021                         label = "onrisc:red:power";
0022                         linux,default-trigger = "default-on";
0023                         gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
0024                         default-state = "on";
0025                 };
0026                 wlan {
0027                         label = "onrisc:blue:wlan";
0028                         gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
0029                         default-state = "off";
0030                 };
0031                 app {
0032                         label = "onrisc:green:app";
0033                         gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>;
0034                         default-state = "off";
0035                 };
0036         };
0037 };
0038 
0039 &am33xx_pinmux {
0040         user_leds: pinmux_user_leds {
0041                 pinctrl-single,pins = <
0042                         AM33XX_PADCONF(AM335X_PIN_MII1_COL, PIN_OUTPUT_PULLDOWN, MUX_MODE7)     /* mii1_col.gpio3_0 PWR LED */
0043                         AM33XX_PADCONF(AM335X_PIN_MII1_TXD3, PIN_OUTPUT_PULLDOWN, MUX_MODE7)    /* mii1_txd3.gpio0_16 WLAN LED */
0044                         AM33XX_PADCONF(AM335X_PIN_MII1_TXD2, PIN_OUTPUT_PULLDOWN, MUX_MODE7)    /* mii1_txd2.gpio0_17 APP LED */
0045                 >;
0046         };
0047 };