Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp10466813rwd; Wed, 21 Jun 2023 23:50:51 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6YOpoVe3k9GrCHIyVYi6TtGEVadbLjh35tGTxlYvHTb9csrvg13nrv8ND8GUyPECzvaBXo X-Received: by 2002:a05:6214:248c:b0:630:5fb:e9ff with SMTP id gi12-20020a056214248c00b0063005fbe9ffmr20681952qvb.65.1687416650886; Wed, 21 Jun 2023 23:50:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687416650; cv=none; d=google.com; s=arc-20160816; b=udk1dC0bm+dlE4Cjziibcli1yAyIxJw0BmESXIKXkWKi9mrLeyCHA7Zw0FvJMeWSTW epwp17CtKPqeDxybicxUfLlg+V7bzy3DFtmE2dMTeK+XErgVqjFXRdtjQoCC+JPNNQIJ IrJ6TD3gsZTgET6Hv2/c9eQm6ChEydSGInUHlUldJom9NtTanAt0ZFYUzkBJrxrNPAqj F7ELkcrvBn83k5f7z0J/aoU8TP6Vb7ncAhQlYQDN6TcONog4AjAOSaOhbi1IvKfdiL9p d8JMDq7Y31Q4YpP40RZ/RscKwLl5gAC7etfW33tYHvSQhLU058a36FCF2mH8KcjXnCkI 2/Uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=Cig1p703pJSI72PsrtJT/ZJBIil/XLDQEeclQ1XrwWY=; b=qOX8C4QSp1ENO24LhmZ9y7sUj1518qCTt4DqIV/epZ+rYZpiG9lDHY5xdVzxHk/OXd QwfiUWgz2um1OQA5jWfkrFkczleJdwqut/drLXg9/Bbeyql0/xmMZXopgpGgkDNj89At dcIRCppzCDDzsGhoQFGD/Q0tgjRXayZW9w9iFezyX09NQZuKmdDq57t9M4WIQ7ZEeyqx gmljpOkqP9Wr7/XoN3t4jGudM8RcrI9SbqiaITkhTf9qw8+treF3NJaEYjx7v9jYMkvT oUBl8/f5eL20qy+I7toW7Ve3VwHez4LiQrL2uVrqACjh9/qo+KUCcGqV7tUGHEekudaD 7z5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=WJAxiwYh; 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 e17-20020aa798d1000000b0065965fbd425si3172397pfm.350.2023.06.21.23.50.38; Wed, 21 Jun 2023 23:50:50 -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=WJAxiwYh; 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 S231207AbjFVGXn (ORCPT + 99 others); Thu, 22 Jun 2023 02:23:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231183AbjFVGXb (ORCPT ); Thu, 22 Jun 2023 02:23:31 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D88919B5; Wed, 21 Jun 2023 23:23:20 -0700 (PDT) Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 35M5L3e8027078; Thu, 22 Jun 2023 06:23:00 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=qcppdkim1; bh=Cig1p703pJSI72PsrtJT/ZJBIil/XLDQEeclQ1XrwWY=; b=WJAxiwYhElWnsx8E0oF1uel69N2iGDx/hTeKM8sZN8vX2NVF9+LIZqA7IysB/hnY05Mt LKpMl5hdUIzMahJSF02nY8rr2xl1b33EvKaGxy9ISKgcur92LLy/pZKQgew37EK6SAO3 /9rqju5VypBHpyJA89LyXTUhX9a8r/mfvOYJJHjvWGjUqt8CobYLtw4U6HVMJwAPTkrd PgyYfex14zTOJrIf8vv9D3LOmJRN1WwFvR0kpCUbsVISHqhnkhGFHwuZKCELA8qxSpXP zPh4Iqx64Ik3qRajMs86kV7x5ZQ/WTdid5BOfQOm9RdIObms0vL1zp2tXNz8c4+juKMz XA== Received: from nasanppmta03.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3rbxc7t9xa-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 22 Jun 2023 06:23:00 +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 35M6MxQN029783 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 22 Jun 2023 06:22:59 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, 21 Jun 2023 23:22:52 -0700 From: Varadarajan Narayanan To: , , , , , , , , , , , , , , , , , , , , , , , , , , CC: Varadarajan Narayanan Subject: [PATCH v2 4/6] arm64: dts: qcom: ipq5332: Add USB related nodes Date: Thu, 22 Jun 2023 11:52:11 +0530 Message-ID: <915b3b0ba490dd31573ce5e92b55ff5c0d548f6f.1687414716.git.quic_varada@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain 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: uHegUWj3XTK4eeY90NQ6dLr_g7Tu8yXg X-Proofpoint-ORIG-GUID: uHegUWj3XTK4eeY90NQ6dLr_g7Tu8yXg 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-06-22_03,2023-06-16_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 priorityscore=1501 mlxscore=0 adultscore=0 spamscore=0 impostorscore=0 mlxlogscore=769 clxscore=1015 suspectscore=0 phishscore=0 bulkscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2306220052 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 Add USB phy and controller nodes. Signed-off-by: Varadarajan Narayanan --- v1: Rename phy node Change compatible from m31,ipq5332-usb-hsphy -> qcom,ipq5332-usb-hsphy Remove 'qscratch' from phy node Fix alignment and upper-case hex no.s Add clock definition for the phy Remove snps,ref-clock-period-ns as it is not used. dwc3_ref_clk_period() in dwc3/core.c takes the frequency from ref clock and calculates fladj as appropriate. --- arch/arm64/boot/dts/qcom/ipq5332.dtsi | 54 +++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/ipq5332.dtsi b/arch/arm64/boot/dts/qcom/ipq5332.dtsi index 8bfc2db..c945ff6 100644 --- a/arch/arm64/boot/dts/qcom/ipq5332.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq5332.dtsi @@ -405,6 +405,60 @@ status = "disabled"; }; }; + + usbphy0: ipq5332-hsphy@7b000 { + compatible = "qcom,ipq5332-usb-hsphy"; + reg = <0x0007b000 0x12c>; + + clocks = <&gcc GCC_USB0_PHY_CFG_AHB_CLK>; + clock-names = "cfg_ahb"; + + resets = <&gcc GCC_QUSB2_0_PHY_BCR>; + + status = "disabled"; + }; + + usb2: usb2@8a00000 { + compatible = "qcom,ipq5332-dwc3", "qcom,dwc3"; + + reg = <0x08af8800 0x400>; + + interrupts = ; + interrupt-names = "hs_phy_irq"; + + clocks = <&gcc GCC_USB0_MASTER_CLK>, + <&gcc GCC_SNOC_USB_CLK>, + <&gcc GCC_USB0_SLEEP_CLK>, + <&gcc GCC_USB0_MOCK_UTMI_CLK>; + clock-names = "core", + "iface", + "sleep", + "mock_utmi"; + + resets = <&gcc GCC_USB_BCR>; + + qcom,select-utmi-as-pipe-clk; + + #address-cells = <1>; + #size-cells = <1>; + ranges; + + status = "disabled"; + + usb2_0_dwc: usb@8a00000 { + compatible = "snps,dwc3"; + reg = <0x08a00000 0xe000>; + clocks = <&gcc GCC_USB0_MOCK_UTMI_CLK>; + clock-names = "ref"; + interrupts = ; + usb-phy = <&usbphy0>; + tx-fifo-resize; + snps,is-utmi-l1-suspend; + snps,hird-threshold = /bits/ 8 <0x0>; + snps,dis_u2_susphy_quirk; + snps,dis_u3_susphy_quirk; + }; + }; }; timer { -- 2.7.4