Skip to content

Commit

Permalink
Merge branch 'regulator-5.4' into regulator-next
Browse files Browse the repository at this point in the history
  • Loading branch information
broonie committed Sep 11, 2019
2 parents d440c4e + c82f27d commit c4ad850
Show file tree
Hide file tree
Showing 35 changed files with 2,024 additions and 82 deletions.
27 changes: 25 additions & 2 deletions Documentation/devicetree/bindings/regulator/act8865-regulator.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ Optional input supply properties:
- inl67-supply: The input supply for LDO_REG3 and LDO_REG4

Any standard regulator properties can be used to configure the single regulator.
regulator-initial-mode, regulator-allowed-modes and regulator-mode could be specified
for act8865 using mode values from dt-bindings/regulator/active-semi,8865-regulator.h
file.

The valid names for regulators are:
- for act8846:
Expand All @@ -47,6 +50,8 @@ The valid names for regulators are:
Example:
--------

#include <dt-bindings/regulator/active-semi,8865-regulator.h>

i2c1: i2c@f0018000 {
pmic: act8865@5b {
compatible = "active-semi,act8865";
Expand All @@ -65,9 +70,19 @@ Example:
regulator-name = "VCC_1V2";
regulator-min-microvolt = <1100000>;
regulator-max-microvolt = <1300000>;
regulator-suspend-mem-microvolt = <1150000>;
regulator-suspend-standby-microvolt = <1150000>;
regulator-always-on;

regulator-allowed-modes = <ACT8865_REGULATOR_MODE_FIXED>,
<ACT8865_REGULATOR_MODE_LOWPOWER>;
regulator-initial-mode = <ACT8865_REGULATOR_MODE_FIXED>;

regulator-state-mem {
regulator-on-in-suspend;
regulator-suspend-min-microvolt = <1150000>;
regulator-suspend-max-microvolt = <1150000>;
regulator-changeable-in-suspend;
regulator-mode = <ACT8865_REGULATOR_MODE_LOWPOWER>;
};
};

vcc_3v3_reg: DCDC_REG3 {
Expand All @@ -82,6 +97,14 @@ Example:
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-always-on;

regulator-allowed-modes = <ACT8865_REGULATOR_MODE_NORMAL>,
<ACT8865_REGULATOR_MODE_LOWPOWER>;
regulator-initial-mode = <ACT8865_REGULATOR_MODE_NORMAL>;

regulator-state-mem {
regulator-off-in-suspend;
};
};

vddfuse_reg: LDO_REG2 {
Expand Down
19 changes: 18 additions & 1 deletion Documentation/devicetree/bindings/regulator/fixed-regulator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,33 @@ description:
allOf:
- $ref: "regulator.yaml#"

if:
properties:
compatible:
contains:
const: regulator-fixed-clock
required:
- clocks

properties:
compatible:
const: regulator-fixed
enum:
- const: regulator-fixed
- const: regulator-fixed-clock

regulator-name: true

gpio:
description: gpio to use for enable control
maxItems: 1

clocks:
description:
clock to use for enable control. This binding is only available if
the compatible is chosen to regulator-fixed-clock. The clock binding
is mandatory if compatible is chosen to regulator-fixed-clock.
maxItems: 1

startup-delay-us:
description: startup time in microseconds
$ref: /schemas/types.yaml#/definitions/uint32
Expand Down
Loading

0 comments on commit c4ad850

Please sign in to comment.