Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1019121lqm; Thu, 2 May 2024 02:49:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUg0+cqWkUau3orNmVzsMupOUU6khmuz8mxN1EY9O6SsKVn1dKKKjYRUH2naf/K5iU+AVBXfL0K+IXPyNwwjmzZbY3gCKigQpI+Zyr8HA== X-Google-Smtp-Source: AGHT+IGKKz+HlK+l06J0Q+ielFFU6EIZ/edPLl8pDzwNK0ufBirOMzyLMZxTWId77iqYDCzsN5vY X-Received: by 2002:a05:6a20:9694:b0:1aa:5a22:5eca with SMTP id hp20-20020a056a20969400b001aa5a225ecamr1631356pzc.31.1714643349819; Thu, 02 May 2024 02:49:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714643349; cv=pass; d=google.com; s=arc-20160816; b=WFomarQyS2JDe0w9N1Elp4UckrWuyCXsBTcCihF6vAdsS0mM1iR4JOSjJPM9DrKndh a4N9TUeIYdRm/45AZF77mxBNPQYRx9iwGb49yHGJqjFLSvV+KY+TAbXDlwpYavYfqNgT V10K1ffZkleXXqa/1YYt829jUUZRo7oBLWsAPMpRYxoh7ybt3nH28F5peTScjRhsBoGD j9anLrPENlVabZquteImLU+eqRO+neAjiomaTx/984J+JKzhYwFaL9TgWi0nJAHueJIb wq+QraTwLNp4ur1WMI/vb+WQ5AQoHy1Ot1uYv58La7qnNXOO4CLBChD/m/VrbI3BSL8I Y6+w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=VuUpTmSHU54n7Os5jeaIfRBwwWQbIaOdLoYboZcS+rg=; fh=RBUPo4sJrPhLDDYyRnKA664jMyee896b+4uwSvdmeWw=; b=sVmfcMD7zyoR3rSWePmYhbQIszkO1le+IYGZM+nLZDekRCLnMJcSKqq8uAnq0DaMkK CNJOxTVLQXMsY/cMQFAX//aVS/opqUsGDfpsF9uHVAxtUyWvsU+XzGTSHTldo9kdOhr8 ik5V9TJdNS3cdc4h75NvDu135X6z+YaW0GbyXffLvcMZ5ORYl4SFq9oocUvb8q2GqNcD 8XUMT2CuEMxxFw1xEY33yGD0LLcYifRl8rcwBwBY2OHYDqUhQf62R0m3Io9Rudd9bbYO XYLI7mkJDCeR3Dz3OppFUwdFKDKOJJp/XJt1Mq2CCFAKOFHN7yckbiy8XTsaUrTPB/bY fJGQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=E4u5ylQd; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-166248-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166248-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id m13-20020a656a0d000000b005e2c2fc5125si729214pgu.249.2024.05.02.02.49.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 02:49:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-166248-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=E4u5ylQd; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-166248-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166248-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 07BF3281ADF for ; Thu, 2 May 2024 09:48:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F22CF56448; Thu, 2 May 2024 09:48:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="E4u5ylQd" 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 4BA665490A; Thu, 2 May 2024 09:48:21 +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=1714643304; cv=none; b=a+BypEd93T3HIs1FW06mc8FobS9U7ieAVQxujBgOPvPwNaRiA4eCm5lqr5MvlW81gXmOtivS/9FXR8gDGqoxpbRK0Alr2GQyjCVaIjYbFa61pgV/Z+J46w7q9tCgFbx2lcMLJ7jKF8CebiGlTWkOiY2js9TbkTEHH3tHT4Eo4ZQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714643304; c=relaxed/simple; bh=Qtow55VBHXnQW0e9Rstp6Mcwo51xVDOUn/UazpjWcK0=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=NGA0WUYQFJHXs+zTA18CbNsxvTI9aVadXYNaGIaXK3ZdDnQEGobOHtzbnZtbuPcA23NjtKbRUKmlULw7nWY5YDuUZkzOdgjDjzS4uZGj2JsLorc8s62rG5XCl0k7aViOatYipYifX9Vd3Hau7NWwlSzfjOxhrGLDvi4Gik+zRaA= 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=E4u5ylQd; 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 Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4426LBHw025698; Thu, 2 May 2024 09:48:15 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=VuUpTmSHU54n7Os5jeaIfRBwwWQbIaOdLoYboZcS+rg=; b=E4 u5ylQdXdb9684w/96x7FH2WsxkK0NoeRxXdnbdKHelETj/+LCzhq+Wtt3gLudvQr AvlE2Qse2WDNDNLyf7ZihjIBiwdJmlT1lguRCFg0oWvYSs2OB/8vIzYd/lqYrnis WuWlknckVMRQldfmEuA31IVV5yV0UuJBYNI1uVr6RCqrD+InpiqczAJk/14aLiRI Tvf/YREka+7Rost06CB/ASl22QBPUZhh68h0xlCzQD1Mt+DEgKbZ5wSFPa0jVuCg lgsLZ2dQPuD7v81zZTE/kuLU4h0oh73JaSBRcdmMAPNFCceFz3EmYukvVfEVkJym e6dgbGZnI0dpkhdOp6RA== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3xv41mgh5x-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 02 May 2024 09:48:15 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 4429mDX0021374 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 2 May 2024 09:48:13 GMT Received: from [10.216.23.244] (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.1544.9; Thu, 2 May 2024 02:48:09 -0700 Message-ID: <5134c012-60b1-4c07-9e1f-c48c3d88d404@quicinc.com> Date: Thu, 2 May 2024 15:18:05 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 0/3] Add devicetree support of USB for QDU/QRU1000 To: Dmitry Baryshkov , Komal Bajaj CC: Bjorn Andersson , Konrad Dybcio , Rob Herring , "Krzysztof Kozlowski" , Conor Dooley , , , , Bjorn Andersson , , , Jack Pham References: <20240502090326.21489-1-quic_kbajaj@quicinc.com> Content-Language: en-US From: Krishna Kurapati PSSNV In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) 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: 70-auOsRtB6TNmn-0Ljuwlt317cmELzk X-Proofpoint-ORIG-GUID: 70-auOsRtB6TNmn-0Ljuwlt317cmELzk X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1011,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-05-01_16,2024-05-02_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 adultscore=0 spamscore=0 malwarescore=0 mlxlogscore=548 clxscore=1015 priorityscore=1501 mlxscore=0 bulkscore=0 phishscore=0 suspectscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2404010003 definitions=main-2405020059 On 5/2/2024 2:39 PM, Dmitry Baryshkov wrote: > On Thu, 2 May 2024 at 12:04, Komal Bajaj wrote: >> >> This series adds devicetree nodes to support interconnects and usb for qdu/qru1000. >> This is based on previously sent driver series[1]. >> >> ------ >> Changes in v3: >> * As per comments on upstream[2], to get role-switch working on QDU/QRU1000, it was recommended to >> use the actual TI switch driver. Since driver doesn't have the functionality to provide role-switch >> based on gpio, thus reverting back USB dr_mode to peripheral and removed the remote end-point nodes >> and usb-conn-gpio based role switch functionality. > > This is not correct. The recommendation was to describe hardware properly. > Which means adding schema description, adding ti,your-switch > compatible to the usb-conn-gpio.c driver, etc. > Hi Dmitry, Sorry for the confusion. In the comments [1], "So the compatible string should be "ti,hd3ss3220". Which is fine to be used in the platform driver. Just describe the differences in the schema." The compatible "ti,hd3ss3220" is already associated with a TI switch driver [2]. But it works based on I2C. So we assumed you wanted us to make changes to [2] by adding GPIO functionality (which usb-conn-gpio exactly does), since the compatible you suggested matched with the TI driver. If it was to add compatible in usb-conn-gpio, then we can support OTG functionality with no schema changes I believe, but the compatible string might need a different name to avoid clashing with the name in [2]. [1]: https://lore.kernel.org/all/CAA8EJppNZrLzT=vGS0NXnKJT_wL+bMB9jFhJ9K7b7FPgFQbcig@mail.gmail.com/ [2]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/usb/typec/hd3ss3220.c?h=v6.9-rc2 Regards, Krishna, >> * Link to v2: https://lore.kernel.org/linux-arm-msm/20240319091020.15137-1-quic_kbajaj@quicinc.com/ >> >> Changes in v2: >> * Changes qmpphy node name >> * Changes dr_mode to otg and added USB-B port USB role switch >> * Dropped maximum-speed property from usb dwc3 node >> * Link to v1: https://lore.kernel.org/linux-arm-msm/20240311120859.18489-1-quic_kbajaj@quicinc.com/ >> >> [1] https://lore.kernel.org/linux-arm-msm/20240502082017.13777-1-quic_kbajaj@quicinc.com/ >> [2] https://lore.kernel.org/all/CAA8EJppNZrLzT=vGS0NXnKJT_wL+bMB9jFhJ9K7b7FPgFQbcig@mail.gmail.com/ >> ------ >> >> Komal Bajaj (3): >> arm64: dts: qcom: qdu1000: Add USB3 and PHY support >> arm64: dts: qcom: qdu1000-idp: enable USB nodes >> arm64: dts: qcom: qru1000-idp: enable USB nodes >> >> arch/arm64/boot/dts/qcom/qdu1000-idp.dts | 23 +++++ >> arch/arm64/boot/dts/qcom/qdu1000.dtsi | 120 +++++++++++++++++++++++ >> arch/arm64/boot/dts/qcom/qru1000-idp.dts | 23 +++++ >> 3 files changed, 166 insertions(+) >> >> -- >> 2.42.0 >> >> > >