Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: mfd: Add ROHM BD96802 PMIC

BD96802Qxx-C is an automotive grade configurable Power Management
Integrated Circuit supporting Functional Safety features for application
processors, SoCs and FPGAs. BD96802 is controlled via I2C, provides two
interrupt lines and has two controllable buck regulators.

Signed-off-by: Matti Vaittinen <mazziesaccount@gmail.com>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/ed55edffca3b0a2d7e8bcd9ebd8d8abd9a9b7dfe.1744090658.git.mazziesaccount@gmail.com
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Matti Vaittinen and committed by
Lee Jones
9d851b2e 9effbfda

+98
+98
Documentation/devicetree/bindings/mfd/rohm,bd96802-pmic.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/mfd/rohm,bd96802-pmic.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: ROHM BD96802 Scalable Power Management Integrated Circuit 8 + 9 + maintainers: 10 + - Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com> 11 + 12 + description: | 13 + BD96802Qxx-C is an automotive grade configurable Power Management 14 + Integrated Circuit supporting Functional Safety features for application 15 + processors, SoCs and FPGAs 16 + 17 + properties: 18 + compatible: 19 + const: rohm,bd96802 20 + 21 + reg: 22 + maxItems: 1 23 + 24 + interrupts: 25 + description: 26 + The PMIC provides intb and errb IRQ lines. The errb IRQ line is used 27 + for fatal IRQs which will cause the PMIC to shut down power outputs. 28 + In many systems this will shut down the SoC contolling the PMIC and 29 + connecting/handling the errb can be omitted. However, there are cases 30 + where the SoC is not powered by the PMIC. In that case it may be 31 + useful to connect the errb and handle errb events. 32 + minItems: 1 33 + maxItems: 2 34 + 35 + interrupt-names: 36 + minItems: 1 37 + items: 38 + - enum: [intb, errb] 39 + - const: errb 40 + 41 + regulators: 42 + $ref: ../regulator/rohm,bd96802-regulator.yaml 43 + description: 44 + List of child nodes that specify the regulators. 45 + 46 + required: 47 + - compatible 48 + - reg 49 + - interrupts 50 + - interrupt-names 51 + - regulators 52 + 53 + additionalProperties: false 54 + 55 + examples: 56 + - | 57 + #include <dt-bindings/interrupt-controller/irq.h> 58 + #include <dt-bindings/leds/common.h> 59 + i2c { 60 + #address-cells = <1>; 61 + #size-cells = <0>; 62 + pmic: pmic@62 { 63 + reg = <0x62>; 64 + compatible = "rohm,bd96802"; 65 + interrupt-parent = <&gpio1>; 66 + interrupts = <29 IRQ_TYPE_LEVEL_LOW>, <6 IRQ_TYPE_LEVEL_LOW>; 67 + interrupt-names = "intb", "errb"; 68 + 69 + regulators { 70 + buck1 { 71 + regulator-name = "buck1"; 72 + regulator-ramp-delay = <1250>; 73 + /* 0.5V min INITIAL - 150 mV tune */ 74 + regulator-min-microvolt = <350000>; 75 + /* 3.3V + 150mV tune */ 76 + regulator-max-microvolt = <3450000>; 77 + 78 + /* These can be set only when PMIC is in STBY */ 79 + rohm,initial-voltage-microvolt = <500000>; 80 + regulator-ov-error-microvolt = <230000>; 81 + regulator-uv-error-microvolt = <230000>; 82 + regulator-temp-protection-kelvin = <1>; 83 + regulator-temp-warn-kelvin = <0>; 84 + }; 85 + buck2 { 86 + regulator-name = "buck2"; 87 + regulator-min-microvolt = <350000>; 88 + regulator-max-microvolt = <3450000>; 89 + 90 + rohm,initial-voltage-microvolt = <3000000>; 91 + regulator-ov-error-microvolt = <18000>; 92 + regulator-uv-error-microvolt = <18000>; 93 + regulator-temp-protection-kelvin = <1>; 94 + regulator-temp-warn-kelvin = <1>; 95 + }; 96 + }; 97 + }; 98 + };