From nobody Mon Feb 9 22:20:11 2026 Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) (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 5743832E737 for ; Sat, 27 Dec 2025 12:24:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766838274; cv=none; b=tBxBN3irIlGY40yU2Fu82DFvQoXGZ9+5CAFxzuf50jgau4euNhnoUyS6BJAffHyabQEkLgJLw5AaJKECC2eR7nkK6/Ff2VWnHDmjr0FVwlObBupU2Q3R66QDadenbAGntGBiyaEwu0E6IaEaI+R2wE+Ou2mQ1TTh8ZfocRpjs5o= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766838274; c=relaxed/simple; bh=Q0CedTDoxzAYvTyoSGG2JCu7m4Qn+Y6GBjY/RZepsts=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=QqDRw3bapOyXcWFD0ibrNazH43c/3JvtF58mo21UY8rigpXSfqA6ZnWARGDQoI3zP5ppsjGzzJMyhEnJVGtqlDjdl4C4hrCfR3cxTQB/BwBQROd9YR2KODRVOnqmipw08k/ORO4bOMepe5tfyd887ZP5F72JZkaD5XCpsRuvZw0= 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=XXiktJ+l; arc=none smtp.client-ip=209.85.218.50 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="XXiktJ+l" Received: by mail-ej1-f50.google.com with SMTP id a640c23a62f3a-b802d5e9f06so1002388966b.1 for ; Sat, 27 Dec 2025 04:24:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1766838270; x=1767443070; 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=XXiktJ+lCvjhbzo3SHLREtSuT1TMjnJ6SC5DTDmlXxrDFQFw7DapSpAmOKbqXOMp/B KVdJz6cltOVSUxMxLMiR0aEL8L1VCcC9OEyWArtzmS4JgsaEQBmQRskLRdCS7hkNq/Q7 EKRLa791bfSHqfwg71+a5fBE2HbBmj2A/leKIoiBYvkoh8R9EG/tqivkluRZhNqoIyGS 9d/zR9vqUGQID0GWTK9Xh15EF7dGhQMipw7Z6ktzWygvhMna0mSXWIsu2K3vCx4BAS/j CwNvkUfz//+oyuWtKDGn5d/HfXrwi15fKhp04DM5QR1APwJureRF9ZwaGSAJBKv6Tq9r HuAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1766838270; x=1767443070; 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=Z8WPn9yj9rT6fGb1aTwA3GjUkXjfSIs0P2khegpwEo34hErvwv0FF5DX05o815Cr5l 5qAVmPq1JjwrhRN/9PObdIdjyq0KCqcMiWNPJKcgvPxJejHppEfuY6Kank2EiwDVzouq YjOlKfT2CFJWB+eG8UB+imVyGva7LqY0pvHlbji2u1alBluf1WDG+SnxlQ6lnUTCWtYu cpyw6jEdOsYskrnhz7x5g0kg706oxVvYluuI6iZ9m8u75Rl86gsN46/taFA0vHB+nQ/h 2Ovu9cMp/wzeWWkfPH3xwIb6J9WVeH8VgrVOd6Nmuj3CoapKY0OIanb0t/fuawOyStW/ ol0A== X-Forwarded-Encrypted: i=1; AJvYcCVLiVotlZlmXStM9rM4LScTMWvXREaPVXAvcz4F4QVAkRPUwjra2ajjYpLMZhJda702EgSE2xr9KvX3TCY=@vger.kernel.org X-Gm-Message-State: AOJu0YzfQuAfFngUC1hEwBb2PqS076lkxu5yhvg8l1iLvW4tLjeWPMy2 hiPcID5Rrg7D6r8VDO7B0PSCYBlt9bVbXX922nae8rlu3Un+W7vZ2KfrOHNAME9wRog= X-Gm-Gg: AY/fxX6BmTEYuwpyuudXOARLnWkIXkun+ODa0i/GpCRxDcVPRUxJ6LrT3j6tCqup/A3 ig6J4nDmSrR+j2aJjs/09Zb6cWAXvPdxoXDHWU20129wBkcfvgOE4ONTAJsFbzAYN9rsK6bRtS6 WZbzfNtiB4ADu0fTdqyEadNIq5vGdYRVLJyTEqLWIDin0CMzpTMghweW9KRmh+ttQ1+lPxfAWQ4 UdKa7cahj8dTli+AprCS91fuGY0fJ7DpF46sdKKJ3qWIyGa4D/Ev+hpVMM3OcWHHn1Zzc5x/Znv A9kcUT9dg8Vzq1TXUX0NwFsMyA3DSH6xhkZ85ozxJM+sBL37HXuZBzcisZA/ymGR5mN/GEgaPwf KfNalbvckblrhtN1/g1ciNdBTg8XHvWxWcp70mglPc0c8AP2SnqqyX6nzmq0Rdo71r8uH/KnOIF gQPXv6onyztkrOqv+l1HkMMh/4qn27VkRDjpOaIyLFTDB2whxwasPO8w/ZNUxJiWbid1P/4kTlC 1j2Ow== X-Google-Smtp-Source: AGHT+IFwPaGUh7AedhbGKdobDVIl693E5xOS7bnu/0qiOYY00HsSelAVrn/J5vSA6RYOmzMZGsd4tg== X-Received: by 2002:a17:907:3da8:b0:b7a:1be1:983 with SMTP id a640c23a62f3a-b80372699eemr2839825066b.63.1766838269649; Sat, 27 Dec 2025 04:24:29 -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.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Dec 2025 04:24:28 -0800 (PST) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Sat, 27 Dec 2025 12:24:26 +0000 Subject: [PATCH v5 04/21] 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: <20251227-s2mpg1x-regulators-v5-4-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,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