From patchwork Fri Mar 29 07:19:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krishna Kurapati PSSNV X-Patchwork-Id: 784414 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 8CBE23FB8C; Fri, 29 Mar 2024 07:20:36 +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=1711696838; cv=none; b=eYG8ZsJwUINVeGE2WwweqeE0mHy6yxMqr3ftFq3JUGSuqcfa4I4idN6YSW1lIfY//+kfMWqn3nmZV+gBzamWnQJVps5yg1NsS3Soqxl+Dwsa0Q9Q5vCstOk/768PwrafoHvvMsazgiAZtTyDeBm+qoboC4sVsxAT1BsCToy5qAc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711696838; c=relaxed/simple; bh=UQ/uIjMw7GaphpwHt+3f7fxPqkuzXIkUELCfPBb4Jqw=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=u3ezvPyOr6CRBCl4nogo4pxG18xhw5LmM9KdM7S9RSWcM/wAj0PCOYkicueoAeJGmDV1uRt9uay2BrCtW0Pt97fpbYvTGPSrNyT3SAHdIKThMfxBcuu7C3p4Rc7U6YKzdtxzEYWSyNxOjoprKGnudqJCQ1x8Te2L2Wc9dbgVCRE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=Lyt32vQ6; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="Lyt32vQ6" Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 42T5OHo3020680; Fri, 29 Mar 2024 07:20:11 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s= qcppdkim1; bh=47jeGuoYfhufc++Lr97xf5ISelMK9i89ElgWazRMeQA=; b=Ly t32vQ6nlw6/b4AqEhMVLq0KIWA4mQ7GLMfqLaOzmWVL8bmnHukRL4xKhEnidMHon BXgUfVlM2mubaodJU99sbbEjNm9K0vl98ZSxXqstpvSHY0qJlo1jLStNlwMZIHnP ngZEbAKRKiwD5NyQHFd+pKGIDtt5+BeekHSDq7CCmxiaSf1it20OyPtAZ2gryEyu 3CQ7tiFNt1FCKGcv43pMT2Ln4UmzFASInwMNlMHl5WGTaqea+UXWKT892KMGbHVt DTTkTxN4zEimvbKDUmPoKK7PnGDKP2/NmSTe6R05Ht4GPfshQKNgBtfQnQsQxgPp YCItWS2h9lwizrl8Jbng== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3x5fs895px-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 29 Mar 2024 07:20:11 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 42T7KAAL017377 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 29 Mar 2024 07:20:10 GMT Received: from hu-kriskura-hyd.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Fri, 29 Mar 2024 00:20:04 -0700 From: Krishna Kurapati To: Krzysztof Kozlowski , Rob Herring , Greg Kroah-Hartman , "Conor Dooley" , Dmitry Baryshkov , Miquel Raynal , Guenter Roeck , Bjorn Helgaas , Kyle Tso , Fabrice Gasnier , "Heikki Krogerus" , , AngeloGioacchino Del Regno CC: , , , , , Krishna Kurapati Subject: [RFC PATCH 1/2] dt-bindings: connector: Add gpio-usb-c-connector compatible Date: Fri, 29 Mar 2024 12:49:47 +0530 Message-ID: <20240329071948.3101882-2-quic_kriskura@quicinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240329071948.3101882-1-quic_kriskura@quicinc.com> References: <20240329071948.3101882-1-quic_kriskura@quicinc.com> Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: rGzgeO5JSGRAafrXM23pPuHwc1wVJ0MX X-Proofpoint-ORIG-GUID: rGzgeO5JSGRAafrXM23pPuHwc1wVJ0MX X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-03-29_06,2024-03-28_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 priorityscore=1501 phishscore=0 mlxlogscore=776 spamscore=0 suspectscore=0 mlxscore=0 adultscore=0 malwarescore=0 impostorscore=0 clxscore=1015 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2403210001 definitions=main-2403290061 QDU1000 IDP [1] has a Type-c connector and supports USB 3.0. However it relies on usb-conn-gpio driver to read the vbus and id gpio's and provide role switch. However the driver currently has only gpio-b-connector compatible present in ID table. Adding that in DT would mean that the device supports Type-B connector and not Type-c connector. Add gpio-usb-c-connector compatible to the driver to support such cases. [1]: https://lore.kernel.org/all/20240319091020.15137-3-quic_kbajaj@quicinc.com/ Signed-off-by: Krishna Kurapati --- Documentation/devicetree/bindings/connector/usb-connector.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/connector/usb-connector.yaml b/Documentation/devicetree/bindings/connector/usb-connector.yaml index fb216ce68bb3..2af27793c639 100644 --- a/Documentation/devicetree/bindings/connector/usb-connector.yaml +++ b/Documentation/devicetree/bindings/connector/usb-connector.yaml @@ -30,6 +30,9 @@ properties: - const: samsung,usb-connector-11pin - const: usb-b-connector + - items: + - const: gpio-usb-c-connector + reg: maxItems: 1 From patchwork Fri Mar 29 07:19:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krishna Kurapati PSSNV X-Patchwork-Id: 784764 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 EF85943146; Fri, 29 Mar 2024 07:20:45 +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=1711696847; cv=none; b=VV5a52zz4jWgDRp8zSdBCeuxAeeCZ3TTIai2x+0DaptArNTyWlzppa34B9Q/To+V5dc5ynez4XIn0pc1z2oKaRbU8zQWTwxQIMcXjmvj7pbkM8b7eA4hWRkIHUfDOJoMbs+Q3W0vo8d1TBXtvaMKY/OLqCrEnZpMtEg/LrY79wc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711696847; c=relaxed/simple; bh=EOuIklzbCu4SYhXJb6S0sU66ndJh6Qqco17dxM71vEo=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=cxFQnhGurDSfqe9qZd7eeHijWkQnCG2UdjA/KbNVSMuNY6oeQ/79eAY+fYGxejGlxPoq+pGnK99x7I5iOzwXzaoS+geDTBanyh60Z/SBEH5XMIgdpPEDncBWdRlErOtVv0vEYVADyi5WFjPYN35q8AWSSXCbVWneFVXhscYlEGg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=drAaKKW6; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="drAaKKW6" Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 42T3NFQv015980; Fri, 29 Mar 2024 07:20:18 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s= qcppdkim1; bh=f6OBHgHPmm9U/y6y2iA/1HeHk4aTNr8lDe47a56CItE=; b=dr AaKKW6Vq3poDz4Q8x/d9GJas6qM3BPY7Px+GHKBix9oY9NSHuZGhLConUfLJrNeE eQ1VtZZfSA9QdRayY7zj1M2WXfkEFLEj0cExl8jIQpSnRYkgNaNu67evYLSGn/tR rIgJMLb5lEWBaWIvrfeqP1UCff5YNNNZ91ktCaxZc6lzOclBUJXVws0wMEXr7CTj W+mZTxPH6z/mo1/UGVTxmGy67fWumHJJXQUpGj9dSt9jEC1o4fuBRa7WzxG89wbA 3qHe8jhgvB53dR53+4wTjxLyl3B6vRLMOTgNTDWgHxXsUNQXWn2VMIhMhM5xyHp3 jbJa0mYFMUnPNudzNuqg== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3x5np28fp5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 29 Mar 2024 07:20:18 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 42T7KHT0005697 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 29 Mar 2024 07:20:17 GMT Received: from hu-kriskura-hyd.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Fri, 29 Mar 2024 00:20:11 -0700 From: Krishna Kurapati To: Krzysztof Kozlowski , Rob Herring , Greg Kroah-Hartman , "Conor Dooley" , Dmitry Baryshkov , Miquel Raynal , Guenter Roeck , Bjorn Helgaas , Kyle Tso , Fabrice Gasnier , "Heikki Krogerus" , , AngeloGioacchino Del Regno CC: , , , , , Krishna Kurapati Subject: [RFC PATCH 2/2] usb: common: usb-conn-gpio: Update ID table to add usb-c connector Date: Fri, 29 Mar 2024 12:49:48 +0530 Message-ID: <20240329071948.3101882-3-quic_kriskura@quicinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240329071948.3101882-1-quic_kriskura@quicinc.com> References: <20240329071948.3101882-1-quic_kriskura@quicinc.com> Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: pHSnSnxLfUlZxDh6B6BA2It5B4J4S5xG X-Proofpoint-GUID: pHSnSnxLfUlZxDh6B6BA2It5B4J4S5xG X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-03-29_06,2024-03-28_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 lowpriorityscore=0 impostorscore=0 priorityscore=1501 spamscore=0 bulkscore=0 mlxscore=0 malwarescore=0 clxscore=1015 suspectscore=0 mlxlogscore=928 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2403210001 definitions=main-2403290061 Add gpio-usb-c-connector to Device ID compatible list to be used by QDU1000 IDP. Signed-off-by: Krishna Kurapati --- drivers/usb/common/usb-conn-gpio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/common/usb-conn-gpio.c b/drivers/usb/common/usb-conn-gpio.c index 501e8bc9738e..37b5c5a8ccd0 100644 --- a/drivers/usb/common/usb-conn-gpio.c +++ b/drivers/usb/common/usb-conn-gpio.c @@ -334,6 +334,7 @@ static SIMPLE_DEV_PM_OPS(usb_conn_pm_ops, static const struct of_device_id usb_conn_dt_match[] = { { .compatible = "gpio-usb-b-connector", }, + { .compatible = "gpio-usb-c-connector", }, { } }; MODULE_DEVICE_TABLE(of, usb_conn_dt_match);