From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8CCD23B1EFD
	for <devicetree@vger.kernel.org>; Fri,  3 Jul 2026 09:54:11 +0000 (UTC)
Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131
ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1783072454; cv=none; b=kCZ9j19rgSmRyVX1rIMPgRAWvVB56z3L/69FVWBq0gIb5iy4s/HDsQZxP0fSxm/0kbQtndarAgbJTW+G+BLxqC2RKL4vpl5EPuyyJYpyXpZMZcw7pCFdAlHYpv2FtlBgk5zGCw/kNr5xKKmgyRsnbhVw5e0FYkmkw/SiaWtRs50=
ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1783072454; c=relaxed/simple;
	bh=JvT7YP9LQMUZWUzXp4IGHtqPlcFpIMyEWUOZEgwRVRI=;
	h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=gNVJT9/sbP8Keuqy06BQEOMq8QpyYNXqeDY8GBusd2eEy8a80rGnE/x85WG2ifR/R22h2994qocQZ5RIsF7JJVZ3E5xFt8KXVcDhj4AdMLLC0G5d9ug6X9mxFm6GVKFw3pkjmcWRuzTTskFAVGKnvrUNhm68S3Iif7XFsIjkG5E=
ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=lXlg/U7q; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=i2hTxOeF; arc=none smtp.client-ip=205.220.180.131
Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject 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.b="lXlg/U7q";
	dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="i2hTxOeF"
Received: from pps.filterd (m0279873.ppops.net [127.0.0.1])
	by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6635rqTU3088171
	for <devicetree@vger.kernel.org>; Fri, 3 Jul 2026 09:54:10 GMT
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h=
	cc:content-transfer-encoding:content-type:date:from:message-id
	:mime-version:subject:to; s=qcppdkim1; bh=Uz7PwRjb/ToHlqvOFOabrI
	0lLOtsa7etqjKsn48OZDM=; b=lXlg/U7qxIlg3lU4yWRXF1VzUGVqpVjrbNz1rZ
	SqONtRKFcn8/VVJ1AWhYMnD9X4gCHESa5ifcYsgk83xC7cBckVCltI84UKOLQGHI
	o1wVt1FZZGi9zQgDAKsfG/lsjGTBW04gUgtLhzWzhRIGct+/Z9tHIUyZjuS9f0bp
	AAD8I7QqvA5tx7I0JojM4MwrMu/SbmNm6+tesS8ph2qYiF5QBG9PcOYQsyo2Hz3r
	6p35VlyfS7+3xglkTn4bbkXG/zcajBqPhyJJlV9Vuicl4rm5pmU1Xlu6ftjcJp1O
	6f9zyareyoGSBhPVH1Ny+KsoYJ9DFVO3Nv+Yb6FUV93kpeNw==
Received: from mail-pl1-f198.google.com (mail-pl1-f198.google.com [209.85.214.198])
	by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4f5s254cca-1
	(version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT)
	for <devicetree@vger.kernel.org>; Fri, 03 Jul 2026 09:54:10 +0000 (GMT)
Received: by mail-pl1-f198.google.com with SMTP id d9443c01a7336-2c9b71388fbso10259045ad.1
        for <devicetree@vger.kernel.org>; Fri, 03 Jul 2026 02:54:10 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=oss.qualcomm.com; s=google; t=1783072449; x=1783677249; darn=vger.kernel.org;
        h=cc:to:content-transfer-encoding:mime-version:message-id:date
         :subject:from:from:to:cc:subject:date:message-id:reply-to;
        bh=Uz7PwRjb/ToHlqvOFOabrI0lLOtsa7etqjKsn48OZDM=;
        b=i2hTxOeFJDUp8YlEKdM4pCqpzSieEZWxMOyKyWZ7M26sYtaP0b9iKdUzp218FebPHH
         nAbEOJCATjDhF1S1ze4jT8RUVbaN9EjS098ZQEN5W+Vg/WCltGSOAuRYpHWqexJjlnHs
         zDKRJ8vQHSmJHImIcAoecU1cOE0oDRj32I1dVpf+4IF69hnh8VsqoYTtDaU3c8UkNUxK
         C0a92atLdXmtzhHDt2HVgCMuPwm5Y7HOCq7UjJmN61Khkb9S101uB72BuRMRqn62ewsI
         cSq48EuX/cZkRgBEw6x3eNtuPPN16Pi5rUTDzYKwDWpPDpUjiNCWJLBoen439ZXIqO3x
         ucqw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20251104; t=1783072449; x=1783677249;
        h=cc:to:content-transfer-encoding:mime-version:message-id:date
         :subject:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
         :message-id:reply-to;
        bh=Uz7PwRjb/ToHlqvOFOabrI0lLOtsa7etqjKsn48OZDM=;
        b=YhQAbQL4gPa30XVt8ZnL0FPBS6bh+Drd0Lk6YziPvQ2LQsmp02OpYgWtSrxRTXeKEu
         t3DcZ63tEIrMGErNlRt1YLnLad0sPr4bmOPIbCrZh8d6gEftTX6bYWdf6cnld9n+ZAfS
         +upQEs09aD0OfEF3vG7n91U0LY4CRlVzMZo5lzg+yBNBpGepKDZcvG9mdphi57ak5NHW
         zdiZD/Xi6/bOV+9TBhBanj+SklDhDZGMXAPd+b8FPZzo88Xr0Oh0MweGa8z/6D0/W8kp
         Gi3NBhAuoDIdFNjCdX9taVMknmJEnjf9flxy5H2aRM9zPXE395WSfOlsQNbdGnQOb8r9
         mszQ==
X-Forwarded-Encrypted: i=1; AHgh+RojIASNVSudxtUIy1aSzDlg0+3tFNX0FJowX33edLeNFJq8goObhmtjKG1S3jpzuMAE4xqcUYYa8YQq@vger.kernel.org
X-Gm-Message-State: AOJu0YwChVETg/7EZeWv5FnSteyvmI1ydGh8YITAGCwsupJSXOQNFs3p
	OgA4uqkHn3NqsFZjrq6BSJFTffsB1YsgbLK+THb7FKtsN4r+cIpVRdjVtfLGcfFZtuO2LWb/kgK
	gX/0Ek8bmRScqIhbUBV3qKo0oyDN/8PJ0ap+nsTuBpZcG/ztoYxyWlmZ9HupNeISw
X-Gm-Gg: AfdE7ckKEvq9PqnFF7kuHtdblHMANEYnz5ujaUJj9ai9U1iJAyNrdNoMMiOSkUV1jN4
	KguOHEVwdaDOqbUl8qZQdAeZoly/QnQ9GZLpMILRXE77suZgRTrgT/RKLLhmkTi7Lvt+Hf79R3f
	SPswgLWMVvxqwvDZz+hPo+hp2TSn+FjQzklP6AAn+33ikjnJR0lt03sGsKGkBonr3rs234DkaQP
	ZGmGNncPEzjy3/WCqw7gimvmgKm2CKmnJWu854HWND8FxarqFHEK51ROQTuf2oFupqp9ZuJYgrm
	sIyrUyycJAVoLSYHfh0J3YsD4d67NWGA+cVJG0aV4SCPjizYXqRDWwLmGu9CLvy9E2jej8gO5/E
	DmXvEFRYeWwB9z82PbF9op/xViBXY5Be8+tNSBKtfW1NMq65CEYb6E8YzDXCiArJ60fakXFhxgC
	/Q2FFzSj+OFy6rU75hBEA/WdI=
X-Received: by 2002:a17:902:f688:b0:2c9:b396:1a55 with SMTP id d9443c01a7336-2ca7e6a79bamr109652885ad.12.1783072449399;
        Fri, 03 Jul 2026 02:54:09 -0700 (PDT)
X-Received: by 2002:a17:902:f688:b0:2c9:b396:1a55 with SMTP id d9443c01a7336-2ca7e6a79bamr109652615ad.12.1783072448951;
        Fri, 03 Jul 2026 02:54:08 -0700 (PDT)
Received: from hu-ajainp-blr.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com. [103.229.18.19])
        by smtp.gmail.com with ESMTPSA id d9443c01a7336-2cad7146914sm7034515ad.35.2026.07.03.02.54.04
        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
        Fri, 03 Jul 2026 02:54:08 -0700 (PDT)
From: Anvesh Jain P <anvesh.p@oss.qualcomm.com>
Subject: [PATCH v2 0/2] Add EC support for Purwa IOT EVK
Date: Fri, 03 Jul 2026 15:23:40 +0530
Message-Id: <20260703-ec_support_for_purwa_evk-v2-0-c59aac5c6aac@oss.qualcomm.com>
Precedence: bulk
X-Mailing-List: devicetree@vger.kernel.org
List-Id: <devicetree.vger.kernel.org>
List-Subscribe: <mailto:devicetree+subscribe@vger.kernel.org>
List-Unsubscribe: <mailto:devicetree+unsubscribe@vger.kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
X-B4-Tracking: v=1; b=H4sIAKSGR2oC/42NQQ6CMBREr0K6tqTUpBRX3oOQBspHGoXW/6FqC
 He3cgI3k7xJ5s3GCNABsUu2MYToyPk5gTxlzI7tfAPu+sRMCqmEkhUHa2gNweNiBo8mrPhqDcQ
 7V7ostejAikqzNA8Ig3sf6rpJPDpaPH6Op1j82j+kseCCg9CyK0Vx1r26eqL8ubYP66cpT8Gaf
 d+/KYKWQ8cAAAA=
X-Change-ID: 20260629-ec_support_for_purwa_evk-687780bec098
To: Sibi Sankar <sibi.sankar@oss.qualcomm.com>, Rob Herring <robh@kernel.org>,
        Krzysztof Kozlowski <krzk+dt@kernel.org>,
        Conor Dooley <conor+dt@kernel.org>,
        Bjorn Andersson <andersson@kernel.org>,
        Konrad Dybcio <konradybcio@kernel.org>
Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
        linux-kernel@vger.kernel.org,
        Anvesh Jain P <anvesh.p@oss.qualcomm.com>,
        Yushan Li <yushan.li@oss.qualcomm.com>,
        Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>,
        Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
X-Mailer: b4 0.14.3
X-Developer-Signature: v=1; a=ed25519-sha256; t=1783072444; l=1068;
 i=anvesh.p@oss.qualcomm.com; s=20260313; h=from:subject:message-id;
 bh=JvT7YP9LQMUZWUzXp4IGHtqPlcFpIMyEWUOZEgwRVRI=;
 b=+EYkvgi6Q+dRIUScgv8oxGZUzvaK9B4K/IAlB2iRXg21dV8cVW0Dl1sqWFrd7wYnqEdzC8I3i
 nT7KnkurkeTA1xqL0PWJKW9S5Dr4UHMEfkQweVCuK2zAoxPuhBWKjOR
X-Developer-Key: i=anvesh.p@oss.qualcomm.com; a=ed25519;
 pk=8o9EG7gkPe2Er9y9UVCx8MTdcFCwU8Pa54hBZPuduXE=
X-Authority-Analysis: v=2.4 cv=U7uiy+ru c=1 sm=1 tr=0 ts=6a4786c2 cx=c_pps
 a=MTSHoo12Qbhz2p7MsH1ifg==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17
 a=IkcTkHD0fZMA:10 a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10
 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=rJkE3RaqiGZ5pbrm-msn:22
 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=7jjU-lUb3pZ81cJkI4kA:9 a=QEXdDO2ut3YA:10
 a=GvdueXVYPmCkWapjIL-Q:22
X-Proofpoint-ORIG-GUID: S9dGZRDtpOwRdCgZlIA2RREKXh716KcL
X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzAzMDA5NSBTYWx0ZWRfXzTx8o/OA+bKG
 BpRneJYwbnxYWQ1RtMlk1jwLd91PJlp9g60op4lPPfH5ikUhlONyU9ooTJZp163WO3mrxg9M7ok
 hQ6AKgCCBysvIDrD0LrfhWtJEIlmP80ErQ/zpDA8tTp3+pjw6bJXaQUw0MPhXWda57q0XMnuUtq
 o+DYclvtiUYve670POrHsvUQHs456ocnnhU5u9zB/mxRvAacZoSSmnBZU7ZZICOEiM6ljGnAH3k
 DlOpWOXXwFXoFqjdRExGm+SFoZQkcAwy1m/9tn7bHAo9HU/FosLmv2llqQbT5u+QftnWkKYmYYO
 21PnCTKUCZ4hrK6TMINf6Zpc18EEGmDRWVDJoJ4dbkYtb29+V8OJWosc8ugQyvTUn/20wHpgtYp
 boPVvn6XZCQJv7P1qz8bb6ZDaotOtaYDcGjEADJeQ2q1zQdyjxNSNlJJSCRo8juQgcIpT72JVhK
 6gi5sj8+26zBT72qDnQ==
X-Proofpoint-GUID: S9dGZRDtpOwRdCgZlIA2RREKXh716KcL
X-Proofpoint-Spam-Info: AW1haW4tMjYwNzAzMDA5NSBTYWx0ZWRfX/eIy3C6rsI8j
 wuiL186/kHcZOptYlMq/eMfznbHwAm95Qq1txsBVWEPahMcWTOfNC6a/yBtFI9oS78OESXVabrg
 6urkoU1H197AAnfnSP/nxPj6GJRQ6qw=
X-Proofpoint-Virus-Version: vendor=baseguard
 engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.125,FMLib:17.12.100.49
 definitions=2026-07-03_02,2026-06-26_01,2025-10-01_01
X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0
 impostorscore=0 bulkscore=0 suspectscore=0 priorityscore=1501 malwarescore=0
 spamscore=0 lowpriorityscore=0 adultscore=0 phishscore=0 clxscore=1015
 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0
 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607030095

Add the embedded controller node to the Purwa IOT EVK board and document
its compatible. The EC provides fan control, temperature sensors and EC
state change notifications.

Signed-off-by: Anvesh Jain P <anvesh.p@oss.qualcomm.com>
---
Changes in v2:
- dt-bindings: Reworded the commit message to describe the EC hardware
  details. [Krzysztof]
- Collected Reviewed-by and Tested-by tags on the dts patch.
- Link to v1: https://lore.kernel.org/r/20260629-ec_support_for_purwa_evk-v1-0-e082b70138d6@oss.qualcomm.com

---
Anvesh Jain P (2):
      dt-bindings: embedded-controller: qcom,hamoa-crd-ec: Add Purwa IOT EVK
      arm64: dts: qcom: purwa-iot-evk: Add Embedded controller node

 .../bindings/embedded-controller/qcom,hamoa-crd-ec.yaml  |  1 +
 arch/arm64/boot/dts/qcom/purwa-iot-evk.dts               | 16 ++++++++++++++++
 2 files changed, 17 insertions(+)
---
base-commit: 948efecf22e49aa4bf55bb73ec79a0ddcfd38571
change-id: 20260629-ec_support_for_purwa_evk-687780bec098

Best regards,
-- 
Anvesh Jain P <anvesh.p@oss.qualcomm.com>


From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id CE92B37DE89
	for <devicetree@vger.kernel.org>; Fri,  3 Jul 2026 09:54:15 +0000 (UTC)
Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131
ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1783072458; cv=none; b=q39oO2vQGYjE6lNF43VmgcZN2Y7pddjk17LWIsW8gaMnfsF/IBmQT+ncit8OpmjgsEcsrvyOK+NwOXUPojYJfryhu5AInjcj/AlVpm+eNlGt1RLTUC73ltCipd0AoaaS/SeV5Nwb70TWx7Dx+bBbiB6JZoUgJI/F5IXoEP5lEd4=
ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1783072458; c=relaxed/simple;
	bh=RBigZqSD2Lucd1Ffeq4Dp/8N1Gy2Ye66tj8Ngrx8NU4=;
	h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References:
	 In-Reply-To:To:Cc; b=EDhGgBCb6zIgaZbvgfAR/Y5UAi8L0WI6puIB6inhu11PQZ6bC0VREJcU524Z/H13HGnYMN8M/dTRN7jv6LfZlUmaIfSuCw27mLxgeBUGqe5zX/Xlf+Byd4p+NPoTm6I5fnOhqry2tJYUnIaDoae5vBfSwOc49InGgWGT3NuhXj4=
ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=UQSzdkec; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=CnUYcxCo; arc=none smtp.client-ip=205.220.180.131
Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject 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.b="UQSzdkec";
	dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="CnUYcxCo"
Received: from pps.filterd (m0279869.ppops.net [127.0.0.1])
	by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6635rlLv3134767
	for <devicetree@vger.kernel.org>; Fri, 3 Jul 2026 09:54:14 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=
	84tIQsO+bpww4xyAgTar+uWLZiJjvR9HhiTz7wnfd0c=; b=UQSzdkecz+F/U2gM
	Yqbg1vLaVd/TgJcsDoFPmDamfNPOY47R0/inE2sPOgAa0/eawM5QestwWT8Xnn+M
	t3pfJqTRcq7E0TwkIp4oPuNU129hLIYZy3Oxc1qtfETzPDIEdPjmXMwKrDKCJANJ
	23S6C17Z68bippoxAe3onJig9CJ0utrHxS0GeQ0P2UzGSZSn8JNGLOSXiAKQD9BY
	3sXLzj9AZmLDcgrOlOxIfOZmirBzmEEuVgL0ztOXP10rJ+xTW6r4mBk2tUzkV0zA
	qpWjtzt2zCEzJOy6pJaSaUFrlDygLQ0H/LSILjzPNHV1aajFC5ZFu+vt9bEZZzCK
	DuPBcw==
Received: from mail-pl1-f198.google.com (mail-pl1-f198.google.com [209.85.214.198])
	by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4f65qchfp7-1
	(version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT)
	for <devicetree@vger.kernel.org>; Fri, 03 Jul 2026 09:54:14 +0000 (GMT)
Received: by mail-pl1-f198.google.com with SMTP id d9443c01a7336-2c9d8549d55so3634625ad.0
        for <devicetree@vger.kernel.org>; Fri, 03 Jul 2026 02:54:14 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=oss.qualcomm.com; s=google; t=1783072453; x=1783677253; darn=vger.kernel.org;
        h=cc:to:in-reply-to:references:message-id:content-transfer-encoding
         :mime-version:subject:date:from:from:to:cc:subject:date:message-id
         :reply-to;
        bh=84tIQsO+bpww4xyAgTar+uWLZiJjvR9HhiTz7wnfd0c=;
        b=CnUYcxCoKttSLMftjp6U87P63+dEU1rstp+hPH5w0/BM+NJq9m1r8keNNHj/MFYUpM
         TjZT70tY1Evq9TEjIvgP3/MSCrA311mbBSOOBdmKuLQgICsngfU+DJQINIO8nIsoUjEj
         DZNlNXsR6j1QYkRTx9PwwZGbEh/HYgzy5GjVNmg6XyfN8aLuoZS1nyWiqegPriD+l3+s
         ymEWnY1lFz7Et83JD05KsEJ+gaHyXaAqt0lvWy5A6RXGas+wN9q2iv6JbQ1JrLKMihhv
         WIZa5MGQHJMAD2KV8CLrXPw/cXu1jTkUD27A1JqJ5YemQJT7eEO7r3TkBIdbbKrLLRtJ
         leGw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20251104; t=1783072453; x=1783677253;
        h=cc:to:in-reply-to:references:message-id:content-transfer-encoding
         :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to
         :cc:subject:date:message-id:reply-to;
        bh=84tIQsO+bpww4xyAgTar+uWLZiJjvR9HhiTz7wnfd0c=;
        b=BNprjCh+wucMgn6uRtCdDaD3U9PgZTugkHdS9g7TPopq64br8Zo1QRv+3QiC/8RGsd
         vhQE87OiFKkgfvurH/VcoOPMPE+KSpOYmHV2oEL73Ihw+AYgbC3HmhbgSy679RqmPTWe
         mW8lhmZiAT5Cv5agl/KwHCFuzqnVeMKh4xrYKch/Td/l8JJv3+pfcjd/LAvIV9AKLSyI
         ZE1VR0EN4eoUT9TC+w1Q4houJ4JPPYg0iyf9nqqPXcY2G6Ne5GzytbvNapJWCjnSTVjX
         g9z/xbWzF2lTDket4ErxtIC8XSAjV9i9vRLsL8OYWgM2noF0xhdqQHdtolgXt2jMUb2F
         CBvw==
X-Forwarded-Encrypted: i=1; AHgh+RrUGsslGEtHpccfBzeufolWCfX114732Z2d8N/WVuQyEy/NgGKjsXt0zys6JmUb+TA7eGHZKd89nEsV@vger.kernel.org
X-Gm-Message-State: AOJu0Yxa7cN6MnyiCBcWwBZvKSYkwmmbISfWR8IiBQcj8aa3mCBopPhk
	dUPEb9xzmr5QTWqp2LoCJS4DyVXxVKiHBHGxGir37Kgj0QwgM+f9Jfw3Ml1eGoKLGWKORsmMEl8
	5RPCVAk8TYAVIyIOxs8aasKe4NQ5Bjws30yIr5suHHhXtRjiv4CzzAL8QWmqz+GpYRH6l/JgA
X-Gm-Gg: AfdE7ck8azR0lWEyBQYkkZ8ipsSjUINhdxGs2Fgbo7uEVGXAJYQKN0vOhdwaAWlgNEp
	o6qxtsKoN4Vg6yxZU5+AejekWdtGs0CM+omeFZj/Q0valc7T1qcRNcZIo1q2AQtgUK+xbYNNbBR
	KJm+BcS+9hISueCIy16oDI2jmGVFoN9SW9+UXz6OPIJ4DNPl4iSzldKyT9SjRMNlKHTm3rb9dfB
	ZWkVkdWgWw1Sv5iDjOxerx4Lo+OmSqdR+4vcPVo9sT2eggnV5AxryI4+sY6TDLhHqTTplXyk+wI
	1uDb4fKl5GUS8senC0rc5BrlghKdF53u/yCFQmAqN5rPb52i57WkwUxk5HkG0IWnbGS1uOjn4o6
	ufyA4sYFVUvka1zjLpK+m48C0Vv9xc/lW+VfumZC+Iv9wwg5ELq0sG269vXY/Lz8wtmZAkTkqkD
	JqJAkfBdKqjank4QINqW86HU0=
X-Received: by 2002:a17:903:8d0:b0:2ca:bf68:2a54 with SMTP id d9443c01a7336-2cabf682f99mr51384145ad.22.1783072453245;
        Fri, 03 Jul 2026 02:54:13 -0700 (PDT)
X-Received: by 2002:a17:903:8d0:b0:2ca:bf68:2a54 with SMTP id d9443c01a7336-2cabf682f99mr51383825ad.22.1783072452783;
        Fri, 03 Jul 2026 02:54:12 -0700 (PDT)
Received: from hu-ajainp-blr.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com. [103.229.18.19])
        by smtp.gmail.com with ESMTPSA id d9443c01a7336-2cad7146914sm7034515ad.35.2026.07.03.02.54.09
        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
        Fri, 03 Jul 2026 02:54:12 -0700 (PDT)
From: Anvesh Jain P <anvesh.p@oss.qualcomm.com>
Date: Fri, 03 Jul 2026 15:23:41 +0530
Subject: [PATCH v2 1/2] dt-bindings: embedded-controller:
 qcom,hamoa-crd-ec: Add Purwa IOT EVK
Precedence: bulk
X-Mailing-List: devicetree@vger.kernel.org
List-Id: <devicetree.vger.kernel.org>
List-Subscribe: <mailto:devicetree+subscribe@vger.kernel.org>
List-Unsubscribe: <mailto:devicetree+unsubscribe@vger.kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
Message-Id: <20260703-ec_support_for_purwa_evk-v2-1-c59aac5c6aac@oss.qualcomm.com>
References: <20260703-ec_support_for_purwa_evk-v2-0-c59aac5c6aac@oss.qualcomm.com>
In-Reply-To: <20260703-ec_support_for_purwa_evk-v2-0-c59aac5c6aac@oss.qualcomm.com>
To: Sibi Sankar <sibi.sankar@oss.qualcomm.com>, Rob Herring <robh@kernel.org>,
        Krzysztof Kozlowski <krzk+dt@kernel.org>,
        Conor Dooley <conor+dt@kernel.org>,
        Bjorn Andersson <andersson@kernel.org>,
        Konrad Dybcio <konradybcio@kernel.org>
Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
        linux-kernel@vger.kernel.org,
        Anvesh Jain P <anvesh.p@oss.qualcomm.com>
X-Mailer: b4 0.14.3
X-Developer-Signature: v=1; a=ed25519-sha256; t=1783072444; l=1321;
 i=anvesh.p@oss.qualcomm.com; s=20260313; h=from:subject:message-id;
 bh=RBigZqSD2Lucd1Ffeq4Dp/8N1Gy2Ye66tj8Ngrx8NU4=;
 b=FYVJucEVhlOTP4cRQ2zGY48mtDpsOYgmxb9OPl+ZA21rcFq1ntRuTF/tP7PovCrmYDK5nxaPQ
 CvW+EkLjY/mAJQbhNYgHL0f8Mk1O+gmtqVfXyRa705qwHCxtw8tjCkv
X-Developer-Key: i=anvesh.p@oss.qualcomm.com; a=ed25519;
 pk=8o9EG7gkPe2Er9y9UVCx8MTdcFCwU8Pa54hBZPuduXE=
X-Proofpoint-GUID: rV1eeNeR3OBd9TLms_klxnd18iIrELcC
X-Authority-Analysis: v=2.4 cv=Bb7oFLt2 c=1 sm=1 tr=0 ts=6a4786c6 cx=c_pps
 a=MTSHoo12Qbhz2p7MsH1ifg==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17
 a=IkcTkHD0fZMA:10 a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10
 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_glEPmIy2e8OvE2BGh3C:22
 a=EUspDBNiAAAA:8 a=Y1ZMbBkP95eM7aff42kA:9 a=QEXdDO2ut3YA:10
 a=GvdueXVYPmCkWapjIL-Q:22
X-Proofpoint-ORIG-GUID: rV1eeNeR3OBd9TLms_klxnd18iIrELcC
X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzAzMDA5NSBTYWx0ZWRfX961jAgY+zSUR
 lEUZFoLIVp6yDAfNAW2i8KJWEAKlbUMbQuC+v6/o9bNT64crHtEyAFD6wSuCUH0U1rtv/fPdUZj
 OJXyUIURxrJJxQGwoQE4z7kQk483Kfn6GtXWS7cdBHQZzKjKZaVGR22QnZOTo2u7gPNaaijDUX/
 T9JUYF2kY4sEQ89QYCcvO2EAjJQibSnuJHVV00k5sTMfqzQQIFIf9OM+90W4KTeF4kGmdLzGKQr
 9QWvaJR6Im+MgRR54lsaiVB6A8318n+YzARXArgo01NXaDUVordQHRBxb0tbJ70VRCt3e6NnrLN
 3pHQehB24avCdsU4pDVZSqW6Jxs3CrvjcWJbA73EoDYT1QkkvXxCl8Z9SD/ugAugI1Xa+ekymiY
 gXJMZKtejgh4ndNPxqwDuAIdRl6f357WsJMcNXPhWlAhOGbVtAj85vGEID1zfz5qg1KUixMPnPT
 yAVybHNjDQ8Zva24LfA==
X-Proofpoint-Spam-Info: AW1haW4tMjYwNzAzMDA5NSBTYWx0ZWRfX12jlTLdjFqMJ
 0hLHNVaziLszl/iXWcBNEw6r6OLc3qO9vUnilr5TfYk+98pbJJNCLqL8A90GG8C8Gz6juqUoExo
 6T2ZMHWiWAe4AYhbGPFDwXdEdGw4klg=
X-Proofpoint-Virus-Version: vendor=baseguard
 engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.125,FMLib:17.12.100.49
 definitions=2026-07-03_02,2026-06-26_01,2025-10-01_01
X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0
 malwarescore=0 spamscore=0 clxscore=1015 impostorscore=0 suspectscore=0
 phishscore=0 adultscore=0 priorityscore=1501 bulkscore=0 lowpriorityscore=0
 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0
 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607030095

Document the qcom,purwa-iot-evk-ec compatible for the embedded controller
found on Purwa IOT EVK boards.

Like the CRD, the Purwa IOT EVK carries an on-board embedded controller,
provided by ITE and running on a separate MCU, which handles fan control,
temperature sensors and EC state-change/suspend notifications. The existing
Hamoa IOT EVK documents the same EC via qcom,hamoa-iot-evk-ec.

Like the other reference designs, it uses qcom,hamoa-crd-ec as its fallback
compatible.

Signed-off-by: Anvesh Jain P <anvesh.p@oss.qualcomm.com>
---
 .../devicetree/bindings/embedded-controller/qcom,hamoa-crd-ec.yaml       | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/embedded-controller/qcom,hamoa-crd-ec.yaml b/Documentation/devicetree/bindings/embedded-controller/qcom,hamoa-crd-ec.yaml
index ac5a08f8f76d..c07483aa5937 100644
--- a/Documentation/devicetree/bindings/embedded-controller/qcom,hamoa-crd-ec.yaml
+++ b/Documentation/devicetree/bindings/embedded-controller/qcom,hamoa-crd-ec.yaml
@@ -22,6 +22,7 @@ properties:
           - enum:
               - qcom,glymur-crd-ec
               - qcom,hamoa-iot-evk-ec
+              - qcom,purwa-iot-evk-ec
           - const: qcom,hamoa-crd-ec
       - enum:
           - qcom,hamoa-crd-ec

-- 
2.34.1


From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 44E3537DE89
	for <devicetree@vger.kernel.org>; Fri,  3 Jul 2026 09:54:19 +0000 (UTC)
Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131
ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1783072463; cv=none; b=AzoZvXQlFSEfILyq5mlEtDhP2IMQInMUZKKLHjwjoWEJJ8riM4gsb4Ol3/KoNUtQ/K4CnHp6CMI+Mc6nIRl4LpoSfM3IkHCCNZKgfMFBsp3NiGkzClMH74jodyWwmJ370AsB9JXqGcsyaRRRdUSB7qRnYDmvwY/hHK/Put7B0r8=
ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1783072463; c=relaxed/simple;
	bh=tyv11HaWPqYWgCaBGOxFUkX1745Dazgv1z01brprm2o=;
	h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References:
	 In-Reply-To:To:Cc; b=bRUfjbO6Ez67u+qJBqmkpiJbQfTxsiLF9ymKUnytpdueFmouZ/tKHSZL7mL9NnKuMn+fQYANvmReaD8/qknxcXcBVRdEQgHHpA2xvBkAAecZCaqnFVTgtnLdZ2eeKvcSKAYEYWROAjXqX+pLCpCY/34kZDYe/WXHbA35COrqFSk=
ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=XIAPIPyq; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=Y23v6KvB; arc=none smtp.client-ip=205.220.180.131
Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject 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.b="XIAPIPyq";
	dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="Y23v6KvB"
Received: from pps.filterd (m0279873.ppops.net [127.0.0.1])
	by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6635rom13088112
	for <devicetree@vger.kernel.org>; Fri, 3 Jul 2026 09:54:18 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=
	OR+59DzVOGNIldMXrB1Xe8D6n+R5h4ItttN0Av+hjsg=; b=XIAPIPyq9+j1J1er
	nFLXp9EP1OjR4fw+Vt6QrE4+JiSCjFJtKq4brYhce9EFf3RBqKh4T16B++D9bqqY
	MQP762Z/K6hp8tpDAYQxdEJMIR49FDfxuwJW4PMu6aSzHiKMBQyCrBqHzQnrVYj8
	pWJvEz29Hu19OQogjH0Kgeo13Y5efnQ14PBiusaAlCTTKaavqkcwwuCUp6BRN4fE
	vAS2ciP0fI8Uwact7PTbkl1+B9oG0KruCIJHN4+tX/T5c9hOcqRCSIzV/zHcoZ5G
	Ax6vbkumtdfON0maUDSn/Mk9PMjtjMrAcRilm7EIBQCzeJPN8qO/qL1hOt8ek5hv
	WJ0q/Q==
Received: from mail-pl1-f199.google.com (mail-pl1-f199.google.com [209.85.214.199])
	by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4f5s254ccs-1
	(version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT)
	for <devicetree@vger.kernel.org>; Fri, 03 Jul 2026 09:54:18 +0000 (GMT)
Received: by mail-pl1-f199.google.com with SMTP id d9443c01a7336-2c354050c34so5647535ad.3
        for <devicetree@vger.kernel.org>; Fri, 03 Jul 2026 02:54:18 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=oss.qualcomm.com; s=google; t=1783072458; x=1783677258; darn=vger.kernel.org;
        h=cc:to:in-reply-to:references:message-id:content-transfer-encoding
         :mime-version:subject:date:from:from:to:cc:subject:date:message-id
         :reply-to;
        bh=OR+59DzVOGNIldMXrB1Xe8D6n+R5h4ItttN0Av+hjsg=;
        b=Y23v6KvBMtZ4OZZEne957/ivrDiiYY5sTfoy1HDLRq1RqZQME5t8mNOeAgT3GzeWSK
         p7M0lxdjQYWIRLVQhdg/0hlFOGjSriiJ6Lris93tyXcPTTRGGFQ217tenPvbLercl3Gx
         gcT0Gn/RFDFZf2bZ9bfJ1k7IApHQYKOyXXVloLK8ZBtHyO7SKn2HZigHnLziTCl86xFh
         uNno3aYvE4ooczg+0a6Lh7iiMtr0nh7JMKrj6v/qpJyuxODsNYlFwcMKH5wbz/X8C2Ho
         GKK06goFMulHyUqcatVZcD5Y6yAMJck8Tb/PZg0XasuHvGcvPazMsFcMbHZYoxLasUw7
         UHmw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20251104; t=1783072458; x=1783677258;
        h=cc:to:in-reply-to:references:message-id:content-transfer-encoding
         :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to
         :cc:subject:date:message-id:reply-to;
        bh=OR+59DzVOGNIldMXrB1Xe8D6n+R5h4ItttN0Av+hjsg=;
        b=pdMmxPCYBKBZBXDaMAkQIhZ3YO3PERFPF325k9uqOUZnE+SQ7+7b6eQMnAoK7mCF5e
         AFTiOSjyHqlwHG+CsK+P6c4kynne1cnu5qmALV7WwE5l2/nzALTQ7KhTaEc2ADeYNUcS
         5bYljsO0lHCJXnx7tbCdxsAMDC5h30Qhpa/5T3HeH6BDYsq4m8E+gtFCe3gC0SBnUCUM
         dd0o0WNjJPXyQHJ4H4p39JYDV9Tv1KOqi60NwVKU4LbevEYi3cY1ZndbK9960SaNSlP+
         YGKDVStiK1FyEVaKXssnD15Io281M5iaj2qeWpWpA7SRX73dZ1dTCQ/x3RNKd8Ib80WB
         1+hg==
X-Forwarded-Encrypted: i=1; AHgh+Rq+H6at5QPtzWRFbviHuVjZrsHm0780EQMhy5eeGr5gEN/T/Ojv8b+MrC22qkJlJZ88x+4V8zJpbspy@vger.kernel.org
X-Gm-Message-State: AOJu0YwBunf/2MChyfexvDpc3s8pSM4Ewsy4Snb8pdkAJfpm1xLvfu1p
	dohoT7+KAu5ZPB0+nrStPBTQqjnxS7qaKFu/B0ovqIxxPcRNYKhNYnsJwRKGk8fFE9LsOQv8SLv
	Xi0V2AYFxYojvYd9zxd25uLVLeN4sQtc5HNosKeTlW/Ls7z8S+f/qoh604bdT7yRJ
X-Gm-Gg: AfdE7cn8jaDiwYtiUUcoxN+wmdVdk9jkt+7ORUhSRhozFagPWnOONip5hwlSmm6lfVL
	6LTh4hmDXcZ+ZpdsAO0I0/6tGAp1LGXHIDw465fbmWxeQOjy1GWbXsypEqVGYHvgrX3SE7nG7G8
	NMfrAJYsSSXRAWmQSx7JGyxiYmcZ7zVqMmiKjxJyWIhaG2xOorljYIZVesteaa4Pcv54VQjs7sm
	BxHAwoLHk0zDtPd+K1GNvqpGpllJrc2hqPW6ZOIXCqFDJRHEf/GnwdKoOwv5IMX3AgLyVYU0LkZ
	MRa7WxudAeKa+cNtVE/gRsVckHLs7O2UMOdiu3QUdtwVj79ZTuGV7XSJx7pIs68upILtDbSApEc
	rxueEdsajCLr70MWc++0cuStyk+2oZ8O9VKNLEwK0oJ1nzEtvaKE183jAjvUVmgWbas5Vs9mARE
	DtdIqWhXsT33e1wXo0wH7gLr4=
X-Received: by 2002:a17:902:ccca:b0:2c0:e5ee:f55e with SMTP id d9443c01a7336-2ca7e6f327dmr107322945ad.7.1783072457774;
        Fri, 03 Jul 2026 02:54:17 -0700 (PDT)
X-Received: by 2002:a17:902:ccca:b0:2c0:e5ee:f55e with SMTP id d9443c01a7336-2ca7e6f327dmr107322615ad.7.1783072457323;
        Fri, 03 Jul 2026 02:54:17 -0700 (PDT)
Received: from hu-ajainp-blr.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com. [103.229.18.19])
        by smtp.gmail.com with ESMTPSA id d9443c01a7336-2cad7146914sm7034515ad.35.2026.07.03.02.54.13
        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
        Fri, 03 Jul 2026 02:54:16 -0700 (PDT)
From: Anvesh Jain P <anvesh.p@oss.qualcomm.com>
Date: Fri, 03 Jul 2026 15:23:42 +0530
Subject: [PATCH v2 2/2] arm64: dts: qcom: purwa-iot-evk: Add Embedded
 controller node
Precedence: bulk
X-Mailing-List: devicetree@vger.kernel.org
List-Id: <devicetree.vger.kernel.org>
List-Subscribe: <mailto:devicetree+subscribe@vger.kernel.org>
List-Unsubscribe: <mailto:devicetree+unsubscribe@vger.kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
Message-Id: <20260703-ec_support_for_purwa_evk-v2-2-c59aac5c6aac@oss.qualcomm.com>
References: <20260703-ec_support_for_purwa_evk-v2-0-c59aac5c6aac@oss.qualcomm.com>
In-Reply-To: <20260703-ec_support_for_purwa_evk-v2-0-c59aac5c6aac@oss.qualcomm.com>
To: Sibi Sankar <sibi.sankar@oss.qualcomm.com>, Rob Herring <robh@kernel.org>,
        Krzysztof Kozlowski <krzk+dt@kernel.org>,
        Conor Dooley <conor+dt@kernel.org>,
        Bjorn Andersson <andersson@kernel.org>,
        Konrad Dybcio <konradybcio@kernel.org>
Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
        linux-kernel@vger.kernel.org,
        Anvesh Jain P <anvesh.p@oss.qualcomm.com>,
        Yushan Li <yushan.li@oss.qualcomm.com>,
        Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>,
        Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
X-Mailer: b4 0.14.3
X-Developer-Signature: v=1; a=ed25519-sha256; t=1783072444; l=1443;
 i=anvesh.p@oss.qualcomm.com; s=20260313; h=from:subject:message-id;
 bh=tyv11HaWPqYWgCaBGOxFUkX1745Dazgv1z01brprm2o=;
 b=XCgF0m3VnFaux/thqoB5hOfJeh5R7+IhtX5IrsH0Nfws20J6r4ioiPVbg1ir+4FvUqGy1Xn4M
 d7h4TUe8QaxCdBUJyEVPZAdHwN5IZfFG6Q0yZHL+inI+yHqHwSvzP+s
X-Developer-Key: i=anvesh.p@oss.qualcomm.com; a=ed25519;
 pk=8o9EG7gkPe2Er9y9UVCx8MTdcFCwU8Pa54hBZPuduXE=
X-Authority-Analysis: v=2.4 cv=U7uiy+ru c=1 sm=1 tr=0 ts=6a4786ca cx=c_pps
 a=JL+w9abYAAE89/QcEU+0QA==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17
 a=IkcTkHD0fZMA:10 a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10
 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=rJkE3RaqiGZ5pbrm-msn:22
 a=EUspDBNiAAAA:8 a=um1wo07bdbQtbc5qrgwA:9 a=QEXdDO2ut3YA:10
 a=324X-CrmTo6CU4MGRt3R:22
X-Proofpoint-ORIG-GUID: t7F3nH2vri3iS3SO1vOAUWF70XwgXgRz
X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzAzMDA5NSBTYWx0ZWRfX7j6HpEHGK7hu
 Yj+Qdp0GFmXZr3IlzdKA4abSZKpchkivqURg8qW1RB1IPQpQbIio99WahjsgMesOzVcuk1UZLSq
 CFgIzczBPVwBfXnUvFVrmBDjDCsRJy3eqVMooCkNxWqCSWNiLizzCnQvEbXiB2TpOW4RaSyyzcs
 RUmczQ+Tg8SyAxB6KJoZXu0hMH/0bzysszr3JjNNJSjJfTAd7xuuIVK5Pu8i9TysQHitsKEF9kK
 uylSzboFgC+fxZjqkUQXzHM98aidLCXTvKpYDMiZygbV6kQJTJpv6DjgfKnqCYcR4Qx5N7cJUbx
 GDX15IAWuAqSnR5j7kPEsVnSt72nw7LDXM+OpXrLyh/0dJbiN9zhDE5ZGsxX9eVrQlW29jTmntr
 Rq5IxGZfPyY7Ib8QUBGOCzqd+j8NSUthDxPAecdoB4Z+8GvTlDVpQ01bs9gVPCesOfT6fOhKHiD
 bLycsHtqIMibWYUFWLw==
X-Proofpoint-GUID: t7F3nH2vri3iS3SO1vOAUWF70XwgXgRz
X-Proofpoint-Spam-Info: AW1haW4tMjYwNzAzMDA5NSBTYWx0ZWRfX84n2jZ3X43ki
 nEM0qPyxp4AM3yTVAkWHBylORrSbPAFKGV4eE5MYlu9CnUt3w1KDCa41YHEOetnJqt0+xMSzTGv
 c7GytxnvQQd9+XAMjIxO/1n2BrCV3t0=
X-Proofpoint-Virus-Version: vendor=baseguard
 engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.125,FMLib:17.12.100.49
 definitions=2026-07-03_02,2026-06-26_01,2025-10-01_01
X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0
 impostorscore=0 bulkscore=0 suspectscore=0 priorityscore=1501 malwarescore=0
 spamscore=0 lowpriorityscore=0 adultscore=0 phishscore=0 clxscore=1015
 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0
 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607030095

Add embedded controller node for Purwa IOT EVK boards which adds fan
control, temperature sensors, access to EC internal state changes and
suspend entry/exit notifications to the EC.

Tested-by: Yushan Li <yushan.li@oss.qualcomm.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Signed-off-by: Anvesh Jain P <anvesh.p@oss.qualcomm.com>
---
 arch/arm64/boot/dts/qcom/purwa-iot-evk.dts | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/purwa-iot-evk.dts b/arch/arm64/boot/dts/qcom/purwa-iot-evk.dts
index ad503beec1d3..491ea7769cd7 100644
--- a/arch/arm64/boot/dts/qcom/purwa-iot-evk.dts
+++ b/arch/arm64/boot/dts/qcom/purwa-iot-evk.dts
@@ -837,6 +837,16 @@ eusb6_repeater: redriver@4f {
 		pinctrl-0 = <&eusb6_reset_n>;
 		pinctrl-names = "default";
 	};
+
+	embedded-controller@76 {
+		compatible = "qcom,purwa-iot-evk-ec", "qcom,hamoa-crd-ec";
+		reg = <0x76>;
+
+		interrupts-extended = <&tlmm 66 IRQ_TYPE_EDGE_FALLING>;
+
+		pinctrl-0 = <&ec_int_n_default>;
+		pinctrl-names = "default";
+	};
 };
 
 &i2c7 {
@@ -1326,6 +1336,12 @@ right_tweeter: speaker@0,1 {
 };
 
 &tlmm {
+	ec_int_n_default: ec-int-n-state {
+		pins = "gpio66";
+		function = "gpio";
+		bias-disable;
+	};
+
 	edp_reg_en: edp-reg-en-state {
 		pins = "gpio70";
 		function = "gpio";

-- 
2.34.1


From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id B48B93148D2
	for <devicetree@vger.kernel.org>; Fri,  3 Jul 2026 10:07:22 +0000 (UTC)
Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18
ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1783073243; cv=none; b=OXt8wHqydJPBE+617RcVZtETNjnvyhLbHkzIcaSw7eWIejWNkGGB5JdYSqdTnvo2cY0yLChqFBfES5AzErutoByl2YgJBjYUa5M9VyT5h++D7ImGBVMztFFelTxJJklpmGGz3VDmLd36DcxErCDBB6pyB2UGNzT6CTcL3E3R/oE=
ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1783073243; c=relaxed/simple;
	bh=n+613qr3rnBRzjVYDLSlm3G3tZF7QgTh33qpW2pZDjE=;
	h=From:Subject:To:Cc:In-Reply-To:References:Content-Type:Date:
	 Message-Id; b=CbxI3AdMc8onC11LtEHd1Es4Xw1DVFpSQaxxM7vL5wIVGthfn3sjZ8q+FdLKfYM4wdoks8JuicS0ySo3kbIDr3ViJWMrfv+c//OsxB+0p59vJup8268wCfZ/ze4JelrU4terwuULZ4PuIGZvjl8Pp5YqK7ugRrHHYMbSZRgeHuc=
ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=NZ0DpScP; arc=none smtp.client-ip=100.103.45.18
Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="NZ0DpScP"
Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1FFF41F000E9;
	Fri,  3 Jul 2026 10:07:22 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1783073242;
	bh=VjD6XcueyyWfqRSyFpPA74oYc06aN7sTkwuPbmHbuOE=;
	h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date;
	b=NZ0DpScPD/U9yPMqdDjx3wxuRuxYWkT2raTmjr5DQTggVQV+S5B9KoJ7dlkdqS714
	 OQklNc3NHDdZ2SyLvvywYxXw7TCCyiZC0tpL7dVKtivsjJeXTp3zA2af2EZ5YbimZu
	 YCWhPP/jRVIpz++kHHHM/Qvz6oDBZJr8LBEwcagwVigh/M+HUb99KfY09XP49Xfv1f
	 iI+t9RdBU2w2jpl2bYoXvGld/ONFx+FgqaNAdNy4nmwR7TWA3fDH4nPqSzdCMzeEis
	 OG+cEyiQNO5liNKA5sNPadZgO8asK6kIAqDYB91fUp+psgmrRdZnUF0VydzzjtG19a
	 Jiw7hTh52WsVg==
From: sashiko-bot@kernel.org
Subject: Re: [PATCH v2 2/2] arm64: dts: qcom: purwa-iot-evk: Add Embedded
 controller node
Reply-To: sashiko-reviews@lists.linux.dev
To: "Anvesh Jain P" <anvesh.p@oss.qualcomm.com>
Cc: robh@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org
In-Reply-To: <20260703-ec_support_for_purwa_evk-v2-2-c59aac5c6aac@oss.qualcomm.com>
References: <20260703-ec_support_for_purwa_evk-v2-0-c59aac5c6aac@oss.qualcomm.com>
 <20260703-ec_support_for_purwa_evk-v2-2-c59aac5c6aac@oss.qualcomm.com>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Date: Fri, 03 Jul 2026 10:07:21 +0000
Message-Id: <20260703100722.1FFF41F000E9@smtp.kernel.org>
Precedence: bulk
X-Mailing-List: devicetree@vger.kernel.org
List-Id: <devicetree.vger.kernel.org>
List-Subscribe: <mailto:devicetree+subscribe@vger.kernel.org>
List-Unsubscribe: <mailto:devicetree+unsubscribe@vger.kernel.org>

Thank you for your contribution! Sashiko AI review found 4 potential issue(=
s) to consider:

New issues:
- [High] Configuring the EC interrupt as IRQ_TYPE_EDGE_FALLING causes a stu=
ck IRQ line and lost events.

Pre-existing issues:
- [High] The driver registers all cooling devices with cdev_id =3D 0, break=
ing multi-fan thermal device tree bindings.
- [High] Probe function fails to disable EC SCI events on error paths, lead=
ing to corrupted EC state and unhandled interrupts.
- [High] qcom_ec_read() ignores partial I2C block reads, causing callers to=
 use uninitialized stack memory as hardware state.
--

commit 30f797509dd26f2c0981b525ba3d62d1173ae857
Author: Anvesh Jain P <anvesh.p@oss.qualcomm.com>

arm64: dts: qcom: purwa-iot-evk: Add Embedded controller node

This commit adds the embedded controller node for Purwa IOT EVK boards.
It configures fan control, temperature sensors, access to EC internal state
changes, and suspend notifications to the EC.

> diff --git a/arch/arm64/boot/dts/qcom/purwa-iot-evk.dts b/arch/arm64/boot=
/dts/qcom/purwa-iot-evk.dts
> index ad503beec1d3d..491ea7769cd71 100644
> --- a/arch/arm64/boot/dts/qcom/purwa-iot-evk.dts
> +++ b/arch/arm64/boot/dts/qcom/purwa-iot-evk.dts
> @@ -837,6 +837,16 @@ eusb6_repeater: redriver@4f {
[ ... ]
> +
> +	embedded-controller@76 {
> +		compatible =3D "qcom,purwa-iot-evk-ec", "qcom,hamoa-crd-ec";
> +		reg =3D <0x76>;
> +
> +		interrupts-extended =3D <&tlmm 66 IRQ_TYPE_EDGE_FALLING>;

[Severity: High]
Does configuring the EC interrupt as IRQ_TYPE_EDGE_FALLING cause a stuck
IRQ line and lost events?

The EC asserts an interrupt while multiple events are pending, but the driv=
er's
interrupt handler reads exactly one event and returns without looping.=20

Because the trigger is configured as edge-falling, the persistent low state
of the line does not trigger another interrupt, causing the line to stall
permanently.  Should this use level-triggered interrupts instead?

> +
> +		pinctrl-0 =3D <&ec_int_n_default>;
> +		pinctrl-names =3D "default";
> +	};
>  };


While reviewing this patch, I also noticed a few pre-existing issues in
drivers/platform/arm64/qcom-hamoa-ec.c that handles this device tree node:

drivers/platform/arm64/qcom-hamoa-ec.c:qcom_ec_probe()
[ ... ]
> 	ret =3D qcom_ec_sci_evt_control(dev, true);
> 	if (ret < 0)
> 		return dev_err_probe(dev, ret, "Failed to enable SCI events\n");
>=20
> 	ret =3D qcom_ec_thermal_capabilities(dev);
> 	if (ret < 0)
> 		return dev_err_probe(dev, ret, "Failed to read thermal capabilities\n");

[Severity: High]
This is a pre-existing issue, but does the probe function fail to disable
EC SCI events on error paths?

If qcom_ec_thermal_capabilities() or the subsequent memory allocation fails,
probe returns an error. The previously enabled SCI events are never disabled
because no devm action was registered and remove() is not called.

The EC is left actively generating events, but the OS interrupt handler is
freed by devres. The EC will assert the IRQ line, which goes unhandled,
potentially stalling the EC and causing battery drain.


drivers/platform/arm64/qcom-hamoa-ec.c:qcom_ec_probe()
[ ... ]
> 	for (i =3D 0; i < ec->thermal_cap.fan_cnt; i++) {
> 		struct qcom_ec_cooling_dev *ec_cdev =3D &ec->ec_cdev[i];
> 		char name[EC_FAN_NAME_SIZE];
>=20
> 		scnprintf(name, sizeof(name), "qcom_ec_fan_%u", i);
> 		ec_cdev->fan_id =3D i + 1;
> 		ec_cdev->parent_dev =3D dev;
>=20
> 		ec_cdev->cdev =3D devm_thermal_of_cooling_device_register(dev, 0, NULL,=
 ec_cdev,
> 									&qcom_ec_thermal_ops);

[Severity: High]
This isn't a bug introduced by this patch, but does hardcoding the cdev_id=
=20
to 0 break multi-fan thermal device tree bindings?

By looping over fan_cnt and passing 0 for every fan instance rather than
the iteration index, the OF thermal core cannot distinguish between multiple
cooling devices under the same node. =20

This breaks thermal zone mappings and can cause undefined behavior when
binding thermal states.


drivers/platform/arm64/qcom-hamoa-ec.c:qcom_ec_read()
[ ... ]
> static int qcom_ec_read(struct qcom_ec *ec, u8 cmd, u8 resp_len, u8 *resp)
> {
> 	int ret;
>=20
> 	ret =3D i2c_smbus_read_i2c_block_data(ec->client, cmd, resp_len, resp);
> 	if (ret < 0)
> 		return ret;
> 	else if (ret =3D=3D 0 || ret =3D=3D 0xff)
> 		return -EOPNOTSUPP;
>=20
> 	if (resp[0] >=3D resp_len)
> 		return -EINVAL;
>=20
> 	return 0;
> }

[Severity: High]
This isn't a bug introduced by this patch, but does qcom_ec_read() ignore
partial I2C block reads?

i2c_smbus_read_i2c_block_data() returns the number of bytes read. If a short
read occurs, this returns success (0) because it only checks if ret < 0,
ret =3D=3D 0, or ret =3D=3D 0xff. It does not verify if ret matches the exp=
ected
resp_len.

Callers are then exposed to using uninitialized stack memory as hardware
state for firmware version data, fan counts, or thermistor masks. This can
lead to out-of-bounds memory allocations if a bogus fan count is read.

--=20
Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20260703-ec_support=
_for_purwa_evk-v2-0-c59aac5c6aac@oss.qualcomm.com?part=3D2

From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 45BB536492C;
	Sun,  5 Jul 2026 09:45:46 +0000 (UTC)
Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18
ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1783244751; cv=none; b=uuXVws0qVpv4KJ/BSjBFG9p2y8/92Hf26v6M1gq5/9RHoyes3Nriv3MXXKdGZ3NDW3KBbritIiUHY+536M77sgmVDjanoH877JhGU5oziVcXzLxfp5gcyMRGf40DJy9cfWNQCe9jJ55USveyvBFS1fZQKeY2Rk/corYv64fUDZ4=
ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1783244751; c=relaxed/simple;
	bh=QML/3R4/n3S8roF531jnkGEdSHHrANy8qh8f7wOS1F8=;
	h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:
	 Content-Type:Content-Disposition:In-Reply-To; b=Kv3asEsglg1KyHjKDEi4UgilC3zBefxXyTtixUDoIymwYxDCGPCIUg8b+yuLdUFS13dVfVJG4fvK9cDlmme230TeFl72nLR6cTAlhMBDzSSj60kjmXtmSUz32rwLMjJaUXpYi2lg3QGdRDKDIgHJulFMfHP7H2cCdTMeNYJMdbE=
ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=CNlt4mgQ; arc=none smtp.client-ip=100.103.45.18
Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="CNlt4mgQ"
Received: by smtp.kernel.org (Postfix) with ESMTPSA id 202EF1F000E9;
	Sun,  5 Jul 2026 09:45:43 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1783244745;
	bh=ufksji/qXGlRH4CRhlYkpA6u8CXK+m4oU5KBLEDXkf0=;
	h=Date:From:To:Cc:Subject:References:In-Reply-To;
	b=CNlt4mgQkIZjrcV6enyUbkwkBdHCHF2AKt0TDCJPBjbyu5Xyc+TqA9+wJOWlDxyB5
	 i7S8fZrECYuHWeWZERKyxNhAbMQ8IoOMzqHTsXuxmEz47zGtvrwmcsaF0/WOPZ9RbW
	 4LFeGfKmbMchfXkipcUEOKzLUZ0bygv06hDNP92jFcqx1VwJX3ytN98HPjLphe142E
	 YS+uhps4CYzE1K39/v5XNmI1wHa0s40ooXr5pi7JeSFVojRzThBhXNUh9SwuYu5Xmd
	 p6L/ApavcjV5NvYp9yDOFyP9AFfBcFqf4T8FL6ZPXmuiNWxsHGqgqIu17uik3kh7Qy
	 VW3VokxU7LBUw==
Date: Sun, 5 Jul 2026 11:45:41 +0200
From: Krzysztof Kozlowski <krzk@kernel.org>
To: Anvesh Jain P <anvesh.p@oss.qualcomm.com>
Cc: Sibi Sankar <sibi.sankar@oss.qualcomm.com>, 
	Rob Herring <robh@kernel.org>, Krzysztof Kozlowski <krzk+dt@kernel.org>, 
	Conor Dooley <conor+dt@kernel.org>, Bjorn Andersson <andersson@kernel.org>, 
	Konrad Dybcio <konradybcio@kernel.org>, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, 
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 1/2] dt-bindings: embedded-controller:
 qcom,hamoa-crd-ec: Add Purwa IOT EVK
Message-ID: <20260705-sensible-agile-kagu-df3b78@quoll>
References: <20260703-ec_support_for_purwa_evk-v2-0-c59aac5c6aac@oss.qualcomm.com>
 <20260703-ec_support_for_purwa_evk-v2-1-c59aac5c6aac@oss.qualcomm.com>
Precedence: bulk
X-Mailing-List: devicetree@vger.kernel.org
List-Id: <devicetree.vger.kernel.org>
List-Subscribe: <mailto:devicetree+subscribe@vger.kernel.org>
List-Unsubscribe: <mailto:devicetree+unsubscribe@vger.kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <20260703-ec_support_for_purwa_evk-v2-1-c59aac5c6aac@oss.qualcomm.com>

On Fri, Jul 03, 2026 at 03:23:41PM +0530, Anvesh Jain P wrote:
> Document the qcom,purwa-iot-evk-ec compatible for the embedded controller
> found on Purwa IOT EVK boards.
> 
> Like the CRD, the Purwa IOT EVK carries an on-board embedded controller,
> provided by ITE and running on a separate MCU, which handles fan control,
> temperature sensors and EC state-change/suspend notifications. The existing
> Hamoa IOT EVK documents the same EC via qcom,hamoa-iot-evk-ec.
> 
> Like the other reference designs, it uses qcom,hamoa-crd-ec as its fallback
> compatible.
> 
> Signed-off-by: Anvesh Jain P <anvesh.p@oss.qualcomm.com>
> ---
>  .../devicetree/bindings/embedded-controller/qcom,hamoa-crd-ec.yaml       | 1 +
>  1 file changed, 1 insertion(+)

Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>

Best regards,
Krzysztof


