Merge tag 'block-5.14-2021-08-07' of git://git.kernel.dk/linux-block
[linux-2.6-microblaze.git] / Documentation / devicetree / bindings / leds / backlight / richtek,rt4831-backlight.yaml
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/leds/backlight/richtek,rt4831-backlight.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Richtek RT4831 Backlight
8
9 maintainers:
10   - ChiYuan Huang <cy_huang@richtek.com>
11
12 description: |
13   RT4831 is a mutifunctional device that can provide power to the LCD display
14   and LCD backlight.
15
16   For the LCD backlight, it can provide four channel WLED driving capability.
17   Each channel driving current is up to 30mA
18
19   Datasheet is available at
20   https://www.richtek.com/assets/product_file/RT4831A/DS4831A-05.pdf
21
22 allOf:
23   - $ref: common.yaml#
24
25 properties:
26   compatible:
27     const: richtek,rt4831-backlight
28
29   default-brightness:
30     minimum: 0
31     maximum: 2048
32
33   max-brightness:
34     minimum: 0
35     maximum: 2048
36
37   richtek,pwm-enable:
38     description: |
39       Specify the backlight dimming following by PWM duty or by SW control.
40     type: boolean
41
42   richtek,bled-ovp-sel:
43     description: |
44       Backlight OVP level selection, currently support 17V/21V/25V/29V.
45     $ref: /schemas/types.yaml#/definitions/uint8
46     default: 1
47     minimum: 0
48     maximum: 3
49
50   richtek,channel-use:
51     description: |
52       Backlight LED channel to be used.
53       BIT 0/1/2/3 is used to indicate led channel 1/2/3/4 enable or disable.
54     $ref: /schemas/types.yaml#/definitions/uint8
55     minimum: 1
56     maximum: 15
57
58 required:
59   - compatible
60   - richtek,channel-use
61
62 additionalProperties: false