From: YİĞİTCAN KAVAKLI <[email protected]> Add devicetree binding documentation for the Kinetic Technologies KTD3136 3-channel LED backlight driver using the official "kinetic" vendor prefix.
The device is controlled over I2C and supports an optional hardware enable GPIO line (enable-gpios), supply regulators, and standard backlight brightness range properties. Signed-off-by: YİĞİTCAN KAVAKLI <[email protected]> --- .../bindings/leds/backlight/kinetic,ktd3136.yaml | 65 ++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/Documentation/devicetree/bindings/leds/backlight/kinetic,ktd3136.yaml b/Documentation/devicetree/bindings/leds/backlight/kinetic,ktd3136.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f85381c29964529a09989a1ff60d9c9fe4897bb7 --- /dev/null +++ b/Documentation/devicetree/bindings/leds/backlight/kinetic,ktd3136.yaml @@ -0,0 +1,65 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/leds/backlight/kinetic,ktd3136.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Kinetic Technologies KTD3136 3-Channel LED Backlight Driver + +maintainers: + - Lee Jones <[email protected]> + +description: | + The Kinetic Technologies KTD3136 is a high efficiency, 3-channel LED + backlight driver with 11-bit exponential or linear dimming control + via I2C interface. + +allOf: + - $ref: common.yaml# + +properties: + compatible: + const: kinetic,ktd3136 + + reg: + maxItems: 1 + + enable-gpios: + description: GPIO connected to the HWEN (Chip Enable) pin. + maxItems: 1 + + vin-supply: + description: Regulator providing power to the VIN pin. + + default-brightness: + minimum: 0 + maximum: 2047 + default: 2047 + + max-brightness: + minimum: 0 + maximum: 2047 + default: 2047 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + #include <dt-bindings/gpio/gpio.h> + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + backlight@36 { + compatible = "kinetic,ktd3136"; + reg = <0x36>; + enable-gpios = <&gpio 6 GPIO_ACTIVE_HIGH>; + default-brightness = <2047>; + max-brightness = <2047>; + }; + }; -- 2.47.3
