ROHM BD71847 and BD71850 Power Management Integrated Circuit regulators
Schema identifier ($id): "http://devicetree.org/schemas/regulator/rohm,bd71847-regulator.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Matti Vaittinen <mazziesaccount@gmail.com>"
List of regulators provided by this controller. BD71847 regulators node should be sub node of the BD71847 MFD node. See BD71847 MFD bindings at Documentation/devicetree/bindings/mfd/rohm,bd71847-pmic.yaml Regulator nodes should be named to BUCK_<number> and LDO_<number>. The definition for each of these nodes is defined using the standard binding for regulators at Documentation/devicetree/bindings/regulator/regulator.txt. Note that if BD71847 starts at RUN state you probably want to use regulator-boot-on at least for BUCK5. LDO6 is supplied by it and it must not be disabled by driver at startup. If BUCK5 is disabled at startup the voltage monitoring for LDO5/LDO6 can cause PMIC to reset.
Properties matching a name pattern (patternProperties) #
^LDO[1-6]$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): regulator.yaml#
Properties for single LDO regulator.
Properties and child nodes (properties) #
regulator-name — not listed as required here
String pattern (pattern): "^ldo[1-6]$"
should be "ldo1", ..., "ldo6"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
^BUCK[1-6]$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): regulator.yaml#
Properties for single BUCK regulator.
Properties and child nodes (properties) #
regulator-name — required here
String pattern (pattern): "^buck[1-6]$"
should be "buck1", ..., "buck6"
rohm,dvs-run-voltage — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 1300000
PMIC default "RUN" state voltage in uV. See below table for bucks which support this. 0 means disabled.
rohm,dvs-idle-voltage — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 1300000
PMIC default "IDLE" state voltage in uV. See below table for bucks which support this. 0 means disabled.
rohm,dvs-suspend-voltage — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 1300000
PMIC default "SUSPEND" state voltage in uV. See below table for bucks which support this. 0 means disabled.
rohm,no-regulator-enable-control — not listed as required here
Enable/Disable control of this regulator must be left to the PMIC hardware state machine.
Value type (type): "boolean"
rohm,fb-pull-up-microvolt — not listed as required here
Feedback-pin has pull-up connection to adjust voltage range. This is the used pull-up voltage before R1.
rohm,feedback-pull-up-r1-ohms — not listed as required here
Feedback-pin has pull-up connection to adjust voltage range. This is the used R1 resistor.
rohm,feedback-pull-up-r2-ohms — not listed as required here
Feedback-pin has pull-up connection to adjust voltage range. This is the used R2 resistor.
Required in this object (required): "regulator-name"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Line 25: The valid names for BD71847 regulator nodes are:
Line 26: BUCK1, BUCK2, BUCK3, BUCK4, BUCK5, BUCK6
Line 27: LDO1, LDO2, LDO3, LDO4, LDO5, LDO6
Line 80: Supported default DVS states:
Line 81:
Line 82: BD71847:
Line 83: buck | dvs-run-voltage | dvs-idle-voltage | dvs-suspend-voltage
Line 84: ----------------------------------------------------------------
Line 85: 1 | supported | supported | supported
Line 86: ----------------------------------------------------------------
Line 87: 2 | supported | supported | not supported
Line 88: ----------------------------------------------------------------
Line 89: rest | not supported | not supported | not supported
Line 91: BD718(47/50) power outputs can either be controlled by the PMIC internal
Line 92: hardware state machine or by software. If you need regulators to be
Line 93: turned ON/OFF for example based on PMIC_STBY_REQ line (which toggles
Line 94: PMIC HW state machine) - then you should set this property.
Line 95: Tradeoff is that then SW can't control the ON/OFF state for this
Line 96: regulator (other than invoking a PMIC state change).
Line 103: Setups where regulator (especially the buck8) output voltage is scaled
Line 104: by adding external connection where some other regulator output is
Line 105: connected to feedback-pin (over suitable resistors) is getting popular
Line 106: amongst users of BD71837. (This allows for example scaling down the
Line 107: buck8 voltages to suit lover GPU voltages for projects where buck8 is
Line 108: (ab)used to supply power for GPU.
Line 109:
Line 110: So we allow describing this external connection from DT and scale the
Line 111: voltages accordingly. This is what the connection should look like:
Line 112:
Line 113: |---------------|
Line 114: | buck 8 |-------+----->Vout
Line 115: | | |
Line 116: |---------------| |
Line 117: | |
Line 118: | |
Line 119: +-------+--R2----+
Line 120: |
Line 121: R1
Line 122: |
Line 123: V FB-pull-up
Line 124:
Line 125: Here the buck output is sifted according to formula:
Line 126:
Line 127: Vout_o = Vo - (Vpu - Vo)*R2/R1
Line 128: Linear_step = step_orig*(R1+R2)/R1
Line 129:
Line 130: where:
Line 131: Vout_o is adjusted voltage output at vsel reg value 0
Line 132: Vo is original voltage output at vsel reg value 0
Line 133: Vpu is the pull-up voltage V FB-pull-up in the picture
Line 134: R1 and R2 are resistor values.