Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1998655rdb; Tue, 3 Oct 2023 07:28:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEaL2F7elboQwtJCG8DcOi0osU8Uysh5o08kTLuRlp4QV5qKxINtFvz8EfcQocPufApN+Jf X-Received: by 2002:a17:902:720a:b0:1c5:7aa1:3a51 with SMTP id ba10-20020a170902720a00b001c57aa13a51mr11926769plb.34.1696343336163; Tue, 03 Oct 2023 07:28:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696343336; cv=none; d=google.com; s=arc-20160816; b=eSUg1B5s2sil1+LGwqK09YjZD8bmkeOW34UjxwFtzf/1XxRAYVPyJ6VaWExiLjpg7S j7233k8bq0okMOUbdmSd2y51NlghwqZElWM9byAN7TlhQK6+bQELUm8IFCoaKiUx9opq ScAqeCq/lmrRLMncjXVhLjyHEOLdw6g7XNyPPqRc2Veqzihwh9iRLeQ/pTKcTBalHW0n rWKBIQO93ge+tQB4QliFga936wz4rkQL9tPLCY0teAra5baOOEAuP9c9qK3aBG2ZTB59 wacDgu9S9781PykAbh1rh1xFbCTgyBHJ9xHd3rwZG09iAh8ynApYxuKNb7UVs6wf7T49 aiYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=ExWq9EdzaPi01pk0kQhkIduT1l/I3/KRXIIRj205f8o=; fh=h1fL4SuDGFyHHTW2VYqM0e6hfbOI+iaVKPUSUEV/fXM=; b=dkMCqKnsHf8Nl/40tSWmKcY2SEX0ny5CYiq4q/8uZ7kDDlnUwVLBU/7S3HRD4vdzxX X2sQ9o4k380fyqM8/VT1bu8Am0oF7+uifRoo6xAfjaAakbAXL77C49hNCuLQf5um9nNT UwbmUgYJscsVJ5VL4ZqD3d832Ncc82qkz8oK4q6qCsiQ2yadyfohD+Zk10/Yc16QURlC CsLAA4GbWtBe+xupmG+Do5MMO1tefrByLhg+zvRa8hoRAwZ/WSHNPVF+PZHKMa+LZjex 6ERF5GbCnY2TdZmfl620K01Pk1mpCr0dgH9QnH4KRfXNeQDeZ7iy8e5YnctbjEZQvxm7 l8OA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=T5kB2lLg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id y10-20020a17090322ca00b001b9c3498526si1589515plg.433.2023.10.03.07.28.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 07:28:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=T5kB2lLg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 126A482A41E3; Tue, 3 Oct 2023 07:28:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240041AbjJCO2u (ORCPT + 99 others); Tue, 3 Oct 2023 10:28:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234771AbjJCO2t (ORCPT ); Tue, 3 Oct 2023 10:28:49 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53E32A3; Tue, 3 Oct 2023 07:28:46 -0700 (PDT) Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 393EQI8A013770; Tue, 3 Oct 2023 14:28:19 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=ExWq9EdzaPi01pk0kQhkIduT1l/I3/KRXIIRj205f8o=; b=T5kB2lLgkvfJl688l1f3hE8YucITCqT08aDsMeuUL00Ojj6XLRS+s98eEH6D5/cV+UN9 FtSQzpZ4c4Q/D1e6mRJroaEH4/VPK4CMUDRdoRKUFgR2z57z7B6Ty0EGJl+O4/zOpB7L Jcv6rqHgKnw6KW7qxNVhPXYhyo2Dfx1AEco7QJD2swCqdFbx/7RlC6ebPEgPgyeQNp0M fWN62B4XYjj0mooRloEbgxX830MnH4wWIXNni8Cta4wdmVxsoUjwwk7l0G7iO3/zGX4m 7jGIK+j0/k6VeyIihs0n+f6iUxXdmvUNBAzTlOvBfhjLbzF6SF+B67S8JMWix70jo4Vc Cg== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3tgaw5h7md-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 03 Oct 2023 14:28:18 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 393ESHM1030055 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 3 Oct 2023 14:28:17 GMT Received: from [10.216.32.208] (10.80.80.8) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.30; Tue, 3 Oct 2023 07:28:07 -0700 Message-ID: <49bb695e-cb7b-41bf-a3ac-71a8a8417c9f@quicinc.com> Date: Tue, 3 Oct 2023 19:58:02 +0530 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 3/8] arm64: dts: qcom: ipq5332: Add USB Super-Speed PHY node Content-Language: en-US To: Dmitry Baryshkov , , , , , , , , , , , , , , , , , , , , , , , , , , CC: , , References: <20230929084209.3033093-1-quic_ipkumar@quicinc.com> <20230929084209.3033093-4-quic_ipkumar@quicinc.com> <5bf11343-6ab4-43a8-b12d-f2b072ce388a@linaro.org> From: Praveenkumar I In-Reply-To: <5bf11343-6ab4-43a8-b12d-f2b072ce388a@linaro.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: kAlSabW30WWtkJdpmGMUADo_4iEbSRCh X-Proofpoint-GUID: kAlSabW30WWtkJdpmGMUADo_4iEbSRCh X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-03_11,2023-10-02_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 bulkscore=0 phishscore=0 priorityscore=1501 clxscore=1015 impostorscore=0 mlxscore=0 lowpriorityscore=0 mlxlogscore=751 adultscore=0 spamscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2310030106 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-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 03 Oct 2023 07:28:55 -0700 (PDT) On 9/30/2023 10:52 PM, Dmitry Baryshkov wrote: > On 29/09/2023 11:42, Praveenkumar I wrote: >> Add USB Super-Speed UNIPHY node and populate the phandle on >> gcc node for the parent clock map. >> >> Signed-off-by: Praveenkumar I >> --- >>   arch/arm64/boot/dts/qcom/ipq5332.dtsi | 25 ++++++++++++++++++++++++- >>   1 file changed, 24 insertions(+), 1 deletion(-) >> >> diff --git a/arch/arm64/boot/dts/qcom/ipq5332.dtsi >> b/arch/arm64/boot/dts/qcom/ipq5332.dtsi >> index d3fef2f80a81..b08ffd8c094e 100644 >> --- a/arch/arm64/boot/dts/qcom/ipq5332.dtsi >> +++ b/arch/arm64/boot/dts/qcom/ipq5332.dtsi >> @@ -158,6 +158,29 @@ usbphy0: phy@7b000 { >>               status = "disabled"; >>           }; >>   +        usbphy1: phy@4b0000 { > > Are there other USB PHYs on this platform? No. Only two USB PHYs. > >> +            compatible = "qcom,ipq5332-usb-uniphy"; >> +            reg = <0x4b0000 0x800>; >> + >> +            clocks = <&gcc GCC_PCIE3X1_PHY_AHB_CLK>, >> +                 <&gcc GCC_USB0_PHY_CFG_AHB_CLK>, >> +                 <&gcc GCC_USB0_PIPE_CLK>; >> +            clock-names = "ahb", >> +                      "cfg_ahb", >> +                      "pipe"; >> + >> +            resets =  <&gcc GCC_USB0_PHY_BCR>; >> + >> +            #clock-cells = <0>; >> +            clock-output-names = "usb0_pipe_clk_src"; > > I'm not sure, what is the best approach her. For QMP USB and PCIe PHYs > we had to use fixed names historically. On the other hand for QMP DP > clocks we are fine with the generated names. I'd prefer the latter case. Sure, will use the generated names. > >> + >> +            qcom,phy-usb-mux-sel = <&tcsr 0x10540>; >> + >> +            #phy-cells = <0>; >> + >> +            status = "disabled"; >> +        }; >> + >>           qfprom: efuse@a4000 { >>               compatible = "qcom,ipq5332-qfprom", "qcom,qfprom"; >>               reg = <0x000a4000 0x721>; >> @@ -200,7 +223,7 @@ gcc: clock-controller@1800000 { >>                    <&sleep_clk>, >>                    <0>, >>                    <0>, >> -                 <0>; >> +                 <&usbphy1>; >>           }; >>             tcsr_mutex: hwlock@1905000 { > -- Thanks, Praveenkumar