Skip to content

Commit c7d2aca

Browse files
committed
only for test
1 parent 0da8b75 commit c7d2aca

File tree

5 files changed

+975
-0
lines changed

5 files changed

+975
-0
lines changed
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
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,max77675.yaml#"
5+
$schema: "http://devicetree.org/meta-schemas/core.yaml#"
6+
7+
title: Maxim MAX77675 PMIC Regulator
8+
9+
maintainers:
10+
- Your Name <[email protected]>
11+
12+
description: |
13+
The MAX77675 is a PMIC providing multiple switching buck regulators
14+
(SBB0–SBB3), accessible via I2C. Each SBB can be configured individually
15+
in the Device Tree.
16+
17+
allOf:
18+
- $ref: "regulator.yaml#"
19+
20+
properties:
21+
compatible:
22+
const: maxim,max77675
23+
24+
reg:
25+
maxItems: 1
26+
27+
regulators:
28+
type: object
29+
description: Regulator child nodes
30+
patternProperties:
31+
"^sbb[0-3]$":
32+
type: object
33+
$ref: "regulator.yaml#"
34+
additionalProperties: false
35+
36+
required:
37+
- compatible
38+
- reg
39+
- regulators
40+
41+
additionalProperties: false
42+
43+
examples:
44+
- |
45+
i2c {
46+
max77675: pmic@44 {
47+
compatible = "maxim,max77675";
48+
reg = <0x44>;
49+
50+
regulators {
51+
sbb0: sbb0 {
52+
regulator-name = "sbb0";
53+
regulator-min-microvolt = <500000>;
54+
regulator-max-microvolt = <5500000>;
55+
regulator-boot-on;
56+
regulator-allow-set-voltage;
57+
};
58+
59+
sbb1: sbb1 {
60+
regulator-name = "sbb1";
61+
regulator-min-microvolt = <500000>;
62+
regulator-max-microvolt = <5500000>;
63+
regulator-boot-on;
64+
regulator-always-on;
65+
regulator-allow-set-voltage;
66+
};
67+
68+
sbb2: sbb2 {
69+
regulator-name = "sbb2";
70+
regulator-min-microvolt = <500000>;
71+
regulator-max-microvolt = <5500000>;
72+
regulator-boot-on;
73+
regulator-always-on;
74+
regulator-allow-set-voltage;
75+
};
76+
77+
sbb3: sbb3 {
78+
regulator-name = "sbb3";
79+
regulator-min-microvolt = <500000>;
80+
regulator-max-microvolt = <5500000>;
81+
regulator-boot-on;
82+
regulator-always-on;
83+
regulator-allow-set-voltage;
84+
};
85+
};
86+
};
87+
};
88+

drivers/regulator/Kconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -641,6 +641,12 @@ config REGULATOR_MAX77650
641641
Semiconductor. This device has a SIMO with three independent
642642
power rails and an LDO.
643643

644+
config REGULATOR_MAX77675
645+
tristate "MAX77675 regulator driver"
646+
depends on REGULATOR
647+
help
648+
Regulator driver for Maxim MAX77675.
649+
644650
config REGULATOR_MAX77857
645651
tristate "ADI MAX77857/MAX77831 regulator support"
646652
depends on I2C

drivers/regulator/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ obj-$(CONFIG_REGULATOR_MAX77503) += max77503-regulator.o
7777
obj-$(CONFIG_REGULATOR_MAX77541) += max77541-regulator.o
7878
obj-$(CONFIG_REGULATOR_MAX77620) += max77620-regulator.o
7979
obj-$(CONFIG_REGULATOR_MAX77650) += max77650-regulator.o
80+
obj-$(CONFIG_REGULATOR_MAX77675) += max77675-regulator.o
8081
obj-$(CONFIG_REGULATOR_MAX8649) += max8649.o
8182
obj-$(CONFIG_REGULATOR_MAX8660) += max8660.o
8283
obj-$(CONFIG_REGULATOR_MAX8893) += max8893.o
@@ -203,4 +204,6 @@ obj-$(CONFIG_REGULATOR_WM8350) += wm8350-regulator.o
203204
obj-$(CONFIG_REGULATOR_WM8400) += wm8400-regulator.o
204205
obj-$(CONFIG_REGULATOR_WM8994) += wm8994-regulator.o
205206

207+
obj-y += max77675-regulator.o
208+
206209
ccflags-$(CONFIG_REGULATOR_DEBUG) += -DDEBUG

0 commit comments

Comments
 (0)