From nobody Fri Apr 3 09:31:55 2026 Received: from layka.disroot.org (layka.disroot.org [178.21.23.139]) (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 C4BE529DB64; Tue, 24 Feb 2026 19:15:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=178.21.23.139 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771960554; cv=none; b=du8EcecasiN1XPxG/qFD3eA8YrmgN7DdlbwEp+Nh3mUJ2B9RMTOQhdruHF7vV7BvbwriULvuzC4Yc/urws/eb3Z73US4NMf3awBSLEvZr2E0EoYZXGgI0f0EyfUsvH0KkqObQIUhSbZY0Dk8eLoWbsZFN4wXH+qCIoLRJRMKkho= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771960554; c=relaxed/simple; bh=W2TMWpdaXNdFtTqmW1M7D2C4Tfhyui+TH0Jz83rN+gM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=UpkMTY5jl/e2+Oqmt717J16w6yciDC94QvLTfHmDuNdLhnAWG2F4yKWma3U1abVd6thrxNNzQmOlxK+vtur3HkprxHOmihaRFqhEv9oTBIRjgZ4siQECdW5DB+fM1nvevUh3S7sRbtHq3wIkFqu3AlSN70l6CKdL+PEO/urw7rE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=disroot.org; spf=pass smtp.mailfrom=disroot.org; dkim=pass (2048-bit key) header.d=disroot.org header.i=@disroot.org header.b=hY1++PeE; arc=none smtp.client-ip=178.21.23.139 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=disroot.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=disroot.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=disroot.org header.i=@disroot.org header.b="hY1++PeE" Received: from [127.0.0.1] (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 51FE226F73; Tue, 24 Feb 2026 20:15:51 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Received: from layka.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id 2TG1elNoV_LT; Tue, 24 Feb 2026 20:15:50 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1771960550; bh=W2TMWpdaXNdFtTqmW1M7D2C4Tfhyui+TH0Jz83rN+gM=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=hY1++PeE6xgOVxbNSr8RWB5PN8QVYkj4ci7AxBTkoUe2n2QbDpuZ4rgHzOr0DSoWQ VpVUUAlUFatt7YJiOoUBanXLt+32Yde1fegg7I7f/QDl8pTTZcZs/u5UTYzWfeCxNX gTXjDtKzRieRVMdzIX4ywQk6NmzzpqwmgETybNiCxbBz6a+rzNADkqJS4Yel/x7PvN UuUIQrij9Q4T1Ak3kvxZMbsEhjugg4Z7HPgMdWGR9DDErmLAhbwpNqZiPH9oSDbv4n 5y9svEF3vTFN4pg3xZyGkO842YHC5J6j+QoA8bdzPf/uPtpHQzfn6oBJDZ+6b02tcU q2C3PqAzLQ6ag== From: Kaustabh Chakraborty Date: Wed, 25 Feb 2026 00:45:07 +0530 Subject: [PATCH v3 05/13] dt-bindings: mfd: s2mps11: add documentation for S2MU005 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: <20260225-s2mu005-pmic-v3-5-b4afee947603@disroot.org> References: <20260225-s2mu005-pmic-v3-0-b4afee947603@disroot.org> In-Reply-To: <20260225-s2mu005-pmic-v3-0-b4afee947603@disroot.org> To: Lee Jones , Pavel Machek , Rob Herring , Krzysztof Kozlowski , Conor Dooley , MyungJoo Ham , Chanwoo Choi , Sebastian Reichel , Krzysztof Kozlowski , =?utf-8?q?Andr=C3=A9_Draszik?= , Alexandre Belloni , Jonathan Corbet , Shuah Khan , Nam Tran Cc: linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-rtc@vger.kernel.org, linux-doc@vger.kernel.org, Kaustabh Chakraborty Samsung's S2MU005 PMIC includes subdevices for a charger, an MUIC (Micro USB Interface Controller), and flash and RGB LED controllers. Since regulators are not supported by this device, unmark this property as required and instead set this in a per-device basis for ones which need it. Add the compatible and documentation for the S2MU005 PMIC. Also, add an example for nodes for supported sub-devices, i.e. charger, extcon, flash, and rgb. Signed-off-by: Kaustabh Chakraborty --- .../devicetree/bindings/mfd/samsung,s2mps11.yaml | 109 +++++++++++++++++= +++- 1 file changed, 108 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mfd/samsung,s2mps11.yaml b/D= ocumentation/devicetree/bindings/mfd/samsung,s2mps11.yaml index ac5d0c149796b..684409e26273a 100644 --- a/Documentation/devicetree/bindings/mfd/samsung,s2mps11.yaml +++ b/Documentation/devicetree/bindings/mfd/samsung,s2mps11.yaml @@ -26,12 +26,28 @@ properties: - samsung,s2mps15-pmic - samsung,s2mpu02-pmic - samsung,s2mpu05-pmic + - samsung,s2mu005-pmic =20 clocks: $ref: /schemas/clock/samsung,s2mps11.yaml description: Child node describing clock provider. =20 + charger: + $ref: /schemas/power/supply/samsung,s2mu005-charger.yaml + description: + Child node describing battery charger device. + + extcon: + $ref: /schemas/extcon/samsung,s2mu005-muic.yaml + description: + Child node describing extcon device. + + flash: + $ref: /schemas/leds/samsung,s2mu005-flash.yaml + description: + Child node describing flash LEDs. + interrupts: maxItems: 1 =20 @@ -43,6 +59,11 @@ properties: description: List of child nodes that specify the regulators. =20 + rgb: + $ref: /schemas/leds/samsung,s2mu005-rgb.yaml + description: + Child node describing RGB LEDs. + samsung,s2mps11-acokb-ground: description: | Indicates that ACOKB pin of S2MPS11 PMIC is connected to the ground = so @@ -63,7 +84,6 @@ properties: required: - compatible - reg - - regulators =20 additionalProperties: false =20 @@ -78,6 +98,8 @@ allOf: regulators: $ref: /schemas/regulator/samsung,s2mps11.yaml samsung,s2mps11-wrstbi-ground: false + required: + - regulators =20 - if: properties: @@ -89,6 +111,8 @@ allOf: regulators: $ref: /schemas/regulator/samsung,s2mps13.yaml samsung,s2mps11-acokb-ground: false + required: + - regulators =20 - if: properties: @@ -101,6 +125,8 @@ allOf: $ref: /schemas/regulator/samsung,s2mps14.yaml samsung,s2mps11-acokb-ground: false samsung,s2mps11-wrstbi-ground: false + required: + - regulators =20 - if: properties: @@ -113,6 +139,8 @@ allOf: $ref: /schemas/regulator/samsung,s2mps15.yaml samsung,s2mps11-acokb-ground: false samsung,s2mps11-wrstbi-ground: false + required: + - regulators =20 - if: properties: @@ -125,6 +153,8 @@ allOf: $ref: /schemas/regulator/samsung,s2mpu02.yaml samsung,s2mps11-acokb-ground: false samsung,s2mps11-wrstbi-ground: false + required: + - regulators =20 - if: properties: @@ -137,6 +167,18 @@ allOf: $ref: /schemas/regulator/samsung,s2mpu05.yaml samsung,s2mps11-acokb-ground: false samsung,s2mps11-wrstbi-ground: false + required: + - regulators + + - if: + properties: + compatible: + contains: + const: samsung,s2mu005-pmic + then: + properties: + samsung,s2mps11-acokb-ground: false + samsung,s2mps11-wrstbi-ground: false =20 examples: - | @@ -278,3 +320,68 @@ examples: }; }; }; + + - | + #include + #include + + i2c { + #address-cells =3D <1>; + #size-cells =3D <0>; + + pmic@3d { + compatible =3D "samsung,s2mu005-pmic"; + reg =3D <0x3d>; + interrupt-parent =3D <&gpa2>; + interrupts =3D <7 IRQ_TYPE_LEVEL_LOW>; + + charger { + compatible =3D "samsung,s2mu005-charger"; + monitored-battery =3D <&battery>; + }; + + extcon { + compatible =3D "samsung,s2mu005-muic"; + + connector { + compatible =3D "usb-b-connector"; + label =3D "micro-USB"; + type =3D "micro"; + }; + + port { + muic_to_usb: endpoint { + remote-endpoint =3D <&usb_to_muic>; + }; + }; + }; + + flash { + compatible =3D "samsung,s2mu005-flash"; + #address-cells =3D <1>; + #size-cells =3D <0>; + + led@0 { + reg =3D <0>; + label =3D "back-cam:white:flash"; + color =3D ; + function =3D LED_FUNCTION_FLASH; + }; + + led@1 { + reg =3D <1>; + label =3D "front-cam:white:flash"; + color =3D ; + function =3D LED_FUNCTION_FLASH; + }; + }; + + rgb { + compatible =3D "samsung,s2mu005-rgb"; + label =3D "notification:rgb:indicator"; + color =3D ; + function =3D LED_FUNCTION_INDICATOR; + linux,default-trigger =3D "pattern"; + }; + }; + }; --=20 2.52.0