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 samsung,s2mpg11-pmic

The Samsung S2MPG11 PMIC is similar to the existing S2MPG10 PMIC
supported by this binding, but still differs enough from it to justify
a separate binding.

It is a Power Management IC for mobile applications with buck
converters, various LDOs, power meters, NTC thermistor inputs, and
additional GPIO interfaces and typically complements an S2MPG10 PMIC in
a main/sub configuration as the sub-PMIC.

Like S2MPG10, communication is via the Samsung ACPM firmware and it
therefore needs to be a child of the ACPM firmware node.

Add the PMIC, the regulators node, and the supply inputs of the
regulator rails, with the supply names matching the datasheet.

Note: S2MPG11 is typically used as the sub-PMIC together with an
S2MPG10 PMIC in a main/sub configuration, hence the datasheet and the
binding both suffix the supplies with an 's'.

Signed-off-by: André Draszik <andre.draszik@linaro.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://patch.msgid.link/20260122-s2mpg1x-regulators-v7-6-3b1f9831fffd@linaro.org
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

André Draszik and committed by
Lee Jones
bfacd34f b356595f

+88
+88
Documentation/devicetree/bindings/mfd/samsung,s2mpg11-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/samsung,s2mpg11-pmic.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Samsung S2MPG11 Power Management IC 8 + 9 + maintainers: 10 + - André Draszik <andre.draszik@linaro.org> 11 + 12 + description: | 13 + This is part of the device tree bindings for the S2MPG11 Power Management IC 14 + (PMIC). 15 + 16 + The Samsung S2MPG11 is a Power Management IC for mobile applications with buck 17 + converters, various LDOs, power meters, NTC thermistor inputs, and additional 18 + GPIO interfaces and typically complements an S2MPG10 PMIC in a main/sub 19 + configuration as the sub-PMIC. 20 + 21 + properties: 22 + compatible: 23 + const: samsung,s2mpg11-pmic 24 + 25 + interrupts: 26 + maxItems: 1 27 + 28 + regulators: 29 + type: object 30 + $ref: /schemas/regulator/samsung,s2mpg11-regulator.yaml 31 + description: 32 + List of child nodes that specify the regulators. 33 + 34 + wakeup-source: true 35 + 36 + patternProperties: 37 + "^vinb(([1-9]|10)s|[abd])-supply$": 38 + description: 39 + Phandle to the power supply for each buck rail of this PMIC. There is a 40 + 1:1 mapping of numbered supply to rail, e.g. vinb1s-supply supplies 41 + buck1s. The remaining mapping is as follows 42 + vinba - bucka 43 + vinbb - buck boost 44 + vinbd - buckd 45 + 46 + "^vinl[1-6]s-supply$": 47 + description: | 48 + Phandle to the power supply for one or multiple LDO rails of this PMIC. 49 + The mapping of supply to rail(s) is as follows 50 + vinl1s - ldo1s, ldo2s 51 + vinl2s - ldo8s, ldo9s 52 + vinl3s - ldo3s, ldo5s, ldo7s, ldo15s 53 + vinl4s - ldo10s, ldo11s, ldo12s, ldo14s 54 + vinl5s - ldo4s, ldo6s 55 + vinl6s - ldo13s 56 + 57 + required: 58 + - compatible 59 + - interrupts 60 + - regulators 61 + 62 + additionalProperties: false 63 + 64 + examples: 65 + - | 66 + #include <dt-bindings/gpio/gpio.h> 67 + #include <dt-bindings/interrupt-controller/irq.h> 68 + #include <dt-bindings/regulator/samsung,s2mpg10-regulator.h> 69 + 70 + pmic { 71 + compatible = "samsung,s2mpg11-pmic"; 72 + interrupts-extended = <&gpa0 7 IRQ_TYPE_LEVEL_LOW>; 73 + pinctrl-names = "default"; 74 + pinctrl-0 = <&pmic_int>; 75 + wakeup-source; 76 + 77 + vinl1s-supply = <&buck8m>; 78 + vinl2s-supply = <&buck6s>; 79 + 80 + regulators { 81 + buckd { 82 + regulator-name = "vcc_ufs"; 83 + regulator-ramp-delay = <6250>; 84 + enable-gpios = <&gpp0 1 GPIO_ACTIVE_HIGH>; 85 + samsung,ext-control = <S2MPG11_EXTCTRL_UFS_EN>; 86 + }; 87 + }; 88 + };