From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=205.220.168.131 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795598338; b=usWrplSYBFnLzi27vqxkCcgncZMvIIJjQJ6jpS+Bp0AJX5c+LxF/n/zGy3GNgwEQ6ejw yBcJADtL6ciL2CnaAd3OKLexKBkJNjXkcUPCUY0DaV3+WZkkm63JjbSVRhUTJMj4JAV01 h0RPpuAEbeGzq+4R++kPGcXIP0TX80AMCIEXrHgs9XuFBVrsIhtB+Hf+c/TtT9oIRda8m GNbQlaK5MpAvKhJNt3WS9W4ZE8d1kQr0fIZUY2FWlCu4dYEjcQtDTIbSMV4uOEfrt+25b nP4nGST8GqKDPUVfrNWlt45BVfrNplBeMzc2U1Oe24PhudNNHkPCiExYTLJtua1nU+w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795598338; h=DMARC-Filter:Received:DKIM-Signature:Received:Received: DKIM-Signature:X-Google-DKIM-Signature:X-Forwarded-Encrypted: X-Gm-Message-State:X-Gm-Gg:X-Received:X-Received:Received:Date:From: To:Cc:Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:Content-Transfer-Encoding:In-Reply-To: X-Proofpoint-Spam-Details-Enc:X-Authority-Analysis:X-Proofpoint-GUID: X-Proofpoint-ORIG-GUID:X-Proofpoint-Spam-Info: X-Proofpoint-Virus-Version:X-Proofpoint-Spam-Details; bh=jMbaKJz9g3EncUc8DUtHl36zo+oWHqVd7GDKw3y5cJs=; b=vmKe25hhAaNf/72ZY+m3YPhDxtUa+OmxNnf9+dQuVy3NdIcKuaewMyYyMaDdfVQv3qMw xHkiroStmMkzbWf45taWMcEf0Xb0FOf8iNlaWZh9XZxtrFGmq8oqg4UTEIJ0tCmOikNXg lVY+zdlFuVF4yjZGcAC7DTv/Fygc2M5jw8WU/p12/V/BqTmt96fwiqoNGFpXrHgkfsjLF apLNnFAIPnj70GIK32tRzXDfet7Z9VvR/49uc7qxnP8cMFmu93Zg4WKZxI6mUl4B+Buxr aiwUOQm9j0JMhfsvT300U4o8oAGK+gGI5fJ5nZ7pJh9XGb8eRSSr7A00iduJL7x15yQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=GWgbSZ4T; dkim=pass header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=VRXEA7fw; arc=none smtp.remote-ip=205.220.168.131 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (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 85811606A691 for ; Wed, 25 Nov 2026 09:18:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 85811606A691 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=GWgbSZ4T; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=VRXEA7fw Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6AP68Xc0299998 for ; Wed, 25 Nov 2026 09:18:56 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= jMbaKJz9g3EncUc8DUtHl36zo+oWHqVd7GDKw3y5cJs=; b=GWgbSZ4TNz9+5qMl QkTo3W4EpXrRntBZDKsTi93htfjF1ObcWORNOizPjsspuh5silkP+R8pvJFUmcLk KDDNGlRc6aDby0XHutQ2sMzeD38f6AcIvjeTNbDrMd6EaJ9EAgzDsBBaUepaothL /6gLbWIWflflACvnfszeW1yZwp8nKJrqxmykGhh5LMP4Irh0Bxj7YdZKwmqUa9AL hERoiizUvEr73p20tFBn572LC/Mmte2oRR9/l+0bwvg3McT9e0SOFpmOLZ3avStZ gTHyeOZ+Dh+kuOZKXZnuzh28fgKhdsFM694WIRew4MevQU8d2UJ7DFPLB1aVnKWY DhUVLw== Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4j5n6rsvy4-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 25 Nov 2026 09:18:56 +0000 (GMT) Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-3b41f4ca1bfso4388355a91.1 for ; Wed, 25 Nov 2026 01:18:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1795598336; x=1796203136; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :content-type:mime-version:references:message-id:subject:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to:content-type; bh=jMbaKJz9g3EncUc8DUtHl36zo+oWHqVd7GDKw3y5cJs=; b=VRXEA7fwf+fBmdgY4/fleky8uFnW9VeuM1Rjp7nEti2NYI3/07V/N1UjDjFlPGC4/8 Uogn4h+Tx5oIzxcQZ/q9E5oZud/YkNkFITzKVU8l8U9g/LdBNhEa8eRlrqpcmoUI0L5A eKi9cO4QZ2ti2NyiIYDSMEvs6EACG3uIJ3/cjTaw4Wl/6qEec7yZoT5vnkLG/we0LGhj 3tNJASX6r77Pizmb+EeZB+Nc6jTi2pYcG99ZF0adLfdqSs2XQJhblNfxQk2SgHWrjdfI F8qvCGhhBdJsRzuybkP9bgrnvj6a695ShFlfZJ6y77LPs4/d3T/yD72j12l4P/UVm7po o+gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795598336; x=1796203136; h=in-reply-to:content-transfer-encoding:content-disposition :content-type:mime-version:references:message-id:subject:cc:to:from :date:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to:content-type; bh=jMbaKJz9g3EncUc8DUtHl36zo+oWHqVd7GDKw3y5cJs=; b=fJFHvKQcovOydHc2IybBCRe9MeOH9CjjaLoTEIYnyzTJetV4SQBAH1+ti1nuefePAy I6q9zk7qjavT+6SuR969n79817nwk9oaRXzw9+1VxT6MYG51DFMI+mRuyR+YRPPQaU5D 8aCIDrVfFhFzYJfGi80NUmQwWB+Oo1yZO6bbA3Xj6yJuwuX47j15qlngFn2aO9vaynRd DQrL3jJ9XULgra+hRCxZShQl5+dzsXLxryA0Tbins97Zibrlr5IhNDXj3PsiiDe01T9k lwFQHCR2uvLZRoVKRY7TSRcyXrUnUZV7i+T1totz+3AT+MNLusUeWFCUqDBLnyX3ZqOO zE/g== X-Forwarded-Encrypted: i=1; AL+hErHAy+kJVJdlniW8hy/yEgJUpzRm+cNBlpwtK9jDTyxn4ngOt2uQw4kf2J7sWGMj2s12h/TwtnZ3ww==@vger.kernel.org X-Gm-Message-State: APuU4Z8oFIx4qt0op7b0j8yCErMsRGOt7kok+uML3BinOm6/6WMK1mJc asoapWXMscAXZhH8MBKDAPRSFgh5OGbHf6y3gBTKqPwM4GSMuaIt+lxRFuMr4LVTESVbQsACtHa 92qdbHXfCv6jWkDw2cNcYpCybkq+XDW8C1GVkJW6+8QAEE4Q8C0Ibv/W5i4ADJg== X-Gm-Gg: AZFdTZeJN6AtLu+KIG8SsP6ttuCyXeSW0e6ZYD1Le5lYjMi6NpmZg393zRgoe2S5bxc PidNm9Ejqao48Fuou9luV5xK5pbtoTB73UFJ+NbtLuaAZjH+Cow0EMxHsFRj+pHWl8oUMsLLTEK SK7Hx7PdQQpV3htb7HaUaCAPk4lKs1w5bBpmJB6acqGxp2z241lF4BhE1z0rpbRydXzrt1nGmjn vrYw4/qQ6zS9m6Lmh/Jo+PmzpLoHNK5XqpNOFn3YskNYxsToNsOWDXyWaqufLQHhGbWNZyZy8gk 6TPgjoDPSlvmikzCkzufr3Q7/k+1nQUN9GjT5805FSZ9SlFxUeqH/Mp36m6BDi3Iw7PU1wL71nA bjRdJmTQrMBduHQXKHAEaoQssFH6kesw18oCjKehXUSLPCaBiVFS/NSrc60ztF/kAN7HF3DN4PB I= X-Received: by 2002:a17:90b:48d0:b0:3ae:521e:767f with SMTP id 98e67ed59e1d1-3b41c95fa1amr15029382a91.36.1795598335906; Wed, 25 Nov 2026 01:18:55 -0800 (PST) X-Received: by 2002:a17:90b:48d0:b0:3ae:521e:767f with SMTP id 98e67ed59e1d1-3b41c95fa1amr15029358a91.36.1795598335425; Wed, 25 Nov 2026 01:18:55 -0800 (PST) Received: from hu-raryan-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-cde7f91c6f5sm6290687a12.27.2026.11.25.01.18.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Nov 2026 01:18:55 -0800 (PST) Date: Wed, 25 Nov 2026 14:48:49 +0530 From: Raj Aryan To: Krzysztof Kozlowski Cc: Sebastian Reichel , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Casey Connolly , Liam Girdwood , Mark Brown , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Rakesh Kota Subject: Re: [PATCH 1/2] dt-bindings: power: supply: Add qcom,pm4125-charger binding Message-ID: References: <20261124-smblite-charger-for-pm4125-v1-0-2132c9f0601f@oss.qualcomm.com> <20261124-smblite-charger-for-pm4125-v1-1-2132c9f0601f@oss.qualcomm.com> X-Mailing-List: linux-pm@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-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMTI1MDAzNiBTYWx0ZWRfX1kl+O4QxzA1q 2/4mX92gkZGESafgrCVR/Rt0Q95+yrs1a0DEU3fjASdx0C2IVLPnY7el8K/irfQn1IRulU3Jhjn ctLQFV+DOKXXIornuxbBwkX1UkWxviVZ/yqC753z+oy39Ai0Fptw613nWAXLpjOHYsyOoZrmzjh CsHRc43qKqulrMFRcXzPf4d4oCZsXBhZGwqucx0CRJblPoa+aF3STxXPNsP/cG427xmNRE7tNkr DtPir2S87PmBHZkGBPH34d4m/55VBorkqsFWxcYzxjY0Bb83aIrg4EEJc+iJKlp82QJOo02FdA3 s6IYMekQkyfqe8Mbeasr3HU6wGiIxAW8QeTTF3eUIHH815zT0ADIMdnRHnMTgp6ibc8uh/ETVDu 8C05cXLygVZvqhv4L9Bp2wx1lHX5WDRl7YLWAUdphe6AQPhv7hIuLYYcqRAL0eyBK6lTKqeLsHS ibDNtpk7dEULCri011A== X-Authority-Analysis: v=2.4 cv=Voa2kO2n c=1 sm=1 tr=0 ts=6b06a800 cx=c_pps a=RP+M6JBNLl+fLTcSJhASfg==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=IkcTkHD0fZMA:10 a=zJRp6_cAMcgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=eoimf2acIAo5FJnRuUoq:22 a=P-IC7800AAAA:8 a=EUspDBNiAAAA:8 a=gAAQxgIGOAtfHdDX1gUA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=iS9zxrgQBfv6-_F4QbHw:22 a=d3PnA9EDa4IxuAV0gXij:22 X-Proofpoint-GUID: LnitHLc0D4Chl0NUJ4EpS9mgiapPyiG6 X-Proofpoint-ORIG-GUID: LnitHLc0D4Chl0NUJ4EpS9mgiapPyiG6 X-Proofpoint-Spam-Info: AW1haW4tMjYxMTI1MDAzNiBTYWx0ZWRfX6CaExaeyuvQZ nSwzj7THLqNQ8SWx8YMie7SHB0TkMKChKXFMDoAZNq0fifeZgOh7su50ZdGApDFdyXj3iehjsKj uk7DUOkK69Z136vkhrjax64gawGYu3A= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-11-25_02,2026-11-23_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 malwarescore=0 clxscore=1015 bulkscore=0 lowpriorityscore=0 adultscore=0 spamscore=0 priorityscore=1501 suspectscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2611250036 On Tue, Nov 24, 2026 at 10:55:57AM +0100, Krzysztof Kozlowski wrote: > On 24/11/2026 10:15, Raj Aryan wrote: > > Add YAML devicetree binding for the Qualcomm SMBLite switch-mode > > YAML devicetree binding, you hit combo... Drop YAML. > ACK. > A nit, subject: drop second/last, redundant "bindings". The > "dt-bindings" prefix is already stating that these are bindings. > See also: > https://elixir.bootlin.com/linux/v7.1-rc7/source/Documentation/devicetree/bindings/submitting-patches.rst#L23 > ACK. > > battery charger found on the PM4125 PMIC. > > > > SMBLite is a reduced-feature charger IP sharing a common SPMI > > interface with the SMB2 family (PMI8998, PM660) but using separate > > SPMI peripheral bases for CHGR, DCDC, USB, MISC and BATIF blocks. > > > > The binding covers: > > Do not explain what the patch is doing. We can read the diff. Please > read submitting patches or look at other commits to learn what is > supposed to be here. > I apologise sincerly. I will correct this in V2. > > > > - compatible string: qcom,pm4125-charger > > - reg property for the CHGR peripheral base address > > - Four interrupts: usb-plugin, bat-ov, wdog-bark and > > usbin-icl-change > > - Two IIO channels: usbin_v (USB input voltage via ADC5_USB_IN_V_16) > > and usbin_i (USB input current via ADC5_USB_IN_I) > > - Optional JEITA soft and hard threshold configuration as raw > > 16-bit ADC comparator values written to BATIF ADC comparator > > registers > > - Optional monitored-battery phandle for battery parameters such > > as float voltage and charge termination current > > ... > > > + > > +maintainers: > > + - Raj Aryan > > + - Rakesh Kota > > + > > +description: | > > + The Qualcomm SMBLite is a switch-mode battery charger IP found on > > + the entry-level Qualcomm PM4125 PMIC. It exposes five separate > > + SPMI peripheral bases for CHGR, DCDC, USB, MISC and BATIF blocks and > > + supports USB input current limiting, JEITA temperature protection, > > + battery overvoltage detection and a hardware watchdog. > > + > > +properties: > > + compatible: > > + const: qcom,pm4125-charger > > + > > + reg: > > + maxItems: 1 > > + description: Base address of the CHGR SPMI peripheral (e.g. 0x1000). > > Drop description. > ACK. > > + > > + interrupts: > > + maxItems: 4 > > + > > + interrupt-names: > > + items: > > + - const: usb-plugin > > + - const: bat-ov > > + - const: wdog-bark > > + - const: usbin-icl-change > > + > > + io-channels: > > + minItems: 1 > > + maxItems: 2 > > Why is this flexible? > I made io-channels flexible to allow an optional usbin_i channel. The shared driver requires that channel for SMB2, but PM4125 uses SMBLite, which doesn’t request it. Since this binding is PM4125-specific, I will drop it. > > + description: | > > + IIO ADC channels used by the charger. usbin_v is the USB input > > + voltage channel (ADC5_USB_IN_V_16). usbin_i is the USB input > > + current channel (ADC5_USB_IN_I). > > + > > + io-channel-names: > > + minItems: 1 > > + items: > > + - const: usbin_v > > + - const: usbin_i > > + > > + monitored-battery: true > > + > > + qcom,jeita-soft-thresholds: > > + $ref: /schemas/types.yaml#/definitions/uint32-array > > + minItems: 2 > > + maxItems: 2 > > + description: | > > + JEITA soft temperature thresholds (COOL, WARM) as raw 16-bit ADC > > + comparator values written to the BATIF ADC comparator registers. > > + Example: <0x5314 0x25e3> for COOL=15°C, WARM=45°C. > > + > > + qcom,jeita-hard-thresholds: > > + $ref: /schemas/types.yaml#/definitions/uint32-array > > + minItems: 2 > > + maxItems: 2 > > + description: | > > + JEITA hard temperature thresholds (COLD, HOT) as raw 16-bit ADC > > + comparator values written to the BATIF ADC comparator registers. > > + Example: <0x58cd 0x20b8> for COLD=0°C, HOT=60°C. > > Express temperatures with proper units. > ACK. > > > Best regards, > Krzysztof Thanks & Regards Raj Aryan