[PATCH 1/2] dt-bindings: leds: Add StarFive JHB100 heartbeat LED controller
From: lianfeng.ouyang
Date: Thu Dec 03 2026 - 21:07:31 EST
From: Lianfeng Ouyang <lianfeng.ouyang@xxxxxxxxxxxxxxxx>
The StarFive JHB100 SoC has a hardware heartbeat generator that drives a
single LED. It outputs a pulse with a programmable width and period,
both derived from its input clock. While the CPUs show no bus activity,
it uses a second, longer period instead. The output can only blink, it
cannot be held permanently on.
The LED is described by the controller node itself, so reference
common.yaml to allow the standard LED properties such as "function",
"color" and "default-state".
Signed-off-by: Lianfeng Ouyang <lianfeng.ouyang@xxxxxxxxxxxxxxxx>
---
.../bindings/leds/starfive,jhb100-leds.yaml | 57 +++++++++++++++++++
1 file changed, 57 insertions(+)
create mode 100644 Documentation/devicetree/bindings/leds/starfive,jhb100-leds.yaml
diff --git a/Documentation/devicetree/bindings/leds/starfive,jhb100-leds.yaml b/Documentation/devicetree/bindings/leds/starfive,jhb100-leds.yaml
new file mode 100644
index 000000000000..7bc0f4da1e75
--- /dev/null
+++ b/Documentation/devicetree/bindings/leds/starfive,jhb100-leds.yaml
@@ -0,0 +1,57 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/leds/starfive,jhb100-leds.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: StarFive JHB100 Heartbeat LED Controller
+
+maintainers:
+ - Lianfeng Ouyang <lianfeng.ouyang@xxxxxxxxxxxxxxxx>
+
+description:
+ Hardware heartbeat generator of the StarFive JHB100 SoC. It drives a
+ single LED with a programmable pulse width and period derived from its
+ clock. While the CPUs show no bus activity, the hardware uses a second,
+ longer period instead. The output can only blink, it cannot be held
+ permanently on, so a default-state of "on" starts the heartbeat.
+
+allOf:
+ - $ref: common.yaml#
+
+properties:
+ compatible:
+ const: starfive,jhb100-leds
+
+ reg:
+ maxItems: 1
+
+ clocks:
+ maxItems: 1
+
+ resets:
+ maxItems: 1
+
+required:
+ - compatible
+ - reg
+ - clocks
+ - resets
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/leds/common.h>
+
+ led@13215000 {
+ compatible = "starfive,jhb100-leds";
+ reg = <0x13215000 0xc>;
+ clocks = <&cpucrg 19>;
+ resets = <&cpucrg 6>;
+ color = <LED_COLOR_ID_GREEN>;
+ function = LED_FUNCTION_HEARTBEAT;
+ default-state = "on";
+ };
+
+...
--
2.43.0