From patchwork Thu Mar 30 08:40:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Varadarajan Narayanan X-Patchwork-Id: 7445 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp971819vqo; Thu, 30 Mar 2023 01:43:31 -0700 (PDT) X-Google-Smtp-Source: AKy350bYMW+Ny0YFT9Yu7MAEdVPuZJ3ENunDXtpTPAMN9/5EApRiNRW7NhDmRPSGd5Vd9AUEjBYd X-Received: by 2002:a17:907:c68a:b0:947:6f1c:96e3 with SMTP id ue10-20020a170907c68a00b009476f1c96e3mr876124ejc.9.1680165811728; Thu, 30 Mar 2023 01:43:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680165811; cv=none; d=google.com; s=arc-20160816; b=f6H+kNO7RuEFCDxQNe6D8HNUgQwkx3aYKWDOmC7Q8fkMm+p/XP2GnCUeBXi2TiRM5Z wm2eEcXZLMj/rqBCFXC3cOcemU8IFyFcLsti0wwiy9X5osedPLV8IGfajQkyNCd2nPRg 36HtVMBHcGfGy9SdCj+N/ga+8RNTDUtQYbEUW30pZxDPTPr6Sjw5Djoyd1HjNIbOR8a7 qDdvVaWmApCTdGuKidlpTs6avgUDhqyxQ8CxKIDx8jb4Ah9gn+guw/6fatHpAjCaWAPI XO58PhQvkwNeHU32jPe9eomvBDA3BjgLBT8f+YQXLRjJbdX5C0Qt5ux3wsADlDJRrdCV zLow== 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=ajAXa9RgyNIJ54G0h80RVegw70RDopqa2IVte913A5E=; b=djcUbQmf4jU0M9/MmUgPubSbXyhbALTe8HGwaDbULQZafNiAzCcWgXXWed5mLmEtGx n4XBp82dshTlj443TBHkcEOecMz7riIVSxgbw1q12tkCrS+OGHxgWGy/vuCyRPBi9+ho 36P2NUtoi6G3K8PJgXxOJWRMWZIQEONAvjsd8U3vbUvN+zIlfxWEJIALlEOGG2R6x9BQ VjgtV4TzO7Jy3Om4KVN/G7qp4W4hVy4cVJYMgSoO8V3FxO9xntH1lzWayTTkkCt7JEGa 1H0vpN7FAOmXDLY/MusK9GbruJKHuxIoZQxVvBIOwjFRDM8rVLIL114auKu3jlpGKc4j mq2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="aElMOR/B"; 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 hs42-20020a1709073eaa00b00939f49a843fsi1184561ejc.176.2023.03.30.01.43.07; Thu, 30 Mar 2023 01:43:31 -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="aElMOR/B"; 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 S229949AbjC3Il6 (ORCPT + 99 others); Thu, 30 Mar 2023 04:41:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229580AbjC3Ilm (ORCPT ); Thu, 30 Mar 2023 04:41:42 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B271083C4; Thu, 30 Mar 2023 01:41:19 -0700 (PDT) Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 32U8Dbj1023567; Thu, 30 Mar 2023 08:41:04 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=ajAXa9RgyNIJ54G0h80RVegw70RDopqa2IVte913A5E=; b=aElMOR/Bhgqt8/8ZeV64Nlq6hmL/In7rtWBr5oeSV3HpbpC91EW64tPU1Kk+mlqNtVXn FiuSdIzZGhTFiWSkBq35QbEYT0mEsDA8cBj4Xm9ywi9lnGh5NGgaPj/nxJ9D1NVcGOLT EaXwUBXaWWEf8ffXo7EP/OtDer4saQSBEMxwGpekLBs7krsM/MuUFEwAOh7RXyzg1urk dLdT4HTLmw1WmF9fBcbGTUyDfn80DX4n1UslXje6ur48d3vU/UaRB3WsnCNrX06T/RmC iZwa4CcQEudZWKz0itzcOLezOlXJcBre4JsXfUnnZL3CKWFaTIh3eub4KGAxj8aWsH96 tA== Received: from nasanppmta05.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3pn51ygcqb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 30 Mar 2023 08:41:04 +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 32U8f3TI019047 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 30 Mar 2023 08:41:03 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; Thu, 30 Mar 2023 01:40:57 -0700 From: Varadarajan Narayanan To: , , , , , , , , , , , , , , , , CC: Varadarajan Narayanan Subject: [PATCH v5 0/8] Enable IPQ9754 USB Date: Thu, 30 Mar 2023 14:10:42 +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: oGa2J184ynaDRiqhDF4NsUJWa-lJVl_D X-Proofpoint-GUID: oGa2J184ynaDRiqhDF4NsUJWa-lJVl_D 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-03-30_04,2023-03-30_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 mlxscore=0 impostorscore=0 malwarescore=0 adultscore=0 spamscore=0 bulkscore=0 lowpriorityscore=0 clxscore=1015 priorityscore=1501 mlxlogscore=441 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2303300069 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?1761781546188960706?= X-GMAIL-MSGID: =?utf-8?q?1761781546188960706?= 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/ [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 | 1 + .../devicetree/bindings/usb/qcom,dwc3.yaml | 19 ++++ arch/arm64/boot/dts/qcom/ipq9574-al02-c7.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, 315 insertions(+), 1 deletion(-)