18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
28c2ecf20Sopenharmony_ci%YAML 1.2
38c2ecf20Sopenharmony_ci---
48c2ecf20Sopenharmony_ci$id: http://devicetree.org/schemas/regulator/anatop-regulator.yaml#
58c2ecf20Sopenharmony_ci$schema: http://devicetree.org/meta-schemas/core.yaml#
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_cititle: Freescale Anatop Voltage Regulators
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_cimaintainers:
108c2ecf20Sopenharmony_ci  - Ying-Chun Liu (PaulLiu) <paul.liu@linaro.org>
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ciallOf:
138c2ecf20Sopenharmony_ci  - $ref: "regulator.yaml#"
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ciproperties:
168c2ecf20Sopenharmony_ci  compatible:
178c2ecf20Sopenharmony_ci    const: fsl,anatop-regulator
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ci  regulator-name: true
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ci  anatop-reg-offset:
228c2ecf20Sopenharmony_ci    $ref: '/schemas/types.yaml#/definitions/uint32'
238c2ecf20Sopenharmony_ci    description: u32 value representing the anatop MFD register offset.
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ci  anatop-vol-bit-shift:
268c2ecf20Sopenharmony_ci    $ref: '/schemas/types.yaml#/definitions/uint32'
278c2ecf20Sopenharmony_ci    description: u32 value representing the bit shift for the register.
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_ci  anatop-vol-bit-width:
308c2ecf20Sopenharmony_ci    $ref: '/schemas/types.yaml#/definitions/uint32'
318c2ecf20Sopenharmony_ci    description: u32 value representing the number of bits used in the register.
328c2ecf20Sopenharmony_ci
338c2ecf20Sopenharmony_ci  anatop-min-bit-val:
348c2ecf20Sopenharmony_ci    $ref: '/schemas/types.yaml#/definitions/uint32'
358c2ecf20Sopenharmony_ci    description: u32 value representing the minimum value of this register.
368c2ecf20Sopenharmony_ci
378c2ecf20Sopenharmony_ci  anatop-min-voltage:
388c2ecf20Sopenharmony_ci    $ref: '/schemas/types.yaml#/definitions/uint32'
398c2ecf20Sopenharmony_ci    description: u32 value representing the minimum voltage of this regulator.
408c2ecf20Sopenharmony_ci
418c2ecf20Sopenharmony_ci  anatop-max-voltage:
428c2ecf20Sopenharmony_ci    $ref: '/schemas/types.yaml#/definitions/uint32'
438c2ecf20Sopenharmony_ci    description: u32 value representing the maximum voltage of this regulator.
448c2ecf20Sopenharmony_ci
458c2ecf20Sopenharmony_ci  anatop-delay-reg-offset:
468c2ecf20Sopenharmony_ci    $ref: '/schemas/types.yaml#/definitions/uint32'
478c2ecf20Sopenharmony_ci    description: u32 value representing the anatop MFD step time register offset.
488c2ecf20Sopenharmony_ci
498c2ecf20Sopenharmony_ci  anatop-delay-bit-shift:
508c2ecf20Sopenharmony_ci    $ref: '/schemas/types.yaml#/definitions/uint32'
518c2ecf20Sopenharmony_ci    description: u32 value representing the bit shift for the step time register.
528c2ecf20Sopenharmony_ci
538c2ecf20Sopenharmony_ci  anatop-delay-bit-width:
548c2ecf20Sopenharmony_ci    $ref: '/schemas/types.yaml#/definitions/uint32'
558c2ecf20Sopenharmony_ci    description: u32 value representing the number of bits used in the step time register.
568c2ecf20Sopenharmony_ci
578c2ecf20Sopenharmony_ci  anatop-enable-bit:
588c2ecf20Sopenharmony_ci    $ref: '/schemas/types.yaml#/definitions/uint32'
598c2ecf20Sopenharmony_ci    description: u32 value representing regulator enable bit offset.
608c2ecf20Sopenharmony_ci
618c2ecf20Sopenharmony_ci  vin-supply:
628c2ecf20Sopenharmony_ci    $ref: '/schemas/types.yaml#/definitions/phandle'
638c2ecf20Sopenharmony_ci    description: input supply phandle.
648c2ecf20Sopenharmony_ci
658c2ecf20Sopenharmony_cirequired:
668c2ecf20Sopenharmony_ci  - compatible
678c2ecf20Sopenharmony_ci  - regulator-name
688c2ecf20Sopenharmony_ci  - anatop-reg-offset
698c2ecf20Sopenharmony_ci  - anatop-vol-bit-shift
708c2ecf20Sopenharmony_ci  - anatop-vol-bit-width
718c2ecf20Sopenharmony_ci  - anatop-min-bit-val
728c2ecf20Sopenharmony_ci  - anatop-min-voltage
738c2ecf20Sopenharmony_ci  - anatop-max-voltage
748c2ecf20Sopenharmony_ci
758c2ecf20Sopenharmony_ciunevaluatedProperties: false
768c2ecf20Sopenharmony_ci
778c2ecf20Sopenharmony_ciexamples:
788c2ecf20Sopenharmony_ci  - |
798c2ecf20Sopenharmony_ci    regulator-vddpu {
808c2ecf20Sopenharmony_ci        compatible = "fsl,anatop-regulator";
818c2ecf20Sopenharmony_ci        regulator-name = "vddpu";
828c2ecf20Sopenharmony_ci        regulator-min-microvolt = <725000>;
838c2ecf20Sopenharmony_ci        regulator-max-microvolt = <1300000>;
848c2ecf20Sopenharmony_ci        regulator-always-on;
858c2ecf20Sopenharmony_ci        anatop-reg-offset = <0x140>;
868c2ecf20Sopenharmony_ci        anatop-vol-bit-shift = <9>;
878c2ecf20Sopenharmony_ci        anatop-vol-bit-width = <5>;
888c2ecf20Sopenharmony_ci        anatop-delay-reg-offset = <0x170>;
898c2ecf20Sopenharmony_ci        anatop-delay-bit-shift = <24>;
908c2ecf20Sopenharmony_ci        anatop-delay-bit-width = <2>;
918c2ecf20Sopenharmony_ci        anatop-min-bit-val = <1>;
928c2ecf20Sopenharmony_ci        anatop-min-voltage = <725000>;
938c2ecf20Sopenharmony_ci        anatop-max-voltage = <1300000>;
948c2ecf20Sopenharmony_ci    };
95