Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.218.54 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795797400; b=ImvKBzUk+kgFb6xLLGQgWWGaj/AFgV+lR0Z+vtVtXFgzwaUZPyO+/qQb5F97t02k0F0N a7TE8oapOJf7zyfKy9/9vNEPyS+qMaSYbZ9vpMURelrKVDbaZFz2oikIioqAE80e0dU4n Dk0kje7j6l1196+FHZfS+sYrtqMDEdiO0E9q0b13TAFtb/89nnxq7n0q7It8oumT9jS8d RJMe3mjlWDKWYJkTj6WF3xiiUI0emhEiFo7gaJliJSiAumhvnwdsxPeq2TcOWGp9qB2up 23iCYIWE5wpJt1wQlUDgvw4Kj2rZg2XJweYTrT8ENKwMYlCqvvUc1wRRAhYoTGBVsGQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795797400; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding; bh=jZk2vXbxzjtX67c5jJifbTQJPrSiWJsANuJuPhZHRHs=; b=l2Rrpqk8YH8BcsZr+F9hPPXf1tfyjFbO6VfOR6gn3jYATbX4oYAOtHCB8JBw/KEcrag6 ZUYuTBLeRF/cVieszf52DfwOKjCjjdoCaJv8+/mNtnROYdtl/1WRbeRpESgITmoXfFjFR Aw5JDXBVLUUO8PuTGyCi7LS+Rhx/ZvH59zc3tDrCTKwzZNxnEYI8TS1+Gpe9SPbNQnlX2 cnlcFROO5ow6Kj7JyiBZNiCPj5QBLiczN4tsAh+C2F3VSGFDD5YNuNqM64s7/CKsXENj3 j0OSgTaKkPaR8ZrwbATGta1iuv/72ax5SC15zg41lNaIeDXINP1LPA6cGyLwRbXltmA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=px0QNtvo; arc=none smtp.remote-ip=209.85.218.54 Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 40147606A326 for ; Fri, 27 Nov 2026 16:36:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 40147606A326 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=px0QNtvo Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-c50e26763a4so411142566b.1 for ; Fri, 27 Nov 2026 08:36:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1795797397; x=1796402197; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=jZk2vXbxzjtX67c5jJifbTQJPrSiWJsANuJuPhZHRHs=; b=px0QNtvoc6glcKLk8fB9tGNePVpAPu8uPWj5MIuX4iq+2TsX49Rn/Tne38xCxYSwL6 ZTpQQ2scyRDGfVZ2dQ3J0f7KVDcoZ3rbBCKwQ9YKXQblgIXVgeLjnNdCwRtyK72u4MEj ILl+S5SZLH6/nK3IHgPKUYJtdQOEoourGRoyJZ5lLFOGnHguXcNlCS5tYOqgzIYegMxP iU88B1A7vjce3GCFvIBlIanbNzHCOFwyw+QrMMYlRCsk8fm5P/JJosrWkTzcg9n5EgpD FPK5nPxpmmorp24ojOvruaJBL1goWGDpXnsGsvftylhvBkUq18+sOfrOhMp6y5/G7Ar3 egJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795797397; x=1796402197; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=jZk2vXbxzjtX67c5jJifbTQJPrSiWJsANuJuPhZHRHs=; b=Uibya4af8ofio3nMNdpEHGBeq1yrDW8pKmrBelhoF1iU1COld1iOxlX6PWhdYFq+MJ dp78ESbV2kPcHRX7mkxcjGL/6H7FTm04kxmhQHGRDkuLjYsGgY9fyzQJiBJaic0dIS7t TpDfXBtYq+QB3pbTNSDeAi7ArHLkHoWpVOWbzhW685SCoXbRZXinP3grvNV6zf6amzMm fbHvkQnI2DulKE5hSfCefSTo4AS6FdhEDcyk4Oz7Lk+h0qXCCONj62LIvsbhQ5K/OjKU q+aF88rd2yGPuTcNUG4VWbvEFhpmX11eWmrObeHDMWkM8HsTDageDevJi31T9LwoqFam lmqg== X-Forwarded-Encrypted: i=1; AL+hErG5zhnc87twxobUrXMH93WOfGJRX4ZjWAefXuQPeYHnNgAQb3vOFldRS7WR+Ul4KCSEg78P7wEzgkvB@vger.kernel.org X-Gm-Message-State: APuU4Z/tXgY93SQVpcJOzWBAxRoXTD0ZZSr/7Fxkjq1e4jFhtR77j0E+ l2oddVuvfHHz03RwrylhCgMUseY3Gs2EpsLs6K0j+/2xUxdDODwNnW/c X-Gm-Gg: AZFdTZfrHcu7qvcbzRMZJvTOHmDTU7n+i0d+dqzkUIne7X4TVV6idAiNeYE4TVEToQO E9qfmNUyACmPQ7CDzia3elUQ8FlRgjCSTlI5/iIULm/CZJ1G9IV6QT150WC6eOdNJ8wcrU9XP1N eAr8t6R5pkkf6ZNxJBKrteKavngEY5KgzurEy5pKYf6OBvc9l5WQ6ROvUAOmAIY9KRbHRY+UIKa BeEGmu80J84YMVlxcjqptQKXPmUSO5gRTqp4xs66cE3pV6xapOu6hZkARPia2txYiqdB437ZgMt 9BMwPZpbC+mMJ5sJ5doumBLlQV0qF/qA3DvClKxEL/r/N0q5D1P26J9tjPtxyao6r6qo7qxcPVD xg3Lr/Ys1cpLC4GcinfStDv9CY7A6oYJsbb3QrFZcWq0UgN6x20ozqLs93LLY4rXgVa4At7qkDK ZTflFKkRzlnr9zRGcOqEoT08tUw4dKcnmkrc/dVULKAz1B29H3UWtasj/88eG7yX84QnZw5Nyx/ 5/Wmq44nZ42TnA9EcfV5UTg6SPhCcswl7/9GPoYMb8uSDWQ2NQIks96RMrmyuvCozIP68OSdDob 7kMoevjFZwH6EhvfDwNc5rY6x3vFSl7D0BuTacY/o1kQyjKdupPw06J2rMW+Ymh8FdruiNvFDFM YNq/DaWsdwg== X-Received: by 2002:a17:907:3e90:b0:c51:898c:ff with SMTP id a640c23a62f3a-c51898c01a9mr1186347466b.12.1795797396406; Fri, 27 Nov 2026 08:36:36 -0800 (PST) Received: from xeon ([188.163.112.54]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c513ae9dc7asm893079566b.41.2026.11.27.08.36.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Nov 2026 08:36:35 -0800 (PST) From: Svyatoslav Ryhel To: Liam Girdwood , Mark Brown , Svyatoslav Ryhel Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v1 1/3] regulator: dt-bindings: maxim,max8907: Convert to DT schema Date: Fri, 27 Nov 2026 18:36:10 +0200 Message-ID: <20261127163612.280186-2-clamor95@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261127163612.280186-1-clamor95@gmail.com> References: <20261127163612.280186-1-clamor95@gmail.com> X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Convert Maxim MAX8907 regulator binding from text to DT schema. Reference to nvidia,tegra-regulators-coupling in child regulator nodes. Acked-by: Mark Brown Reviewed-by: Rob Herring (Arm) Signed-off-by: Svyatoslav Ryhel --- .../devicetree/bindings/regulator/max8907.txt | 69 ----- .../bindings/regulator/maxim,max8907.yaml | 283 ++++++++++++++++++ 2 files changed, 283 insertions(+), 69 deletions(-) delete mode 100644 Documentation/devicetree/bindings/regulator/max8907.txt create mode 100644 Documentation/devicetree/bindings/regulator/maxim,max8907.yaml diff --git a/Documentation/devicetree/bindings/regulator/max8907.txt b/Documentation/devicetree/bindings/regulator/max8907.txt deleted file mode 100644 index 371eccd1cd689..0000000000000 --- a/Documentation/devicetree/bindings/regulator/max8907.txt +++ /dev/null @@ -1,69 +0,0 @@ -MAX8907 regulator - -Required properties: -- compatible: "maxim,max8907" -- reg: I2C slave address -- interrupts: The interrupt output of the controller -- mbatt-supply: The input supply for MBATT, BBAT, SDBY, VRTC. -- in-v1-supply: The input supply for SD1. -- in-v2-supply: The input supply for SD2. -- in-v3-supply: The input supply for SD3. -- in1-supply: The input supply for LDO1. -... -- in20-supply: The input supply for LDO20. -- regulators: A node that houses a sub-node for each regulator within the - device. Each sub-node is identified using the node's name (or the deprecated - regulator-compatible property if present), with valid values listed below. - The content of each sub-node is defined by the standard binding for - regulators; see regulator.txt. - -Optional properties: -- maxim,system-power-controller: Boolean property indicating that the PMIC - controls the overall system power. - -The valid names for regulators are: - - sd1, sd2, sd3, ldo1, ldo2, ldo3, ldo4, ldo5, ldo6, ldo7, ldo8, ldo9, ldo10, - ldo11, ldo12, ldo13, ldo14, ldo15, ldo16, ldo17, ldo18, ldo19, ldo20, out5v, - out33v, bbat, sdby, vrtc. - -Example: - - max8907@3c { - compatible = "maxim,max8907"; - reg = <0x3c>; - interrupts = <0 86 0x4>; - - maxim,system-power-controller; - - mbatt-supply = <&some_reg>; - in-v1-supply = <&mbatt_reg>; - ... - in1-supply = <&mbatt_reg>; - ... - - regulators { - mbatt_reg: mbatt { - regulator-name = "vbat_pmu"; - regulator-min-microvolt = <5000000>; - regulator-max-microvolt = <5000000>; - regulator-always-on; - }; - - sd1 { - regulator-name = "nvvdd_sv1,vdd_cpu_pmu"; - regulator-min-microvolt = <1000000>; - regulator-max-microvolt = <1000000>; - regulator-always-on; - }; - - sd2 { - regulator-name = "nvvdd_sv2,vdd_core"; - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <1200000>; - regulator-always-on; - }; -... - }; - }; - }; diff --git a/Documentation/devicetree/bindings/regulator/maxim,max8907.yaml b/Documentation/devicetree/bindings/regulator/maxim,max8907.yaml new file mode 100644 index 0000000000000..6cf8e93867e1a --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/maxim,max8907.yaml @@ -0,0 +1,283 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/regulator/maxim,max8907.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Maxim Integrated MAX8907 PMIC + +maintainers: + - Svyatoslav Ryhel + +properties: + compatible: + const: maxim,max8907 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + maxim,system-power-controller: + type: boolean + deprecated: true + description: + Telling whether or not this PMIC is controlling the system power. + + system-power-controller: true + + mbatt-supply: + description: + The input supply for MBATT, BBAT, SDBY, VRTC. + + regulators: + type: object + additionalProperties: false + + patternProperties: + "^(sd[1-3]|ldo([1-9]|1[0-9]|20)|bbat|mbatt|out(5v|33v)|sdby|vrtc)$": + allOf: + - $ref: /schemas/regulator/regulator.yaml# + - $ref: /schemas/regulator/nvidia,tegra-regulators-coupling.yaml# + unevaluatedProperties: false + +patternProperties: + "^in-v[1-3]-supply$": + description: + The input supply for SD1, SD2 and SD3. + + "^in([1-9]|1[0-9]|20)-supply$": + description: + The input supply for LDO1 - LDO20. + +required: + - compatible + - reg + - interrupts + - regulators + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + pmic@3c { + compatible = "maxim,max8907"; + reg = <0x3c>; + interrupts = <0 86 0x4>; + + system-power-controller; + + mbatt-supply = <&vdd_5v0_sys>; + in-v1-supply = <&vdd_3v3_vbat>; + in-v2-supply = <&vdd_3v3_vbat>; + in-v3-supply = <&vdd_3v3_vbat>; + in1-supply = <&vdd_3v3_vbat>; + in2-supply = <&vdd_1v8_vio>; + in3-supply = <&vdd_3v3_vbat>; + in4-supply = <&vdd_3v3_vbat>; + in5-supply = <&vdd_3v3_vbat>; + in6-supply = <&vdd_3v3_vbat>; + in7-supply = <&vdd_3v3_vbat>; + in8-supply = <&vdd_3v3_vbat>; + in9-supply = <&vdd_3v3_vbat>; + in10-supply = <&vdd_3v3_vbat>; + in11-supply = <&vdd_3v3_vbat>; + in12-supply = <&vdd_3v3_vbat>; + in13-supply = <&vdd_3v3_vbat>; + in14-supply = <&vdd_3v3_vbat>; + in15-supply = <&vdd_3v3_vbat>; + in16-supply = <&vdd_3v3_vbat>; + in17-supply = <&vdd_1v8_vio>; + in18-supply = <&vdd_3v3_vbat>; + in19-supply = <&vdd_3v3_vbat>; + in20-supply = <&vdd_3v3_vbat>; + + regulators { + vdd_3v3_vbat: mbatt { + regulator-name = "v_powerrail"; + regulator-always-on; + }; + + sd1 { + regulator-name = "vcc_1v2_ddrio"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + regulator-always-on; + regulator-boot-on; + }; + + vdd_core: sd2 { + regulator-name = "vdd_core"; + regulator-min-microvolt = <950000>; + regulator-max-microvolt = <1300000>; + regulator-always-on; + regulator-boot-on; + }; + + vdd_1v8_vio: sd3 { + regulator-name = "vcc_1v8_io"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + regulator-boot-on; + }; + + ldo1 { + regulator-name = "vcc_3v3_ddr"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + regulator-boot-on; + }; + + ldo2 { + regulator-name = "vcc_1v1_pll"; + regulator-min-microvolt = <1100000>; + regulator-max-microvolt = <1100000>; + regulator-always-on; + regulator-boot-on; + }; + + iovcc_1v8_lcd: ldo3 { + regulator-name = "vcc_1v8_lcd"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-boot-on; + }; + + avdd_3v3_usb: ldo4 { + regulator-name = "avdd_3v3_usb"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + regulator-boot-on; + }; + + vcore_emmc: ldo5 { + regulator-name = "vcc_2v8_emmc"; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + regulator-boot-on; + }; + + vcc_hdmi_pll: ldo6 { + regulator-name = "vcc_hdmi_pll"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + vcc_3v0_sensor: ldo7 { + regulator-name = "vcc_3v0_sensor"; + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3000000>; + regulator-boot-on; + }; + + vcc_1v8_sensor: ldo8 { + regulator-name = "vcc_1v8_sensor"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-boot-on; + }; + + ldo9 { + regulator-name = "vcc_3v3_fuse"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + }; + + vcc_3v1_touch: ldo10 { + regulator-name = "vcc_3v1_touch"; + regulator-min-microvolt = <3100000>; + regulator-max-microvolt = <3100000>; + regulator-boot-on; + }; + + vdd_3v3_hdmi: ldo11 { + regulator-name = "vdd_3v3_hdmi"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + }; + + vdd_usd: ldo12 { + regulator-name = "vcc_2v8_sdio"; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + regulator-boot-on; + }; + + vcc_3v0_motor: ldo13 { + regulator-name = "vcc_3v0_motor"; + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3000000>; + }; + + vcc_2v8_lcd: ldo14 { + regulator-name = "vcc_2v8_lcd"; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + regulator-boot-on; + }; + + vcc_3v3_temp: ldo15 { + regulator-name = "vcc_3v3_temp"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + }; + + /* LDO16 is not used */ + + avdd_dsi_csi: ldo17 { + regulator-name = "vcc_1v2_mipi"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + }; + + ldo18 { + regulator-name = "vcc_1v8_vi"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + vcc_1v8_touch: ldo19 { + regulator-name = "vcc_1v8_touch"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-boot-on; + }; + + /* LDO20 is not used */ + + out5v { + regulator-name = "usb0_vbus_reg"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + }; + + /* OUT33V is not used */ + + bbat { + regulator-name = "vcc_bbat"; + }; + + vdd_rtc: sdby { + regulator-name = "vcc_rtc"; + regulator-min-microvolt = <950000>; + regulator-max-microvolt = <1300000>; + regulator-always-on; + regulator-boot-on; + }; + + vrtc { + regulator-name = "vrtc"; + }; + }; + }; + }; +... -- 2.53.0