From 5d3996d84ef0658e1471c1c0d711021ee0b84815 Mon Sep 17 00:00:00 2001 From: Bogdan Ionescu Date: Mon, 6 Mar 2023 20:44:14 +0000 Subject: [PATCH] doc: add documentation for rohm,bd65b60 bindings Added documentation of the devicetree bindings for the rohm,bd65b60 led driver. Signed-off-by: Bogdan Ionescu --- .../bindings/leds/rohm,bd65b60-leds.yaml | 68 +++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/rohm,bd65b60-leds.yaml diff --git a/Documentation/devicetree/bindings/leds/rohm,bd65b60-leds.yaml b/Documentation/devicetree/bindings/leds/rohm,bd65b60-leds.yaml new file mode 100644 index 00000000000000..106763bf319a02 --- /dev/null +++ b/Documentation/devicetree/bindings/leds/rohm,bd65b60-leds.yaml @@ -0,0 +1,68 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/leds/rohm,bd65b60-leds.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ROHM BD65B60 device tree bindings + +maintainers: + - Bogdan Ionescu + +description: | + BD65B60 is a white LED driver IC that integrates PWM + step-up DC/DC converter with boost-capability of up to + maximum 28.5V and current driver with drive capability of up + to 25mA(Typ.) maximum setting. Precise brightness can be + controlled at wide ranges through the external PWM pulse + input. + +properties: + compatible: + const: rohm,bd65b60 + +patternProperties: + "^led-[1-2]$": + $ref: common.yaml# + unevaluatedProperties: false + + properties: + rohm,enable: + description: + Select which leds are being controlled. + Values defined in + $ref: "/schemas/types.yaml#/definitions/uint32" + enum: [ 0, 1, 4, 5 ] + + rohm,ovp: + description: + Select Over-Voltage-Portection level. + Values defined in + $ref: "/schemas/types.yaml#/definitions/uint32" + enum: [ 0, 8, 16 ] + default: 16 + +required: + - compatible + - rohm,enable +additionalProperties: false + +examples: + - | + i2c { + + led_controler@64 { + compatible = "rohm,bd65b60"; + reg = <0x64>; + + backlight_led: led { + function = LED_FUNCTION_BACKLIGHT; + color = ; + rohm,enable = ; + default-state = "keep"; + linux,default-trigger = "backlight"; + }; + }; + }; + +...