blob: 982752e1df24a504895845aae546fa41cf3613f7 [file] [log] [blame]
Krzysztof Kozlowskicc4637f2017-12-25 11:40:09 +01001// SPDX-License-Identifier: GPL-2.0
Krzysztof Kozlowski8c2bd872016-05-03 14:35:51 +02002/*
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
Krzysztof Kozlowskicc4637f2017-12-25 11:40:09 +01009 */
Krzysztof Kozlowski8c2bd872016-05-03 14:35:51 +020010
11#include <dt-bindings/gpio/gpio.h>
12
13/ {
Alexander Dahl4a6dbc62020-10-05 22:34:46 +020014 led-controller-1 {
Krzysztof Kozlowski8c2bd872016-05-03 14:35:51 +020015 compatible = "pwm-leds";
16
Alexander Dahl4a6dbc62020-10-05 22:34:46 +020017 led-1 {
Krzysztof Kozlowski8c2bd872016-05-03 14:35:51 +020018 label = "green:mmc0";
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 */
Krzysztof Kozlowski75121e12021-05-05 09:59:39 -040025 max-brightness = <127>;
Krzysztof Kozlowski8c2bd872016-05-03 14:35:51 +020026 linux,default-trigger = "mmc0";
27 };
28
Alexander Dahl4a6dbc62020-10-05 22:34:46 +020029 led-2 {
Krzysztof Kozlowski8c2bd872016-05-03 14:35:51 +020030 label = "blue:heartbeat";
31 pwms = <&pwm 2 2000000 0>;
32 pwm-names = "pwm2";
Krzysztof Kozlowski75121e12021-05-05 09:59:39 -040033 max-brightness = <255>;
Krzysztof Kozlowski8c2bd872016-05-03 14:35:51 +020034 linux,default-trigger = "heartbeat";
35 };
36 };
37
Alexander Dahl4a6dbc62020-10-05 22:34:46 +020038 led-controller-2 {
Krzysztof Kozlowski8c2bd872016-05-03 14:35:51 +020039 compatible = "gpio-leds";
Alexander Dahl4a6dbc62020-10-05 22:34:46 +020040
41 led-3 {
Krzysztof Kozlowski8c2bd872016-05-03 14:35:51 +020042 label = "red:microSD";
43 gpios = <&gpx2 3 GPIO_ACTIVE_HIGH>;
44 default-state = "off";
45 linux,default-trigger = "mmc1";
46 };
47 };
48};