xref: /freebsd/sys/contrib/device-tree/Bindings/mfd/richtek,rt4831.yaml (revision 5956d97f4b3204318ceb6aa9c77bd0bc6ea87a41)
1*5956d97fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*5956d97fSEmmanuel Vadot%YAML 1.2
3*5956d97fSEmmanuel Vadot---
4*5956d97fSEmmanuel Vadot$id: http://devicetree.org/schemas/mfd/richtek,rt4831.yaml#
5*5956d97fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*5956d97fSEmmanuel Vadot
7*5956d97fSEmmanuel Vadottitle: Richtek RT4831 DSV and Backlight Integrated IC
8*5956d97fSEmmanuel Vadot
9*5956d97fSEmmanuel Vadotmaintainers:
10*5956d97fSEmmanuel Vadot  - ChiYuan Huang <cy_huang@richtek.com>
11*5956d97fSEmmanuel Vadot
12*5956d97fSEmmanuel Vadotdescription: |
13*5956d97fSEmmanuel Vadot  RT4831 is a multifunctional device that can provide power to the LCD display
14*5956d97fSEmmanuel Vadot  and LCD backlight.
15*5956d97fSEmmanuel Vadot
16*5956d97fSEmmanuel Vadot  For Display Bias Voltage DSVP and DSVN, the output range is about 4V to 6.5V.
17*5956d97fSEmmanuel Vadot  It's sufficient to meet the current LCD power requirement.
18*5956d97fSEmmanuel Vadot
19*5956d97fSEmmanuel Vadot  For the LCD backlight, it can provide four channel WLED driving capability.
20*5956d97fSEmmanuel Vadot  Each channel driving current is up to 30mA
21*5956d97fSEmmanuel Vadot
22*5956d97fSEmmanuel Vadot  Datasheet is available at
23*5956d97fSEmmanuel Vadot  https://www.richtek.com/assets/product_file/RT4831A/DS4831A-05.pdf
24*5956d97fSEmmanuel Vadot
25*5956d97fSEmmanuel Vadotproperties:
26*5956d97fSEmmanuel Vadot  compatible:
27*5956d97fSEmmanuel Vadot    const: richtek,rt4831
28*5956d97fSEmmanuel Vadot
29*5956d97fSEmmanuel Vadot  reg:
30*5956d97fSEmmanuel Vadot    description: I2C device address.
31*5956d97fSEmmanuel Vadot    maxItems: 1
32*5956d97fSEmmanuel Vadot
33*5956d97fSEmmanuel Vadot  enable-gpios:
34*5956d97fSEmmanuel Vadot    description: |
35*5956d97fSEmmanuel Vadot      GPIO to enable/disable the chip. It is optional.
36*5956d97fSEmmanuel Vadot      Some usage directly tied this pin to follow VIO 1.8V power on sequence.
37*5956d97fSEmmanuel Vadot    maxItems: 1
38*5956d97fSEmmanuel Vadot
39*5956d97fSEmmanuel Vadot  regulators:
40*5956d97fSEmmanuel Vadot    $ref: ../regulator/richtek,rt4831-regulator.yaml
41*5956d97fSEmmanuel Vadot
42*5956d97fSEmmanuel Vadot  backlight:
43*5956d97fSEmmanuel Vadot    $ref: ../leds/backlight/richtek,rt4831-backlight.yaml
44*5956d97fSEmmanuel Vadot
45*5956d97fSEmmanuel Vadotrequired:
46*5956d97fSEmmanuel Vadot  - compatible
47*5956d97fSEmmanuel Vadot  - reg
48*5956d97fSEmmanuel Vadot
49*5956d97fSEmmanuel VadotadditionalProperties: false
50*5956d97fSEmmanuel Vadot
51*5956d97fSEmmanuel Vadotexamples:
52*5956d97fSEmmanuel Vadot  - |
53*5956d97fSEmmanuel Vadot    #include <dt-bindings/leds/rt4831-backlight.h>
54*5956d97fSEmmanuel Vadot    i2c {
55*5956d97fSEmmanuel Vadot      #address-cells = <1>;
56*5956d97fSEmmanuel Vadot      #size-cells = <0>;
57*5956d97fSEmmanuel Vadot
58*5956d97fSEmmanuel Vadot      rt4831@11 {
59*5956d97fSEmmanuel Vadot        compatible = "richtek,rt4831";
60*5956d97fSEmmanuel Vadot        reg = <0x11>;
61*5956d97fSEmmanuel Vadot
62*5956d97fSEmmanuel Vadot        regulators {
63*5956d97fSEmmanuel Vadot          DSVLCM {
64*5956d97fSEmmanuel Vadot            regulator-min-microvolt = <4000000>;
65*5956d97fSEmmanuel Vadot            regulator-max-microvolt = <7150000>;
66*5956d97fSEmmanuel Vadot            regulator-allow-bypass;
67*5956d97fSEmmanuel Vadot          };
68*5956d97fSEmmanuel Vadot          DSVP {
69*5956d97fSEmmanuel Vadot            regulator-name = "rt4831-dsvp";
70*5956d97fSEmmanuel Vadot            regulator-min-microvolt = <4000000>;
71*5956d97fSEmmanuel Vadot            regulator-max-microvolt = <6500000>;
72*5956d97fSEmmanuel Vadot            regulator-boot-on;
73*5956d97fSEmmanuel Vadot          };
74*5956d97fSEmmanuel Vadot          DSVN {
75*5956d97fSEmmanuel Vadot            regulator-name = "rt4831-dsvn";
76*5956d97fSEmmanuel Vadot            regulator-min-microvolt = <4000000>;
77*5956d97fSEmmanuel Vadot            regulator-max-microvolt = <6500000>;
78*5956d97fSEmmanuel Vadot            regulator-boot-on;
79*5956d97fSEmmanuel Vadot          };
80*5956d97fSEmmanuel Vadot        };
81*5956d97fSEmmanuel Vadot
82*5956d97fSEmmanuel Vadot        backlight {
83*5956d97fSEmmanuel Vadot          compatible = "richtek,rt4831-backlight";
84*5956d97fSEmmanuel Vadot          default-brightness = <1024>;
85*5956d97fSEmmanuel Vadot          max-brightness = <2048>;
86*5956d97fSEmmanuel Vadot          richtek,bled-ovp-sel = /bits/ 8 <RT4831_BLOVPLVL_21V>;
87*5956d97fSEmmanuel Vadot          richtek,channel-use = /bits/ 8 <RT4831_BLED_ALLCHEN>;
88*5956d97fSEmmanuel Vadot        };
89*5956d97fSEmmanuel Vadot      };
90*5956d97fSEmmanuel Vadot    };
91