From nobody Tue Feb 10 04:08:17 2026 Received: from mail-ed1-f46.google.com (mail-ed1-f46.google.com [209.85.208.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B4F9C32ED5B for ; Sat, 27 Dec 2025 12:24:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766838275; cv=none; b=Bnbx32IY4MhZrCsRw2SYWQvuAMrSzF4Ity0iW/GbIOpJVGGE6b7jDY1u3rMU9NQk53PiY0cE3V0GDE9zJGxtMGFisUI5pVYgMrR/mZBbD7RshObPeRNasJ+xLjevVa97ZpvRzmjZoNU9s6/fNazBeBbAC9ml4IVv7rY07Of4auk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766838275; c=relaxed/simple; bh=aubReYwjqANuwkLNLEVgfFzepyO8fT5RaOuCKS4xuyE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=a95Kbcgq3PL+SNmeyRMJZBAiuEvagwXQw61rixLLGDteD4lILtLmd/bdePAhlMw7eNxVU/RD7H9plCvYO2GqNaz9CqGZuj7LzNxuI4pxAOeoRQvfohAhV5JyRghYrkzENjKFV+zdodwkYJJq+yUp03I9Wa84MsbjLCBqyAx+AEw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=DOluwDvN; arc=none smtp.client-ip=209.85.208.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="DOluwDvN" Received: by mail-ed1-f46.google.com with SMTP id 4fb4d7f45d1cf-64b791b5584so11335172a12.0 for ; Sat, 27 Dec 2025 04:24:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1766838271; x=1767443071; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=5W1/4QyvrrrF6qZFn1ADTO8hKq/uJgt895DTkpi0Lzo=; b=DOluwDvN7MVa81mgJVKi1f/zYUnMuMESjeuXZmeDMhPO0uanfabtbYVTAk44OdDCxl khxhFP4lh1L1Fyw/Flj7vqaILNIrft4GJoWTDRwqLFeE3zJX7jff7dgwI3gRwqIQoYV5 L9KEr1UtNb3XN47Bl0hjCSGnPL6/5Jv31AtT9j7uk8zOJcf+tPDNL/ARfcjqZI5SYZRR 5OgDlfG+ASHSX32PwgN8Ll/Bqwah+skmq3ilHK14+z68p6YEXppQ90G/P58ICs7boNP8 qrK2oeoXGjwskOxzWsdRuyhIBb+G4Gl8DcOdqqXopLuEFL7FWcm0PGUjoKITM+r3hMqR /n5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1766838271; x=1767443071; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=5W1/4QyvrrrF6qZFn1ADTO8hKq/uJgt895DTkpi0Lzo=; b=qENcFM+IuVqj0MthgC66kfFtf70Gixg6ac6mwRSe4UuiNHh/4lBlpxRlo2QaVLt0lc IfuLGqqMzAoqf5DbpKHGWgcVCQzuaeI/AgRGrYlExWBnLfx+Pbt7X/JC/EGboU2RCGER O1lttuTt7Nm8Igrm6V/Gbb9+pqsm1eTvdanwngG8wfvXSlL1s+jwJCwXyPu/ZpEceK/u Yasg8Bsiylpyv6vDOgoQQHlqlk06LdJSXLesOaJp7lthP+P2du2+u/nXqhtQJbIXsy0p XTTF479kNGsxXXYkjYbs6dzy+c0M1z6CiVo9khXz4jU5IguYslxu5qFIB9iFKAIXF3jI 7chA== X-Forwarded-Encrypted: i=1; AJvYcCWXQl3QNp7ltm0sZNQv83ySsh3p9sxatSWYWdnH9DyUkAvgVir5puCjtC/7246NrYGferUqZcEkoNjgfWw=@vger.kernel.org X-Gm-Message-State: AOJu0Yztjd0o1PnwMLe5X5tMC9QnEBV8MW3M/G49idw7Q39P98xYeq15 d5nrIiWd0A0E1ipU/Kx47vyfLrZjRW+uVEjGcdPRjYtXqlmWiwZVgePLPCKnjS1wUC0= X-Gm-Gg: AY/fxX45cBgLmxj2OuOF10cpdUuGUHwbyWqos9lUIO7kPpEKzs1HQCVWwVuGOh7+s40 6ih14PdBTzI3Q6sOhMwR3tB5VdJFYPZdN2mX1XcRPXfmsn8qS9Y3zKZEYsD1X+LS8lnUgWpjJJq wJ0vvWJn9LIRNtQFV0KHTe5bLMfgT+BRPoF/KHRnQGQZWx5/Nhy5J1I16lZLE4/9JZ2PMaubZ6k fBxnOiW/+rmBFA0Jk5kz9XZr9kZ8lfrO8qFky0BIQj2q6Cq3cwyJqJTsempm27Yz8dEKH1wiWPn TSXGG1HSZJdqmAzy1HBYOgeqDcgaPH9JIEkml3orJLOSu5wLiUYMoI36u32nckIczaM9haskFQN EWkrbw1wCbk6ZiuyeiHnNrMtcp6KPqBhhJAHRC68Mv0Gxr4sfrFELeGT/jBrH85Sq1/4mjaMZYv gK+QZgVCGVcji0kAICNVsg8kiJFIseN+eptFZ+d0uOqMAweFF9Fg5WHL+8L/uHU2Za/rVLw8kRo 3jYfA== X-Google-Smtp-Source: AGHT+IHKNrgbFALiao/cpd7mt183lE5L6kyEfG9J/2ltABs41Gj1m0uvaXUI2oj79RKqq8FnsABI3w== X-Received: by 2002:a05:6402:51cc:b0:64b:a1e6:8018 with SMTP id 4fb4d7f45d1cf-64ba1e6832dmr21235958a12.31.1766838270685; Sat, 27 Dec 2025 04:24:30 -0800 (PST) Received: from puffmais2.c.googlers.com (244.175.141.34.bc.googleusercontent.com. [34.141.175.244]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-64b916adc61sm25932659a12.31.2025.12.27.04.24.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Dec 2025 04:24:30 -0800 (PST) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Sat, 27 Dec 2025 12:24:28 +0000 Subject: [PATCH v5 06/21] dt-bindings: mfd: Add samsung,s2mpg11-pmic Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20251227-s2mpg1x-regulators-v5-6-0c04b360b4c9@linaro.org> References: <20251227-s2mpg1x-regulators-v5-0-0c04b360b4c9@linaro.org> In-Reply-To: <20251227-s2mpg1x-regulators-v5-0-0c04b360b4c9@linaro.org> To: Tudor Ambarus , Rob Herring , Conor Dooley , Krzysztof Kozlowski , Liam Girdwood , Mark Brown , Lee Jones , Linus Walleij , Bartosz Golaszewski , Krzysztof Kozlowski , Linus Walleij , Bartosz Golaszewski Cc: Peter Griffin , Will McVicker , Juan Yescas , kernel-team@android.com, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-gpio@vger.kernel.org, =?utf-8?q?Andr=C3=A9_Draszik?= , Krzysztof Kozlowski X-Mailer: b4 0.14.2 The Samsung S2MPG11 PMIC is similar to the existing S2MPG10 PMIC supported by this binding, but still differs enough from it to justify a separate binding. It is a Power Management IC for mobile applications with buck converters, various LDOs, power meters, NTC thermistor inputs, and additional GPIO interfaces and typically complements an S2MPG10 PMIC in a main/sub configuration as the sub-PMIC. Like S2MPG10, communication is via the Samsung ACPM firmware and it therefore needs to be a child of the ACPM firmware node. Add the PMIC, the regulators node, and the supply inputs of the regulator rails, with the supply names matching the datasheet. Note: S2MPG11 is typically used as the sub-PMIC together with an S2MPG10 PMIC in a main/sub configuration, hence the datasheet and the binding both suffix the supplies with an 's'. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Andr=C3=A9 Draszik --- v4: - Krzysztof: - move to new separate binding samsung,s2mpg11-pmic.yaml - add example v3: - move to new samsung,s2mpg10.yaml file - deny 'clocks' property - mention NTC thermistor inputs in commit message - move all patternProperties to top-level v2: - add | to vinb*-supply description for better formatting to mark as literal style - mention GPIOs in commit message --- .../bindings/mfd/samsung,s2mpg11-pmic.yaml | 88 ++++++++++++++++++= ++++ 1 file changed, 88 insertions(+) diff --git a/Documentation/devicetree/bindings/mfd/samsung,s2mpg11-pmic.yam= l b/Documentation/devicetree/bindings/mfd/samsung,s2mpg11-pmic.yaml new file mode 100644 index 0000000000000000000000000000000000000000..62cedbbd9d8c4cb7e9dfc039c1c= 747e334903b20 --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/samsung,s2mpg11-pmic.yaml @@ -0,0 +1,88 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/samsung,s2mpg11-pmic.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Samsung S2MPG11 Power Management IC + +maintainers: + - Andr=C3=A9 Draszik + +description: | + This is part of the device tree bindings for the S2MPG11 Power Managemen= t IC + (PMIC). + + The Samsung S2MPG11 is a Power Management IC for mobile applications wit= h buck + converters, various LDOs, power meters, NTC thermistor inputs, and addit= ional + GPIO interfaces and typically complements an S2MPG10 PMIC in a main/sub + configuration as the sub-PMIC. + +properties: + compatible: + const: samsung,s2mpg11-pmic + + interrupts: + maxItems: 1 + + regulators: + type: object + $ref: /schemas/regulator/samsung,s2mpg11-regulator.yaml + description: + List of child nodes that specify the regulators. + + wakeup-source: true + +patternProperties: + "^vinb(([1-9]|10)s|[abd])-supply$": + description: + Phandle to the power supply for each buck rail of this PMIC. There i= s a + 1:1 mapping of numbered supply to rail, e.g. vinb1s-supply supplies + buck1s. The remaining mapping is as follows + vinba - bucka + vinbb - buck boost + vinbd - buckd + + "^vinl[1-6]s-supply$": + description: | + Phandle to the power supply for one or multiple LDO rails of this PM= IC. + The mapping of supply to rail(s) is as follows + vinl1s - ldo1s, ldo2s + vinl2s - ldo8s, ldo9s + vinl3s - ldo3s, ldo5s, ldo7s, ldo15s + vinl4s - ldo10s, ldo11s, ldo12s, ldo14s + vinl5s - ldo4s, ldo6s + vinl6s - ldo13s + +required: + - compatible + - interrupts + - regulators + +additionalProperties: false + +examples: + - | + #include + #include + #include + + pmic { + compatible =3D "samsung,s2mpg11-pmic"; + interrupts-extended =3D <&gpa0 7 IRQ_TYPE_LEVEL_LOW>; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&pmic_int>; + wakeup-source; + + vinl1s-supply =3D <&buck8m>; + vinl2s-supply =3D <&buck6s>; + + regulators { + buckd { + regulator-name =3D "vcc_ufs"; + regulator-ramp-delay =3D <6250>; + enable-gpios =3D <&gpp0 1 GPIO_ACTIVE_HIGH>; + samsung,ext-control =3D ; + }; + }; + }; --=20 2.52.0.351.gbe84eed79e-goog