From: Roman Vivchar <[email protected]> Kinetic KTD3137 is an LED IC, used in various mobile devices for the display backlight. Add devicetree bindings documentation for this chip.
Datasheet: https://www.kinet-ic.com/uploads/KTD3137-04a.pdf Signed-off-by: Roman Vivchar <[email protected]> --- .../bindings/leds/backlight/kinetic,ktd3137.yaml | 64 ++++++++++++++++++++++ MAINTAINERS | 5 ++ 2 files changed, 69 insertions(+) diff --git a/Documentation/devicetree/bindings/leds/backlight/kinetic,ktd3137.yaml b/Documentation/devicetree/bindings/leds/backlight/kinetic,ktd3137.yaml new file mode 100644 index 000000000000..140615640a9a --- /dev/null +++ b/Documentation/devicetree/bindings/leds/backlight/kinetic,ktd3137.yaml @@ -0,0 +1,64 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/leds/backlight/kinetic,ktd3137.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Kinetic Technologies KTD3137 LED Backlight + +maintainers: + - Roman Vivchar <[email protected]> + +description: + The Kinetic Technologies KTD3137 is an I2C LED backlight driver for medium + to large size LCD panels. + +allOf: + - $ref: common.yaml# + +properties: + compatible: + const: kinetic,ktd3137 + + reg: + maxItems: 1 + + default-brightness: + maximum: 2047 + default: 2047 + + enable-gpios: + maxItems: 1 + description: GPIO connected to the HWEN pin. + + led-max-microamp: + minimum: 5000 + maximum: 29800 + default: 20200 + + vin-supply: true + +required: + - compatible + - reg + - vin-supply + +unevaluatedProperties: false + +examples: + - | + #include <dt-bindings/gpio/gpio.h> + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + backlight@36 { + compatible = "kinetic,ktd3137"; + reg = <0x36>; + enable-gpios = <&pio 160 GPIO_ACTIVE_HIGH>; + led-max-microamp = <20200>; + default-brightness = <2047>; + vin-supply = <&vsys>; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 15c7dc516f7c..24dd5b43f167 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -14618,6 +14618,11 @@ S: Maintained F: Documentation/devicetree/bindings/leds/backlight/kinetic,ktd2801.yaml F: drivers/video/backlight/ktd2801-backlight.c +KTD3137 BACKLIGHT DRIVER +M: Roman Vivchar <[email protected]> +S: Maintained +F: Documentation/devicetree/bindings/leds/backlight/kinetic,ktd3137.yaml + KTEST M: Steven Rostedt <[email protected]> M: John Hawley <[email protected]> -- 2.56.0
