From nobody Fri Dec 19 20:52:43 2025 Received: from mail-ej1-f46.google.com (mail-ej1-f46.google.com [209.85.218.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 D980A335BC1 for ; Mon, 10 Nov 2025 19:29:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762802946; cv=none; b=iHXVc5QXCD+xJtR7/3ab3mrDYRJ9ZTC8FYkwhDzBdXxjvCwd1TGrp1NDATBaGccL9IdxItoLWEcHNmIPrVzFlZC2XtlsJ/1MKJ/u0+nawapKhojTm0Ns2Y6Q7Ymnqkypq5Dw2GrvhIry848VOvFy++TLV3MD8A1paEO/c2kjamw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762802946; c=relaxed/simple; bh=5LoeQ3netC7v69zsj8B7NfdcCxJO3H35xRsDG/Gv7pI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=hY58fUo5aNEwKiuXsta+9sySEo5/m6f3Sn5yK6W2UaJOLwqCnOUbKo4ffVXkhAhS2JsCLfHMpjGAnBDNbDFh52VxZGP5lD2i8z69qxgCuS83+A5DOGCLwZQQo9hxRo3+RXRmjZkWQGgEzIagMWXLGMxUZ3dXl74u58nsALgb7Ys= 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=BDRnxRzF; arc=none smtp.client-ip=209.85.218.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="BDRnxRzF" Received: by mail-ej1-f46.google.com with SMTP id a640c23a62f3a-b64cdbb949cso584126566b.1 for ; Mon, 10 Nov 2025 11:29:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1762802941; x=1763407741; 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=IRWk1kscfN6FJwekg6ouD0GTonEVhSc1K4PKrC1kP/k=; b=BDRnxRzF3Rtl0meUqoePs0npktSMKSkWx50RPuYm0F7cIbcZLKvg8P404fArOvx4rX 6JwPp8hEHl/fZw7jaP6i1n1Fz89vMZ4aBKE9FRoeVj07cGwvZVjnUu41drBR1BavQHGH sJuZaWcGYVF7UPEZUB35MmpusiG44HbzKt7qierlq3V0/4Rh3LCQNFt//MCZrFYeh3Dt XONnlXiNjeGQulO3psMalrSrlv1qUkn2wIAsCo1abgqTd3CAKGiqo8D6ZbHx8tHXl/EN oKa4EN8UlZMhtpccwASGtg00MhTW28zH2LfDg+Tcy28kqcFehDY/Q5lspVYZdGDxpkSQ pcOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1762802942; x=1763407742; 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=IRWk1kscfN6FJwekg6ouD0GTonEVhSc1K4PKrC1kP/k=; b=Blp85iKRDsH7LqzQb63m387GqDkx42MZRXVQ4YZOTUOBCbW9zgdn3heutGLFZpL59u yz4EnlqiBZEhvIi1V5CRcJsfxNacuOLqVboq6U1H0KXuazw7YdKHgVGehXu2f2QMhZJ2 Wj09tf7+X3cXeLAORtlp7Rcnw6gWzr7GcIxch9uqxui3nlYdbHBxyekPeg9uO+64WkJh C90lIVWP3pCukOYIe0MCChAONfW2stga+pzPbhWzeKVNmIoiKzHcnLisk2ht92Uy0eAf oOFQcgatV9naMgeoWMCInjprYUuKMcSeRM+P8jp36S97wwEMQS+jd8IcCWw4R9Ww7N3o 8Nwg== X-Forwarded-Encrypted: i=1; AJvYcCU7D1ySutT5Gfd8UJv1usKlllgM2z4bbB5c7F9ldhCblixxmq2QKq+9JnOsqJH8qJnD2w/01iHgnsCUL0s=@vger.kernel.org X-Gm-Message-State: AOJu0Yw/GYI5YAzOQZ55awrk/jy+vx556ECRqJmCzC0gb+KAlC1+Oyhc CkJ1BxqdCV8aUHwat1GzjjHdhBsoQv3AvEpUOhIYY6Ix54WA2jgbO9Y1ufb5q4XZ2cY= X-Gm-Gg: ASbGncuh8lxlWVuT1futMhD+rfqJs5z+GtRC8z4JkMFlim80nRnx4/ojG1OqCHO8QQ8 p+MFbcci4hEwXKMH/gN36KBvBfI5EhA85GDF/Vs+zTc0wMyr1+VWEeZkGfXmWFeJ7M0GNAXUoet xlI2myOdfLkZ0A+NydydaFzNXvveD8w+bpv/TGUPyPTn5VtRKDhm3kyQbw/lGjj+x/U/dkcsQmC lIrMtbWY8nuUDKsqwiLyFT1uGH5US096kVQxReuqiatBYEuy95W780UHluaUf/gJ7Qoyxwn7yya dr/PcTWw+HS2d+g9LCf57e29gSgkAss2wgx3ONj6hW3+hLw0AqedZnGuUnsm0OVsF9iELgH1FLk gGXEMjDct+Q0UfJBd2o9AmlI2UjrC7s5CGTn+V4BdPlm6SDFZmBg6b43Kl65nSqMprvXcRbt50M dzRys81WZBCa/ts50K0ncjQDXeLpgHsKH83+FXxUg67+01ZILXwjI89UgtmEei4R0gplVaNBQ= X-Google-Smtp-Source: AGHT+IFMyrQxnmGV9RRdZq2J7DvBjCJJHTfrK8wDJvifJiEy4dLU58hNJxSP3QiQOzPK8F57Z0KQdg== X-Received: by 2002:a17:906:6a19:b0:b72:9d56:ab52 with SMTP id a640c23a62f3a-b72e02d20c7mr927791866b.8.1762802941539; Mon, 10 Nov 2025 11:29:01 -0800 (PST) Received: from puffmais2.c.googlers.com (254.48.34.34.bc.googleusercontent.com. [34.34.48.254]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b72bf97d16esm1168178166b.35.2025.11.10.11.29.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Nov 2025 11:29:01 -0800 (PST) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Mon, 10 Nov 2025 19:28:47 +0000 Subject: [PATCH v4 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: <20251110-s2mpg1x-regulators-v4-4-94c9e726d4ba@linaro.org> References: <20251110-s2mpg1x-regulators-v4-0-94c9e726d4ba@linaro.org> In-Reply-To: <20251110-s2mpg1x-regulators-v4-0-94c9e726d4ba@linaro.org> To: Tudor Ambarus , Rob Herring , Conor Dooley , Krzysztof Kozlowski , Liam Girdwood , Mark Brown , Lee Jones , Linus Walleij , Bartosz Golaszewski , Krzysztof Kozlowski Cc: Peter Griffin , Will McVicker , 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?= 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 complicateddue 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. Signed-off-by: Andr=C3=A9 Draszik Reviewed-by: Krzysztof Kozlowski --- Note: checkpatch suggests to update MAINTAINERS, but the new file is covered already due to using a wildcard. 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.51.2.1041.gc1ab5b90ca-goog