From nobody Sun Apr 5 13:05:43 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 C0695378804; Wed, 4 Mar 2026 17:04:17 +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=1772643860; cv=none; b=NsHqEhD0cGXhp0p36N/XxiszB8JF6kkQPPqLuTdnFO7t4ld7wd2mJshkexGKqGCgTeDYYKt5IyYE0GbqHKhhR1JdWZX0UD2wB7JzYbO6TQMCsftOHfvPFIwvJrqq/+hajzI5LvsG/HjZsscADnpzk8BFrP66z7nwGmUnl1x7mDs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772643860; c=relaxed/simple; bh=F0R+U99Z+UhtqfAJSgAScg5AO+4DBZrXauWOxdl8xoE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=oF50BMlcVhe8tFXKXHBaFmwi3YBt3yLrKj4cjE+l4ccAIU/KSk49Di9C2hdGvUXsIE6JjHGvAaSugJnjsSSE7T6I38QIIJwBnqsPCSV4NKm4di+jkLRT+QeN9Boa3S3BDV1OZ7IvC8rGuG4llOsfc08bHYpjfUX+jrQGUWLHuco= 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=JHV4pP1Y; 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="JHV4pP1Y" Received: from [127.0.0.1] (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 8B95D2701A; Wed, 4 Mar 2026 18:04:10 +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 bIhmuLA0uHu9; Wed, 4 Mar 2026 18:04:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1772643849; bh=F0R+U99Z+UhtqfAJSgAScg5AO+4DBZrXauWOxdl8xoE=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=JHV4pP1YCCjXG3n2H2JXI0Tx9n7R58VTRF5BsaXrJQ4iY/azpq/T4XVxYL2t5C4na NuHHKE5bgLUBSLSnx2JTOIS8U4/G+Iry4qo1D+uU8e4VwZZuY6KvqyeZGPrc241hVs ukl5v0dCAgdDaE/2/xKpBVrkKpVmFV+Acf7yZF0l7wAio/4FJdCzT7WZkyidxAK0ck 9Pnl4C1j1O/os0fa3wPPJaG47aoehltP9eRLdaRnN4952xdzcahk4A8w0dtAZPEcyk JPyMbAc1wnzRrZ8cPIE2YW64ZjPx5xrTUfzE0i43U5WSaRINcPac54ZY6t18NkfjaA bxxawrYsTMHyw== From: Kaustabh Chakraborty Date: Wed, 04 Mar 2026 22:33:55 +0530 Subject: [PATCH v3 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: <20260304-s2mu005-fuelgauge-v3-1-e4dc4e47cde8@disroot.org> References: <20260304-s2mu005-fuelgauge-v3-0-e4dc4e47cde8@disroot.org> In-Reply-To: <20260304-s2mu005-fuelgauge-v3-0-e4dc4e47cde8@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 , Conor Dooley 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. Reviewed-by: Rob Herring (Arm) Acked-by: Conor Dooley Signed-off-by: Kaustabh Chakraborty --- .../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..05e420316a26b --- /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>; + + fuel-gauge@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.53.0