brintos

brintos / linux-shallow public Read only

0
0
Text · 4.0 KiB · 51e2f6f Raw
161 lines · yaml
1# SPDX-License-Identifier: GPL-2.02%YAML 1.23---4$id: http://devicetree.org/schemas/regulator/fixed-regulator.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Fixed Voltage regulators8 9maintainers:10  - Liam Girdwood <lgirdwood@gmail.com>11  - Mark Brown <broonie@kernel.org>12 13description:14  Any property defined as part of the core regulator binding, defined in15  regulator.yaml, can also be used. However a fixed voltage regulator is16  expected to have the regulator-min-microvolt and regulator-max-microvolt17  to be the same.18 19allOf:20  - $ref: regulator.yaml#21  - if:22      properties:23        compatible:24          contains:25            const: regulator-fixed-clock26    then:27      required:28        - clocks29  - if:30      properties:31        compatible:32          contains:33            const: regulator-fixed-domain34    then:35      required:36        - power-domains37        - required-opps38  - not:39      required:40        - gpio41        - gpios42 43properties:44  $nodename:45    anyOf:46      - description: Preferred name is 'regulator-[0-9]v[0-9]'47        pattern: '^regulator(-[0-9]+v[0-9]+|-[0-9a-z-]+)?$'48      - description: Any name allowed49        deprecated: true50 51  compatible:52    enum:53      - regulator-fixed54      - regulator-fixed-clock55      - regulator-fixed-domain56 57  regulator-name: true58 59  gpio:60    description: gpio to use for enable control61    maxItems: 162 63  gpios:64    maxItems: 165 66  clocks:67    description:68      clock to use for enable control. This binding is only available if69      the compatible is chosen to regulator-fixed-clock. The clock binding70      is mandatory if compatible is chosen to regulator-fixed-clock.71    maxItems: 172 73  power-domains:74    deprecated: true75    description:76      Power domain to use for enable control. This binding is only77      available if the compatible is chosen to regulator-fixed-domain.78    maxItems: 179 80  required-opps:81    deprecated: true82    description:83      Performance state to use for enable control. This binding is only84      available if the compatible is chosen to regulator-fixed-domain. The85      power-domain binding is mandatory if compatible is chosen to86      regulator-fixed-domain.87    maxItems: 188 89  startup-delay-us:90    description: startup time in microseconds91 92  off-on-delay-us:93    description: off delay time in microseconds94 95  enable-active-high:96    description:97      Polarity of GPIO is Active high. If this property is missing,98      the default assumed is Active low.99    type: boolean100 101  gpio-open-drain:102    description:103      GPIO is open drain type. If this property is missing then default104      assumption is false.105    type: boolean106 107  vin-supply:108    description: Input supply phandle.109 110  interrupts:111    maxItems: 1112    description:113      Interrupt signaling a critical under-voltage event.114 115  system-critical-regulator: true116 117required:118  - compatible119  - regulator-name120 121unevaluatedProperties: false122 123examples:124  - |125    reg_1v8: regulator-1v8 {126      compatible = "regulator-fixed";127      regulator-name = "1v8";128      regulator-min-microvolt = <1800000>;129      regulator-max-microvolt = <1800000>;130      gpio = <&gpio1 16 0>;131      startup-delay-us = <70000>;132      enable-active-high;133      regulator-boot-on;134      gpio-open-drain;135      vin-supply = <&parent_reg>;136    };137    reg_1v8_clk: regulator-1v8-clk {138      compatible = "regulator-fixed-clock";139      regulator-name = "1v8";140      regulator-min-microvolt = <1800000>;141      regulator-max-microvolt = <1800000>;142      clocks = <&clock1>;143      startup-delay-us = <70000>;144      enable-active-high;145      regulator-boot-on;146      vin-supply = <&parent_reg>;147    };148    reg_1v8_domain: regulator-1v8-domain {149      compatible = "regulator-fixed-domain";150      regulator-name = "1v8";151      regulator-min-microvolt = <1800000>;152      regulator-max-microvolt = <1800000>;153      power-domains = <&domain1>;154      required-opps = <&domain1_state1>;155      startup-delay-us = <70000>;156      enable-active-high;157      regulator-boot-on;158      vin-supply = <&parent_reg>;159    };160...161