From patchwork Wed Apr 5 11:41:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Varadarajan Narayanan X-Patchwork-Id: 7747 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp243084vqo; Wed, 5 Apr 2023 05:00:21 -0700 (PDT) X-Google-Smtp-Source: AKy350Zi2wuHEAfM8WA45YaLSEJRfi5OwpQ/C3cZxvkIdtUZoLnrjUZ/KHRKdmbcThZ1D5OjZgSV X-Received: by 2002:a05:6402:3445:b0:4fa:7679:d44a with SMTP id l5-20020a056402344500b004fa7679d44amr1445506edc.11.1680696021386; Wed, 05 Apr 2023 05:00:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680696021; cv=none; d=google.com; s=arc-20160816; b=BFT/QQ0ySd/EgCdx3HuL0lRSJyzBIOln3m4dZG17qekzkbW3pqobWl0s11osOa8KoD g6JCCbgYegkGtPHQtSjwk1DQcY1fLKIPybwOVKfPHuHy2364qh1Ha+p+rw8+MYk0aGOc 1Z8/zLtgU/JAfoa1tKbFcQHqgLBkbtqzr1vEuV+/cbMEG9+G4RFYqVxS2OTCjemHRxjp 9uD7g9CutQJ1cDCwhdgFhdplJgcsfuVRycFyo6pstCN9ZOPCO6C7/9QaKARZue2Pci9W iiLHBO8T8k/Vh2v3wDvaYbIiqEdMfWWWT7KIEdwyRHyBnl6CU0qfFibV82JXz1a1TLbw +SPA== 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:cc:to:from :dkim-signature; bh=fDK5V3JFhyOyHGxDPIM6Pla4EbSF8wTPQFxFIaOVyaw=; b=CLQqdW+0VgWgZYs5tWmlV9C0p2tdBtvRRD58Dm+CWYz9CdlRFKPYSowiQSouwznibE TADBsbfKfVcBTF1z9Yd4GHREFqnjDvEWVvX1ZcFgIWaK/DeasGdkYytmIAPZALNbSu+m nf8OJAYKOAjsoADYM15jl4NVrr1rijF/dAULbdbWw67ouqlM+aZWdlZg7RV+zaVWYoxK Wu0Itrc8f4wu0g3C+Do8eTph/9vsjVwrIyeNKXvt0PnWw7iFA0+QxR4yBgkEy+/VNc9u zxBdRkvRHHemNUKQpy5QWnsZQts115S/hYgEtdXb4wEbZ9KVuaOpN8utg/6rUJOznKTW TCGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=XbId7pkp; 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 a12-20020aa7cf0c000000b004fe947a0710si824060edy.57.2023.04.05.04.59.55; Wed, 05 Apr 2023 05:00:21 -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=XbId7pkp; 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 S237940AbjDELmP (ORCPT + 99 others); Wed, 5 Apr 2023 07:42:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237504AbjDELmB (ORCPT ); Wed, 5 Apr 2023 07:42:01 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC13F3A9F; Wed, 5 Apr 2023 04:42:00 -0700 (PDT) Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3359cJZe018554; Wed, 5 Apr 2023 11:41:43 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-type; s=qcppdkim1; bh=fDK5V3JFhyOyHGxDPIM6Pla4EbSF8wTPQFxFIaOVyaw=; b=XbId7pkp+uGBEByqtqOGJWq+R3YPH5byK6H/VSQ5wUEz6rL5c+O14hBIefFNIuVtE0qL k7voqpt+K19pwepT9fC8vHFac1xQ7LgBNviv7rgtIMGtApinkpcC510FReBzBLITxieh +uEX4Uay8Rg9BpZkAU2aaA7oXv1pd+mWgY93ISLbvS+tbVGmPXrZkZGX4y64DRV9U7cB drKgJIn1b1CWNorTcQwVH52tpuoGSgkhOxHDVeB/DB83M5QHaKloXBFlFlfrLuuGjVj1 O0FVwhpEFG4z4ovHr9gZbwqF60lJlpkNgKJuCN1CZM6R4FSz5QyYijmv6pNVLlShQnyq yw== Received: from nasanppmta04.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3prnusjnxe-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 05 Apr 2023 11:41:42 +0000 Received: from nasanex01a.na.qualcomm.com (nasanex01a.na.qualcomm.com [10.52.223.231]) by NASANPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 335Bffmc029798 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 5 Apr 2023 11:41:41 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.986.42; Wed, 5 Apr 2023 04:41:36 -0700 From: Varadarajan Narayanan To: , , , , , , , , , , , , , , , , CC: Varadarajan Narayanan Subject: [PATCH v8 0/8] Enable IPQ9754 USB Date: Wed, 5 Apr 2023 17:11:19 +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: LNYtgXMeuibTtD4nQatITelamRofgg5Y X-Proofpoint-ORIG-GUID: LNYtgXMeuibTtD4nQatITelamRofgg5Y X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-04-05_07,2023-04-05_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 priorityscore=1501 impostorscore=0 suspectscore=0 bulkscore=0 mlxscore=0 clxscore=1015 malwarescore=0 mlxlogscore=580 adultscore=0 phishscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2304050106 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762327136471972458?= X-GMAIL-MSGID: =?utf-8?q?1762337511443822205?= This patch series adds the relevant phy and controller configurations for enabling USB on IPQ9754 Depends on: https://lore.kernel.org/all/20230217142030.16012-1-quic_devipriy@quicinc.com/ [v8]: - Update bindings for the clock name change [v7]: - com_aux -> cfg_ahb in patch 7 [v6]: - Incorporated review comments - Resolve make dtbs_check messages - Fixed pcs_usb offset - Board dts file name changed [v5]: - Incorporated review comments - 'make dtbs_check' giving the following messages since ipq9574 doesn't have power domains. Hope this is ok /local/mnt/workspace/varada/varda-linux/arch/arm64/boot/dts/qcom/ipq9574-al02-c7.dtb: phy@7d000: 'power-domains' is a required property From schema: /local/mnt/workspace/varada/varda-linux/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-usb3-uni-phy.yaml /local/mnt/workspace/varada/varda-linux/arch/arm64/boot/dts/qcom/ipq9574-al02-c7.dtb: usb@8a00000: 'power-domains' is a required property From schema: /local/mnt/workspace/varada/varda-linux/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml - Move qmp phy DT node to newer specification [v4]: - Incorporated review comments - Address all 'make dtbs_check' errors [v3]: - Incorporated review comments regarding coding style [v2]: - Incorporated review comments regarding coding style, maintaining sorted order of entries and unused phy register offsets - Removed NOC clock entries from DT node (will be implemented later with interconnect support) - Fixed 'make dtbs_check' errors/warnings [v1]: https://lore.kernel.org/linux-arm-msm/5dac3aa4-8dc7-f9eb-5cf3-b361efdc9494@linaro.org/T/ Varadarajan Narayanan (8): dt-bindings: phy: qcom,qusb2: Document IPQ9574 compatible dt-bindings: phy: qcom,qmp-usb: Add IPQ9574 USB3 PHY dt-bindings: usb: dwc3: Add IPQ9574 compatible clk: qcom: gcc-ipq9574: Add USB related clocks phy: qcom-qusb2: add QUSB2 support for IPQ9574 phy: qcom: qmp: Update IPQ9574 USB Phy initialization Sequence arm64: dts: qcom: ipq9574: Add USB related nodes arm64: dts: qcom: ipq9574: Enable USB .../devicetree/bindings/phy/qcom,qusb2-phy.yaml | 3 +- .../phy/qcom,sc8280xp-qmp-usb3-uni-phy.yaml | 43 ++++++-- .../devicetree/bindings/usb/qcom,dwc3.yaml | 22 +++- arch/arm64/boot/dts/qcom/ipq9574-rdp433.dts | 16 +++ arch/arm64/boot/dts/qcom/ipq9574.dtsi | 120 +++++++++++++++++++++ drivers/clk/qcom/gcc-ipq9574.c | 37 +++++++ drivers/phy/qualcomm/phy-qcom-qmp-usb.c | 115 ++++++++++++++++++++ drivers/phy/qualcomm/phy-qcom-qusb2.c | 3 + include/dt-bindings/clock/qcom,ipq9574-gcc.h | 2 + 9 files changed, 353 insertions(+), 8 deletions(-)