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