forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'regulator-v4.18' of git://git.kernel.org/pub/scm/linux/ker…
…nel/git/broonie/regulator Pull regulator updates from Mark Brown: "Quite a lot of core work this time around, though not 100% successful. We gained support for runtime mode changes thanks to David Collins and improved support for write only regulators (ones where we can't read back the configuration) from Douglas Anderson. There's been quite a bit of work from Linus Walleij on converting from specfying GPIOs by numbers to descriptors. Sadly the testing turned out to be less good than we had hoped and so a lot of this had to be reverted. We also have the start of updates to use coupled regulators from Maciej Purski, unfortunately there are further problems there so the last couple of patches have been reverted. We also have new drivers for BD71837 and SY8106A devices, SAW regulators on Qualcomm SPMI and dropped support for some preproduction chips that never made it to market from the AB8500 driver" * tag 'regulator-v4.18' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator: (57 commits) regulator: gpio: Revert ARM: pxa, regulator: fix building ezx e680 regulator: Revert coupled regulator support again regulator: wm8994: Fix shared GPIOs regulator: max77686: Fix shared GPIOs regulator: bd71837: BD71837 PMIC regulator driver regulator: bd71837: Devicetree bindings for BD71837 regulators regulator: gpio: Get enable GPIO using GPIO descriptor regulator: fixed: Convert to use GPIO descriptor only regulator: s2mps11: Fix boot on Odroid XU3 dt-bindings: qcom_spmi: Document SAW support regulator: qcom_spmi: Add support for SAW regulator: tps65090: Pass descriptor instead of GPIO number regulator: s5m8767: Pass descriptor instead of GPIO number regulator: pfuze100: Delete reference to ena_gpio regulator: max8952: Pass descriptor instead of GPIO number regulator: lp8788-ldo: Pass descriptor instead of GPIO number regulator: lm363x: Pass descriptor instead of GPIO number regulator: max8973: Pass descriptor instead of GPIO number regulator: mc13xxx-core: Switch to SPDX identifier ...
- Loading branch information
Showing
51 changed files
with
2,196 additions
and
2,035 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
126 changes: 126 additions & 0 deletions
126
Documentation/devicetree/bindings/regulator/rohm,bd71837-regulator.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
ROHM BD71837 Power Management Integrated Circuit (PMIC) regulator bindings | ||
|
||
BD71837MWV is a programmable Power Management | ||
IC (PMIC) for powering single-core, dual-core, and | ||
quad-core SoC’s such as NXP-i.MX 8M. It is optimized | ||
for low BOM cost and compact solution footprint. It | ||
integrates 8 Buck regulators and 7 LDO’s to provide all | ||
the power rails required by the SoC and the commonly | ||
used peripherals. | ||
|
||
Required properties: | ||
- regulator-name: should be "buck1", ..., "buck8" and "ldo1", ..., "ldo7" | ||
|
||
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.txt | ||
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. | ||
|
||
The valid names for regulator nodes are: | ||
BUCK1, BUCK2, BUCK3, BUCK4, BUCK5, BUCK6, BUCK7, BUCK8 | ||
LDO1, LDO2, LDO3, LDO4, LDO5, LDO6, LDO7 | ||
|
||
Optional properties: | ||
- Any optional property defined in bindings/regulator/regulator.txt | ||
|
||
Example: | ||
regulators { | ||
buck1: BUCK1 { | ||
regulator-name = "buck1"; | ||
regulator-min-microvolt = <700000>; | ||
regulator-max-microvolt = <1300000>; | ||
regulator-boot-on; | ||
regulator-ramp-delay = <1250>; | ||
}; | ||
buck2: BUCK2 { | ||
regulator-name = "buck2"; | ||
regulator-min-microvolt = <700000>; | ||
regulator-max-microvolt = <1300000>; | ||
regulator-boot-on; | ||
regulator-always-on; | ||
regulator-ramp-delay = <1250>; | ||
}; | ||
buck3: BUCK3 { | ||
regulator-name = "buck3"; | ||
regulator-min-microvolt = <700000>; | ||
regulator-max-microvolt = <1300000>; | ||
regulator-boot-on; | ||
}; | ||
buck4: BUCK4 { | ||
regulator-name = "buck4"; | ||
regulator-min-microvolt = <700000>; | ||
regulator-max-microvolt = <1300000>; | ||
regulator-boot-on; | ||
}; | ||
buck5: BUCK5 { | ||
regulator-name = "buck5"; | ||
regulator-min-microvolt = <700000>; | ||
regulator-max-microvolt = <1350000>; | ||
regulator-boot-on; | ||
}; | ||
buck6: BUCK6 { | ||
regulator-name = "buck6"; | ||
regulator-min-microvolt = <3000000>; | ||
regulator-max-microvolt = <3300000>; | ||
regulator-boot-on; | ||
}; | ||
buck7: BUCK7 { | ||
regulator-name = "buck7"; | ||
regulator-min-microvolt = <1605000>; | ||
regulator-max-microvolt = <1995000>; | ||
regulator-boot-on; | ||
}; | ||
buck8: BUCK8 { | ||
regulator-name = "buck8"; | ||
regulator-min-microvolt = <800000>; | ||
regulator-max-microvolt = <1400000>; | ||
}; | ||
|
||
ldo1: LDO1 { | ||
regulator-name = "ldo1"; | ||
regulator-min-microvolt = <3000000>; | ||
regulator-max-microvolt = <3300000>; | ||
regulator-boot-on; | ||
}; | ||
ldo2: LDO2 { | ||
regulator-name = "ldo2"; | ||
regulator-min-microvolt = <900000>; | ||
regulator-max-microvolt = <900000>; | ||
regulator-boot-on; | ||
}; | ||
ldo3: LDO3 { | ||
regulator-name = "ldo3"; | ||
regulator-min-microvolt = <1800000>; | ||
regulator-max-microvolt = <3300000>; | ||
}; | ||
ldo4: LDO4 { | ||
regulator-name = "ldo4"; | ||
regulator-min-microvolt = <900000>; | ||
regulator-max-microvolt = <1800000>; | ||
}; | ||
ldo5: LDO5 { | ||
regulator-name = "ldo5"; | ||
regulator-min-microvolt = <1800000>; | ||
regulator-max-microvolt = <3300000>; | ||
}; | ||
ldo6: LDO6 { | ||
regulator-name = "ldo6"; | ||
regulator-min-microvolt = <900000>; | ||
regulator-max-microvolt = <1800000>; | ||
}; | ||
ldo7_reg: LDO7 { | ||
regulator-name = "ldo7"; | ||
regulator-min-microvolt = <1800000>; | ||
regulator-max-microvolt = <3300000>; | ||
}; | ||
}; | ||
|
||
|
23 changes: 23 additions & 0 deletions
23
Documentation/devicetree/bindings/regulator/sy8106a-regulator.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
SY8106A Voltage regulator | ||
|
||
Required properties: | ||
- compatible: Must be "silergy,sy8106a" | ||
- reg: I2C slave address - must be <0x65> | ||
- silergy,fixed-microvolt - the voltage when I2C regulating is disabled (set | ||
by external resistor like a fixed voltage) | ||
|
||
Any property defined as part of the core regulator binding, defined in | ||
./regulator.txt, can also be used. | ||
|
||
Example: | ||
|
||
sy8106a { | ||
compatible = "silergy,sy8106a"; | ||
reg = <0x65>; | ||
regulator-name = "sy8106a-vdd"; | ||
silergy,fixed-microvolt = <1200000>; | ||
regulator-min-microvolt = <1000000>; | ||
regulator-max-microvolt = <1400000>; | ||
regulator-boot-on; | ||
regulator-always-on; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13609,6 +13609,12 @@ S: Supported | |
F: net/switchdev/ | ||
F: include/net/switchdev.h | ||
|
||
SY8106A REGULATOR DRIVER | ||
M: Icenowy Zheng <[email protected]> | ||
S: Maintained | ||
F: drivers/regulator/sy8106a-regulator.c | ||
F: Documentation/devicetree/bindings/regulator/sy8106a-regulator.txt | ||
|
||
SYNC FILE FRAMEWORK | ||
M: Sumit Semwal <[email protected]> | ||
R: Gustavo Padovan <[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.