16be33864SEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 26be33864SEmmanuel Vadot%YAML 1.2 36be33864SEmmanuel Vadot--- 46be33864SEmmanuel Vadot$id: http://devicetree.org/schemas/regulator/richtek,rt4801-regulator.yaml# 56be33864SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 66be33864SEmmanuel Vadot 76be33864SEmmanuel Vadottitle: Richtek RT4801 Display Bias regulators 86be33864SEmmanuel Vadot 96be33864SEmmanuel Vadotmaintainers: 106be33864SEmmanuel Vadot - ChiYuan Huang <cy_huang@richtek.com> 116be33864SEmmanuel Vadot 126be33864SEmmanuel Vadotdescription: | 136be33864SEmmanuel Vadot Regulator nodes should be named to DSVP and DSVN. The 146be33864SEmmanuel Vadot definition for each of these nodes is defined using the standard 156be33864SEmmanuel Vadot binding for regulators at 166be33864SEmmanuel Vadot Documentation/devicetree/bindings/regulator/regulator.txt. 176be33864SEmmanuel Vadot Datasheet is available at 186be33864SEmmanuel Vadot https://www.richtek.com/assets/product_file/RT4801H/DS4801H-00.pdf 196be33864SEmmanuel Vadot 206be33864SEmmanuel Vadotproperties: 216be33864SEmmanuel Vadot compatible: 226be33864SEmmanuel Vadot enum: 236be33864SEmmanuel Vadot - richtek,rt4801 246be33864SEmmanuel Vadot 256be33864SEmmanuel Vadot reg: 266be33864SEmmanuel Vadot maxItems: 1 276be33864SEmmanuel Vadot 286be33864SEmmanuel Vadot enable-gpios: 296be33864SEmmanuel Vadot description: GPIOs to use to enable DSVP/DSVN regulator. 306be33864SEmmanuel Vadot The first one is ENP to enable DSVP, and second one is ENM to enable DSVN. 316be33864SEmmanuel Vadot Number of GPIO in the array list could be 1 or 2. 326be33864SEmmanuel Vadot If only one gpio is specified, only one gpio used to control ENP/ENM. 33d5b0e70fSEmmanuel Vadot Else if both are specified, DSVP/DSVN could be controlled individually. 34d5b0e70fSEmmanuel Vadot If this property not specified, treat both as always-on regulators. 35d5b0e70fSEmmanuel Vadot 36d5b0e70fSEmmanuel Vadot Property is deprecated. Use enable-gpios in each regulator. 376be33864SEmmanuel Vadot minItems: 1 386be33864SEmmanuel Vadot maxItems: 2 39d5b0e70fSEmmanuel Vadot deprecated: true 406be33864SEmmanuel Vadot 416be33864SEmmanuel VadotpatternProperties: 426be33864SEmmanuel Vadot "^DSV(P|N)$": 436be33864SEmmanuel Vadot type: object 446be33864SEmmanuel Vadot $ref: regulator.yaml# 45*7ef62cebSEmmanuel Vadot unevaluatedProperties: false 466be33864SEmmanuel Vadot description: 476be33864SEmmanuel Vadot Properties for single display bias regulator. 486be33864SEmmanuel Vadot 49d5b0e70fSEmmanuel Vadot properties: 50d5b0e70fSEmmanuel Vadot enable-gpios: 51d5b0e70fSEmmanuel Vadot description: 52d5b0e70fSEmmanuel Vadot GPIO to use to enable DSVP/DSVN regulator. One GPIO can be configured 53d5b0e70fSEmmanuel Vadot for controlling both regulators. If this property not specified for 54d5b0e70fSEmmanuel Vadot any regulator, treat both as always-on regulators. 55d5b0e70fSEmmanuel Vadot maxItems: 1 56d5b0e70fSEmmanuel Vadot 576be33864SEmmanuel Vadotrequired: 586be33864SEmmanuel Vadot - compatible 596be33864SEmmanuel Vadot - reg 606be33864SEmmanuel Vadot 616be33864SEmmanuel VadotadditionalProperties: false 626be33864SEmmanuel Vadot 636be33864SEmmanuel Vadotexamples: 646be33864SEmmanuel Vadot - | 656be33864SEmmanuel Vadot i2c { 666be33864SEmmanuel Vadot #address-cells = <1>; 676be33864SEmmanuel Vadot #size-cells = <0>; 686be33864SEmmanuel Vadot 696be33864SEmmanuel Vadot rt4801@73 { 706be33864SEmmanuel Vadot compatible = "richtek,rt4801"; 716be33864SEmmanuel Vadot reg = <0x73>; 726be33864SEmmanuel Vadot 736be33864SEmmanuel Vadot dsvp: DSVP { 746be33864SEmmanuel Vadot regulator-name = "rt4801,dsvp"; 756be33864SEmmanuel Vadot regulator-min-microvolt = <4000000>; 766be33864SEmmanuel Vadot regulator-max-microvolt = <6000000>; 776be33864SEmmanuel Vadot regulator-boot-on; 78d5b0e70fSEmmanuel Vadot enable-gpios = <&gpio26 2 0>; 796be33864SEmmanuel Vadot }; 806be33864SEmmanuel Vadot dsvn: DSVN { 816be33864SEmmanuel Vadot regulator-name = "rt4801,dsvn"; 826be33864SEmmanuel Vadot regulator-min-microvolt = <4000000>; 836be33864SEmmanuel Vadot regulator-max-microvolt = <6000000>; 846be33864SEmmanuel Vadot regulator-boot-on; 85d5b0e70fSEmmanuel Vadot enable-gpios = <&gpio26 3 0>; 866be33864SEmmanuel Vadot }; 876be33864SEmmanuel Vadot 886be33864SEmmanuel Vadot }; 896be33864SEmmanuel Vadot }; 90