From nobody Tue Jan 27 00:23:38 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 1773D340279; Mon, 26 Jan 2026 15:40:05 +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=1769442007; cv=none; b=ah7Wgcl5oDIUqCsmqfU3JE29xwmjgT98rijB6a8BrIc3sQVYglMrPEh+0WZ61q3Xb2LNudC3T6KDqu9G2+papZBuWKE3K1CFfzt69/3mDH4sRrlkLnKC6Yzn2lpALuuOHy/MeQHPdDnolD8sUCTmOFAikVBY+Ex6KL6rw1t1X7g= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769442007; c=relaxed/simple; bh=EoFfBo5hPiItUd0YquJyrcSZKrDBJIGSBOCGyATgRkY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=hY4KRax40phdMQPz2r0zfRsrSwERuyxOm3w0OxhiMgpwOAmvv2/bqHXBxNRHWmx6n2dqIOFBWLadBEckKC/IbqC3fsfp88uQELzID5/QDPRGAGMTkRMXde/EReDA0LiI9eNs3v1WLS0QVA7rdREBB25pzLChjGomuwx7eH1C3yo= 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=KZhomKBK; 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="KZhomKBK" Received: from [127.0.0.1] (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id B0CD727374; Mon, 26 Jan 2026 16:40:04 +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 zgxnwz87wuUc; Mon, 26 Jan 2026 16:40:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1769442003; bh=EoFfBo5hPiItUd0YquJyrcSZKrDBJIGSBOCGyATgRkY=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=KZhomKBK3cAKj4wHLXXg/+Gp9cMnmK9/f8IzJfyVFrPhsXAVNNw3gb5W2PUHqIy9J WxPbkPkSj/7ueV+tuXiEJvSzGqjh+w4WQiaKJ96l40HftVUBJnsFbzGLLWoKPC4FLy vk5jLXIbM5yubxYlfVWMXmWEBwm+He5UtJmLq59zwJ0bYNPmTMGmAiZ6P0muteh9fx B4xfD30VQEwiiGujlno73xbCA4z3kT0NKLu65hXEoui0yZZ0sSazx/+OOTAlmqWQQG DqnBgACRDLHbyku14iiIEAiTGgnFW03j/Uuu/9D1jQv4MQ/8+OBwD+PaEhVplDJZel wT4PQJAhswiGQ== From: Kaustabh Chakraborty Date: Mon, 26 Jan 2026 21:09:48 +0530 Subject: [PATCH 1/2] dt-bindings: power: supply: document Samsung S2MU005 battery fuel gauge 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: <20260126-s2mu005-fuelgauge-v1-1-68a146ed0819@disroot.org> References: <20260126-s2mu005-fuelgauge-v1-0-68a146ed0819@disroot.org> In-Reply-To: <20260126-s2mu005-fuelgauge-v1-0-68a146ed0819@disroot.org> To: Yassine Oudjana , Sebastian Reichel , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Kaustabh Chakraborty Samsung S2MU005 is a PMIC device which has LED controllers, an MUIC and a battery charger. The battery charger is paired with an independent device connected via I2C which can be used to access various metrics of the battery. Document the device as a schema. Signed-off-by: Kaustabh Chakraborty Acked-by: Conor Dooley --- .../power/supply/samsung,s2mu005-fuel-gauge.yaml | 49 ++++++++++++++++++= ++++ 1 file changed, 49 insertions(+) diff --git a/Documentation/devicetree/bindings/power/supply/samsung,s2mu005= -fuel-gauge.yaml b/Documentation/devicetree/bindings/power/supply/samsung,s= 2mu005-fuel-gauge.yaml new file mode 100644 index 0000000000000..5f945a5369dc8 --- /dev/null +++ b/Documentation/devicetree/bindings/power/supply/samsung,s2mu005-fuel-g= auge.yaml @@ -0,0 +1,49 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/power/supply/samsung,s2mu005-fuel-gauge= .yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Battery Fuel Gauge for Samsung S2M series PMICs + +maintainers: + - Kaustabh Chakraborty + +allOf: + - $ref: power-supply.yaml# + +properties: + compatible: + enum: + - samsung,s2mu005-fuel-gauge + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + #include + + i2c { + #address-cells =3D <1>; + #size-cells =3D <0>; + + fuelgauge@3b { + compatible =3D "samsung,s2mu005-fuel-gauge"; + reg =3D <0x3b>; + + interrupt-parent =3D <&gpa0>; + interrupts =3D <3 IRQ_TYPE_EDGE_BOTH>; + + monitored-battery =3D <&battery>; + }; + }; --=20 2.52.0