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

dt-bindings: regulator/mfd: Reorganize S2MPA01 bindings

The mfd/s2mpa01.txt duplicates some of the information about bindings
with old mfd/s2mps11.txt. Now common part exists entirely in
mfd/samsung,sec-core.txt so:
- add company prefix to file name (regulator/samsung,s2mpa01.txt),
- remove duplicated information,
- reorganize the contents to match style of
regulator/samsung,s2mps11.txt.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Acked-by: Mark Brown <broonie@kernel.org>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>

authored by

Krzysztof Kozlowski and committed by
Lee Jones
5d1d147f 27383ca9

+82 -91
-90
Documentation/devicetree/bindings/mfd/s2mpa01.txt
··· 1 - 2 - * Samsung S2MPA01 Voltage and Current Regulator 3 - 4 - The Samsung S2MPA01 is a multi-function device which includes high 5 - efficiency buck converters including Dual-Phase buck converter, various LDOs, 6 - and an RTC. It is interfaced to the host controller using an I2C interface. 7 - Each sub-block is addressed by the host system using different I2C slave 8 - addresses. 9 - 10 - Required properties: 11 - - compatible: Should be "samsung,s2mpa01-pmic". 12 - - reg: Specifies the I2C slave address of the PMIC block. It should be 0x66. 13 - 14 - Optional properties: 15 - - interrupt-parent: Specifies the phandle of the interrupt controller to which 16 - the interrupts from s2mpa01 are delivered to. 17 - - interrupts: An interrupt specifier for the sole interrupt generated by the 18 - device. 19 - 20 - Optional nodes: 21 - - regulators: The regulators of s2mpa01 that have to be instantiated should be 22 - included in a sub-node named 'regulators'. Regulator nodes and constraints 23 - included in this sub-node use the standard regulator bindings which are 24 - documented elsewhere. 25 - 26 - Properties for BUCK regulator nodes: 27 - - regulator-ramp-delay: ramp delay in uV/us. May be 6250, 12500 28 - (default), 25000, or 50000. May be 0 for disabling the ramp delay on 29 - BUCK{1,2,3,4}. 30 - 31 - In the absence of the regulator-ramp-delay property, the default ramp 32 - delay will be used. 33 - 34 - NOTE: Some BUCKs share the ramp rate setting i.e. same ramp value will be set 35 - for a particular group of BUCKs. So provide same regulator-ramp-delay=<value>. 36 - 37 - The following BUCKs share ramp settings: 38 - * 1 and 6 39 - * 2 and 4 40 - * 8, 9, and 10 41 - 42 - The following are the names of the regulators that the s2mpa01 PMIC block 43 - supports. Note: The 'n' in LDOn and BUCKn represents the LDO or BUCK number 44 - as per the datasheet of s2mpa01. 45 - 46 - - LDOn 47 - - valid values for n are 1 to 26 48 - - Example: LDO1, LD02, LDO26 49 - - BUCKn 50 - - valid values for n are 1 to 10. 51 - - Example: BUCK1, BUCK2, BUCK9 52 - 53 - Example: 54 - 55 - s2mpa01_pmic@66 { 56 - compatible = "samsung,s2mpa01-pmic"; 57 - reg = <0x66>; 58 - 59 - regulators { 60 - ldo1_reg: LDO1 { 61 - regulator-name = "VDD_ALIVE"; 62 - regulator-min-microvolt = <1000000>; 63 - regulator-max-microvolt = <1000000>; 64 - }; 65 - 66 - ldo2_reg: LDO2 { 67 - regulator-name = "VDDQ_MMC2"; 68 - regulator-min-microvolt = <2800000>; 69 - regulator-max-microvolt = <2800000>; 70 - regulator-always-on; 71 - }; 72 - 73 - buck1_reg: BUCK1 { 74 - regulator-name = "vdd_mif"; 75 - regulator-min-microvolt = <950000>; 76 - regulator-max-microvolt = <1350000>; 77 - regulator-always-on; 78 - regulator-boot-on; 79 - }; 80 - 81 - buck2_reg: BUCK2 { 82 - regulator-name = "vdd_arm"; 83 - regulator-min-microvolt = <950000>; 84 - regulator-max-microvolt = <1350000>; 85 - regulator-always-on; 86 - regulator-boot-on; 87 - regulator-ramp-delay = <50000>; 88 - }; 89 - }; 90 - };
+3 -1
Documentation/devicetree/bindings/mfd/samsung,sec-core.txt
··· 4 4 This is a part of device tree bindings for S2M and S5M family multi-function 5 5 devices. 6 6 7 - The Samsung S2MPS11/13/14/15, S2MPU02 and S5M8767 is a family 7 + The Samsung S2MPA01, S2MPS11/13/14/15, S2MPU02 and S5M8767 is a family 8 8 of multi-function devices which include voltage and current regulators, RTC, 9 9 charger controller, clock outputs and other sub-blocks. It is interfaced 10 10 to the host controller using an I2C interface. Each sub-block is usually ··· 13 13 14 14 This document describes bindings for main device node. Optional sub-blocks 15 15 must be a sub-nodes to it. Bindings for them can be found in: 16 + - bindings/regulator/samsung,s2mpa01.txt 16 17 - bindings/regulator/samsung,s2mps11.txt 17 18 - bindings/regulator/samsung,s5m8767.txt 18 19 - bindings/clock/samsung,s2mps11.txt ··· 21 20 22 21 Required properties: 23 22 - compatible: Should be one of the following 23 + - "samsung,s2mpa01-pmic", 24 24 - "samsung,s2mps11-pmic", 25 25 - "samsung,s2mps13-pmic", 26 26 - "samsung,s2mps14-pmic",
+79
Documentation/devicetree/bindings/regulator/samsung,s2mpa01.txt
··· 1 + Binding for Samsung S2MPA01 regulator block 2 + =========================================== 3 + 4 + This is a part of device tree bindings for S2M family multi-function devices. 5 + More information can be found in bindings/mfd/sec-core.txt file. 6 + 7 + The S2MPA01 device provide buck and LDO regulators. 8 + 9 + To register these with regulator framework instantiate under main device node 10 + a sub-node named "regulators" with more sub-nodes for each regulator using the 11 + common regulator binding documented in: 12 + - Documentation/devicetree/bindings/regulator/regulator.txt 13 + 14 + 15 + Names of regulators supported by S2MPA01 device: 16 + - LDOn 17 + - valid values for n are 1 to 26 18 + - Example: LDO1, LD02, LDO26 19 + - BUCKn 20 + - valid values for n are 1 to 10. 21 + - Example: BUCK1, BUCK2, BUCK9 22 + Note: The 'n' in LDOn and BUCKn represents the LDO or BUCK number 23 + as per the datasheet of device. 24 + 25 + 26 + Optional properties of buck regulator nodes under "regulators" sub-node: 27 + - regulator-ramp-delay: ramp delay in uV/us. May be 6250, 12500 28 + (default), 25000, or 50000. May be 0 for disabling the ramp delay on 29 + BUCK{1,2,3,4}. 30 + 31 + In the absence of the regulator-ramp-delay property, the default ramp 32 + delay will be used. 33 + 34 + Note: Some bucks share the ramp rate setting i.e. same ramp value 35 + will be set for a particular group of bucks so provide the same 36 + regulator-ramp-delay value for them. 37 + Groups sharing ramp rate: 38 + - buck{1,6}, 39 + - buck{2,4}, 40 + - buck{8,9,10}. 41 + 42 + Example: 43 + 44 + s2mpa01_pmic@66 { 45 + compatible = "samsung,s2mpa01-pmic"; 46 + reg = <0x66>; 47 + 48 + regulators { 49 + ldo1_reg: LDO1 { 50 + regulator-name = "VDD_ALIVE"; 51 + regulator-min-microvolt = <1000000>; 52 + regulator-max-microvolt = <1000000>; 53 + }; 54 + 55 + ldo2_reg: LDO2 { 56 + regulator-name = "VDDQ_MMC2"; 57 + regulator-min-microvolt = <2800000>; 58 + regulator-max-microvolt = <2800000>; 59 + regulator-always-on; 60 + }; 61 + 62 + buck1_reg: BUCK1 { 63 + regulator-name = "vdd_mif"; 64 + regulator-min-microvolt = <950000>; 65 + regulator-max-microvolt = <1350000>; 66 + regulator-always-on; 67 + regulator-boot-on; 68 + }; 69 + 70 + buck2_reg: BUCK2 { 71 + regulator-name = "vdd_arm"; 72 + regulator-min-microvolt = <950000>; 73 + regulator-max-microvolt = <1350000>; 74 + regulator-always-on; 75 + regulator-boot-on; 76 + regulator-ramp-delay = <50000>; 77 + }; 78 + }; 79 + };