Received: from mail-pj1-f44.google.com (mail-pj1-f44.google.com [209.85.216.44]) (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 EFEA6214228 for ; Thu, 20 Mar 2025 21:11:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742505098; cv=none; b=sPzFVMe/M9x9bLiNnfVR4LCtY4IA5rnI9Pd0w/niRNTnpf2dBYmz96ZdZLZQZsHf2RFAYvauDL907ijvHicqbfJaLAHxLLamWdwTcMwwiHfm/v44EmTTJXi1k80XiqdsZZKxW49tP3xNe/BYVRKzmrBC6AtEOIOkHulP4f56G7k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742505098; c=relaxed/simple; bh=7iu2Y0Wtay1ioN02eOsrQuFnCjPMoGEfCCJHMiTewZ0=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=RDohCsCZStaLwL8YFLdoJitwHbhQZmDp/Ii/+xrCOGjiWd6jpOPP5qRRdqTK0A04QtLTFFropPcGeKyliUL+ONXViQN9KaWGQYaoN/oyQFIvzqjTJFjwGnA44hPqbI2GdEFh8YyQZ3CuY/lmDclQ1v/D4sJ7jrG2SZo27SHKfio= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=226F4C94; arc=none smtp.client-ip=209.85.216.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="226F4C94" Received: by mail-pj1-f44.google.com with SMTP id 98e67ed59e1d1-301a4d5156aso2167250a91.1 for ; Thu, 20 Mar 2025 14:11:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1742505096; x=1743109896; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=sImzeLmX2UXA2JBg4J72WEGaNrYKRbgkBy97vSMkV7o=; b=226F4C94NTRX0nB0fGpVtMNngVVKaodh42fxNEVTk6ZWujooJ5WnzWvDA2c7yFbJ98 MbzDgG6UU27VcRiznr+31Ssukjo9mrLAwfIWtbU1k62AylWZ74gMvqOthqphOyUCOwNE UI+/SIQdoRan+goxTMvd0kr9zDj+llk3CVMTC7INmVmdkCvtQlfMF5oldOhrk2yuRWwF SO7oqiljdd97qZO0+SL/sSLvniAvSFBhQeE0X4dqzuDJDmLzVAzTVLY/VyzJR5qs54Xd GaZh7hXAH4p01e/pmOKlc6A+JyYRMcdf14ozKmRPugCRyIMdD9PcPrDYFIfLivFJWM1A QLZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742505096; x=1743109896; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=sImzeLmX2UXA2JBg4J72WEGaNrYKRbgkBy97vSMkV7o=; b=BWBExDTXK5zhz6o/aGmXeluXa+Xem5QjCM4aG/viOmoB82ouIQcWgxIas59slevL9e PAE/zeyWgp2+Fk3CmiZ4lzICTa+5gU+5LuYTxW7rtNVwwby8arce/VXJGOt0j/YPq91W i3DOXdjyVjsWbUXt/scbufI0L2ME1ruTHxmgSqlM05MyUHFkHgHYKZbvkHcwmPdjZNWV XctJ+hmyPTyHrMdCV26qt/wA/RmPmaov4wB+7fiG9CetE1x8QGNgIjMkJLudwQkfUBTT aTUPaG/ZZQblomxBREOo3JsWP4nK5Y6Xna1Pqs2tO8zhjaTpVyzAkutExSST8YlmLnxH 7bHQ== X-Forwarded-Encrypted: i=1; AJvYcCWOeWOzmcAVPwhGclHBvq3Z8U6oJIoJ2yAjnbn4CEFkcg+Fwoo63TdaOzUbIubRxIMyh2dkTZiP1GDs@vger.kernel.org X-Gm-Message-State: AOJu0YzB6fjsQpVecayVkh9z8glAl54pr+UdJl9Sf2WayYnZWTAwPvYC ajJsAWE83PP4VBR9ZQVu5vkTURlOiHgwgENa8RlxmahBjG4wH4rxHBRQ9O0lDA== X-Gm-Gg: ASbGncubLnL7RBhNlo1v761O65thBhOSXCQ+vrINGyV5DRVFoKZDvlXPD6ZrPkkqAW1 Weq9tgGchAn/IMrx/oP1PhlBqiTpKrNK/ZhBzV1DU4T3CNKapn+C8bq5FEZtUQzcddR1ibAqa4T smUQnGK5g/wRERl2N3sgtqZTJ9oy4pbY1jNs5+znnE6c7cYaqMbCnz6edE6Dfp697sZUpbvs8iy rd8gM2DsgPrKKkmRqdcyRY3aUG/gBZYKOId/goJlnUhWmwx0pt1CN5KfR73wm5rQxxwC3FribHE begkYxpVTIb0JpE9Wr316nmTdfoRMzSqGfCfERJuX7rJbEE/8pmB9xloqUBKGoXNR040U+tXY68 rAGnIpB08NApD/VKOmVtENzcDLsMyiEJSMfag7wYwMbA= X-Google-Smtp-Source: AGHT+IEqVCBTwmZhDMDS7kV3oI+HSN7FBdoblik0mljnFJBIOLjzU5LIjYcNW/TCl7MTjYXEnFspdg== X-Received: by 2002:a17:90b:1dd2:b0:2ff:6f8a:3a13 with SMTP id 98e67ed59e1d1-3030ff08e34mr1105261a91.25.1742505095920; Thu, 20 Mar 2025 14:11:35 -0700 (PDT) Received: from ?IPV6:2a00:79e0:2e14:7:c50a:4138:6122:653a? ([2a00:79e0:2e14:7:c50a:4138:6122:653a]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-301bf59e2desm4429935a91.23.2025.03.20.14.11.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 20 Mar 2025 14:11:34 -0700 (PDT) Message-ID: <9852e5a8-843d-48ae-90d0-7991628e93b3@google.com> Date: Thu, 20 Mar 2025 14:11:33 -0700 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 0/5] Add support for Battery Status & Battery Caps AMS in TCPM To: Krzysztof Kozlowski Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Greg Kroah-Hartman , Badhri Jagan Sridharan , Sebastian Reichel , Heikki Krogerus , "Rafael J. Wysocki" , Len Brown , Pavel Machek , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, linux-pm@vger.kernel.org, RD Babiera , Kyle Tso References: <20250312-batt_ops-v1-0-88e0bb3129fd@google.com> <20250313-determined-wild-seahorse-f7871a@krzk-bin> <914a0df4-96d0-4cd4-ac87-3826fa9c1440@google.com> <3f65fe16-56f8-4887-bb91-994b181ce5a9@kernel.org> Content-Language: en-US From: Amit Sunil Dhamne In-Reply-To: <3f65fe16-56f8-4887-bb91-994b181ce5a9@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 3/16/25 9:52 AM, Krzysztof Kozlowski wrote: > On 15/03/2025 01:49, Amit Sunil Dhamne wrote: >> Hi Krzysztof, >> >> Thanks for the review! >> >> On 3/13/25 1:50 AM, Krzysztof Kozlowski wrote: >>> On Wed, Mar 12, 2025 at 04:42:00PM -0700, Amit Sunil Dhamne wrote: >>>> Support for Battery Status & Battery Caps messages in response to >>>> Get_Battery_Status & Get_Battery_Cap request is required by USB PD devices >>>> powered by battery, as per "USB PD R3.1 V1.8 Spec", "6.13 Message >>>> Applicability" section. This patchset adds support for these AMSes >>>> to achieve greater compliance with the spec. >>> Which board uses it? I would be happy to see that connection between >>> batteries and USB connector on the schematics of some real device. How >>> does it look like? >> Any board that uses a USB Type-C connector that supplies power into or > If you keep responding like this, you will got nowhere, so let me > re-iterate: > > Which upstream DTS (or upstream supported hardware) is going to use this > binding, so I can see how you are going to implement it there in the > entire system? This is for maxim,max33359 Type-C controller. This would property would have been present for the connector present in the typec device for gs101-oriole board (that uses the max33359 controller). However, I will be exploring existing bindings to describe the relationship for now. >> out of a battery while operating in sink or source mode respectively. >> The VBUS is connected to the (battery + buck boost IC's CHGin/Vin) or a >> companion IFPMIC connected to a battery.  In our board we have USB >> Connector <-> IFPMIC <-> Battery. > Which board is that? gs101-oriole board. Thanks, Amit > > Best regards, > Krzysztof