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 XU/XU3

Add common LED properties - the function and color - to LED nodes in
Exynos5422 Odroid XU/XU3/XU3-Lite, 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-9-krzysztof.kozlowski@linaro.org

+7 -1
+7 -1
arch/arm/boot/dts/exynos54xx-odroidxu-leds.dtsi
··· 9 9 */ 10 10 11 11 #include <dt-bindings/gpio/gpio.h> 12 + #include <dt-bindings/leds/common.h> 12 13 13 14 / { 14 15 led-controller-1 { ··· 17 16 18 17 led-1 { 19 18 label = "green:mmc0"; 19 + function = LED_FUNCTION_DISK_ACTIVITY; 20 + color = <LED_COLOR_ID_GREEN>; 20 21 pwms = <&pwm 1 2000000 0>; 21 22 pwm-names = "pwm1"; 22 23 /* ··· 30 27 }; 31 28 32 29 led-2 { 33 - label = "blue:heartbeat"; 30 + function = LED_FUNCTION_HEARTBEAT; 31 + color = <LED_COLOR_ID_BLUE>; 34 32 pwms = <&pwm 2 2000000 0>; 35 33 pwm-names = "pwm2"; 36 34 max-brightness = <255>; ··· 44 40 45 41 led-3 { 46 42 label = "red:microSD"; 43 + function = LED_FUNCTION_DISK_ACTIVITY; 44 + color = <LED_COLOR_ID_RED>; 47 45 gpios = <&gpx2 3 GPIO_ACTIVE_HIGH>; 48 46 default-state = "off"; 49 47 linux,default-trigger = "mmc1";