From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.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 E209DFBF0 for ; Sun, 2 Nov 2025 16:48:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762102110; cv=none; b=SifulBM/sJG5/lDMIhFkPUunihYesC1cJGhG/WVIZv+KUEDaDeHXDZ7UqwETh+oXWrGc52F2QKxuftlt7o/dGvYksUym5yPidiwBASsbREj8ddiw/i85S5RL6AHfxhyHrndv+N5OWbS5zBCZIeBT49SLNdXCydJmEYR2uz9kPR0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762102110; c=relaxed/simple; bh=PDRCwWAw4zLhj5fO+O4LU/ku0bQSkjJNl9hIm4G6H8E=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=hhtLwVCxd4ZTD8VMlCsYQdy+ySr07h7zE/Wl7YNKeHLRVPN4cirR3Ohu9V+GI+CUzBY0wqeKi/X4f7zzjahS3iaqb09TreW370xb9v3sZbadSvTZOxA7Omk3r2MgOctLsaTs69yeQP0cjf7t+EASgbMwzCU1lEdEIdd68ZldUto= 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=WxTRJY2v; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=IqX+nSxl; arc=none smtp.client-ip=205.220.168.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="WxTRJY2v"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="IqX+nSxl" Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 5A2Ggqel617398 for ; Sun, 2 Nov 2025 16:48:28 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:message-id:mime-version :subject:to; s=qcppdkim1; bh=udj7T7Cj28h7tfx0aOeVMexss2vLL9UMfeK creEJKNs=; b=WxTRJY2vAVWpri/3LkFTtXycnaq5abUUWyNu4ipt04YzZh/jouW EyUzhLL4X5O+dYQR3vzIIPb082fWVOBNaNu49WyIWlZXsgzYX1ojGN7/7h0KdI5d x4mCS+9u64pCbhVUDbh5OYrHu9RU2qP7OWUYlwf+ThmV2UpAOSSBRLudcP/MBvxJ IqgusGS5HoGSpnmTHRPXNZxdry4dpvM1TvpvZwVpucqc3oio9LcpCeVMYgK5Ue+U ExsvwLJTGuqG3HWBXmWj+U8qF6nzrDYrJDfpuh6lYXq3pjAg7dhVcq8GF0N8im8Z NZw/c5uzbKHHhNqgyY/HdAKyQrZ+Tox1IUQ== Received: from mail-pg1-f199.google.com (mail-pg1-f199.google.com [209.85.215.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4a5bg9j94c-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Sun, 02 Nov 2025 16:48:28 +0000 (GMT) Received: by mail-pg1-f199.google.com with SMTP id 41be03b00d2f7-b609c0f6522so8578505a12.3 for ; Sun, 02 Nov 2025 08:48:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1762102107; x=1762706907; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=udj7T7Cj28h7tfx0aOeVMexss2vLL9UMfeKcreEJKNs=; b=IqX+nSxlyUFHw+elZGISoIhS9Nz4/hIGyA6RR89ZIV56IalMdrflS9IY6ppVlU1y8k 4eerEZ5eiopdyX4e6PhhL6mh4UJJxwEUO6YmjczzvDzeb/Z31qhbGbiobOa9SvX9TGSr fhvZBb89n8MMQ4x8gHnukByCFwHO76Zr2eu0AzIPkN9b5jKx792SrN+mR0atihLC9ZaF qaFSjqeH6qP6CFTzkE76mCml/PD7lx0v+Mk/qfisdTPIrplVzfbd38oChg3HQoKTVg9L KqYETvPUF89hsqCAxw6LknGAHGFmU0Io53ptiwGoQn6trEM6wisQAAebXm2dwCgkschB MWVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1762102107; x=1762706907; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=udj7T7Cj28h7tfx0aOeVMexss2vLL9UMfeKcreEJKNs=; b=A7XQj59u2QLJlwzOakKtwRVn7yC3cM6cBbKef8RiknMcKh2ZTkO4YwUPfTCEHGeJJN dMeF2sfpnSd25LcL49VvdhK2TRfcCJ64sgryDLlBJWXnzDqXNT90sYP11muVxHmToFzz v2Xp65TYZZ5pTjEsiwWexelixzqWNclzXLrAaGe4KxUgtFM80kLIgGe0M7yVM/lyLi8a mnBVlWWIpnsjrJSW8Pk5YfYW4uTulPsdczswWVjm+sthD7mK7ebueebvkMxIQmelmRdm axfgK0wTgOIj/WBr+yxAI5HmCq1hyU2j56c9sOycrgWl3kne7CeFBTgvdX9Lbch72W4K aFXg== X-Forwarded-Encrypted: i=1; AJvYcCWiFlb9DUYLQ6ixbRS0CvlYZWeRjWj/55r/e+6LZHUVX59dLCvwqcp71ca+3V/1xR2vmB6y4tCw54tl900=@vger.kernel.org X-Gm-Message-State: AOJu0YwQeOqUtM68jRgf2HgvmMksgFOWIdtd2F3/6ggunBue1H3rYSU2 bVtvyOhgcokPMvOBJ7uOVhrS+pIcWcYPugklEWg/LnY5GAunMyJXAmxmdBSJJUXn8dFSHjsOmJ9 GtY3pMi+kqoj/kiUhOmKHJQwAnjLVfIvn1TOyxrr19ktt6iYNVM/FclN6cX2oaSpmyic= X-Gm-Gg: ASbGncu3kSGl4wvRn7DD3Dbn9wbkAdXcU2nWKpgzYIhmkxWmNiv86ibkRYAtALetPxn veGUKl/YKHmIEfmFjvL8BOpiIlOHZtEUABC5WF4WSc+EpmD7sT3GCK8qXS62Vu9IWLR5LS2OQK3 PF25q5JBC0s4dak+WKqGbjTFm9/Rn7zlY1D3SUWiDROLWIsHqROBjdpS9iSsvuUjxlYt+gHgB02 Z8YI18FaUTyhCXeoYcca+Z8p9uyY4cxaQPWGtG2nWQ71P+TsT2C4OlPu5URSk8i64vACH6fCOXh FGCX9zTIP1fcbWX7/eAxuZp7qzx/yXxK164N6afA0MpEZ4LlotXVKbfDD4bSuLlJZqr5QlWVYco FI21gjE1jeyVX2j6ioIP7ReiUKTUxn8weRVGN X-Received: by 2002:a05:6a20:258c:b0:33f:df99:11eb with SMTP id adf61e73a8af0-348ca15afa2mr13556426637.7.1762102107519; Sun, 02 Nov 2025 08:48:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IH87wFetbaiAuC/psagPJvcH2NpFNha2arQJdLWwyoEanSrv8miEf7whLnmWsiRx09Jo3vJDA== X-Received: by 2002:a05:6a20:258c:b0:33f:df99:11eb with SMTP id adf61e73a8af0-348ca15afa2mr13556402637.7.1762102107038; Sun, 02 Nov 2025 08:48:27 -0800 (PST) Received: from hu-kriskura-hyd.qualcomm.com ([202.46.22.19]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-b93bda55f74sm7708125a12.19.2025.11.02.08.48.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Nov 2025 08:48:26 -0800 (PST) From: Krishna Kurapati To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heikki Krogerus , Biju Das , Dmitry Baryshkov Cc: linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Krishna Kurapati Subject: [PATCH v6 0/2] Implement vbus support for HD3SS3220 port controller Date: Sun, 2 Nov 2025 22:18:17 +0530 Message-Id: <20251102164819.2798754-1-krishna.kurapati@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Proofpoint-ORIG-GUID: NWDhQKKmQdKjqg3byoUibcIXb86Ja8Ns X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUxMTAyMDE1NiBTYWx0ZWRfX7VEap2cklJrA HPNLrLp5jq7CDdlAl7OrxS1T4p4mpIMFHv93BdGqqEPxiWjevw+ISlKekjjyCIJRd8u+UQjrc9L c/RqevalnDp5gP6qh1TrNkoi6ED+SuqMK03gx9pieARBW1/E3ETj+jUHWqtOI/84JNhiOd2qsch gdeVMlVt848DCvzcDC1LrdU8Lol3rkri4lp82SbHKcis7uQcSNHm0cTWRrTpFZlpAIDYpDJNp/8 IWz0e7IptQlM/PsMVtkEVM+w1QxiVuq/wjYDqh8COVXoOTwfFN6CD37A4fE/GYXcJjYlUFJyZNS +m5mCL3uGMYbh2WyPWkkpfhTHAmdGs6KL0g8FrlUG4B4P6+yv+1BquyNVtoVhllWmrE5KK+pvJW Ri8wc2LGtCO8uwIk0OVO+osTkydl4w== X-Proofpoint-GUID: NWDhQKKmQdKjqg3byoUibcIXb86Ja8Ns X-Authority-Analysis: v=2.4 cv=TaKbdBQh c=1 sm=1 tr=0 ts=69078b5c cx=c_pps a=Oh5Dbbf/trHjhBongsHeRQ==:117 a=fChuTYTh2wq5r3m49p7fHw==:17 a=6UeiqGixMTsA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=gs8g10pPhjI8XjwtQ3cA:9 a=_Vgx9l1VpLgwpw_dHYaR:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.9,FMLib:17.12.100.49 definitions=2025-11-02_02,2025-10-29_03,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 impostorscore=0 bulkscore=0 adultscore=0 clxscore=1015 priorityscore=1501 spamscore=0 suspectscore=0 lowpriorityscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2510240001 definitions=main-2511020156 As per the data sheet of HD3SS3220: "Upon detecting a UFP device, HD3SS3220 will keep ID pin high if VBUS is not at VSafe0V. Once VBUS is at VSafe0V, the HD3SS3220 will assert ID pin low. This is done to enforce Type-C requirement that VBUS must be at VSafe0V before re-enabling VBUS" This series implements support to read ID pin state and accordingly enable VBUS. --- Changes in v6: - Modified logic to get vbus from connector as per comments received on v5. Link to v5: https://lore.kernel.org/all/20251027072741.1050177-1-krishna.kurapati@oss.qualcomm.com/ Changes in v5: - Modified error handling in driver as per comments received on v4. Link to v4: https://lore.kernel.org/all/20251025122854.1163275-1-krishna.kurapati@oss.qualcomm.com/ Changes in v4: - Modified logic to check for vbus supply. Directly checking first remote endpoint. - Used of_regulator_get_optional instead of of_regulator_get Link to v3: https://lore.kernel.org/all/20251024181832.2744502-1-krishna.kurapati@oss.qualcomm.com/ Changes in v3: - Removed vbus supply from hd3ss3220 bindings. - Implemented getting vbus from connector node. Link to v2: https://lore.kernel.org/all/20251008175750.1770454-1-krishna.kurapati@oss.qualcomm.com/ Changes in v2: - Fixed inclusion of header files appropriately. - Modified commit text for driver patch. Link to v1: https://lore.kernel.org/all/20251002172539.586538-1-krishna.kurapati@oss.qualcomm.com/ Krishna Kurapati (2): dt-bindings: usb: ti,hd3ss3220: Add support for VBUS based on ID state usb: typec: hd3ss3220: Enable VBUS based on ID pin state .../devicetree/bindings/usb/ti,hd3ss3220.yaml | 8 +++ drivers/usb/typec/hd3ss3220.c | 72 +++++++++++++++++++ 2 files changed, 80 insertions(+) -- 2.34.1