Add Awinic AW99703 backlight binding documentation. Signed-off-by: Andreas Kemnade <[email protected]> --- .../bindings/leds/backlight/awinic,aw99703.yaml | 96 ++++++++++++++++++++++ 1 file changed, 96 insertions(+)
diff --git a/Documentation/devicetree/bindings/leds/backlight/awinic,aw99703.yaml b/Documentation/devicetree/bindings/leds/backlight/awinic,aw99703.yaml new file mode 100644 index 0000000000000..74214a1760622 --- /dev/null +++ b/Documentation/devicetree/bindings/leds/backlight/awinic,aw99703.yaml @@ -0,0 +1,96 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/leds/backlight/awinic,aw99703.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Awinic AW99703 3-channel WLED Backlight Driver + +maintainers: + - Andreas Kemnade <[email protected]> + +allOf: + - $ref: common.yaml# + +properties: + compatible: + const: awinic,aw99703 + + reg: + maxItems: 1 + + label: + maxItems: 1 + + enable-gpios: + description: GPIO to use to enable/disable the backlight (HWEN pin). + maxItems: 1 + + vin-supply: true + + awinic,ovp-microvolt: + enum: [ 17500000, 24000000, 31000000, 38000000, 41500000 ] + default: 38000 + + awinic,ocp-microamp: + enum: [ 900000, 1800000, 2700000, 34000000 ] + default: 2700000 + + awinic,inductor-nanohenry: + $ref: /schemas/types.yaml#/definitions/uint32 + description: Inductor used in nH + enum: [ 4700, 10000 ] + default: 4700 + + awinic,iled-max-microamp: + description: Maximum LED current setting in uA. + minimum: 4800 + maximum: 29600 + multipleOf: 800 + default: 20000 + + awinic,channel-mask: + $ref: /schemas/types.yaml#/definitions/uint32 + description: Mask of channels to use + minimum: 0 + maximum: 7 + default: 7 + + awinic,map-type: + $ref: /schemas/types.yaml#/definitions/uint32 + description: Map type 0 = exponential, 1 = linear + enum: [ 0, 1 ] + default: 0 + +required: + - compatible + - reg + - vin-supply + +unevaluatedProperties: false + +examples: + - | + #include <dt-bindings/gpio/gpio.h> + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + backlight@36 { + compatible = "awinic,aw99703"; + reg = <0x36>; + enable-gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>; + vin-supply = <&vin>; + default-brightness = <100>; + label = "backlight_cold"; + awinic,map-type = <1>; + awinic,ocp-microamp = <1800000>; + awinic,ovp-microvolt = <31000000>; + + awinic,iled-max-microamp = <20000>; + awinic,channel-mask = <5>; + }; + }; + +... -- 2.47.3
