From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) (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 624CD1C862E for ; Fri, 19 Sep 2025 13:17:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758287851; cv=none; b=aZAzYxVLyhyIHCRFKtzS2fMR8jtM8DcbYf8cUquHq5JhKgqqZLh1lnzj4ceHKgCCm2zBhvwXldBxe5Pprs+qv9otenFOY6dOWtgJla2pqYplPMCkgkydBfWmoD4vEtChh6w/jTxIrtRnlmbOFbF34sYNuHBzhhIVD8SlivycZzM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758287851; c=relaxed/simple; bh=eSREDETOuCirK9j7pp0KaT4IL5H8FAZmt4obtpK9FwU=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=samypQ1vtb9W2BpMabTBGHMZJcPCgVbu3cawblbT8/j3XjosKtzvQaOyNZKR0mRxTKTEaKq/gRUqfGJEbA46WeC0GCNfMyxo8uM3mtiRdBT+XEHCUhzMpzlvRe3O/a1Kq6dR8cbqlvM/7s6JHZVoaaRbRAFQr/flSGvU1Ao01Xs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=Eyed/DFU; arc=none smtp.client-ip=209.85.128.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Eyed/DFU" Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-45dcff2f313so13538005e9.0 for ; Fri, 19 Sep 2025 06:17:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1758287848; x=1758892648; darn=vger.kernel.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=eSREDETOuCirK9j7pp0KaT4IL5H8FAZmt4obtpK9FwU=; b=Eyed/DFUcHC/eY9Dwk4WEIuNjwmF9UxRzgbac3/eRs7vXT7HafKOX9/WmJtUm81cNU 16D8oo56DzfuODKP4SnAWxfuawbSO6wrbOP/S29XpuW7QlTl5CLAe2AcDhxsAcvWLtWp sO2wgGz60g91ftbQY/TyVOzIcsOwE/ANEEFKYDxJ+UtuCryb2KAqjWcsjMgUOZiVOlkM oZxAtnmMUnqtcRirGwMxeTIkBuZ0oCn8ET/gfBcTDzzQfCmKEcwjssSWaVjMy0pPEg53 iAzCLx/TxSbsgn7IbZrKaCf35X0ILKQBPyonYzO694lTAFZHLrnCthURULfH8ECwFrli OEKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758287848; x=1758892648; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=eSREDETOuCirK9j7pp0KaT4IL5H8FAZmt4obtpK9FwU=; b=Y/ek90EYqnTd7YR+XZusQE3cMD+1/RCUXHvfjtjLLSVqTS5CGobev0VhLt/8xtvoC9 0L7m/usfpkTtLbaeFkJeYzIuXZ7BqSEBVZuJXfTWg48X3FrJ+cBdwKsH9d0meGhK9owT oxNHIn4POK8P4atbuhOuoK5HWFh/uCzdo7Il/t0TNR5pNE3o1W61Bw/Btonpiezip0Mg s4LdQEIs+SQhqpg1/9BmCMeQnTfsRelLXvReKjhxNEGxvHtiCKGJkcpUVyLG5HqdMBbg 0WJrgjfTN1cjcq0NFFRj4UW29Znc9dxYu08nnRAne8OFK054K8HzRdRKQx4k066YbR1f BA+g== X-Forwarded-Encrypted: i=1; AJvYcCU7eXU5OaEUpqjOT1zfcU6G0gyqTP5ert+BoJswXr4zT8E0fT5jYoDwi9qyEJB7liP6bqnkoDliaQ==@vger.kernel.org X-Gm-Message-State: AOJu0YwaHC1ZYMLVpbqTobYh+1tRxMaaYUapd7Pe9P4CHJkvC2a43Pd6 ex6ODLGBi/VA+r7zSuBFSltmw1EjPEL+eynuB2eP9pVJVIUZaluxkR7/pRGTJ23khGY= X-Gm-Gg: ASbGncuEdU+fgxvexpP/Zt/3x3vCG4JsJUZT8lxIgQ3jXFrYgmPShhyWYqqX94xg/Fp GwC02iEPpi5WgGXgiWBZgwCeVC2YpWkQJyrD3sr1iKR3VrPE85pygN7gXw9tftUuiFoRxGvaHA7 S0ZNCUOhlDABTAiYue9irFC6jwv0Q63J+IoR1JTUnYYuS04i+bpIXJkdurPC9+WOSRCZ6LuaZzo u0QVUM8a/IwO7CpgUUJBtotJPEqJFJwNlrrMs7bVRj0dmUdAo9Wa93JKpYL7gryVgiK2+yQa5/h Ug/AnxvDR0B5USrBtaeWTcfcytRfiohWGGsKWSupMSZH0bCrh3lWDvO5uKYYG7qwAYl5kR8ggPr jS1+BqkiL22YLZbPeBWKXnHqzosfzceVd1EYo X-Google-Smtp-Source: AGHT+IFOEEL5rr0JEeFyk2H6x0E84IJDnhVN8O14E2Hi/9ffavovVbWpQzybBfB+MObNjmkLFHYNTA== X-Received: by 2002:a05:600c:6305:b0:45b:868e:7f7f with SMTP id 5b1f17b1804b1-467ee8c56d6mr37027415e9.17.1758287847647; Fri, 19 Sep 2025 06:17:27 -0700 (PDT) Received: from [10.1.1.59] ([80.111.64.44]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-464f6695a9dsm88797825e9.24.2025.09.19.06.17.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Sep 2025 06:17:27 -0700 (PDT) Message-ID: Subject: Re: [PATCH v6 2/2] dt-bindings: power: supply: add support for MAX77759 fuel gauge From: =?ISO-8859-1?Q?Andr=E9?= Draszik To: Sebastian Reichel Cc: Thomas Antoine , Conor Dooley , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Peter Griffin , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org Date: Fri, 19 Sep 2025 14:17:26 +0100 In-Reply-To: <65xrumpt7ug5mqd7mkcknwyqmljrn4sofrqymg46bwvcmjoarr@wmt5fhsj3viz> References: <20250915-b4-gs101_max77759_fg-v6-0-31d08581500f@uclouvain.be> <20250915-b4-gs101_max77759_fg-v6-2-31d08581500f@uclouvain.be> <20250915-presoak-answering-2df6fca532ad@spud> <65xrumpt7ug5mqd7mkcknwyqmljrn4sofrqymg46bwvcmjoarr@wmt5fhsj3viz> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.56.2-2 Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Hi, On Fri, 2025-09-19 at 00:32 +0200, Sebastian Reichel wrote: > Hi, >=20 > On Thu, Sep 18, 2025 at 02:02:55PM +0100, Andr=C3=A9 Draszik wrote: > >=20 > > Additionally, the FG block can also measure temperature and battery ID.= For > > those, a combination of (top-level) PMIC and FG registers are needed > > unfortunately. Which means that the FG should probably be an MFD child > > device, even though the FG itself doesn't depend on the top-level. Othe= rwise > > it'd be hard to access the top-level PMIC register. >=20 > My understanding is, that the FG has a dedicated I2C device address Yes, that is correct. It also has its own dedicated interrupt output. > and thus cannot be a simple MFD child of the PMIC. The core can still create child devices if a child uses a different i2c address, as already done by the max77759 core driver for the charger (which e.g. doesn't have its own interrupt). Some MFD other core drivers also use such an approach. [...] > Assuming I understood things correctly, I think I suggest to model > things like this for the battery temperature/ID: Nice, yes, that should work - didn't think of that... Cheers, Andre'