SMART AM40: drop deprecated label property in gpio leds node

This commit is contained in:
retro98boy 2025-06-22 19:40:00 +08:00 committed by Igor
parent 7a6e8068ff
commit d3bf2462bc
3 changed files with 11 additions and 5 deletions

View File

@ -8,6 +8,7 @@
#include <dt-bindings/input/linux-event-codes.h>
#include <dt-bindings/pwm/pwm.h>
#include <dt-bindings/leds/common.h>
#include "rk3399.dtsi"
/ {
@ -43,7 +44,8 @@
pinctrl-0 = <&pwr_led>;
pwr-led {
label = "pwr-led";
function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_YELLOW>;
gpios = <&gpio4 RK_PC2 GPIO_ACTIVE_HIGH>;
default-state = "on";
};

View File

@ -8,6 +8,7 @@
#include <dt-bindings/input/linux-event-codes.h>
#include <dt-bindings/pwm/pwm.h>
#include <dt-bindings/leds/common.h>
#include "rk3399.dtsi"
/ {
@ -43,7 +44,8 @@
pinctrl-0 = <&pwr_led>;
pwr-led {
label = "pwr-led";
function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_YELLOW>;
gpios = <&gpio4 RK_PC2 GPIO_ACTIVE_HIGH>;
default-state = "on";
};

View File

@ -94,10 +94,10 @@ index 00000000..8ea5266f
+CONFIG_ERRNO_STR=y
diff --git a/dts/upstream/src/arm64/rockchip/rk3399-am40.dts b/dts/upstream/src/arm64/rockchip/rk3399-am40.dts
new file mode 100644
index 00000000..a9f29385
index 00000000..174a7eb6
--- /dev/null
+++ b/dts/upstream/src/arm64/rockchip/rk3399-am40.dts
@@ -0,0 +1,776 @@
@@ -0,0 +1,778 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (c) 2017 Fuzhou Rockchip Electronics Co., Ltd.
@ -108,6 +108,7 @@ index 00000000..a9f29385
+
+#include <dt-bindings/input/linux-event-codes.h>
+#include <dt-bindings/pwm/pwm.h>
+#include <dt-bindings/leds/common.h>
+#include "rk3399.dtsi"
+
+/ {
@ -143,7 +144,8 @@ index 00000000..a9f29385
+ pinctrl-0 = <&pwr_led>;
+
+ pwr-led {
+ label = "pwr-led";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_YELLOW>;
+ gpios = <&gpio4 RK_PC2 GPIO_ACTIVE_HIGH>;
+ default-state = "on";
+ };