From nobody Mon Feb 9 17:57:50 2026 Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) (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 64EAC32AADD for ; Mon, 5 Jan 2026 09:01:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767603707; cv=none; b=FgEN7mYnYypsrDssoLXpsdZ1eHCW9kYjunknF19mxbTfa5MGyFfpAAhEVfNp76fAW9OASgMqRrACAAHMLzy16VsbFkmltQH6FJJwpkIBMCw1YyXSGsVmtLMAkLJ+QdxjFxfYpnB0IEsH1q8A52M94sY35rMXtXZR0S39GNZ5ico= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767603707; c=relaxed/simple; bh=Q0CedTDoxzAYvTyoSGG2JCu7m4Qn+Y6GBjY/RZepsts=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ifCbQ+iaGwZauyQXzHnIx9JM5r8iuTPMi4XmueL/0uv9fgVYP8i4YA94Ej9nEMHG1IdrNtjuuesrvCg8SrtOToH7NoneCSeZT/DaOST9VJQG+JATgb+dhQiqSr0QFoRaGfYVnbma2RyGiJJPwWgVNZZwjtbSwBIo0Gcs18YdQ3I= 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=MgTfXMRQ; arc=none smtp.client-ip=209.85.218.42 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="MgTfXMRQ" Received: by mail-ej1-f42.google.com with SMTP id a640c23a62f3a-b832522b47cso1065549366b.0 for ; Mon, 05 Jan 2026 01:01:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1767603702; x=1768208502; 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=PoAySoFSuOUGBXwBkj/tqOj8zEikF0/rK/x+6MrVKns=; b=MgTfXMRQb7z4QC8fF8udBaOyALbslF4vq3V0KGigPvYaJrUQ3OhKu5kBDco5aBzwwC ymu94mand20FlHJ9pp5edUAEN98L+DpWUpqHXdbhZ5TghFqeFbtfTgVmElTL1stqiWLa RHk/11l44ntf7rPulGzwUNljBFfPo6+rsAo6FY+RiMIrQolqKZwSphAiLu5TyFN8b0+m BPZj94wC6aFlKHFmQKf0FzRr+dT5Cgc2GtKPCcfZnLJzdh2MJs2rBDYX3cGP+QrBGKSq EulDZpUIf3Qb2DpkYMCdcucw7kXb+r1RGSnSnk5v3lTwbfMu4oovrEOBiyab4NpD7tx1 FRpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767603702; x=1768208502; 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=PoAySoFSuOUGBXwBkj/tqOj8zEikF0/rK/x+6MrVKns=; b=HkpPEuE5idS6rsjO4J8CLV5iMT8y5UI/vpOrgoe6zRhdkcwN56gsfhXZcBnJT1ACdx 1HwSEmqUwuMEPr6LCttrZXyQ0+lCi0v1XF7wHXHKX7VlAZvILpsw8TJXXxfvc0UyIEW9 DDd3GDx4hLFtZBOydspmvInit5GCMSJ+tFKm1DPXcgrsW6KqTtOAxqOHYIOh8CmDFqZ0 DGbhnCxsKrKl8vAklfCBNib+aMEtYCrtagPuSytKAK5Vv/RDKZ1PyZBX2jiK9BbX0lkI SWrmGgBHOaZbV0A9dBDG283c4YD4T31hWM4j5C1ZfBY2wrLn28UDtDNVSNUA0yosoPcR wwPA== X-Forwarded-Encrypted: i=1; AJvYcCU2LElO6kdJwgfmbdyYsb0T2ZSkmBPI4FJnwqbPk4x3XDnhDiaeuAHuptjVn32cVBm/PwfVWq/iY8kASCM=@vger.kernel.org X-Gm-Message-State: AOJu0YyTIc1N0vMXOEONxoELz+pNwQvA4m/Pk73mjbBAr5ttH1ZNWkN7 B9GHFUkoF5uc0ezmzkPZ7CHxvvRutYcNTcpRPxEXSdSZQVT9pCvOMr87Z1iF3h9Lt5A= X-Gm-Gg: AY/fxX7gkQvF5jA1QSUDWBjx6F9NMqv9U+lh4rJjds+usdD65C+AGzapTtqCFoea6kq +wB6CLvnoJPgq6qlk80TKp7mAVAwpRR/np2ouipHz96ZHfouF9CSzSP4UThbbpNsdumQA7R8Wfd EgomsswopBRa1EPobKpr/zMoCIthdYccuO44mvTvJnWr9X4W0OI5HfoW6/FqRSmwZZ4yficcMf+ lHNSSxKWIj8gzLrBqxZCCaT3WFgec4w6INfsH2XYhX/zOxkFYMhAiHS16zql3HNRwL0ZZybmCQ1 My42pkt9ZxGQUQSEaUU8+vK9hk8j7Qkf1RUzmYIq2+H180+jcoW4asIE65C1UCUwJclAmBrnzv2 IWjNNdB9pO8eWs7NEN2FPvEAC9zDyjZdcLIRP26bGsxDPQeCuRUmAkgGtij6e7ZcTl8RKpypXFz bvkmI9TvvgVhRBmjjPJ8/LexJCcvsGIjiiXMohQ6ao4mP5FFvDmNaYWg2hw6si5O5NG+aEIX/JO k0VpQ== X-Google-Smtp-Source: AGHT+IHLNZp+Jq1jsa53Bnqvt7GnC4A/Xve6KIieFsmmoiEgzeIhn3tFkD2eHD+IaKS3ZUoDDcDeqA== X-Received: by 2002:a17:907:5c2:b0:b73:572d:3aff with SMTP id a640c23a62f3a-b80371533ecmr4767140866b.35.1767603702389; Mon, 05 Jan 2026 01:01:42 -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 a640c23a62f3a-b8037f0ecb9sm5384010466b.56.2026.01.05.01.01.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Jan 2026 01:01:42 -0800 (PST) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Mon, 05 Jan 2026 09:01:40 +0000 Subject: [PATCH v6 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: <20260105-s2mpg1x-regulators-v6-4-80f4b6d1bf9d@linaro.org> References: <20260105-s2mpg1x-regulators-v6-0-80f4b6d1bf9d@linaro.org> In-Reply-To: <20260105-s2mpg1x-regulators-v6-0-80f4b6d1bf9d@linaro.org> To: Tudor Ambarus , Rob Herring , Conor Dooley , Krzysztof Kozlowski , Liam Girdwood , Mark Brown , Lee Jones , Bartosz Golaszewski , Krzysztof Kozlowski , Linus Walleij , Bartosz Golaszewski , Linus Walleij 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.351.gbe84eed79e-goog