regulator: dt-bindings: maxim,max8907: for Mark
Subsystems (2)
cover regulator: dt-bindings: maxim,max8907: for Mark
All changes which should be picked into regulator subsystem collected across all my patches for MAX8907.
Svyatoslav Ryhel (3):
regulator: dt-bindings: maxim,max8907: Convert to DT schema
regulator: dt-bindings: maxim,max8907: Document LED support
regulator: dt-bindings: maxim,max8907: Document io-channel-cells
property
.../devicetree/bindings/regulator/max8907.txt | 69 ----- .../bindings/regulator/maxim,max8907.yaml | 290 ++++++++++++++++++ 2 files changed, 290 insertions(+), 69 deletions(-) delete mode 100644 Documentation/devicetree/bindings/regulator/max8907.txt create mode 100644 Documentation/devicetree/bindings/regulator/maxim,max8907.yaml
Signature · 1 line
2.53.0
PATCH 1/3 regulator: dt-bindings: maxim,max8907: Convert to DT schema
Convert Maxim MAX8907 regulator binding from text to DT schema. Reference to nvidia,tegra-regulators-coupling in child regulator nodes.
--- .../devicetree/bindings/regulator/max8907.txt | 69 ----- .../bindings/regulator/maxim,max8907.yaml | 283 ++++++++++++++++++ 2 files changed, 283 insertions(+), 69 deletions(-) delete mode 100644 Documentation/devicetree/bindings/regulator/max8907.txt create mode 100644 Documentation/devicetree/bindings/regulator/maxim,max8907.yaml
Documentation/devicetree/bindings/regulator/max8907.txt deleted +0 -69
@@ -1,69 +0,0 @@ -MAX8907 regulator - -Required properties: -- compatible: "maxim,max8907" -- reg: I2C slave address -- interrupts: The interrupt output of the controller -- mbatt-supply: The input supply for MBATT, BBAT, SDBY, VRTC. -- in-v1-supply: The input supply for SD1. -- in-v2-supply: The input supply for SD2. -- in-v3-supply: The input supply for SD3. -- in1-supply: The input supply for LDO1. -... -- in20-supply: The input supply for LDO20. -- regulators: A node that houses a sub-node for each regulator within the - device. Each sub-node is identified using the node's name (or the deprecated - regulator-compatible property if present), with valid values listed below. - The content of each sub-node is defined by the standard binding for - regulators; see regulator.txt. - -Optional properties: -- maxim,system-power-controller: Boolean property indicating that the PMIC - controls the overall system power. - -The valid names for regulators are: - - sd1, sd2, sd3, ldo1, ldo2, ldo3, ldo4, ldo5, ldo6, ldo7, ldo8, ldo9, ldo10, - ldo11, ldo12, ldo13, ldo14, ldo15, ldo16, ldo17, ldo18, ldo19, ldo20, out5v, - out33v, bbat, sdby, vrtc. - -Example: - - max8907@3c { - compatible = "maxim,max8907"; - reg = <0x3c>; - interrupts = <0 86 0x4>; - - maxim,system-power-controller; - - mbatt-supply = <&some_reg>; - in-v1-supply = <&mbatt_reg>; - ... - in1-supply = <&mbatt_reg>; - ... - - regulators { - mbatt_reg: mbatt { - regulator-name = "vbat_pmu"; - regulator-min-microvolt = <5000000>; - regulator-max-microvolt = <5000000>; - regulator-always-on; - }; - - sd1 { - regulator-name = "nvvdd_sv1,vdd_cpu_pmu"; - regulator-min-microvolt = <1000000>; - regulator-max-microvolt = <1000000>; - regulator-always-on; - }; - - sd2 { - regulator-name = "nvvdd_sv2,vdd_core"; - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <1200000>; - regulator-always-on; - }; -... - }; - }; - };
Documentation/devicetree/bindings/regulator/maxim,max8907.yaml new file +283 -0
283 lines not on this page · raw message
Signature · 1 line
2.53.0
PATCH 2/3 regulator: dt-bindings: maxim,max8907: Document LED support
In reply to Svyatoslav RyhelThe Maxim MAX8907 PMIC supports a single LED; document it.
--- .../devicetree/bindings/regulator/maxim,max8907.yaml | 4 ++++ 1 file changed, 4 insertions(+)
Documentation/devicetree/bindings/regulator/maxim,max8907.yaml +4 -0
@@ -31,6 +31,10 @@ properties: description: The input supply for MBATT, BBAT, SDBY, VRTC. + led: + $ref: /schemas/leds/common.yaml# + unevaluatedProperties: false + regulators: type: object additionalProperties: false
Signature · 1 line
2.53.0
PATCH 3/3 regulator: dt-bindings: maxim,max8907: Document io-channel-cells property
In reply to Svyatoslav RyhelThe Maxim MAX8907 has a built-in 8-channel ADC. It does not require any Device Tree-based configuration and is folded into the main PMIC node. Document the io-channel-cells property in PMIC's node to be able to request channel data in the Device Tree using the phandle of the PMIC.
--- Documentation/devicetree/bindings/regulator/maxim,max8907.yaml | 3 +++ 1 file changed, 3 insertions(+)
Documentation/devicetree/bindings/regulator/maxim,max8907.yaml +3 -0
@@ -27,6 +27,9 @@ properties: system-power-controller: true + "#io-channel-cells": + const: 1 + mbatt-supply: description: The input supply for MBATT, BBAT, SDBY, VRTC.
Signature · 1 line
2.53.0