ROHM BD71837 Power Management Integrated Circuit regulators

Schema identifier ($id): "http://devicetree.org/schemas/regulator/rohm,bd71837-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. BD71837 regulators node should be sub node of the BD71837 MFD node. See BD71837 MFD bindings at Documentation/devicetree/bindings/mfd/rohm,bd71837-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 BD71837 starts at RUN state you probably want to use regulator-boot-on at least for BUCK6 and BUCK7 so that those are not disabled by driver at startup. LDO5 and LDO6 are supplied by those and if they are disabled at startup the voltage monitoring for LDO5/LDO6 will cause PMIC to reset.

Properties matching a name pattern (patternProperties) #

^LDO[1-7]$ — 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-7]$"

should be "ldo1", ..., "ldo7"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

^BUCK[1-8]$ — 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-8]$"

should be "buck1", ..., "buck8"

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 26: The valid names for BD71837 regulator nodes are:

Line 27: BUCK1, BUCK2, BUCK3, BUCK4, BUCK5, BUCK6, BUCK7, BUCK8

Line 28: LDO1, LDO2, LDO3, LDO4, LDO5, LDO6, LDO7

Line 81: Supported default DVS states:

Line 82:

Line 83: BD71837:

Line 84: buck | dvs-run-voltage | dvs-idle-voltage | dvs-suspend-voltage

Line 85: ----------------------------------------------------------------

Line 86: 1 | supported | supported | supported

Line 87: ----------------------------------------------------------------

Line 88: 2 | supported | supported | not supported

Line 89: ----------------------------------------------------------------

Line 90: 3 | supported | not supported | not supported

Line 91: ----------------------------------------------------------------

Line 92: 4 | supported | not supported | not supported

Line 93: ----------------------------------------------------------------

Line 94: rest | not supported | not supported | not supported

Line 96: BD71837 power outputs can either be controlled by the PMIC internal

Line 97: hardware state machine or by software. If you need regulators to be

Line 98: turned ON/OFF for example based on PMIC_STBY_REQ line (which toggles

Line 99: PMIC HW state machine) - then you should set this property.

Line 100: Tradeoff is that then SW can't control the ON/OFF state for this

Line 101: regulator (other than invoking a PMIC state change).

Line 108: Setups where regulator (especially the buck8) output voltage is scaled

Line 109: by adding external connection where some other regulator output is

Line 110: connected to feedback-pin (over suitable resistors) is getting popular

Line 111: amongst users of BD71837. (This allows for example scaling down the

Line 112: buck8 voltages to suit lover GPU voltages for projects where buck8 is

Line 113: (ab)used to supply power for GPU.

Line 114:

Line 115: So we allow describing this external connection from DT and scale the

Line 116: voltages accordingly. This is what the connection should look like:

Line 117:

Line 118: |---------------|

Line 119: | buck 8 |-------+----->Vout

Line 120: | | |

Line 121: |---------------| |

Line 122: | |

Line 123: | |

Line 124: +-------+--R2----+

Line 125: |

Line 126: R1

Line 127: |

Line 128: V FB-pull-up

Line 129:

Line 130: Here the buck output is sifted according to formula:

Line 131:

Line 132: Vout_o = Vo - (Vpu - Vo)*R2/R1

Line 133: Linear_step = step_orig*(R1+R2)/R1

Line 134:

Line 135: where:

Line 136: Vout_o is adjusted voltage output at vsel reg value 0

Line 137: Vo is original voltage output at vsel reg value 0

Line 138: Vpu is the pull-up voltage V FB-pull-up in the picture

Line 139: R1 and R2 are resistor values.

Edit this page