From patchwork Thu Aug 10 09:56:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Varadarajan Narayanan X-Patchwork-Id: 13446 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp341640vqi; Thu, 10 Aug 2023 04:14:14 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHT5lf2yf175xd7PDzOZ0r+ZAt3Ne/11bqJOhWuQ+tPOe4B8cK1yO+IaejBToZlGdSByXNt X-Received: by 2002:a17:902:e743:b0:1b8:987f:3f34 with SMTP id p3-20020a170902e74300b001b8987f3f34mr2511436plf.25.1691666054175; Thu, 10 Aug 2023 04:14:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691666054; cv=none; d=google.com; s=arc-20160816; b=gUWC0gGw4yuCxeL74+Ho99AEGdFx1UBkzbif6/jkUCc5voDGbCqzeuBq/XsWpABydk IAzPL6I+Hb1iOYTFiAM7Nn5cMDXQnREhYWoHq1aTxLO6QI9qE92QgTvEFB0Sd+18B1Zr eF8Ee30Ol9VCp5rQrmqkuqF5MwA6jZ5Ne1I4VVXKGtQ3MjH+gbKWmkqGV3aS4FC1kt3s grXGiEay5OgsN0+ufJ4nahvZwWT22SQmAlSkvehdihIDAb4b//SWnWU6bBbSCWCdkaAg /+JjvuGRpGzMb1TyGAT5OYva9GC3itG0l+kir9yYoscK0EWAU55e+E5ge4MGQpGlwzUh bDXQ== 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=T504CEXobX7cLJoBT1x/oPv6mp5b0CIe5FhMiZBrn9I=; fh=0k2HJcQX94dKFWJ5tuN/W9uwe9Rj3tjxabABZ2i+WP0=; b=S0MVz4ckbjli36waxyWxWDuzgrgSq5Qy1atYhS63V7AQEiWXk2NXlASjKaahSROd4e YD25MPYWliiSRPEdRi4wXP7WX6npXOTsi9u9nsa3+1Y0NwNb3I5H2G2LWXopgnnqqIzE q/jd7li45ARhT1Abx7KQzvwCT8Dg3R+sG85yRSjpsLi8VlNaQu42TpbnlwkIEE4jz8dj 2wAguI4khF08grA6bf7vkACYeQmGzvlOxKWF4fofNAKIMj5v6hIF+4bOe/YfmOC/JKNb QVr1VBx6kD80Errqr0nEjjEFprO0xjFmWFZh+KWgNBOJ3MN0YMKGRj3j7J97Zlzx0LdE eLig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=guAFmPQB; 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 j8-20020a170903024800b001b89bd6fd59si1309971plh.215.2023.08.10.04.14.00; Thu, 10 Aug 2023 04:14:14 -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=guAFmPQB; 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 S234871AbjHJJ5H (ORCPT + 99 others); Thu, 10 Aug 2023 05:57:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233135AbjHJJ5G (ORCPT ); Thu, 10 Aug 2023 05:57:06 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 210E5211B; Thu, 10 Aug 2023 02:57:06 -0700 (PDT) Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 37A8PXZf002388; Thu, 10 Aug 2023 09:56: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=T504CEXobX7cLJoBT1x/oPv6mp5b0CIe5FhMiZBrn9I=; b=guAFmPQBdFLBInXHF/MZI4nqCFQU6zr9wJgso11NMJwEw8jIh7hUKsUNoDpy2mu6FJl+ ThEqOUqphLTWS6htauSEoKWdSlbva8u99ojxi8SZ72VJceIQtS7RJODnnU3kw3LHpnlZ K5NUCNotYkt/28TUn/w9WB8VD3Q5xvjzSY/ggR4iIC3BR7dIvc97+ZOM0IGeeiOc3frN o7LoJGyE6xnHE2StycU5+bRGfNCwssmYlhJG2AhDftpL+CkmvOt16yoQRmzDkEo8PgNj OSgUngsdgDMEk6Pu76CGgF8sbFhfTN0PoRuTb+KkGI8WKOZDy2cP5AdshgOXWMLF/zxI iw== Received: from nasanppmta03.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3sch7cs9gd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 10 Aug 2023 09:56:24 +0000 Received: from nasanex01a.na.qualcomm.com (nasanex01a.na.qualcomm.com [10.52.223.231]) by NASANPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 37A9uN1Y001050 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 10 Aug 2023 09:56:23 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; Thu, 10 Aug 2023 02:56:17 -0700 From: Varadarajan Narayanan To: , , , , , , , , , , , , , , , , , , , , , , Subject: [PATCH v7 0/5] Enable IPQ5332 USB2 Date: Thu, 10 Aug 2023 15:26:03 +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-ORIG-GUID: JpypQuw8zJSP04fc9kxsWuykN-6Qg1YE X-Proofpoint-GUID: JpypQuw8zJSP04fc9kxsWuykN-6Qg1YE X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-08-10_09,2023-08-09_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 spamscore=0 priorityscore=1501 lowpriorityscore=0 suspectscore=0 impostorscore=0 mlxlogscore=344 mlxscore=0 adultscore=0 malwarescore=0 clxscore=1011 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2308100085 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773840424921821359 X-GMAIL-MSGID: 1773840424921821359 This patch series adds the relevant phy and controller configurations for enabling USB2 on IPQ5332 v7: Binding:- Move 'compatible' to be the first entry In the example have 'usb-phy' instead of 'usb2-phy' Add 'Reviewed-by: Krzysztof Kozlowski' 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