alif,phy-regulator

Description

Alif PHY power switches

PHY power switches controlled by the PWR_CTRL register in the Alif
VBAT register block. Each child node describes one switch,
controlled by the two PWR_CTRL bits starting at its en-offset.

The driver recognizes children by node name:

- mipi-tx-dphy, mipi-rx-dphy, mipi-pll-dphy and usb-phy: the bit at
  en-offset masks the PHY power and the bit at en-offset + 1 enables
  isolation. Enabling clears both bits, disabling sets the isolation
  bit.
- ldo-phy: the MIPI D-PHY 1.8 V supply. The bit at en-offset is the
  bypass enable and the bit at en-offset + 1 is the bypass value.
  Enabling clears both bits, so the supply follows the PD-6 power
  state. Disabling enables bypass with a value of 0, which forces the
  supply off.

Examples

regulator@1a609008 {
  compatible = "alif,phy-regulator";
  reg = <0x1a609008 0x4>;

  mipi-rx-dphy {
    en-offset = <4>;
  };

  ldo-phy {
    en-offset = <12>;
  };
};

Properties

Top level properties

These property descriptions apply to “alif,phy-regulator” nodes themselves. This page also describes child node properties in the following sections.

Properties not inherited from the base binding file.

(None)

Child node properties

Name

Type

Details

en-offset

int

Bit offset within PWR_CTRL of the first of the two control bits
for this power switch.

This property is required.

regulator-name

string

A string used as a descriptive name for regulator outputs

regulator-always-on

boolean

boolean, regulator should never be disabled

regulator-boot-on

boolean

bootloader/firmware enabled regulator.
It's expected that this regulator was left on by the bootloader.
If the bootloader didn't leave it on then OS should turn it on
at boot but shouldn't prevent it from being turned off later.
This property is intended to only be used for regulators where
software cannot read the state of the regulator.

regulator-boot-off

boolean

Regulator should be disabled on boot.