summaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/samsung/exynos54xx-odroidxu-leds.dtsi
blob: 8c0e1716c0b3835804d2557df69d84c667f71b13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// SPDX-License-Identifier: GPL-2.0
/*
 * Hardkernel Odroid XU/XU3 LED device tree source
 *
 * Copyright (c) 2015,2016 Krzysztof Kozlowski
 * Copyright (c) 2014 Collabora Ltd.
 * Copyright (c) 2013 Samsung Electronics Co., Ltd.
 *		http://www.samsung.com
 */

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/leds/common.h>

/ {
	led-controller-1 {
		compatible = "pwm-leds";

		led-1 {
			label = "green:mmc0";
			function = LED_FUNCTION_DISK_ACTIVITY;
			color = <LED_COLOR_ID_GREEN>;
			pwms = <&pwm 1 2000000 0>;
			pwm-names = "pwm1";
			/*
			 * Green LED is much brighter than the others
			 * so limit its max brightness
			 */
			max-brightness = <127>;
			linux,default-trigger = "mmc0";
		};

		led-2 {
			function = LED_FUNCTION_HEARTBEAT;
			color = <LED_COLOR_ID_BLUE>;
			pwms = <&pwm 2 2000000 0>;
			pwm-names = "pwm2";
			max-brightness = <255>;
			linux,default-trigger = "heartbeat";
		};
	};

	led-controller-2 {
		compatible = "gpio-leds";

		led-3 {
			label = "red:microSD";
			function = LED_FUNCTION_DISK_ACTIVITY;
			color = <LED_COLOR_ID_RED>;
			gpios = <&gpx2 3 GPIO_ACTIVE_HIGH>;
			default-state = "off";
			linux,default-trigger = "mmc1";
		};
	};
};