Received: by 2002:a05:7412:1703:b0:e2:908c:2ebd with SMTP id dm3csp3978679rdb; Wed, 30 Aug 2023 11:34:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF1ShI2URl3AIeNoHqwWRNZzJKPtAwzJcHC/uu7SbCM/Ge6brUel7lClzxA5q/o+B9tqz39 X-Received: by 2002:a05:6402:202a:b0:522:1956:a291 with SMTP id ay10-20020a056402202a00b005221956a291mr2630299edb.8.1693420493347; Wed, 30 Aug 2023 11:34:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693420493; cv=none; d=google.com; s=arc-20160816; b=dCQkqzckCiOuJtpEZF77KScBYgLp+mfmqdYvS8lYXkJnvO8Joo1YecdmxuGFgXgEGu aQ6SV9ivRTiw6F7yPg+cgExy+OaigCKENnGcY9NjaY2JuZurT0rRpUHJHxMoWIeL6a36 ydCFnWQRRQfXdd7iuCq/WHhduZJ48wTJIDN+11uAmMayp+Jjo8pQeF1s00UAp2KaKSc9 FLvDcbLEm+jGTUuSwzSKyRnmxlhnVIdTgkRps04ONqakVcnheaLyvFof6txq2eAOPYTY kM73AlPL3ehCdEDifnntKpuLQg1dY4OcXcgdmE2qgUxHXldZRu5VCBrQDbiAOkO+nft4 osjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=+sqVmn9ndDXOtOS2zil6chnAI2vLNwnPdIa3pu3h6hk=; fh=VGCfDhMIsdLZ+kSo59YgUg+uakAnC07VaGi9xXQBKs8=; b=Py8wiv2Xh/GdkKNaZ6pLsLv2qwRDM1U51X2oKXKhW07hhd3ZoWFupeyZLoemA27EZQ hZc/FaqDWKqMMnbXr2qPZJD39PZ3sBP8m/iTr2PKN+coofdsTzfXSjGL00Kwal3zOYw/ OuJQakhzypOhRODfLeJvP9RLVLJvXIbu2Nxhgx3eE9MmBL3qOASBN1N90KgzmF83smjU 9uciKJltTMLTJQNBKYXK38nJnAnAthjS5DnzrhTzy/R2TDai09H2TO/9PDY8DV4Brei/ sIN+IJycjITTjlh673Y0N+OgDc029Tx6eM9dfbmaEZJmmNSC0uCtFptMVIqZaGSQYgua PU5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=WgZDsabT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u17-20020aa7d0d1000000b005257735e025si8191359edo.332.2023.08.30.11.34.25; Wed, 30 Aug 2023 11:34:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=WgZDsabT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236614AbjH2N7W (ORCPT + 99 others); Tue, 29 Aug 2023 09:59:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236778AbjH2N7Q (ORCPT ); Tue, 29 Aug 2023 09:59:16 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E9ADD7; Tue, 29 Aug 2023 06:59:13 -0700 (PDT) Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 37TC9ur6001349; Tue, 29 Aug 2023 13:58:39 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=qcppdkim1; bh=+sqVmn9ndDXOtOS2zil6chnAI2vLNwnPdIa3pu3h6hk=; b=WgZDsabTccUPya36giHTumIozw27Qy6jTy6HcfpjI6YkTuoHSm2sxJJ53PlER7dZIx7a hhS42b6qMQyFwMB3TUCPO9PMMSsc0fYJjIZJFyVKbnnq1GfNUIIGVUx4yxSRRaLsFMKf 26vNBHHMLJNz6tL0CXwzGun4RdZrzudSF5aBmhq/X2+elubvDIk/8WArLzoykQPnKXka QxwWNKsQwpx4+fTvLXV7478NyQWoA4c3eW8NBo5kMtHrhK5CNKh/u9hfblKzw/SPyaQO BkIJCCd4pxANU1rb1Evwwxg/+Tcvrr60DP55esgmN3WyQtNo+71j6EOI+w1o0Df9zWyq 0w== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3ss4g6hm6x-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 29 Aug 2023 13:58:38 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 37TDwbVO012042 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 29 Aug 2023 13:58:37 GMT Received: from hu-ipkumar-blr.qualcomm.com (10.80.80.8) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.30; Tue, 29 Aug 2023 06:58:29 -0700 From: Praveenkumar I To: , , , , , , , , , , , , , , , , , , , , , , , , , , CC: Subject: [PATCH 0/9] Enable USB3 for IPQ5332 Date: Tue, 29 Aug 2023 19:28:09 +0530 Message-ID: <20230829135818.2219438-1-quic_ipkumar@quicinc.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: b0sZeBPaa5Wb0IysTsxCneRbgo0TWAP5 X-Proofpoint-GUID: b0sZeBPaa5Wb0IysTsxCneRbgo0TWAP5 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.601,FMLib:17.11.176.26 definitions=2023-08-29_11,2023-08-29_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 priorityscore=1501 mlxscore=0 mlxlogscore=538 malwarescore=0 lowpriorityscore=0 phishscore=0 clxscore=1011 spamscore=0 bulkscore=0 adultscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2308100000 definitions=main-2308290120 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org IPQ5332 has UNIPHY for USB and PCIe which is similar to the UNIPHY present in IPQ4019. Few extra settings like clock, reset delay, mux selection and voltage regulator are required for IPQ5332. Hence repurposed the IPQ4019 PHY driver for IPQ5332 UNIPHY. Few more Qualcomm SoCs are also having the UNIPHY which can use the same driver for both USB and PCIe PHY. Praveenkumar I (9): dt-bindings: phy: qcom,uniphy: Rename ipq4019 usb PHY to UNIPHY phy: qcom: uniphy: Rename ipq4019 USB phy driver to UNIPHY driver phy: qcom: uniphy: Update UNIPHY driver to be a common driver dt-bindings: phy: qcom,uniphy: Add ipq5332 USB3 SS UNIPHY dt-bindings: usb: dwc3: Update IPQ5332 compatible arm64: dts: qcom: ipq5332: Add USB3 related nodes arm64: dts: qcom: ipq5332: Enable USB SS UNIPHY phy: qcom: uniphy: Add ipq5332 USB UNIPHY support arm64: defconfig: Enable UNIPHY driver .../devicetree/bindings/phy/qcom,uniphy.yaml | 168 +++++++ .../bindings/phy/qcom-usb-ipq4019-phy.yaml | 52 -- .../devicetree/bindings/usb/qcom,dwc3.yaml | 20 +- MAINTAINERS | 7 +- arch/arm64/boot/dts/qcom/ipq5332-rdp468.dts | 7 +- arch/arm64/boot/dts/qcom/ipq5332.dtsi | 39 +- arch/arm64/configs/defconfig | 1 + drivers/phy/qualcomm/Kconfig | 7 +- drivers/phy/qualcomm/Makefile | 2 +- drivers/phy/qualcomm/phy-qcom-ipq4019-usb.c | 145 ------ drivers/phy/qualcomm/phy-qcom-uniphy.c | 451 ++++++++++++++++++ 11 files changed, 686 insertions(+), 213 deletions(-) create mode 100644 Documentation/devicetree/bindings/phy/qcom,uniphy.yaml delete mode 100644 Documentation/devicetree/bindings/phy/qcom-usb-ipq4019-phy.yaml delete mode 100644 drivers/phy/qualcomm/phy-qcom-ipq4019-usb.c create mode 100644 drivers/phy/qualcomm/phy-qcom-uniphy.c -- 2.34.1