am335x-baltos-leds.dtsi 1.1 KB

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