From patchwork Thu Jul 27 06:33:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Varadarajan Narayanan X-Patchwork-Id: 12678 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp924390vqo; Thu, 27 Jul 2023 00:44:36 -0700 (PDT) X-Google-Smtp-Source: APBJJlGa/2Anr6Mqyx9VFpawp7v/R6RVWt9QXlUVRjQD+fSTWHdKfU3Zc4IaXrCGVkxiYuvtBw9+ X-Received: by 2002:a05:6512:398d:b0:4fc:3756:754e with SMTP id j13-20020a056512398d00b004fc3756754emr1296925lfu.56.1690443876458; Thu, 27 Jul 2023 00:44:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690443876; cv=none; d=google.com; s=arc-20160816; b=EnXlRYd2k8ZN+73W66T9u8oYhdKbvuiyxXTbmW4Itz4yXYD+lVJIAwuq47xw8th5v/ gpxjGyHv/sdDLK/zBOEQHvaaDY3HhJWnUAOUy4J0UTL7ySxvSnPSNOumLX569fiiAGru 9zoOQORw1kKuC0k4xCSaBo9RUqS9qRMBegSYyGo5lP2gJZQ6uhfvwVQyYrw7Cv4i26b0 SJh25UbaRfQsCcS+ZqcokQ0VZew7HNB2hOvCfNTz6Sgatxi3z4tn4fEN2M9bcEK+76Ac hsPfgTaT4IXh0Tfq4+AWnZWdJN9/432nK8zsPOGgWmcHlionIQHrp8zOl3+/IOwkuNKi 7MxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:to:from :dkim-signature; bh=6CKATzv0G8sbjDaxb4lDXf4tA5pU2fqAwEA8flKJmLI=; fh=6h1Wj1mbqxcS7PNl0ctUGwtLQi5JQvLvrrK1KLcalrs=; b=Akuz/p6oYgUv3ot86D4qzK5+e1cHQoQ3MP92hIUG7fuHiXOmIel1nb1ycP2+6MxN5s OburOdH3yUYAnBFjE7X05JOoWzqtrxFPeSqAMTcD+UueRn8FENEWtgko5XVULvhh4j+H ZztOtvfC7MORCxDcpowpomW29XqcFi15Vr59jXemp1S5oPOXJzrQ5v0e5HdT4Pg5RZzG 3Qtw6pb1TtC53w5t3d/FLF/rumXvYLvtix0wbf+Kl14mgM3HgqONjvs2EnusNTaAKlgl jR1GPNEJ6whhKIlhUMxmkoNo2kfsEqomanc6rol2frQhUlTcPLf/oNcnr1Mxvs0lFBE8 a9IQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=ItJxkeoQ; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a18-20020a1709066d5200b0099325282818si619421ejt.571.2023.07.27.00.44.12; Thu, 27 Jul 2023 00:44:36 -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=ItJxkeoQ; 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 S231195AbjG0GfX (ORCPT + 99 others); Thu, 27 Jul 2023 02:35:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232363AbjG0GfR (ORCPT ); Thu, 27 Jul 2023 02:35:17 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 977742D73; Wed, 26 Jul 2023 23:35:03 -0700 (PDT) Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36R4wbop021720; Thu, 27 Jul 2023 06:34:24 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : subject : date : message-id : mime-version : content-type; s=qcppdkim1; bh=6CKATzv0G8sbjDaxb4lDXf4tA5pU2fqAwEA8flKJmLI=; b=ItJxkeoQwmzKynprAKIs7q3xE/54dGEdPoA3w0Xy9iCb1b0+jZnEFDWhcm885dYqv9rs jyrmzaQsM3Yj3yDy7J2IEahv91JaNUizkZCNSTQqNPtfRkhOvhz1aXINvyB8VVDWfl/M T2fpkVxwwl4ZeveK+KWVodkuHcB2Tg/71xfpN26gkT8gsKhuWCTbhiMTkFM/KPnTS5mE 9ifx+n1mVbX9Zz9aJT8jqhbG63fxf5exBhN1OtiHNIhhkBF5B5X+hHsQLZTI/J4bXn/B 83XSG75A/iTHyFSKGCgpVB8/sweUtY7rYdeZcnSzxjfQL+05nIpesyX4lX3v9jA+/ZYD Tw== Received: from nasanppmta05.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3s34x6hnrh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 27 Jul 2023 06:34:24 +0000 Received: from nasanex01a.na.qualcomm.com (nasanex01a.na.qualcomm.com [10.52.223.231]) by NASANPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 36R6Xusj023060 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 27 Jul 2023 06:33:56 GMT Received: from varda-linux.qualcomm.com (10.80.80.8) by nasanex01a.na.qualcomm.com (10.52.223.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.30; Wed, 26 Jul 2023 23:33:49 -0700 From: Varadarajan Narayanan To: , , , , , , , , , , , , , , , , , , , , , , , , Subject: [PATCH v6 0/5] Enable IPQ5332 USB2 Date: Thu, 27 Jul 2023 12:03:13 +0530 Message-ID: X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nasanex01a.na.qualcomm.com (10.52.223.231) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: xPRBMIhZmcLiTXoTRtSWlP2ZVZd8BxDW X-Proofpoint-ORIG-GUID: xPRBMIhZmcLiTXoTRtSWlP2ZVZd8BxDW X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-26_08,2023-07-26_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=367 lowpriorityscore=0 malwarescore=0 adultscore=0 impostorscore=0 mlxscore=0 bulkscore=0 spamscore=0 clxscore=1015 phishscore=0 priorityscore=1501 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2307270059 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772558878583908771 X-GMAIL-MSGID: 1772558878583908771 This patch series adds the relevant phy and controller configurations for enabling USB2 on IPQ5332 v6: Binding and dts:- Dropped the qcom,dwc3.yaml patch as it has been picked up for linux-next Add const to compatible, vdd-supply Move nodes per register address Driver:- Add vdd-supply Cleanup error paths in probe with dev_err_probe v5: Binding and dts:- Fix email id Removed 'Reviewed-by: Krzysztof Kozlowski ' as had to change bindings file to be able to use generic phy instead of usb-phy Driver:- Remove unused definition Use generic phy instead of usb-phy v4: Binding and dts:- Change node name (bindings & dts) Driver:- Remove unused enum static const for '.data' Error handling for devm_clk_get v3: Fix bindings file based on review comments v1: Cleanup DTS Combine driver, kconfig and makefile patches Remove unused functions from M31 driver Drop the clock driver changes Varadarajan Narayanan (5): dt-bindings: phy: qcom,m31: Document qcom,m31 USB phy phy: qcom-m31: Introduce qcom,m31 USB phy driver arm64: dts: qcom: ipq5332: Add USB related nodes arm64: dts: qcom: ipq5332: Enable USB arm64: defconfig: Enable M31 USB phy driver .../bindings/phy/qcom,ipq5332-usb-hsphy.yaml | 59 +++++ arch/arm64/boot/dts/qcom/ipq5332-rdp468.dts | 23 ++ arch/arm64/boot/dts/qcom/ipq5332.dtsi | 55 +++++ arch/arm64/configs/defconfig | 1 + drivers/phy/qualcomm/Kconfig | 11 + drivers/phy/qualcomm/Makefile | 1 + drivers/phy/qualcomm/phy-qcom-m31.c | 248 +++++++++++++++++++++ 7 files changed, 398 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/qcom,ipq5332-usb-hsphy.yaml create mode 100644 drivers/phy/qualcomm/phy-qcom-m31.c