1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2%YAML 1.2 3--- 4$id: http://devicetree.org/schemas/regulator/google,cros-ec-regulator.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: ChromeOS EC controlled voltage regulators 8 9maintainers: 10 - Pi-Hsun Shih <pihsun@chromium.org> 11 12description: 13 Any property defined as part of the core regulator binding, defined in 14 regulator.yaml, can also be used. 15 16allOf: 17 - $ref: regulator.yaml# 18 19properties: 20 compatible: 21 const: google,cros-ec-regulator 22 23 reg: 24 maxItems: 1 25 description: Identifier for the voltage regulator to ChromeOS EC. 26 27 vin-supply: 28 description: Input supply phandle 29 30required: 31 - compatible 32 - reg 33 34unevaluatedProperties: false 35 36examples: 37 - | 38 spi { 39 #address-cells = <1>; 40 #size-cells = <0>; 41 42 cros_ec: ec@0 { 43 compatible = "google,cros-ec-spi"; 44 reg = <0>; 45 #address-cells = <1>; 46 #size-cells = <0>; 47 interrupts = <99 0>; 48 49 regulator@0 { 50 compatible = "google,cros-ec-regulator"; 51 regulator-min-microvolt = <1800000>; 52 regulator-max-microvolt = <3300000>; 53 reg = <0>; 54 vin-supply = <&pp4200_s5>; 55 }; 56 }; 57 }; 58... 59