Documentation / devicetree / bindings / mfd / samsung,s2dos05.yaml


Based on kernel version 6.13. Page generated on 2025-01-21 08:20 EST.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/mfd/samsung,s2dos05.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Samsung S2DOS05 Power Management IC

maintainers:
  - Dzmitry Sankouski <dsankouski@gmail.com>

description:
  This is a device tree bindings for S2DOS family of Power Management IC (PMIC).
 
  The S2DOS05 is a companion power management IC for the panel and touchscreen
  in smart phones. Provides voltage regulators and
  ADC for power/current measurements.
 
  Regulator section has 4 LDO and 1 BUCK regulators and also
  provides ELVDD, ELVSS, AVDD lines.

properties:
  compatible:
    const: samsung,s2dos05

  reg:
    maxItems: 1

  regulators:
    patternProperties:
      "^buck|ldo[1-4]$":
        type: object
        $ref: /schemas/regulator/regulator.yaml#
        unevaluatedProperties: false

        required:
          - regulator-name

    additionalProperties: false

required:
  - compatible
  - reg
  - regulators

additionalProperties: false

examples:
  - |
    i2c {
        #address-cells = <1>;
        #size-cells = <0>;
 
        pmic@60 {
            compatible = "samsung,s2dos05";
            reg = <0x60>;
 
            regulators {
                ldo1 {
                    regulator-active-discharge = <1>;
                    regulator-min-microvolt = <1500000>;
                    regulator-max-microvolt = <2000000>;
                    regulator-name = "ldo1";
                };
 
                ldo2 {
                    regulator-active-discharge = <1>;
                    regulator-boot-on;
                    regulator-min-microvolt = <1800000>;
                    regulator-max-microvolt = <1800000>;
                    regulator-name = "ldo2";
                };
 
                ldo3 {
                    regulator-active-discharge = <1>;
                    regulator-boot-on;
                    regulator-min-microvolt = <3000000>;
                    regulator-max-microvolt = <3000000>;
                    regulator-name = "ldo3";
                };
 
                ldo4 {
                    regulator-active-discharge = <1>;
                    regulator-min-microvolt = <2700000>;
                    regulator-max-microvolt = <3775000>;
                    regulator-name = "ldo4";
                };
 
                buck {
                    regulator-active-discharge = <1>;
                    regulator-min-microvolt = <850000>;
                    regulator-max-microvolt = <2100000>;
                    regulator-name = "buck";
                };
            };
        };
    };

...