# Copyright 2023-2024 NXP
# SPDX-License-Identifier: Apache-2.0

description: NXP VREF SOC peripheral

compatible: "nxp,vref"

include:
  - name: base.yaml
  - name: regulator.yaml
    property-allowlist:
      - regulator-name
      - regulator-init-microvolt
      - regulator-min-microvolt
      - regulator-max-microvolt
      - regulator-initial-mode
      - regulator-allowed-modes

properties:
  reg:
    required: true

  nxp,buffer-startup-delay-us:
    type: int
    required: true
    description: |
      Buffer startup delay as specified in the
      appropriate device data sheet, in microseconds.

  nxp,bandgap-startup-time-us:
    type: int
    required: true
    description: |
      Maximum bandgap startup time as specified in the
      appropriate device data sheet, in microseconds.

  nxp,current-compensation-en:
    type: boolean
    description: |
      Enable second-order curvature compensation.
      This must be enabled to achieve the performance stated in the datasheet.
      However, the reset value of the peripheral has it disabled.

  "#nxp,reference-cells":
    type: int
    const: 1
    description: Number of items to expect in a vref specifier.

nxp,reference-cells:
  - vref_mv
