1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-only 2*f126890aSEmmanuel Vadot/* 3*f126890aSEmmanuel Vadot * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com/ 4*f126890aSEmmanuel Vadot */ 5*f126890aSEmmanuel Vadot 6*f126890aSEmmanuel Vadot/* 7*f126890aSEmmanuel Vadot * VScom OnRISC 8*f126890aSEmmanuel Vadot * http://www.vscom.de 9*f126890aSEmmanuel Vadot */ 10*f126890aSEmmanuel Vadot 11*f126890aSEmmanuel Vadot/*#include "am33xx.dtsi"*/ 12*f126890aSEmmanuel Vadot 13*f126890aSEmmanuel Vadot/ { 14*f126890aSEmmanuel Vadot leds { 15*f126890aSEmmanuel Vadot pinctrl-names = "default"; 16*f126890aSEmmanuel Vadot pinctrl-0 = <&user_leds>; 17*f126890aSEmmanuel Vadot 18*f126890aSEmmanuel Vadot compatible = "gpio-leds"; 19*f126890aSEmmanuel Vadot 20*f126890aSEmmanuel Vadot led-power { 21*f126890aSEmmanuel Vadot label = "onrisc:red:power"; 22*f126890aSEmmanuel Vadot linux,default-trigger = "default-on"; 23*f126890aSEmmanuel Vadot gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; 24*f126890aSEmmanuel Vadot default-state = "on"; 25*f126890aSEmmanuel Vadot }; 26*f126890aSEmmanuel Vadot led-wlan { 27*f126890aSEmmanuel Vadot label = "onrisc:blue:wlan"; 28*f126890aSEmmanuel Vadot gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>; 29*f126890aSEmmanuel Vadot default-state = "off"; 30*f126890aSEmmanuel Vadot }; 31*f126890aSEmmanuel Vadot led-app { 32*f126890aSEmmanuel Vadot label = "onrisc:green:app"; 33*f126890aSEmmanuel Vadot gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>; 34*f126890aSEmmanuel Vadot default-state = "off"; 35*f126890aSEmmanuel Vadot }; 36*f126890aSEmmanuel Vadot }; 37*f126890aSEmmanuel Vadot}; 38*f126890aSEmmanuel Vadot 39*f126890aSEmmanuel Vadot&am33xx_pinmux { 40*f126890aSEmmanuel Vadot user_leds: user-leds-pins { 41*f126890aSEmmanuel Vadot pinctrl-single,pins = < 42*f126890aSEmmanuel Vadot AM33XX_PADCONF(AM335X_PIN_MII1_COL, PIN_OUTPUT_PULLDOWN, MUX_MODE7) /* mii1_col.gpio3_0 PWR LED */ 43*f126890aSEmmanuel Vadot AM33XX_PADCONF(AM335X_PIN_MII1_TXD3, PIN_OUTPUT_PULLDOWN, MUX_MODE7) /* mii1_txd3.gpio0_16 WLAN LED */ 44*f126890aSEmmanuel Vadot AM33XX_PADCONF(AM335X_PIN_MII1_TXD2, PIN_OUTPUT_PULLDOWN, MUX_MODE7) /* mii1_txd2.gpio0_17 APP LED */ 45*f126890aSEmmanuel Vadot >; 46*f126890aSEmmanuel Vadot }; 47*f126890aSEmmanuel Vadot}; 48