Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: exynos: add function and color to LED nodes in Odroid X/X2

Add common LED properties - the function and color - to LED nodes in
Exynos4412 Odroid X/X2, so we can drop in some places deprecated label
property.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20220620175716.132143-6-krzysztof.kozlowski@linaro.org

+4 -1
+4 -1
arch/arm/boot/dts/exynos4412-odroidx.dts
··· 9 9 */ 10 10 11 11 /dts-v1/; 12 + #include <dt-bindings/leds/common.h> 12 13 #include "exynos4412-odroid-common.dtsi" 13 14 14 15 / { ··· 28 27 leds { 29 28 compatible = "gpio-leds"; 30 29 led1 { 31 - label = "led1:heart"; 30 + function = LED_FUNCTION_HEARTBEAT; 31 + color = <LED_COLOR_ID_BLUE>; 32 32 gpios = <&gpc1 0 GPIO_ACTIVE_LOW>; 33 33 default-state = "on"; 34 34 linux,default-trigger = "heartbeat"; 35 35 }; 36 36 led2 { 37 37 label = "led2:mmc0"; 38 + function = LED_FUNCTION_DISK_ACTIVITY; 38 39 gpios = <&gpc1 2 GPIO_ACTIVE_LOW>; 39 40 default-state = "on"; 40 41 linux,default-trigger = "mmc0";