Skip to content

Commit 0f10102

Browse files
ivoszbgbroonie
authored andcommitted
dt-bindings: regulator: document max77838 pmic
The max77838 is a pmic, containing a BUCK regulator and 4 LDOs. It's primarily used in the Samsung Galaxy S7 lineup and is accessed over I2C. Document it. Signed-off-by: Ivaylo Ivanov <ivo.ivanov.ivanov1@gmail.com> Acked-by: Conor Dooley <conor.dooley@microchip.com> Reviewed-by: Igor Belwon <igor.belwon@mentallysanemainliners.org> Link: https://patch.msgid.link/20250914130230.2622030-2-ivo.ivanov.ivanov1@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent f83ec76 commit 0f10102

2 files changed

Lines changed: 74 additions & 0 deletions

File tree

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/regulator/maxim,max77838.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Maxim Integrated MAX77838 PMIC
8+
9+
maintainers:
10+
- Ivaylo Ivanov <ivo.ivanov.ivanov1@gmail.com>
11+
12+
properties:
13+
$nodename:
14+
pattern: "pmic@[0-9a-f]{1,2}"
15+
compatible:
16+
enum:
17+
- maxim,max77838
18+
19+
reg:
20+
maxItems: 1
21+
22+
regulators:
23+
type: object
24+
$ref: regulator.yaml#
25+
description: |
26+
list of regulators provided by this controller, must be named
27+
after their hardware counterparts ldo[1-4] and buck
28+
29+
properties:
30+
buck:
31+
type: object
32+
$ref: regulator.yaml#
33+
unevaluatedProperties: false
34+
35+
patternProperties:
36+
"^ldo([1-4])$":
37+
type: object
38+
$ref: regulator.yaml#
39+
unevaluatedProperties: false
40+
41+
additionalProperties: false
42+
43+
required:
44+
- compatible
45+
- reg
46+
- regulators
47+
48+
additionalProperties: false
49+
50+
examples:
51+
- |
52+
i2c {
53+
#address-cells = <1>;
54+
#size-cells = <0>;
55+
56+
pmic@60 {
57+
compatible = "maxim,max77838";
58+
reg = <0x60>;
59+
60+
regulators {
61+
ldo2 {
62+
regulator-min-microvolt = <1800000>;
63+
regulator-max-microvolt = <1800000>;
64+
};
65+
};
66+
};
67+
};
68+
...

MAINTAINERS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15069,6 +15069,12 @@ F: Documentation/devicetree/bindings/*/*max77802.yaml
1506915069
F: drivers/regulator/max77802-regulator.c
1507015070
F: include/dt-bindings/*/*max77802.h
1507115071

15072+
MAXIM MAX77838 PMIC REGULATOR DEVICE DRIVER
15073+
M: Ivaylo Ivanov <ivo.ivanov.ivanov1@gmail.com>
15074+
L: linux-kernel@vger.kernel.org
15075+
S: Maintained
15076+
F: Documentation/devicetree/bindings/regulator/maxim,max77838.yaml
15077+
1507215078
MAXIM MAX77976 BATTERY CHARGER
1507315079
M: Luca Ceresoli <luca@lucaceresoli.net>
1507415080
S: Supported

0 commit comments

Comments
 (0)