exynos54xx-odroidxu-leds.dtsi 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Hardkernel Odroid XU/XU3 LED device tree source
  4. *
  5. * Copyright (c) 2015,2016 Krzysztof Kozlowski
  6. * Copyright (c) 2014 Collabora Ltd.
  7. * Copyright (c) 2013 Samsung Electronics Co., Ltd.
  8. * http://www.samsung.com
  9. */
  10. #include <dt-bindings/gpio/gpio.h>
  11. #include <dt-bindings/leds/common.h>
  12. / {
  13. led-controller-1 {
  14. compatible = "pwm-leds";
  15. led-1 {
  16. label = "green:mmc0";
  17. function = LED_FUNCTION_DISK_ACTIVITY;
  18. color = <LED_COLOR_ID_GREEN>;
  19. pwms = <&pwm 1 2000000 0>;
  20. pwm-names = "pwm1";
  21. /*
  22. * Green LED is much brighter than the others
  23. * so limit its max brightness
  24. */
  25. max-brightness = <127>;
  26. linux,default-trigger = "mmc0";
  27. };
  28. led-2 {
  29. function = LED_FUNCTION_HEARTBEAT;
  30. color = <LED_COLOR_ID_BLUE>;
  31. pwms = <&pwm 2 2000000 0>;
  32. pwm-names = "pwm2";
  33. max-brightness = <255>;
  34. linux,default-trigger = "heartbeat";
  35. };
  36. };
  37. led-controller-2 {
  38. compatible = "gpio-leds";
  39. led-3 {
  40. label = "red:microSD";
  41. function = LED_FUNCTION_DISK_ACTIVITY;
  42. color = <LED_COLOR_ID_RED>;
  43. gpios = <&gpx2 3 GPIO_ACTIVE_HIGH>;
  44. default-state = "off";
  45. linux,default-trigger = "mmc1";
  46. };
  47. };
  48. };