ChromeOS EC controlled voltage regulators
Schema identifier ($id): "http://devicetree.org/schemas/regulator/google,cros-ec-regulator.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Pi-Hsun Shih <pihsun@chromium.org>"
Any property defined as part of the core regulator binding, defined in regulator.yaml, can also be used.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):regulator.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "google,cros-ec-regulator"
reg — required here #
Maximum number of items (maxItems): 1
Identifier for the voltage regulator to ChromeOS EC.
Required in this object (required): "compatible", "reg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi {
#address-cells = <1>;
#size-cells = <0>;
cros_ec: ec@0 {
compatible = "google,cros-ec-spi";
reg = <0>;
#address-cells = <1>;
#size-cells = <0>;
interrupts = <99 0>;
regulator@0 {
compatible = "google,cros-ec-regulator";
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <3300000>;
reg = <0>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)