The node names for devices using the pwm-leds driver follow a certain naming scheme (now). Parent node name is not enforced, but recommended by DT project. arch/arm/boot/dts/exynos5410-odroidxu.dt.yaml: pwmleds: 'blueled', 'greenled' do not match any of the regexes: '^led(-[0-9a-f]+)?$', 'pinctrl-[0-9]+' arch/arm/boot/dts/exynos5422-odroidhc1.dt.yaml: pwmleds: 'blueled' does not match any of the regexes: '^led(-[0-9a-f]+)?$', 'pinctrl-[0-9]+' From schema: Documentation/devicetree/bindings/leds/leds-pwm.yaml Signed-off-by: Alexander Dahl <post@lespocky.de> Link: https://lore.kernel.org/r/20201005203451.9985-8-post@lespocky.de Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
49 lines
967 B
Plaintext
49 lines
967 B
Plaintext
// 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>
|
|
|
|
/ {
|
|
led-controller-1 {
|
|
compatible = "pwm-leds";
|
|
|
|
led-1 {
|
|
label = "green:mmc0";
|
|
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 {
|
|
label = "blue:heartbeat";
|
|
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";
|
|
gpios = <&gpx2 3 GPIO_ACTIVE_HIGH>;
|
|
default-state = "off";
|
|
linux,default-trigger = "mmc1";
|
|
};
|
|
};
|
|
};
|