From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=165.173.180.11 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796498229; b=EcdL60ju2tlc+evQRAiohy8i/B55da/LIVUnfE0yx4eo3kD8hSs/KlBP+ZUI+rU6vU4w ZPzZY14QDrSoMSw9zkPiSPIqIw8qtw0yWQT0GgG2wlcigdhAu2mOvpvFcyJdctQM1pWsD 7Q8VckEciy46lB+y5Ni8LjWJ7V/+RtGw6rLdYOoAmE+uNV8KixDD7ciODkQH5dScP118V hBYRJnqNshVcPnyB0VcfC/KGx3GgpucDTmlZD9sdbq+MW90sX/TLZLyj4TlDVTC9TzhOq FRvTcU/xsBTm/eFoUUEMXTfkECTadfn9rD9Fq+1u70jhYuZs3G/CKami73ip4ypeCsw== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796498229; h=DMARC-Filter:DKIM-Signature:Received:Received:Date:From:To:Cc: Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To:X-Zoho-Virus-Status:X-Zoho-AV-Stamp: X-ZohoMailClient; bh=dGFPQSq3zRsGAxK0CLbtvMusotnOjn/wZkpl6SdLXaQ=; b=Yenvzrcbdmp8+oDLjrs1KtUFdvELStRO17aUnPXXssuDdMzeBsuBk88r5kBPcJiDzDsy MXElSCIgnVKUT2O37EPiGNJkdX9LMgx1J00KYit8INuqxYbgMPfl8qykQMpJ5qzMLhcSG kCULF5Jd5LpC8sASE5VNOGsbOUEnYyRI7k8QtnE4xroRXNz6GTCIrri4YnV7PkKdiXhza Xxk4FqTQvHC25EQ7odStDVWGSkVIHdny8KqOVah+HeuHU1WuZAO1AR09gJ490sO++snez XncwNaO2Sq0Jn3uvn+TfllYFUtAaEfNeAHASaXlF3roBuAjqn54BFERxM88GKLVNN9Q== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass header.d=collabora.com header.i=@collabora.com header.a=rsa-sha256 header.s=zohomail header.b=QOgXxyLa; arc=pass header.oldest-pass=0 smtp.remote-ip=165.173.180.11 Received: from sender6-op-o11.zoho.com (sender6-op-o11.zoho.com [165.173.180.11]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7B3BD606A31F; Sat, 5 Dec 2026 19:17:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 7B3BD606A31F Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=collabora.com header.i=@collabora.com header.a=rsa-sha256 header.s=zohomail header.b=QOgXxyLa ARC-Seal: i=1; a=rsa-sha256; t=1796498219; cv=none; d=zohomail.com; s=zohoarc; b=SPnU7Z3J2mzaTz0XhgIQaBfn4TQnRWL1JhH2lTcqSHw5QADclZ3ln7LPbnD9eObd1lrbqyyeZB3X8D2hZzCQoZ1BIY1t48lRDTDOVRpPUyRZ22KalW7/DXwiJ60yNWTSfjWRDuvlhRMdvq7lF9JuDYr83H6aBrenzbjKDKUHUxw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1796498219; h=Content-Type:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To; bh=dGFPQSq3zRsGAxK0CLbtvMusotnOjn/wZkpl6SdLXaQ=; b=N5Xiatfusk+gfUZ9aIzmPQ6XgBit+47ioMGVa5VkmPFMG+2lMjIYCGmIF6/KBx7+DHxxrIDqB1bXzoxL3MRPtX2WWQUA9REK/7PoO2NbB3gMshu/ZIdr8/ckYndTJ2waEq6GGUB7mTaju9/brqA33UJsFlh8G1oQQ2oziTXbAEM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=collabora.com; spf=pass smtp.mailfrom=sebastian.reichel@collabora.com; dmarc=pass header.from= DKIM-Signature: a=rsa-sha256; b=QOgXxyLajgTuwvsgWGCVA7GoXQVn2RpsEn5qo91NX8SN9un+TNs3qt/WgyI3Qw3Kq1WvxoP0rvz+026dcuI3vG/v26fPDz+bIvjIRiUiZ5NHlebD/qshB3+kwImcwzC9TyKWzT7Jsd8AuVf9KZRtEeaNaNnAjAHqnCu5EmCh+AU=; c=relaxed/relaxed; s=zohomail; d=collabora.com; v=1; bh=dGFPQSq3zRsGAxK0CLbtvMusotnOjn/wZkpl6SdLXaQ=; h=Content-Description:Content-ID:Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Owner:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Resent-Sender:Resent-Cc:Resent-Date:Resent-To:Reply-To:Resent-Message-ID:Resent-From:Sender:Subject:To:Date:From:Message-Id:Reply-To:Subject:To:Cc; Received: by smtp.zohomail.com with SMTPS id 1796498217776694.5681650973523; Sat, 5 Dec 2026 11:16:57 -0800 (PST) Received: by venus (Postfix, from userid 1000) id 1F38518205E; Sat, 05 Dec 2026 20:16:54 +0100 (CET) Date: Sat, 5 Dec 2026 20:16:54 +0100 From: Sebastian Reichel To: armandas.kvietkus@proton.me Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] dt-bindings: power: supply: Add Maxim DS28E16 Message-ID: References: <20261124-ds28e16-v1-0-bed431df0578@proton.me> <20261124-ds28e16-v1-1-bed431df0578@proton.me> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="rcamecdhy5xkzjsf" Content-Disposition: inline In-Reply-To: <20261124-ds28e16-v1-1-bed431df0578@proton.me> X-Zoho-Virus-Status: 1 X-Zoho-AV-Stamp: zmail-av-0.2.28.1.5.5/296.487.71 X-ZohoMailClient: External --rcamecdhy5xkzjsf Content-Type: text/plain; protected-headers=v1; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Subject: Re: [PATCH 1/2] dt-bindings: power: supply: Add Maxim DS28E16 MIME-Version: 1.0 Hi, On Tue, Nov 24, 2026 at 06:43:20PM +0100, Armandas Kvietkus via B4 Relay wr= ote: > From: Armandas Kvietkus >=20 > The DS28E16 is a 1-Wire secure authenticator found in some battery > packs. Its decrement counter page holds the cycle count of the pack. >=20 > Signed-off-by: Armandas Kvietkus > --- > .../bindings/power/supply/maxim,ds28e16.yaml | 39 ++++++++++++++++= ++++++ > 1 file changed, 39 insertions(+) >=20 > diff --git a/Documentation/devicetree/bindings/power/supply/maxim,ds28e16= =2Eyaml b/Documentation/devicetree/bindings/power/supply/maxim,ds28e16.yaml > new file mode 100644 > index 000000000000..b381bdf68239 > --- /dev/null > +++ b/Documentation/devicetree/bindings/power/supply/maxim,ds28e16.yaml > @@ -0,0 +1,39 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/power/supply/maxim,ds28e16.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Maxim DS28E16 battery pack authenticator > + > +maintainers: > + - Armandas Kvietkus > + > +description: > + The DS28E16 is a secure authenticator inside some battery packs, for > + example in Xiaomi SM8250 phones. It is connected to a GPIO that is use= d as > + a 1-Wire data line. Page 2 of its memory holds a one way decrement cou= nter > + that stores the charge cycle count of the pack. =46rom the datasheet [0], this chip might just as well be used for other things, which should be mentioned here. [0] https://www.analog.com/media/en/technical-documentation/data-sheets/DS2= 8E16.pdf > + > +properties: > + compatible: > + const: maxim,ds28e16 > + > + onewire-gpios: > + maxItems: 1 > + description: GPIO used as the 1-Wire data line. If you are missing features from the w1-gpio Linux driver, you should extend it and then properly describe this as device on a w1 bus. Greetings, -- Sebastian > +required: > + - compatible > + - onewire-gpios > + > +additionalProperties: false > + > +examples: > + - | > + #include > + > + battery-id { > + compatible =3D "maxim,ds28e16"; > + onewire-gpios =3D <&tlmm 25 GPIO_ACTIVE_HIGH>; > + }; >=20 > --=20 > 2.56.0 >=20 >=20 --rcamecdhy5xkzjsf Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE72YNB0Y/i3JqeVQT2O7X88g7+poFAmsUYx4ACgkQ2O7X88g7 +pofCRAAnVb+6LzLN1DhO7FgcnYVd/qDgYB5IYZ8/ToNlIHKNUAm5I/EtknZI37N 05R+q6zl46UYDXxpbLEZeQepDxRH30mGpp7vAC7nh7P5UOm4gCdGgE1zNViMjNbv m3F2V5QxYYn6Me5OekSMpj4zP5tpR5UqqrtrK8qkVijhnZwdpDHBW9KSBJXbxtVw qEkj9Sfg6N8RnaKRZRLXENXQGOctBIn5LW7X3am3YUTr8uRmQpyzOLQXKpFhr95o jdeZYtwi5+8W4CihT3GuulzEEtYnAeVK5iT285q9F0vUPpO2ndoM+3O03f/s/hpT 51ayD2yhBWecfDZm4iND9ZW2/tYeUtXFGL0EamK1LLqYtHPHF9dD+ZxJkUwdBtFS 3gg8nKeJo9w3fBo1BnAQw3itFwi/D9nLFJsCFDvr3QuWnl0Q84tLjN0ImfHxzv4U /kS5PVJDMqxk/kPmErZTVvv7CR2iYUaZ0+lswIuzOZxfaHRMP4R9maei37LNBnwZ 2hO2kc1BMYBFZ+2ZwqDtA5utIr7+dAtERu28Mf5N76vUt/tqijpu5A/w9xd7yuzU ZAnL0/ngn+G0OlWbXGdsshybxpZYEd6NA+cjQsPDQ17zXa+NmzW5ZNqOOH9nDo5A QXgjNTD/sRnhjhSca1FsDkkLviGGR/A7RAiZKzYrU/+ONUv9XOk= =DE+g -----END PGP SIGNATURE----- --rcamecdhy5xkzjsf--