···11-Binding for Samsung S2M and S5M family clock generator block22-============================================================33-44-This is a part of device tree bindings for S2M and S5M family multi-function55-devices.66-More information can be found in bindings/mfd/sec-core.txt file.77-88-The S2MPS11/13/15 and S5M8767 provide three(AP/CP/BT) buffered 32.768 kHz99-outputs. The S2MPS14 provides two (AP/BT) buffered 32.768 KHz outputs.1010-1111-To register these as clocks with common clock framework instantiate under1212-main device node a sub-node named "clocks".1313-1414-It uses the common clock binding documented in:1515- - Documentation/devicetree/bindings/clock/clock-bindings.txt1616-1717-1818-Required properties of the "clocks" sub-node:1919- - #clock-cells: should be 1.2020- - compatible: Should be one of: "samsung,s2mps11-clk", "samsung,s2mps13-clk",2121- "samsung,s2mps14-clk", "samsung,s5m8767-clk"2222- The S2MPS15 uses the same compatible as S2MPS13, as both provides similar2323- clocks.2424-2525-2626-Each clock is assigned an identifier and client nodes use this identifier2727-to specify the clock which they consume.2828- Clock ID Devices2929- ----------------------------------------------------------3030- 32KhzAP 0 S2MPS11/13/14/15, S5M87673131- 32KhzCP 1 S2MPS11/13/15, S5M87673232- 32KhzBT 2 S2MPS11/13/14/15, S5M87673333-3434-Include dt-bindings/clock/samsung,s2mps11.h file to use preprocessor defines3535-in device tree sources.3636-3737-3838-Example:3939-4040- s2mps11_pmic@66 {4141- compatible = "samsung,s2mps11-pmic";4242- reg = <0x66>;4343-4444- s2m_osc: clocks {4545- compatible = "samsung,s2mps11-clk";4646- #clock-cells = <1>;4747- clock-output-names = "xx", "yy", "zz";4848- };4949- };
···11+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)22+%YAML 1.233+---44+$id: http://devicetree.org/schemas/clock/samsung,s2mps11.yaml#55+$schema: http://devicetree.org/meta-schemas/core.yaml#66+77+title: Samsung S2M and S5M family clock generator block88+99+maintainers:1010+ - Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>1111+1212+description: |1313+ This is a part of device tree bindings for S2M and S5M family of Power1414+ Management IC (PMIC).1515+1616+ The S2MPS11/13/15 and S5M8767 provide three(AP/CP/BT) buffered 32.768 kHz1717+ outputs. The S2MPS14 provides two (AP/BT) buffered 32.768 KHz outputs.1818+1919+ All available clocks are defined as preprocessor macros in2020+ dt-bindings/clock/samsung,s2mps11.h header.2121+2222+ See also Documentation/devicetree/bindings/mfd/samsung,s2mps11.yaml for2323+ additional information and example.2424+2525+properties:2626+ compatible:2727+ enum:2828+ - samsung,s2mps11-clk2929+ - samsung,s2mps13-clk # S2MPS13 and S2MPS153030+ - samsung,s2mps14-clk3131+ - samsung,s5m8767-clk3232+3333+ "#clock-cells":3434+ const: 13535+3636+ clock-output-names:3737+ minItems: 33838+ maxItems: 33939+ description: Names for AP, CP and BT clocks.4040+4141+required:4242+ - compatible4343+ - "#clock-cells"4444+4545+additionalProperties: false
···11-Binding for Samsung S2M and S5M family multi-function device22-============================================================33-44-This is a part of device tree bindings for S2M and S5M family multi-function55-devices.66-77-The Samsung S2MPA01, S2MPS11/13/14/15, S2MPU02 and S5M8767 is a family88-of multi-function devices which include voltage and current regulators, RTC,99-charger controller, clock outputs and other sub-blocks. It is interfaced1010-to the host controller using an I2C interface. Each sub-block is usually1111-addressed by the host system using different I2C slave addresses.1212-1313-1414-This document describes bindings for main device node. Optional sub-blocks1515-must be a sub-nodes to it. Bindings for them can be found in:1616- - bindings/regulator/samsung,s2mpa01.txt1717- - bindings/regulator/samsung,s2mps11.txt1818- - bindings/regulator/samsung,s5m8767.txt1919- - bindings/clock/samsung,s2mps11.txt2020-2121-2222-Required properties:2323- - compatible: Should be one of the following2424- - "samsung,s2mpa01-pmic",2525- - "samsung,s2mps11-pmic",2626- - "samsung,s2mps13-pmic",2727- - "samsung,s2mps14-pmic",2828- - "samsung,s2mps15-pmic",2929- - "samsung,s2mpu02-pmic",3030- - "samsung,s5m8767-pmic".3131- - reg: Specifies the I2C slave address of the pmic block. It should be 0x66.3232-3333-Optional properties:3434- - interrupts: Interrupt specifiers for interrupt sources.3535- - samsung,s2mps11-wrstbi-ground: Indicates that WRSTBI pin of PMIC is pulled3636- down. When the system is suspended it will always go down thus triggerring3737- unwanted buck warm reset (setting buck voltages to default values).3838- - samsung,s2mps11-acokb-ground: Indicates that ACOKB pin of S2MPS11 PMIC is3939- connected to the ground so the PMIC must manually set PWRHOLD bit in CTRL14040- register to turn off the power. Usually the ACOKB is pulled up to VBATT so4141- when PWRHOLD pin goes low, the rising ACOKB will trigger power off.4242-4343-Example:4444-4545- s2mps11_pmic@66 {4646- compatible = "samsung,s2mps11-pmic";4747- reg = <0x66>;4848-4949- s2m_osc: clocks {5050- compatible = "samsung,s2mps11-clk";5151- #clock-cells = <1>;5252- clock-output-names = "xx", "yy", "zz";5353- };5454-5555- regulators {5656- ldo1_reg: LDO1 {5757- regulator-name = "VDD_ABB_3.3V";5858- regulator-min-microvolt = <3300000>;5959- regulator-max-microvolt = <3300000>;6060- };6161-6262- ldo2_reg: LDO2 {6363- regulator-name = "VDD_ALIVE_1.1V";6464- regulator-min-microvolt = <1100000>;6565- regulator-max-microvolt = <1100000>;6666- regulator-always-on;6767- };6868-6969- buck1_reg: BUCK1 {7070- regulator-name = "vdd_mif";7171- regulator-min-microvolt = <950000>;7272- regulator-max-microvolt = <1350000>;7373- regulator-always-on;7474- regulator-boot-on;7575- };7676-7777- buck2_reg: BUCK2 {7878- regulator-name = "vdd_arm";7979- regulator-min-microvolt = <950000>;8080- regulator-max-microvolt = <1350000>;8181- regulator-always-on;8282- regulator-boot-on;8383- regulator-ramp-delay = <50000>;8484- };8585- };8686- };
···11-Binding for Samsung S2MPA01 regulator block22-===========================================33-44-This is a part of device tree bindings for S2M family multi-function devices.55-More information can be found in bindings/mfd/sec-core.txt file.66-77-The S2MPA01 device provide buck and LDO regulators.88-99-To register these with regulator framework instantiate under main device node1010-a sub-node named "regulators" with more sub-nodes for each regulator using the1111-common regulator binding documented in:1212- - Documentation/devicetree/bindings/regulator/regulator.txt1313-1414-1515-Names of regulators supported by S2MPA01 device:1616- - LDOn1717- - valid values for n are 1 to 261818- - Example: LDO1, LD02, LDO261919- - BUCKn2020- - valid values for n are 1 to 10.2121- - Example: BUCK1, BUCK2, BUCK92222-Note: The 'n' in LDOn and BUCKn represents the LDO or BUCK number2323-as per the datasheet of device.2424-2525-2626-Optional properties of buck regulator nodes under "regulators" sub-node:2727- - regulator-ramp-delay: ramp delay in uV/us. May be 6250, 125002828- (default), 25000, or 50000. May be 0 for disabling the ramp delay on2929- BUCK{1,2,3,4}.3030-3131- In the absence of the regulator-ramp-delay property, the default ramp3232- delay will be used.3333-3434- Note: Some bucks share the ramp rate setting i.e. same ramp value3535- will be set for a particular group of bucks so provide the same3636- regulator-ramp-delay value for them.3737- Groups sharing ramp rate:3838- - buck{1,6},3939- - buck{2,4},4040- - buck{8,9,10}.4141-4242-Example:4343-4444- s2mpa01_pmic@66 {4545- compatible = "samsung,s2mpa01-pmic";4646- reg = <0x66>;4747-4848- regulators {4949- ldo1_reg: LDO1 {5050- regulator-name = "VDD_ALIVE";5151- regulator-min-microvolt = <1000000>;5252- regulator-max-microvolt = <1000000>;5353- };5454-5555- ldo2_reg: LDO2 {5656- regulator-name = "VDDQ_MMC2";5757- regulator-min-microvolt = <2800000>;5858- regulator-max-microvolt = <2800000>;5959- regulator-always-on;6060- };6161-6262- buck1_reg: BUCK1 {6363- regulator-name = "vdd_mif";6464- regulator-min-microvolt = <950000>;6565- regulator-max-microvolt = <1350000>;6666- regulator-always-on;6767- regulator-boot-on;6868- };6969-7070- buck2_reg: BUCK2 {7171- regulator-name = "vdd_arm";7272- regulator-min-microvolt = <950000>;7373- regulator-max-microvolt = <1350000>;7474- regulator-always-on;7575- regulator-boot-on;7676- regulator-ramp-delay = <50000>;7777- };7878- };7979- };
···11+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause22+%YAML 1.233+---44+$id: http://devicetree.org/schemas/regulator/samsung,s2mpa01.yaml#55+$schema: http://devicetree.org/meta-schemas/core.yaml#66+77+title: Samsung S2MPA01 Power Management IC regulators88+99+maintainers:1010+ - Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>1111+1212+description: |1313+ This is a part of device tree bindings for S2M and S5M family of Power1414+ Management IC (PMIC).1515+1616+ The S2MPA01 provides buck and LDO regulators.1717+1818+ See also Documentation/devicetree/bindings/mfd/samsung,s2mpa01.yaml for1919+ additional information and example.2020+2121+patternProperties:2222+ # 26 LDOs2323+ "^LDO([1-9]|1[0-9]|2[0-6])$":2424+ type: object2525+ $ref: regulator.yaml#2626+ unevaluatedProperties: false2727+ description:2828+ Properties for single LDO regulator.2929+3030+ required:3131+ - regulator-name3232+3333+ # 10 bucks3434+ "^BUCK([1-9]|10)$":3535+ type: object3636+ $ref: regulator.yaml#3737+ unevaluatedProperties: false3838+ description:3939+ Properties for single BUCK regulator.4040+4141+ properties:4242+ regulator-ramp-delay:4343+ enum: [0, 6250, 12500, 25000, 50000]4444+ default: 125004545+ description: |4646+ May be 0 for disabling the ramp delay on BUCK{1,2,3,4}.4747+4848+ In the absence of the regulator-ramp-delay property, the default ramp4949+ delay will be used.5050+5151+ Note: Some bucks share the ramp rate setting i.e. same ramp value5252+ will be set for a particular group of bucks so provide the same5353+ regulator-ramp-delay value for them.5454+ Groups sharing ramp rate:5555+ * buck{1,6},5656+ * buck{2,4},5757+ * buck{8,9,10}.5858+5959+ required:6060+ - regulator-name6161+6262+additionalProperties: false
···11-Binding for Samsung S2M family regulator block22-==============================================33-44-This is a part of device tree bindings for S2M family multi-function devices.55-More information can be found in bindings/mfd/sec-core.txt file.66-77-The S2MPS11/13/14/15 and S2MPU02 devices provide buck and LDO regulators.88-99-To register these with regulator framework instantiate under main device node1010-a sub-node named "regulators" with more sub-nodes for each regulator using the1111-common regulator binding documented in:1212- - Documentation/devicetree/bindings/regulator/regulator.txt1313-1414-1515-Names of regulators supported by different devices:1616- - LDOn1717- - valid values for n are:1818- - S2MPS11: 1 to 381919- - S2MPS13: 1 to 402020- - S2MPS14: 1 to 252121- - S2MPS15: 1 to 272222- - S2MPU02: 1 to 282323- - Example: LDO1, LDO2, LDO282424- - BUCKn2525- - valid values for n are:2626- - S2MPS11: 1 to 102727- - S2MPS13: 1 to 102828- - S2MPS14: 1 to 52929- - S2MPS15: 1 to 103030- - S2MPU02: 1 to 73131- - Example: BUCK1, BUCK2, BUCK93232-Note: The 'n' in LDOn and BUCKn represents the LDO or BUCK number3333-as per the datasheet of device.3434-3535-3636-Optional properties of the nodes under "regulators" sub-node:3737- - regulator-ramp-delay: ramp delay in uV/us. May be 6250, 12500,3838- 25000 (default) or 50000.3939-4040- Additionally S2MPS11 supports disabling ramp delay for BUCK{2,3,4,6}4141- by setting it to <0>.4242-4343- Note: On S2MPS11 some bucks share the ramp rate setting i.e. same ramp value4444- will be set for a particular group of bucks so provide the same4545- regulator-ramp-delay value for them.4646- Groups sharing ramp rate:4747- - buck{1,6},4848- - buck{3,4},4949- - buck{7,8,10}.5050-5151- - samsung,ext-control-gpios: On S2MPS14 the LDO10, LDO11 and LDO12 can be5252- configured to external control over GPIO. To turn this feature on this5353- property must be added to the regulator sub-node:5454- - samsung,ext-control-gpios: GPIO specifier for one GPIO5555- controlling this regulator (enable/disable)5656- Example:5757- LDO12 {5858- regulator-name = "V_EMMC_2.8V";5959- regulator-min-microvolt = <2800000>;6060- regulator-max-microvolt = <2800000>;6161- samsung,ext-control-gpios = <&gpk0 2 0>;6262- };6363-6464-6565-Example:6666-6767- s2mps11_pmic@66 {6868- compatible = "samsung,s2mps11-pmic";6969- reg = <0x66>;7070-7171- regulators {7272- ldo1_reg: LDO1 {7373- regulator-name = "VDD_ABB_3.3V";7474- regulator-min-microvolt = <3300000>;7575- regulator-max-microvolt = <3300000>;7676- };7777-7878- ldo2_reg: LDO2 {7979- regulator-name = "VDD_ALIVE_1.1V";8080- regulator-min-microvolt = <1100000>;8181- regulator-max-microvolt = <1100000>;8282- regulator-always-on;8383- };8484-8585- buck1_reg: BUCK1 {8686- regulator-name = "vdd_mif";8787- regulator-min-microvolt = <950000>;8888- regulator-max-microvolt = <1350000>;8989- regulator-always-on;9090- regulator-boot-on;9191- };9292-9393- buck2_reg: BUCK2 {9494- regulator-name = "vdd_arm";9595- regulator-min-microvolt = <950000>;9696- regulator-max-microvolt = <1350000>;9797- regulator-always-on;9898- regulator-boot-on;9999- regulator-ramp-delay = <50000>;100100- };101101- };102102- };
···11+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause22+%YAML 1.233+---44+$id: http://devicetree.org/schemas/regulator/samsung,s2mps11.yaml#55+$schema: http://devicetree.org/meta-schemas/core.yaml#66+77+title: Samsung S2MPS11 Power Management IC regulators88+99+maintainers:1010+ - Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>1111+1212+description: |1313+ This is a part of device tree bindings for S2M and S5M family of Power1414+ Management IC (PMIC).1515+1616+ The S2MPS11 provides buck and LDO regulators.1717+1818+ See also Documentation/devicetree/bindings/mfd/samsung,s2mps11.yaml for1919+ additional information and example.2020+2121+patternProperties:2222+ # 38 LDOs2323+ "^LDO([1-9]|[1-2][0-9]|3[0-8])$":2424+ type: object2525+ $ref: regulator.yaml#2626+ unevaluatedProperties: false2727+ description:2828+ Properties for single LDO regulator.2929+3030+ required:3131+ - regulator-name3232+3333+ # 10 bucks3434+ "^BUCK([1-9]|10)$":3535+ type: object3636+ $ref: regulator.yaml#3737+ unevaluatedProperties: false3838+ description:3939+ Properties for single BUCK regulator.4040+4141+ required:4242+ - regulator-name4343+4444+additionalProperties: false
···11+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause22+%YAML 1.233+---44+$id: http://devicetree.org/schemas/regulator/samsung,s2mps13.yaml#55+$schema: http://devicetree.org/meta-schemas/core.yaml#66+77+title: Samsung S2MPS13 Power Management IC regulators88+99+maintainers:1010+ - Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>1111+1212+description: |1313+ This is a part of device tree bindings for S2M and S5M family of Power1414+ Management IC (PMIC).1515+1616+ The S2MPS13 provides buck and LDO regulators.1717+1818+ See also Documentation/devicetree/bindings/mfd/samsung,s2mps11.yaml for1919+ additional information and example.2020+2121+patternProperties:2222+ # 40 LDOs2323+ "^LDO([1-9]|[1-3][0-9]|40)$":2424+ type: object2525+ $ref: regulator.yaml#2626+ unevaluatedProperties: false2727+ description:2828+ Properties for single LDO regulator.2929+3030+ required:3131+ - regulator-name3232+3333+ # 10 bucks3434+ "^BUCK([1-9]|10)$":3535+ type: object3636+ $ref: regulator.yaml#3737+ unevaluatedProperties: false3838+ description:3939+ Properties for single BUCK regulator.4040+4141+ required:4242+ - regulator-name4343+4444+additionalProperties: false
···11+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause22+%YAML 1.233+---44+$id: http://devicetree.org/schemas/regulator/samsung,s2mps14.yaml#55+$schema: http://devicetree.org/meta-schemas/core.yaml#66+77+title: Samsung S2MPS14 Power Management IC regulators88+99+maintainers:1010+ - Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>1111+1212+description: |1313+ This is a part of device tree bindings for S2M and S5M family of Power1414+ Management IC (PMIC).1515+1616+ The S2MPS14 provides buck and LDO regulators.1717+1818+ See also Documentation/devicetree/bindings/mfd/samsung,s2mps11.yaml for1919+ additional information and example.2020+2121+patternProperties:2222+ # 25 LDOs2323+ "^LDO([1-9]|[1][0-9]|2[0-5])$":2424+ type: object2525+ $ref: regulator.yaml#2626+ unevaluatedProperties: false2727+ description:2828+ Properties for single LDO regulator.2929+3030+ required:3131+ - regulator-name3232+3333+ # 5 bucks3434+ "^BUCK[1-5]$":3535+ type: object3636+ $ref: regulator.yaml#3737+ unevaluatedProperties: false3838+ description:3939+ Properties for single BUCK regulator.4040+4141+ required:4242+ - regulator-name4343+4444+additionalProperties: false
···11+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause22+%YAML 1.233+---44+$id: http://devicetree.org/schemas/regulator/samsung,s2mps15.yaml#55+$schema: http://devicetree.org/meta-schemas/core.yaml#66+77+title: Samsung S2MPS15 Power Management IC regulators88+99+maintainers:1010+ - Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>1111+1212+description: |1313+ This is a part of device tree bindings for S2M and S5M family of Power1414+ Management IC (PMIC).1515+1616+ The S2MPS15 provides buck and LDO regulators.1717+1818+ See also Documentation/devicetree/bindings/mfd/samsung,s2mps11.yaml for1919+ additional information and example.2020+2121+patternProperties:2222+ # 27 LDOs2323+ "^LDO([1-9]|[1][0-9]|2[0-7])$":2424+ type: object2525+ $ref: regulator.yaml#2626+ unevaluatedProperties: false2727+ description:2828+ Properties for single LDO regulator.2929+3030+ required:3131+ - regulator-name3232+3333+ # 10 bucks3434+ "^BUCK([1-9]|10)$":3535+ type: object3636+ $ref: regulator.yaml#3737+ unevaluatedProperties: false3838+ description:3939+ Properties for single BUCK regulator.4040+4141+ required:4242+ - regulator-name4343+4444+additionalProperties: false
···11+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause22+%YAML 1.233+---44+$id: http://devicetree.org/schemas/regulator/samsung,s2mpu02.yaml#55+$schema: http://devicetree.org/meta-schemas/core.yaml#66+77+title: Samsung S2MPU02 Power Management IC regulators88+99+maintainers:1010+ - Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>1111+1212+description: |1313+ This is a part of device tree bindings for S2M and S5M family of Power1414+ Management IC (PMIC).1515+1616+ The S2MPU02 provides buck and LDO regulators.1717+1818+ See also Documentation/devicetree/bindings/mfd/samsung,s2mps11.yaml for1919+ additional information and example.2020+2121+patternProperties:2222+ # 28 LDOs2323+ "^LDO([1-9]|1[0-9]|2[0-8])$":2424+ type: object2525+ $ref: regulator.yaml#2626+ unevaluatedProperties: false2727+ description:2828+ Properties for single LDO regulator.2929+3030+ required:3131+ - regulator-name3232+3333+ # 7 bucks3434+ "^BUCK[1-7]$":3535+ type: object3636+ $ref: regulator.yaml#3737+ unevaluatedProperties: false3838+ description:3939+ Properties for single BUCK regulator.4040+4141+ required:4242+ - regulator-name4343+4444+additionalProperties: false
···11-Binding for Samsung S5M8767 regulator block22-===========================================33-44-This is a part of device tree bindings for S5M family multi-function devices.55-More information can be found in bindings/mfd/sec-core.txt file.66-77-The S5M8767 device provide buck and LDO regulators.88-99-To register these with regulator framework instantiate under main device node1010-a sub-node named "regulators" with more sub-nodes for each regulator using the1111-common regulator binding documented in:1212- - Documentation/devicetree/bindings/regulator/regulator.txt1313-1414-1515-Required properties of the main device node (the parent!):1616- - s5m8767,pmic-buck2-dvs-voltage: A set of 8 voltage values in micro-volt (uV)1717- units for buck2 when changing voltage using gpio dvs. Refer to [1] below1818- for additional information.1919-2020- - s5m8767,pmic-buck3-dvs-voltage: A set of 8 voltage values in micro-volt (uV)2121- units for buck3 when changing voltage using gpio dvs. Refer to [1] below2222- for additional information.2323-2424- - s5m8767,pmic-buck4-dvs-voltage: A set of 8 voltage values in micro-volt (uV)2525- units for buck4 when changing voltage using gpio dvs. Refer to [1] below2626- for additional information.2727-2828- - s5m8767,pmic-buck-ds-gpios: GPIO specifiers for three host gpio's used2929- for selecting GPIO DVS lines. It is one-to-one mapped to dvs gpio lines.3030-3131- [1] If none of the 's5m8767,pmic-buck[2/3/4]-uses-gpio-dvs' optional3232- property is specified, the 's5m8767,pmic-buck[2/3/4]-dvs-voltage'3333- property should specify atleast one voltage level (which would be a3434- safe operating voltage).3535-3636- If either of the 's5m8767,pmic-buck[2/3/4]-uses-gpio-dvs' optional3737- property is specified, then all the eight voltage values for the3838- 's5m8767,pmic-buck[2/3/4]-dvs-voltage' should be specified.3939-4040-Optional properties of the main device node (the parent!):4141- - s5m8767,pmic-buck2-uses-gpio-dvs: 'buck2' can be controlled by gpio dvs.4242- - s5m8767,pmic-buck3-uses-gpio-dvs: 'buck3' can be controlled by gpio dvs.4343- - s5m8767,pmic-buck4-uses-gpio-dvs: 'buck4' can be controlled by gpio dvs.4444-4545-Additional properties required if either of the optional properties are used:4646-4747- - s5m8767,pmic-buck234-default-dvs-idx: Default voltage setting selected from4848- the possible 8 options selectable by the dvs gpios. The value of this4949- property should be between 0 and 7. If not specified or if out of range, the5050- default value of this property is set to 0.5151-5252- - s5m8767,pmic-buck-dvs-gpios: GPIO specifiers for three host gpio's used5353- for dvs. The format of the gpio specifier depends in the gpio controller.5454-5555-5656-Names of regulators supported by S5M8767 device:5757- - LDOn5858- - valid values for n are 1 to 285959- - Example: LDO1, LDO2, LDO286060- - BUCKn6161- - valid values for n are 1 to 9.6262- - Example: BUCK1, BUCK2, BUCK96363-Note: The 'n' in LDOn and BUCKn represents the LDO or BUCK number6464-as per the datasheet of device.6565-6666-6767-Optional properties of the nodes under "regulators" sub-node:6868- - op_mode: describes the different operating modes of the LDO's with6969- power mode change in SOC. The different possible values are,7070- 0 - always off mode7171- 1 - on in normal mode7272- 2 - low power mode7373- 3 - suspend mode7474- - s5m8767,pmic-ext-control-gpios: (optional) GPIO specifier for one7575- GPIO controlling this regulator7676- (enable/disable); This is valid only7777- for buck9.7878-7979-Example:8080-8181- s5m8767_pmic@66 {8282- compatible = "samsung,s5m8767-pmic";8383- reg = <0x66>;8484-8585- s5m8767,pmic-buck2-uses-gpio-dvs;8686- s5m8767,pmic-buck3-uses-gpio-dvs;8787- s5m8767,pmic-buck4-uses-gpio-dvs;8888-8989- s5m8767,pmic-buck-default-dvs-idx = <0>;9090-9191- s5m8767,pmic-buck-dvs-gpios = <&gpx0 0 0>, /* DVS1 */9292- <&gpx0 1 0>, /* DVS2 */9393- <&gpx0 2 0>; /* DVS3 */9494-9595- s5m8767,pmic-buck-ds-gpios = <&gpx2 3 0>, /* SET1 */9696- <&gpx2 4 0>, /* SET2 */9797- <&gpx2 5 0>; /* SET3 */9898-9999- s5m8767,pmic-buck2-dvs-voltage = <1350000>, <1300000>,100100- <1250000>, <1200000>,101101- <1150000>, <1100000>,102102- <1000000>, <950000>;103103-104104- s5m8767,pmic-buck3-dvs-voltage = <1100000>, <1100000>,105105- <1100000>, <1100000>,106106- <1000000>, <1000000>,107107- <1000000>, <1000000>;108108-109109- s5m8767,pmic-buck4-dvs-voltage = <1200000>, <1200000>,110110- <1200000>, <1200000>,111111- <1200000>, <1200000>,112112- <1200000>, <1200000>;113113-114114- regulators {115115- ldo1_reg: LDO1 {116116- regulator-name = "VDD_ABB_3.3V";117117- regulator-min-microvolt = <3300000>;118118- regulator-max-microvolt = <3300000>;119119- op_mode = <1>; /* Normal Mode */120120- };121121-122122- ldo2_reg: LDO2 {123123- regulator-name = "VDD_ALIVE_1.1V";124124- regulator-min-microvolt = <1100000>;125125- regulator-max-microvolt = <1100000>;126126- regulator-always-on;127127- };128128-129129- buck1_reg: BUCK1 {130130- regulator-name = "VDD_MIF_1.2V";131131- regulator-min-microvolt = <950000>;132132- regulator-max-microvolt = <1350000>;133133- regulator-always-on;134134- regulator-boot-on;135135- };136136-137137- vemmc_reg: BUCK9 {138138- regulator-name = "VMEM_VDD_2.8V";139139- regulator-min-microvolt = <2800000>;140140- regulator-max-microvolt = <2800000>;141141- op_mode = <3>; /* Standby Mode */142142- s5m8767,pmic-ext-control-gpios = <&gpk0 2 0>;143143- };144144- };145145- };
···11+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause22+%YAML 1.233+---44+$id: http://devicetree.org/schemas/regulator/samsung,s5m8767.yaml#55+$schema: http://devicetree.org/meta-schemas/core.yaml#66+77+title: Samsung S5M8767 Power Management IC regulators88+99+maintainers:1010+ - Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>1111+1212+description: |1313+ This is a part of device tree bindings for S2M and S5M family of Power1414+ Management IC (PMIC).1515+1616+ The S5M8767 provides buck and LDO regulators.1717+1818+ See also Documentation/devicetree/bindings/mfd/samsung,s5m8767.yaml for1919+ additional information and example.2020+2121+patternProperties:2222+ # 28 LDOs2323+ "^LDO([1-9]|1[0-9]|2[0-8])$":2424+ type: object2525+ $ref: regulator.yaml#2626+ unevaluatedProperties: false2727+ description:2828+ Properties for single LDO regulator.2929+3030+ properties:3131+ op_mode:3232+ $ref: /schemas/types.yaml#/definitions/uint323333+ enum: [0, 1, 2, 3]3434+ default: 13535+ description: |3636+ Describes the different operating modes of the LDO's with power mode3737+ change in SOC. The different possible values are:3838+ 0 - always off mode3939+ 1 - on in normal mode4040+ 2 - low power mode4141+ 3 - suspend mode4242+4343+ required:4444+ - regulator-name4545+4646+ # 8 bucks4747+ "^BUCK[1-8]$":4848+ type: object4949+ $ref: regulator.yaml#5050+ unevaluatedProperties: false5151+ description:5252+ Properties for single BUCK regulator.5353+5454+ required:5555+ - regulator-name5656+5757+ # 9 buck5858+ "^BUCK9$":5959+ type: object6060+ $ref: regulator.yaml#6161+ unevaluatedProperties: false6262+ description:6363+ Properties for single BUCK regulator.6464+6565+ properties:6666+ s5m8767,pmic-ext-control-gpios:6767+ maxItems: 16868+ description: |6969+ GPIO specifier for one GPIO controlling this regulator on/off.7070+7171+ required:7272+ - regulator-name7373+7474+additionalProperties: false