1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/leds/register-bit-led.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Register Bit LEDs
10 - Linus Walleij <linus.walleij@linaro.org>
13 Register bit leds are used with syscon multifunctional devices where single
14 bits in a certain register can turn on/off a single LED. The register bit LEDs
15 appear as children to the syscon device, with the proper compatible string.
16 For the syscon bindings see:
17 Documentation/devicetree/bindings/mfd/syscon.yaml
20 - $ref: /schemas/leds/common.yaml#
25 The unit-address is in the form of @<reg addr>,<bit offset>
26 pattern: '^led@[0-9a-f]+,[0-9a-f]{1,2}$'
29 const: register-bit-led
33 The register address and size
38 bit mask for the bit controlling this LED in the register
39 $ref: /schemas/types.yaml#/definitions/uint32
41 [ 0x1, 0x2, 0x4, 0x8, 0x10, 0x20, 0x40, 0x80, 0x100, 0x200, 0x400, 0x800,
42 0x1000, 0x2000, 0x4000, 0x8000, 0x10000, 0x20000, 0x40000, 0x80000,
43 0x100000, 0x200000, 0x400000, 0x800000, 0x1000000, 0x2000000, 0x4000000,
44 0x8000000, 0x10000000, 0x20000000, 0x40000000, 0x80000000 ]
48 register offset to the register controlling this LED
49 $ref: /schemas/types.yaml#/definitions/uint32
57 unevaluatedProperties: false
63 compatible = "arm,realview-pb1176-syscon", "syscon", "simple-mfd";
64 reg = <0x10000000 0x1000>;
67 ranges = <0x0 0x10000000 0x1000>;
70 compatible = "register-bit-led";
74 label = "versatile:0";
75 linux,default-trigger = "heartbeat";
79 compatible = "register-bit-led";
83 label = "versatile:1";
84 default-state = "off";
87 compatible = "register-bit-led";
91 label = "versatile:2";
92 default-state = "off";