From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.208.171 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794685702; b=k4ZHl+fFCBpLeWlehocodK+6mszKTXLxSwlPo21HEMsRAwdhzA+cAYHDJ7HSm0c3V3mJ zCKeFUwTZseJLtcM27/HSDBVvllRFwG2bxFlxGEqYDJZ1gj5blqHQ90IAkx0cv3nBhqI+ 9K2fIGTRUkzwB67zOxFFqPUqS9OMCPtyMoqVN5sP5B+LEMB8Ml4wdgHDM+TQz8R3jA6Nd icYFfZLtfjqucL9GUtVt5XHy+z9W3SLTJLgVriwmCY73rtsQJeUuNu4FAdx73/uq07eBZ KqN5IIfQXSFIV84ok8eHcxzWqmOnjxJSSt1rjCWzgnnMRAr1r7zezToT4cELyw9kWqw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794685702; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-Id:X-Mailer:In-Reply-To:References: MIME-Version:Content-Type:Content-Transfer-Encoding; bh=jbC3rUGQWeTwHayyjYJnJpd8X4fWTqcce/6NLkXV61U=; b=qjlk3YH9SPz6+zStNqlSajJ8vpw/5tvDHLIPjAzeAvNhgNjce3fSXw3h9k5s2utJXRE2 1yJPOU/b8OZCAJ+xApraj4O7spIQmbRE3xh6UgzkJ6x/UEVgMStsXsea6j6NFf7c69oSK jKn5cmwxSkjJytbmmFfh4+w1QEyzw7NPVMEfUj4UaMvbEmO2C8ASJeJ97DFLP5vgvGhnc YdG5V88cfa4faMnQSwJxlsFkWu/3+o5PT85iUTW0SgiaQJaP2twSogNA8IQppHOQjAGU3 AUDSY+hRQ5daGrZJ4TODNKoJZidsPQ8siLnUMNa55iY66dIOpC1CtK5BOoB6T2/JoUQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=qm4LG9my; arc=none smtp.remote-ip=209.85.208.171 Received: from mail-lj1-f171.google.com (mail-lj1-f171.google.com [209.85.208.171]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 63ADF606A329 for ; Sat, 14 Nov 2026 19:48:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 63ADF606A329 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=qm4LG9my Received: by mail-lj1-f171.google.com with SMTP id 38308e7fff4ca-3ab30b3212aso22242931fa.0 for ; Sat, 14 Nov 2026 11:48:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1794685699; x=1795290499; darn=vger.kernel.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=jbC3rUGQWeTwHayyjYJnJpd8X4fWTqcce/6NLkXV61U=; b=qm4LG9myJ4GdeE6hPirnsY83dnXwNP/Mfy/YXKt/8CVfD/ivz7SvQoEzH3HbAkWYR0 Y5cTfvVR7k8xE5T37tAlMk/2TFrOaTo8LbZwTQOhx3W7/2zvWIOgJMWMeg1eEy9kyFdv sr5i0Rj4RdMA8+w+d3SIB4WgmgUYHlCCJl+PbrhUjbXZMp6NshVuXMCnjAUuhTnEJmjZ DinWMJGcVzSFUoKJDANdahFPdOiLjujdo70V9B5RorIY4yotbfoF4YCp4l9AaMnW3s2X iZKQiREYGcdB/gdGWTtHz0XpOFmFxpt9sNr+YyTf0vL82YbZeZrF+bAbuk/ek7MYio0O NVDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1794685699; x=1795290499; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=jbC3rUGQWeTwHayyjYJnJpd8X4fWTqcce/6NLkXV61U=; b=USieAqO6+y9i+XzX+auhxIeDLREbcOHYIAc5+x+pESHsYSabtj/Jv+idGXeIn4ylWm y3ZFYDN5xQ8j4KHQz6zpd3tIDxLko5UwXJMHd0VSBoq9cpfN9fXD8Tdlv2e27Fb/WFRG wE0mUjPLjhEbvl9pjTNs8WzDLmLbw4OIfnoBeuTeo/7LtEDmVrgvojYxxyCHj0wdlRy1 0iAylsXwIArWnNq0kWLdICeAPyvbHSyXlpnuxmBq2/xI6CABVW4tEhtpXGlKvFHMS5YE Q7At8yFTM7l0kpNTakntnavFRQF1PxKS7zhJCcqJE/MF5YO7mANJnW9k622haJrLdxSJ Og6w== X-Forwarded-Encrypted: i=1; AL+hErE4RMiSvWOZA+j/BXc0lK+bMJ9t9X1HIdBqEklwqA088LyBdnxiu5rIXklXCmNkmPMtBTmeLHv1zwS2ats=@vger.kernel.org X-Gm-Message-State: APuU4Z8SVy/offtTTahR+Tt1YLJJXvR/BySIIUDufEFNh1DCfnCKFcnw aAM02GoqtieeJTYlhmvqMhL5fqPmcw8HXTAfl4LULWOGY85pFCSDtPY= X-Gm-Gg: AYBFou2RZGgSEEAKk+SVvg5hzSvBoK+jFS0Wl3827DZzJESIo03fwGK3Q5IAkOc+Qug 7HCGhpWDxogA2X1hId8ImGkYtDiSadgZWuSfDh72bOPmpyJk6om4EQNeO8Fh7+kROU/GJORbbqR 8ITiEZkqQFEjZcNxRLJOKmgY8cDy4EXmDzfIKaSce4M8Nw1W5UOYYV8rAqCB5zTX/GDh2bhRv12 UKAM6De0OKwLxGqf1R97OfMFX6EfDAcsVeGqhVn6VtGSRM6+dk3DYyRE1IQkXNx4nUKgBluYD2e SddduMSxrJ3OP8HWbwp272XOHo8fNW4wc7eJ+ePG40ZNEvCA/Yde44gyCGeIB7rNazD31xiBeD2 5uWK8tKboNL7rssaLDT6LQ0qM9x4dSIM2AqQ9277NLIgZgu90ga8cYEW4fzrWE+qBWtGjPCmNjI oz33nLCczUFj1nrzOv0gyDSYcVmDbBPSC25/yzhJ2t1L1Sjon786+DaR889jgPS6TFa9fWkPgsy X26rxU6X2QiQOPgPvGAu1GGLb2zG7aBlD3dTowi4tZQJ3YOHAUAlRWc1VYAp0/Azo+xdnnbr4dM D9VPRkJREHWmkOOVINNYIZ2buVGMYFOVMtw= X-Received: by 2002:a05:651c:1589:b0:3ac:f258:6199 with SMTP id 38308e7fff4ca-3ae2b676808mr18455371fa.22.1794685699382; Sat, 14 Nov 2026 11:48:19 -0800 (PST) Received: from sasha-User.lan ([185.159.163.49]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5c17133c9ebsm1845666e87.31.2026.11.14.11.48.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Nov 2026 11:48:18 -0800 (PST) From: Asdlerto Korry To: Nizat Mikayilli Cc: Sebastian Reichel , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/2] power: supply: Add Silicon Mitus SM5714 fuel gauge Date: Sat, 14 Nov 2026 21:48:00 +0200 Message-Id: <20261114194800.503418-1-korryasdlerto@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20261108-b4-sm5714-fuel-gauge-v1-0-c659b6c0884a@dxdmail.cc> References: <20261108-b4-sm5714-fuel-gauge-v1-0-c659b6c0884a@dxdmail.cc> 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: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hi Nizat, I tested this series on a Samsung Galaxy M52 5G (SM-M526B, sm7325), where the SM5714 fuel gauge sits at 0x71 on a QUP I2C bus. The driver binds and the readings match what I get with the vendor setup: on USB it reports Charging with a positive current, unplugged it reports Discharging (around -400 mA, 3.80 V), and upower picks up the battery and percentage correctly. Tested-by: Asdlerto Korry # Samsung Galaxy M52 5G A few notes, none of them blocking: - The capacity truncates (SOC >> 8). With the raw SOC at about 44.6 % it reports 44, while rounding would give 45. Rounding might match the vendor UI better, but either is fine. - The M52 has a battery NTC on an ADC channel. If you're interested, I could send a follow-up on top of your series that adds TEMP through io-channels, and VOLTAGE_OCV from the gauge, once this is merged. Thanks for working on this! Asdlerto