0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003 * Hardkernel Odroid XU/XU3 LED device tree source
0004 *
0005 * Copyright (c) 2015,2016 Krzysztof Kozlowski
0006 * Copyright (c) 2014 Collabora Ltd.
0007 * Copyright (c) 2013 Samsung Electronics Co., Ltd.
0008 * http://www.samsung.com
0009 */
0010
0011 #include <dt-bindings/gpio/gpio.h>
0012 #include <dt-bindings/leds/common.h>
0013
0014 / {
0015 led-controller-1 {
0016 compatible = "pwm-leds";
0017
0018 led-1 {
0019 label = "green:mmc0";
0020 function = LED_FUNCTION_DISK_ACTIVITY;
0021 color = <LED_COLOR_ID_GREEN>;
0022 pwms = <&pwm 1 2000000 0>;
0023 pwm-names = "pwm1";
0024 /*
0025 * Green LED is much brighter than the others
0026 * so limit its max brightness
0027 */
0028 max-brightness = <127>;
0029 linux,default-trigger = "mmc0";
0030 };
0031
0032 led-2 {
0033 function = LED_FUNCTION_HEARTBEAT;
0034 color = <LED_COLOR_ID_BLUE>;
0035 pwms = <&pwm 2 2000000 0>;
0036 pwm-names = "pwm2";
0037 max-brightness = <255>;
0038 linux,default-trigger = "heartbeat";
0039 };
0040 };
0041
0042 led-controller-2 {
0043 compatible = "gpio-leds";
0044
0045 led-3 {
0046 label = "red:microSD";
0047 function = LED_FUNCTION_DISK_ACTIVITY;
0048 color = <LED_COLOR_ID_RED>;
0049 gpios = <&gpx2 3 GPIO_ACTIVE_HIGH>;
0050 default-state = "off";
0051 linux,default-trigger = "mmc1";
0052 };
0053 };
0054 };