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