Commit 9d6c80f8 authored by Linus Torvalds's avatar Linus Torvalds
Browse files
Pull regulator updates from Mark Brown:
 "This has been a fairly quiet release for the regulator API, the
  changes are dominated by some new drivers and a quite large set of
  cleanups and filling in the blanks of features for the existing MT6358
  driver.

   - Cleanups and additional features for the Mediatek MT6358 driver

   - Under voltage detection in the fixed regulator

   - Support for Maxim MAX77503, Mediatek MT6366, Qualcomm PM8909,
     PM8919, PMA8048 and PMC8380"

* tag 'regulator-v6.7' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator: (45 commits)
  regulator (max5970): Remove duplicate line
  regulator (max5970): Add hwmon support
  regulator: qcom-rpmh: Fix smps4 regulator for pm8550ve
  regulator: qcom,rpmh: Add PMC8380 compatible
  regulator: qcom-rpmh: Add regulators support for PMC8380
  regulator: fixed: add support for under-voltage IRQ
  regulator: dt-bindings: fixed-regulator: Add under-voltage interrupt support
  dt-bindings: regulator: dlg,da9210: Convert to json-schema
  regulator: dt-bindings: Add ADI MAX77503 support
  regulator: max77503: Add ADI MAX77503 support
  regulator: Use device_get_match_data()
  regulator: da9121: Use i2c_get_match_data()
  regulator: Drop unnecessary of_match_device() calls
  regulator: da9063: Annotate struct da9063_regulators with __counted_by
  regulator: da9062: Annotate struct da9062_regulators with __counted_by
  regulator: mt6358: Add supply names for MT6366 regulators
  regulator: mt6358: Add missing regulators for MT6366
  regulator: mt6358: Make MT6366 vcn18 LDO configurable
  regulator: mt6358: fix and drop type prefix in MT6366 regulator node names
  regulator: mt6358: Add supply names for MT6358 regulators
  ...
parents 5cbff4b2 3e0569ff
Loading
Loading
Loading
Loading
+50 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
# Copyright (c) 2023 Analog Devices, Inc.
%YAML 1.2
---
$id: http://devicetree.org/schemas/regulator/adi,max77503-regulator.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Analog Devices MAX77503 Buck Converter

maintainers:
  - Gokhan Celik <Gokhan.Celik@analog.com>

description: |
  The Analog Devices MAX77503 is a single channel 14V input, 1.5A
  high-efficiency buck converter. This converter has 94% efficiency
  for 2-Cell/3-Cell battery applications.

allOf:
  - $ref: regulator.yaml#

properties:
  compatible:
    enum:
      - adi,max77503

  reg:
    description: I2C address of the device
    items:
      - enum: [0x1e, 0x24, 0x37]

required:
  - compatible
  - reg

unevaluatedProperties: false

examples:
  - |
    i2c {
        #address-cells = <1>;
        #size-cells = <0>;

        regulator@1e {
            compatible = "adi,max77503";
            reg = <0x1e>;

            regulator-min-microvolt = <800000>;
            regulator-max-microvolt = <5000000>;
        };
    };
+0 −29
Original line number Diff line number Diff line
* Dialog Semiconductor DA9210 Multi-phase 12A DCDC BUCK Converter

Required properties:

- compatible:	must be "dlg,da9210"
- reg:		the i2c slave address of the regulator. It should be 0x68.

Optional properties:

- interrupts:	a reference to the DA9210 interrupt, if available.

Any standard regulator properties can be used to configure the single da9210
DCDC.

Example:

	da9210@68 {
		compatible = "dlg,da9210";
		reg = <0x68>;

		interrupt-parent = <...>;
		interrupts = <...>;

		regulator-min-microvolt = <300000>;
		regulator-max-microvolt = <1570000>;
		regulator-min-microamp = <1600000>;
		regulator-max-microamp = <4600000>;
		regulator-boot-on;
	};
+52 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/regulator/dlg,da9210.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Dialog Semiconductor DA9210 Multi-Phase 12A DC-DC Buck Converter

maintainers:
  - Support Opensource <support.opensource@diasemi.com>

allOf:
  - $ref: regulator.yaml#

properties:
  compatible:
    const: dlg,da9210

  reg:
    maxItems: 1

  interrupts:
    maxItems: 1

required:
  - compatible
  - reg

unevaluatedProperties: false

examples:
  - |
    #include <dt-bindings/interrupt-controller/irq.h>

    i2c {
        #address-cells = <1>;
        #size-cells = <0>;

        regulator@68 {
            compatible = "dlg,da9210";
            reg = <0x68>;

            interrupt-parent = <&irqc0>;
            interrupts = <2 IRQ_TYPE_LEVEL_LOW>;

            regulator-min-microvolt = <300000>;
            regulator-max-microvolt = <1570000>;
            regulator-min-microamp = <1600000>;
            regulator-max-microamp = <4600000>;
            regulator-boot-on;
        };
    };
+5 −0
Original line number Diff line number Diff line
@@ -100,6 +100,11 @@ properties:
  vin-supply:
    description: Input supply phandle.

  interrupts:
    maxItems: 1
    description:
      Interrupt signaling a critical under-voltage event.

required:
  - compatible
  - regulator-name
+1 −0
Original line number Diff line number Diff line
@@ -43,6 +43,7 @@ properties:
      "^OUT[1-4]$":
        type: object
        $ref: regulator.yaml#
        unevaluatedProperties: false

    additionalProperties: false

Loading