1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0 2c66ec88fSEmmanuel Vadot%YAML 1.2 3c66ec88fSEmmanuel Vadot--- 4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/regulator/fixed-regulator.yaml# 5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6c66ec88fSEmmanuel Vadot 7c66ec88fSEmmanuel Vadottitle: Fixed Voltage regulators 8c66ec88fSEmmanuel Vadot 9c66ec88fSEmmanuel Vadotmaintainers: 10c66ec88fSEmmanuel Vadot - Liam Girdwood <lgirdwood@gmail.com> 11c66ec88fSEmmanuel Vadot - Mark Brown <broonie@kernel.org> 12c66ec88fSEmmanuel Vadot 13c66ec88fSEmmanuel Vadotdescription: 14c66ec88fSEmmanuel Vadot Any property defined as part of the core regulator binding, defined in 15c66ec88fSEmmanuel Vadot regulator.yaml, can also be used. However a fixed voltage regulator is 16c66ec88fSEmmanuel Vadot expected to have the regulator-min-microvolt and regulator-max-microvolt 17c66ec88fSEmmanuel Vadot to be the same. 18c66ec88fSEmmanuel Vadot 19c66ec88fSEmmanuel VadotallOf: 20fac71e4eSEmmanuel Vadot - $ref: regulator.yaml# 21c9ccf3a3SEmmanuel Vadot - if: 22c66ec88fSEmmanuel Vadot properties: 23c66ec88fSEmmanuel Vadot compatible: 24c66ec88fSEmmanuel Vadot contains: 25c66ec88fSEmmanuel Vadot const: regulator-fixed-clock 26c9ccf3a3SEmmanuel Vadot then: 27c66ec88fSEmmanuel Vadot required: 28c66ec88fSEmmanuel Vadot - clocks 29c9ccf3a3SEmmanuel Vadot - if: 305def4c47SEmmanuel Vadot properties: 315def4c47SEmmanuel Vadot compatible: 325def4c47SEmmanuel Vadot contains: 335def4c47SEmmanuel Vadot const: regulator-fixed-domain 34c9ccf3a3SEmmanuel Vadot then: 355def4c47SEmmanuel Vadot required: 365def4c47SEmmanuel Vadot - power-domains 375def4c47SEmmanuel Vadot - required-opps 38cb7aa33aSEmmanuel Vadot - not: 39cb7aa33aSEmmanuel Vadot required: 40cb7aa33aSEmmanuel Vadot - gpio 41cb7aa33aSEmmanuel Vadot - gpios 42c66ec88fSEmmanuel Vadot 43c66ec88fSEmmanuel Vadotproperties: 44*7d0873ebSEmmanuel Vadot $nodename: 45*7d0873ebSEmmanuel Vadot anyOf: 46*7d0873ebSEmmanuel Vadot - description: Preferred name is 'regulator-[0-9]v[0-9]' 47*7d0873ebSEmmanuel Vadot pattern: '^regulator(-[0-9]+v[0-9]+|-[0-9a-z-]+)?$' 48*7d0873ebSEmmanuel Vadot - description: Any name allowed 49*7d0873ebSEmmanuel Vadot deprecated: true 50*7d0873ebSEmmanuel Vadot 51c66ec88fSEmmanuel Vadot compatible: 52c66ec88fSEmmanuel Vadot enum: 53c66ec88fSEmmanuel Vadot - regulator-fixed 54c66ec88fSEmmanuel Vadot - regulator-fixed-clock 555def4c47SEmmanuel Vadot - regulator-fixed-domain 56c66ec88fSEmmanuel Vadot 57c66ec88fSEmmanuel Vadot regulator-name: true 58c66ec88fSEmmanuel Vadot 59c66ec88fSEmmanuel Vadot gpio: 60c66ec88fSEmmanuel Vadot description: gpio to use for enable control 61c66ec88fSEmmanuel Vadot maxItems: 1 62c66ec88fSEmmanuel Vadot 63cb7aa33aSEmmanuel Vadot gpios: 64cb7aa33aSEmmanuel Vadot maxItems: 1 65cb7aa33aSEmmanuel Vadot 66c66ec88fSEmmanuel Vadot clocks: 67c66ec88fSEmmanuel Vadot description: 68c66ec88fSEmmanuel Vadot clock to use for enable control. This binding is only available if 69c66ec88fSEmmanuel Vadot the compatible is chosen to regulator-fixed-clock. The clock binding 70c66ec88fSEmmanuel Vadot is mandatory if compatible is chosen to regulator-fixed-clock. 71c66ec88fSEmmanuel Vadot maxItems: 1 72c66ec88fSEmmanuel Vadot 735def4c47SEmmanuel Vadot power-domains: 745956d97fSEmmanuel Vadot deprecated: true 755def4c47SEmmanuel Vadot description: 765def4c47SEmmanuel Vadot Power domain to use for enable control. This binding is only 775def4c47SEmmanuel Vadot available if the compatible is chosen to regulator-fixed-domain. 785def4c47SEmmanuel Vadot maxItems: 1 795def4c47SEmmanuel Vadot 805def4c47SEmmanuel Vadot required-opps: 815956d97fSEmmanuel Vadot deprecated: true 825def4c47SEmmanuel Vadot description: 835def4c47SEmmanuel Vadot Performance state to use for enable control. This binding is only 845def4c47SEmmanuel Vadot available if the compatible is chosen to regulator-fixed-domain. The 855def4c47SEmmanuel Vadot power-domain binding is mandatory if compatible is chosen to 865def4c47SEmmanuel Vadot regulator-fixed-domain. 875def4c47SEmmanuel Vadot maxItems: 1 885def4c47SEmmanuel Vadot 89c66ec88fSEmmanuel Vadot startup-delay-us: 90c66ec88fSEmmanuel Vadot description: startup time in microseconds 91c66ec88fSEmmanuel Vadot 92c66ec88fSEmmanuel Vadot off-on-delay-us: 93c66ec88fSEmmanuel Vadot description: off delay time in microseconds 94c66ec88fSEmmanuel Vadot 95c66ec88fSEmmanuel Vadot enable-active-high: 96c66ec88fSEmmanuel Vadot description: 97c66ec88fSEmmanuel Vadot Polarity of GPIO is Active high. If this property is missing, 98c66ec88fSEmmanuel Vadot the default assumed is Active low. 99c66ec88fSEmmanuel Vadot type: boolean 100c66ec88fSEmmanuel Vadot 101c66ec88fSEmmanuel Vadot gpio-open-drain: 102c66ec88fSEmmanuel Vadot description: 103c66ec88fSEmmanuel Vadot GPIO is open drain type. If this property is missing then default 104c66ec88fSEmmanuel Vadot assumption is false. 105c66ec88fSEmmanuel Vadot type: boolean 106c66ec88fSEmmanuel Vadot 107c66ec88fSEmmanuel Vadot vin-supply: 108c66ec88fSEmmanuel Vadot description: Input supply phandle. 109c66ec88fSEmmanuel Vadot 11084943d6fSEmmanuel Vadot interrupts: 11184943d6fSEmmanuel Vadot maxItems: 1 11284943d6fSEmmanuel Vadot description: 11384943d6fSEmmanuel Vadot Interrupt signaling a critical under-voltage event. 11484943d6fSEmmanuel Vadot 1158d13bc63SEmmanuel Vadot system-critical-regulator: true 1168d13bc63SEmmanuel Vadot 117c66ec88fSEmmanuel Vadotrequired: 118c66ec88fSEmmanuel Vadot - compatible 119c66ec88fSEmmanuel Vadot - regulator-name 120c66ec88fSEmmanuel Vadot 1216be33864SEmmanuel VadotunevaluatedProperties: false 1226be33864SEmmanuel Vadot 123c66ec88fSEmmanuel Vadotexamples: 124c66ec88fSEmmanuel Vadot - | 125c66ec88fSEmmanuel Vadot reg_1v8: regulator-1v8 { 126c66ec88fSEmmanuel Vadot compatible = "regulator-fixed"; 127c66ec88fSEmmanuel Vadot regulator-name = "1v8"; 128c66ec88fSEmmanuel Vadot regulator-min-microvolt = <1800000>; 129c66ec88fSEmmanuel Vadot regulator-max-microvolt = <1800000>; 130c66ec88fSEmmanuel Vadot gpio = <&gpio1 16 0>; 131c66ec88fSEmmanuel Vadot startup-delay-us = <70000>; 132c66ec88fSEmmanuel Vadot enable-active-high; 133c66ec88fSEmmanuel Vadot regulator-boot-on; 134c66ec88fSEmmanuel Vadot gpio-open-drain; 135c66ec88fSEmmanuel Vadot vin-supply = <&parent_reg>; 136c66ec88fSEmmanuel Vadot }; 1375def4c47SEmmanuel Vadot reg_1v8_clk: regulator-1v8-clk { 1385def4c47SEmmanuel Vadot compatible = "regulator-fixed-clock"; 1395def4c47SEmmanuel Vadot regulator-name = "1v8"; 1405def4c47SEmmanuel Vadot regulator-min-microvolt = <1800000>; 1415def4c47SEmmanuel Vadot regulator-max-microvolt = <1800000>; 1425def4c47SEmmanuel Vadot clocks = <&clock1>; 1435def4c47SEmmanuel Vadot startup-delay-us = <70000>; 1445def4c47SEmmanuel Vadot enable-active-high; 1455def4c47SEmmanuel Vadot regulator-boot-on; 1465def4c47SEmmanuel Vadot vin-supply = <&parent_reg>; 1475def4c47SEmmanuel Vadot }; 1485def4c47SEmmanuel Vadot reg_1v8_domain: regulator-1v8-domain { 1495def4c47SEmmanuel Vadot compatible = "regulator-fixed-domain"; 1505def4c47SEmmanuel Vadot regulator-name = "1v8"; 1515def4c47SEmmanuel Vadot regulator-min-microvolt = <1800000>; 1525def4c47SEmmanuel Vadot regulator-max-microvolt = <1800000>; 1535def4c47SEmmanuel Vadot power-domains = <&domain1>; 1545def4c47SEmmanuel Vadot required-opps = <&domain1_state1>; 1555def4c47SEmmanuel Vadot startup-delay-us = <70000>; 1565def4c47SEmmanuel Vadot enable-active-high; 1575def4c47SEmmanuel Vadot regulator-boot-on; 1585def4c47SEmmanuel Vadot vin-supply = <&parent_reg>; 1595def4c47SEmmanuel Vadot }; 160c66ec88fSEmmanuel Vadot... 161