summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Schulz <quentin.schulz@theobroma-systems.com>2023-01-13 15:49:53 +0100
committerQuentin Schulz <quentin.schulz@theobroma-systems.com>2023-01-13 15:49:53 +0100
commitd0d7ef047c3e756d7480cdc4a78c690c7f1ccded (patch)
tree2bf990ffeed4daa654714cf910d0384e0b3f9e31
parentde748a4593915b3566233e6724bac9ecb4418e38 (diff)
TSD: arm64: dts: rockchip: ringneck: move Video Demo adapter LED to its own device
The "leds" device contains two LEDs, one on the SoM and one on the Haikou devkit. Those LEDs are almost guaranteed to always have the GPIO controller associated with their GPIO probed (because they are part GPIO controller from the SoC and enabled by default). However, the GPIO used for controlling the led on the Video Demo adapter is controlled by an external GPIO controller whose driver might not be built in. When one of the led child node of a gpio-leds device fails to find its GPIO, all led child nodes are "unprobed" and put in the deferred probe queue. In cases where the external GPIO controller driver is not built in, or not probed yet, or using the Video Demo adapter DTS without the actual HW, all LEDs will not be usable. Instead, let's move this adapter led to its own gpio-leds device so that it's only impacting this LED and not other ones that are known to work. Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
-rw-r--r--arch/arm64/boot/dts/rockchip/px30-ringneck-haikou-video-demo.dts5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/arm64/boot/dts/rockchip/px30-ringneck-haikou-video-demo.dts b/arch/arm64/boot/dts/rockchip/px30-ringneck-haikou-video-demo.dts
index d82f2de50911..ec7c476f13a2 100644
--- a/arch/arm64/boot/dts/rockchip/px30-ringneck-haikou-video-demo.dts
+++ b/arch/arm64/boot/dts/rockchip/px30-ringneck-haikou-video-demo.dts
@@ -11,7 +11,10 @@
model = "Theobroma Systems PX30-µQ7 SoM on Haikou devkit with Video Demo adapter";
compatible = "tsd,px30-ringneck-haikou-video-demo", "tsd,px30-ringneck-haikou", "rockchip,px30";
- leds {
+ video-adapter-leds {
+ compatible = "gpio-leds";
+ status = "okay";
+
video-adapter-led {
label = "video-adapter-led";
gpios = <&pca9670 7 GPIO_ACTIVE_HIGH>;