~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/regulator/richtek,rt4801-regulator.yaml

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
  2 %YAML 1.2
  3 ---
  4 $id: http://devicetree.org/schemas/regulator/richtek,rt4801-regulator.yaml#
  5 $schema: http://devicetree.org/meta-schemas/core.yaml#
  6 
  7 title: Richtek RT4801 Display Bias regulators
  8 
  9 maintainers:
 10   - ChiYuan Huang <cy_huang@richtek.com>
 11 
 12 description: |
 13   Regulator nodes should be named to DSVP and DSVN. The
 14   definition for each of these nodes is defined using the standard
 15   binding for regulators at
 16   Documentation/devicetree/bindings/regulator/regulator.txt.
 17   Datasheet is available at
 18   https://www.richtek.com/assets/product_file/RT4801H/DS4801H-00.pdf
 19 
 20 properties:
 21   compatible:
 22     enum:
 23       - richtek,rt4801
 24 
 25   reg:
 26     maxItems: 1
 27 
 28   enable-gpios:
 29     description: GPIOs to use to enable DSVP/DSVN regulator.
 30       The first one is ENP to enable DSVP, and second one is ENM to enable DSVN.
 31       Number of GPIO in the array list could be 1 or 2.
 32       If only one gpio is specified, only one gpio used to control ENP/ENM.
 33       Else if both are specified, DSVP/DSVN could be controlled individually.
 34       If this property not specified, treat both as always-on regulators.
 35 
 36       Property is deprecated. Use enable-gpios in each regulator.
 37     minItems: 1
 38     maxItems: 2
 39     deprecated: true
 40 
 41 patternProperties:
 42   "^DSV(P|N)$":
 43     type: object
 44     $ref: regulator.yaml#
 45     unevaluatedProperties: false
 46     description:
 47       Properties for single display bias regulator.
 48 
 49     properties:
 50       enable-gpios:
 51         description:
 52           GPIO to use to enable DSVP/DSVN regulator. One GPIO can be configured
 53           for controlling both regulators.  If this property not specified for
 54           any regulator, treat both as always-on regulators.
 55         maxItems: 1
 56 
 57 required:
 58   - compatible
 59   - reg
 60 
 61 additionalProperties: false
 62 
 63 examples:
 64   - |
 65     i2c {
 66         #address-cells = <1>;
 67         #size-cells = <0>;
 68 
 69         rt4801@73 {
 70             compatible = "richtek,rt4801";
 71             reg = <0x73>;
 72 
 73             dsvp: DSVP {
 74                 regulator-name = "rt4801,dsvp";
 75                 regulator-min-microvolt = <4000000>;
 76                 regulator-max-microvolt = <6000000>;
 77                 regulator-boot-on;
 78                 enable-gpios = <&gpio26 2 0>;
 79             };
 80             dsvn: DSVN {
 81                 regulator-name = "rt4801,dsvn";
 82                 regulator-min-microvolt = <4000000>;
 83                 regulator-max-microvolt = <6000000>;
 84                 regulator-boot-on;
 85                 enable-gpios = <&gpio26 3 0>;
 86             };
 87 
 88         };
 89     };

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php