From nobody Mon Feb 9 18:19:54 2026 Received: from mail-ed1-f66.google.com (mail-ed1-f66.google.com [209.85.208.66]) (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 C9EEF42980C for ; Thu, 22 Jan 2026 15:43:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.66 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769096625; cv=none; b=tqBgZW6ZX6wSuHvBxQxA3J/ubfPmXu82DWSrSjcYYpOsBSpW0IKKxB4FzsWV8nx6V9W8HpyyZXvTwuJ5i+gjhmnq3uGi1MJ9b/7Mbh9ZSX3cmS6VIHhZVmhY5cD8WldgwMXNs0K0KUYiFsFsMGDG867BYQpnsHU2d334Jl+w6xg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769096625; c=relaxed/simple; bh=Hu7CasII6Pg9XG8xVk/B520NQa20lPkG0k7c7sUpoQ8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=C5lsXWeov/ns75euCjEMfVugH8+JeWZDIFZCBgBqHq6796Wrh1YWbNfUf/t2oifPCC8IqBqPfbyyL+LE6iQo8nf4N0Zff0p81cw1KJkboGQ4i9gP1TFF44ujUETlJ29bBn//L0GPTy+F3EkHfjj5nEdMoh0jPfWaNejK54U182Y= 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=LZZjqpGU; arc=none smtp.client-ip=209.85.208.66 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="LZZjqpGU" Received: by mail-ed1-f66.google.com with SMTP id 4fb4d7f45d1cf-64d02c01865so1782707a12.1 for ; Thu, 22 Jan 2026 07:43:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1769096618; x=1769701418; 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=nH1u7Jw3yCrczk48x55vKelT7EzPUYE5MjIgvNuKolM=; b=LZZjqpGUvxLr1a5tYCTwQ2xbMSozF+fXkDsXcNzTXk4DxSOCfkFPc4WI4r1WfXYklS wrgkifBF1Ozokv1ap4DE3EkI/e4erJn4HNWmXi2P8+Z7Lrxs09trHBdJQPvV3ZE6Q7Uo aDyJVNJ21qAUFFEGocX+lAMZRmPSEuoTI2qXJ+zFtDW+62tRseBmqqK6+PN5kMkrq8KQ b3SHHkM5RpflYHmnSWLJo371CndudnQiCbfF7C28HCXtTBqyzTbKW/Qu+F/Jd0cxkqbi dNpvw32W828HcdoXgWUlHgsjzC96ERccMtCvQKbyqbpk4giGWTViv8qjbgPKlN0Ki0T/ aY7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769096618; x=1769701418; 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=nH1u7Jw3yCrczk48x55vKelT7EzPUYE5MjIgvNuKolM=; b=Sd3L9WZ/PKWKOW4nHcrjkFmzKrbD10VZbWI50Bv3EzSVj1Np5tmQe7q/Edpj+tLKJf 5lrGs71xBzbZF2/KwVat0WD7Diy9Ppyd0g0w4KSyZOG2MaTyazESPCPXuOPmN91hzy/J hH9bL2hClG6hp0hiPhgNe5gOL4wVX5ujQNQ9SeZs4tGIu72G4RvnYGEZAdtVYTBT58DI NXazy16i4Y2oXHKAB9wHYviy6IxFupTsnNMtPxgksvNI6/24BxyuuhBrxhTS7ffCNnrp ddmQq4mAHqbRmdbRMH2MTfIKvg9QUbxSnJeGp0p2DWCz0deUdMuYaxhPoL5Z5joXy9DN N5QA== X-Forwarded-Encrypted: i=1; AJvYcCWv2HpC/RYGfvJHEwhb9c0nHLvHEpt/qS90knhDEM2HCA+Y1v7l3b6lNaE7ISoXcP4C2Shwq6J1ct8JIVE=@vger.kernel.org X-Gm-Message-State: AOJu0YxVNVKB3uAldTdSjBSnRFyTPd9pUlWSGB2j3hpFTiFbProN2HQx d8P8D09duPrxXIrNxeF6MGvcDp0W2lhQw8RcWdcAl7ASz2M3f06z5/kiRoCBS47yU5o= X-Gm-Gg: AZuq6aJ298hyAcMtWY+q5ltIyEm7+t24OG+EvPc1XD0XUAvUbrSzJq48EEvKZ4b8fp8 ukhTWx1nUU6U2gn6NEkALMQazuN7RgfcF9FxbzMHNfhKY0Si7AUhsMJmDAp6xfurrEkC/jIoWAY a+Bl/BRiOzM1DniMEjcaLpfbEq+JfuEBFd8CvdE1O2qiFRLkw8GxPk2l9s6SYXTowLj+464vQ6p gBCc4FBDAiVwFZouF0Auc1bio20YOS5esHXae4SrThVZuk9H593Agk+oQCz85ehkWGXY9ZoexpT pLjrmGNigNDgcpLbBiL0OMwXD1UCSSxsQVIvV0/NgcCVHJ2XLix+ox7tU0D5UrooGOUePJXlZXd Z29Y+NuAIcUXQb1QHR4vLpAybeSD+5p295bazTyXRGdiBDBH/yvMRkF/yRAXPahZFIMEhW94P1+ CnYopKPYcFVjnrAOfq8TqMMxvhaCZdyIR4aIeFIVISAkp49Zovm8Qlr3Zx1Z8BCICAvul9HSlBE uDREw== X-Received: by 2002:a05:6402:51cb:b0:658:1224:3d51 with SMTP id 4fb4d7f45d1cf-658487c99edmr20114a12.32.1769096618033; Thu, 22 Jan 2026 07:43:38 -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-654535c49f4sm16334363a12.31.2026.01.22.07.43.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jan 2026 07:43:36 -0800 (PST) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 22 Jan 2026 15:43:31 +0000 Subject: [PATCH v7 04/20] dt-bindings: mfd: samsung,s2mps11: Split s2mpg10-pmic into separate file 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: <20260122-s2mpg1x-regulators-v7-4-3b1f9831fffd@linaro.org> References: <20260122-s2mpg1x-regulators-v7-0-3b1f9831fffd@linaro.org> In-Reply-To: <20260122-s2mpg1x-regulators-v7-0-3b1f9831fffd@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,s2mpg10-pmic binding is going to acquire various additional properties. To avoid making the common samsung,s2mps11 binding file too complicated due to additional nesting, split s2mpg10 out into its own file. As a side-effect, the oneOf for the interrupts is not required anymore, as the required: node is at the top-level now. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Andr=C3=A9 Draszik --- Note: checkpatch suggests to update MAINTAINERS, but the new file is covered already due to using a wildcard. v5: - collect tags - fix a typo in commit message complicateddue -> complicated due v4: - make yaml file name match compatible - add example (Krzysztof) v3: - new patch (Krzysztof) --- .../bindings/mfd/samsung,s2mpg10-pmic.yaml | 69 ++++++++++++++++++= ++++ .../devicetree/bindings/mfd/samsung,s2mps11.yaml | 29 +-------- 2 files changed, 70 insertions(+), 28 deletions(-) diff --git a/Documentation/devicetree/bindings/mfd/samsung,s2mpg10-pmic.yam= l b/Documentation/devicetree/bindings/mfd/samsung,s2mpg10-pmic.yaml new file mode 100644 index 0000000000000000000000000000000000000000..6475cd1d2d15e07d953c8b302c9= 0c785835985e5 --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/samsung,s2mpg10-pmic.yaml @@ -0,0 +1,69 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/samsung,s2mpg10-pmic.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Samsung S2MPG10 Power Management IC + +maintainers: + - Andr=C3=A9 Draszik + +description: | + This is part of the device tree bindings for the S2MPG family of Power + Management IC (PMIC). + + The Samsung S2MPG10 is a Power Management IC for mobile applications wit= h buck + converters, various LDOs, power meters, RTC, clock outputs, and addition= al + GPIO interfaces. + +properties: + compatible: + const: samsung,s2mpg10-pmic + + clocks: + $ref: /schemas/clock/samsung,s2mps11.yaml + description: + Child node describing clock provider. + + interrupts: + maxItems: 1 + + regulators: + type: object + description: + List of child nodes that specify the regulators. + + system-power-controller: true + + wakeup-source: true + +required: + - compatible + - interrupts + - regulators + +additionalProperties: false + +examples: + - | + #include + #include + + pmic { + compatible =3D "samsung,s2mpg10-pmic"; + interrupts-extended =3D <&gpa0 6 IRQ_TYPE_LEVEL_LOW>; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&pmic_int>; + system-power-controller; + wakeup-source; + + clocks { + compatible =3D "samsung,s2mpg10-clk"; + #clock-cells =3D <1>; + clock-output-names =3D "rtc32k_ap", "peri32k1", "peri32k2"; + }; + + regulators { + }; + }; diff --git a/Documentation/devicetree/bindings/mfd/samsung,s2mps11.yaml b/D= ocumentation/devicetree/bindings/mfd/samsung,s2mps11.yaml index 31d544a9c05cad878d10a0ae9b99631f08eb04a8..ac5d0c149796b6a4034b5d4245b= fa8be0433cfab 100644 --- a/Documentation/devicetree/bindings/mfd/samsung,s2mps11.yaml +++ b/Documentation/devicetree/bindings/mfd/samsung,s2mps11.yaml @@ -20,7 +20,6 @@ description: | properties: compatible: enum: - - samsung,s2mpg10-pmic - samsung,s2mps11-pmic - samsung,s2mps13-pmic - samsung,s2mps14-pmic @@ -59,42 +58,16 @@ properties: reset (setting buck voltages to default values). type: boolean =20 - system-power-controller: true - wakeup-source: true =20 required: - compatible + - reg - regulators =20 additionalProperties: false =20 allOf: - - if: - properties: - compatible: - contains: - const: samsung,s2mpg10-pmic - then: - properties: - reg: false - samsung,s2mps11-acokb-ground: false - samsung,s2mps11-wrstbi-ground: false - - # oneOf is required, because dtschema's fixups.py doesn't handle this - # nesting here. Its special treatment to allow either interrupt prop= erty - # when only one is specified in the binding works at the top level o= nly. - oneOf: - - required: [interrupts] - - required: [interrupts-extended] - - else: - properties: - system-power-controller: false - - required: - - reg - - if: properties: compatible: --=20 2.52.0.457.g6b5491de43-goog