mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Michiel van Beers via B4 Relay <devnull+michielvanbeers.gmail.com@kernel.org>
To: Michiel van Beers <michielvanbeers@gmail.com>,
	 Liam Girdwood <lgirdwood@gmail.com>,
	Mark Brown <broonie@kernel.org>,  Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	 Conor Dooley <conor+dt@kernel.org>,
	Guenter Roeck <linux@roeck-us.net>,
	 Jonathan Corbet <corbet@lwn.net>,
	Shuah Khan <skhan@linuxfoundation.org>,
	 Randy Dunlap <rdunlap@infradead.org>
Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
	 linux-hwmon@vger.kernel.org, linux-doc@vger.kernel.org,
	 Andreas Kemnade <andreas@kemnade.info>,
	Pablo Mazzini <pmazzini@gmail.com>
Subject: [PATCH 1/3] regulator: dt-bindings: Add Maxim MAX17135
Date: Wed, 02 Dec 2026 17:43:38 +0100	[thread overview]
Message-ID: <20261202-max17135-v1-1-beae6b70d575@gmail.com> (raw)
In-Reply-To: <20261202-max17135-v1-0-beae6b70d575@gmail.com>

From: Michiel van Beers <michielvanbeers@gmail.com>

The MAX17135 is a power management IC for E-paper displays. It provides
the source and gate driver rails, a VCOM amplifier with a non-volatile
preset and a temperature sensor.

Describe the whole chip, including the pins and settings that a first
driver does not use yet.

Signed-off-by: Michiel van Beers <michielvanbeers@gmail.com>
---
 .../bindings/regulator/maxim,max17135.yaml         | 155 +++++++++++++++++++++
 1 file changed, 155 insertions(+)

diff --git a/Documentation/devicetree/bindings/regulator/maxim,max17135.yaml b/Documentation/devicetree/bindings/regulator/maxim,max17135.yaml
new file mode 100644
index 000000000000..a4883827e58f
--- /dev/null
+++ b/Documentation/devicetree/bindings/regulator/maxim,max17135.yaml
@@ -0,0 +1,155 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/regulator/maxim,max17135.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Maxim MAX17135 Power Management IC for E-Paper Displays
+
+maintainers:
+  - Michiel van Beers <michielvanbeers@gmail.com>
+
+description: |
+  The MAX17135 powers an electrophoretic (E-paper) display. It provides the
+  source driver rails POS and NEG (+15 V and -15 V), the gate driver rails
+  GVDD and GVEE, a VCOM amplifier with a non-volatile preset, and a
+  temperature sensor with an internal and an external diode channel.
+
+  POS, NEG, GVDD and GVEE are sequenced together and are described as one
+  regulator, vposneg. VCOM is a second regulator supplied by the first.
+
+  Datasheet:
+  https://www.analog.com/media/en/technical-documentation/data-sheets/MAX17135.pdf
+
+properties:
+  compatible:
+    const: maxim,max17135
+
+  reg:
+    maxItems: 1
+
+  enable-gpios:
+    description:
+      EN pin. Starts the power-up sequence of the display rails. If absent,
+      the rails are switched through the Enable register and the pin must be
+      low or unconnected.
+    maxItems: 1
+
+  vcom-ctrl-gpios:
+    description:
+      CEN pin. Enables the VCOM output. If absent, VCOM is switched through
+      the Enable register and the pin must be low or unconnected.
+    maxItems: 1
+
+  pwr-good-gpios:
+    description:
+      POK pin. High when all display rails are in regulation.
+    maxItems: 1
+
+  interrupts:
+    description:
+      FLT pin. Open drain, low while a fault is latched.
+    maxItems: 1
+
+  vin-supply:
+    description:
+      Supply of the IN and INN pins (2.7 V to 5.5 V).
+
+  vdd-supply:
+    description:
+      Supply of the VDD pin, the logic and I2C supply (1.6 V to 5.5 V).
+
+  maxim,power-up-delays-ms:
+    description:
+      Delays t1 to t4 of the power-up sequence, for GVEE, NEG, POS and GVDD
+      in that order. If absent, the values preset in the non-volatile memory
+      are used.
+    minItems: 4
+    maxItems: 4
+    items:
+      maximum: 255
+
+  maxim,power-down-delays-ms:
+    description:
+      Delays t5 to t8 of the power-down sequence, for GVDD, POS, NEG and
+      GVEE in that order. If absent, the values preset in the non-volatile
+      memory are used.
+    minItems: 4
+    maxItems: 4
+    items:
+      maximum: 255
+
+  regulators:
+    type: object
+    additionalProperties: false
+
+    properties:
+      vposneg:
+        type: object
+        $ref: /schemas/regulator/regulator.yaml#
+        unevaluatedProperties: false
+        description:
+          The display rails POS, NEG, GVDD and GVEE.
+
+      vcom:
+        type: object
+        $ref: /schemas/regulator/regulator.yaml#
+        unevaluatedProperties: false
+        description:
+          The VCOM output. The voltage is negative; it is given as a
+          positive magnitude from 500000 to 3050000 microvolts. If no
+          voltage is given, the value preset in the non-volatile memory is
+          used.
+
+        properties:
+          vposneg-supply:
+            description:
+              The vposneg regulator of this chip.
+
+        required:
+          - vposneg-supply
+
+required:
+  - compatible
+  - reg
+  - pwr-good-gpios
+  - vin-supply
+  - regulators
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/gpio/gpio.h>
+    #include <dt-bindings/interrupt-controller/irq.h>
+
+    i2c {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        pmic@48 {
+            compatible = "maxim,max17135";
+            reg = <0x48>;
+            pwr-good-gpios = <&gpio2 7 GPIO_ACTIVE_HIGH>;
+            enable-gpios = <&gpio2 8 GPIO_ACTIVE_HIGH>;
+            vcom-ctrl-gpios = <&gpio2 9 GPIO_ACTIVE_HIGH>;
+            interrupts-extended = <&gpio2 0 IRQ_TYPE_LEVEL_LOW>;
+            vin-supply = <&reg_epd_3v3>;
+            vdd-supply = <&reg_1v8>;
+            maxim,power-up-delays-ms = <30 60 90 120>;
+            maxim,power-down-delays-ms = <30 60 90 120>;
+
+            regulators {
+                epd_vposneg: vposneg {
+                    regulator-name = "epd-vposneg";
+                };
+
+                vcom {
+                    regulator-name = "epd-vcom";
+                    regulator-min-microvolt = <1250000>;
+                    regulator-max-microvolt = <1250000>;
+                    vposneg-supply = <&epd_vposneg>;
+                };
+            };
+        };
+    };

-- 
2.43.0



  reply	other threads:[~2026-12-02 16:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-02 16:43 [PATCH 0/3] regulator: Add Maxim MAX17135 E-paper PMIC driver Michiel van Beers via B4 Relay
2026-12-02 16:43 ` Michiel van Beers via B4 Relay [this message]
2026-12-02 16:43 ` [PATCH 2/3] regulator: Add Maxim MAX17135 driver Michiel van Beers via B4 Relay
2026-12-02 16:43 ` [PATCH 3/3] hwmon: Add Maxim MAX17135 temperature sensor driver Michiel van Beers via B4 Relay
2026-12-02 17:36   ` Andreas Kemnade

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261202-max17135-v1-1-beae6b70d575@gmail.com \
    --to=devnull+michielvanbeers.gmail.com@kernel.org \
    --cc=andreas@kemnade.info \
    --cc=broonie@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=corbet@lwn.net \
    --cc=devicetree@vger.kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-hwmon@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@roeck-us.net \
    --cc=michielvanbeers@gmail.com \
    --cc=pmazzini@gmail.com \
    --cc=rdunlap@infradead.org \
    --cc=robh@kernel.org \
    --cc=skhan@linuxfoundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®