Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp726684rwd; Thu, 15 Jun 2023 00:52:44 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6PqZP2mJzBDA9qsBMn/kO9uWNZQqbYnAr2tMFANfAWeb7WtH1oElSpJeUGmREoRaklNpMW X-Received: by 2002:a17:907:6d8c:b0:982:7714:adc9 with SMTP id sb12-20020a1709076d8c00b009827714adc9mr3596546ejc.13.1686815564527; Thu, 15 Jun 2023 00:52:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686815564; cv=none; d=google.com; s=arc-20160816; b=0DJ9mh5nVJTDIVEV82w/AwJB2RAWC6rHsrSZUHQhmxwwzL7BWm9sPe1vScxfJQt71K 4h3xXo6xZEd8w/AM7YkT5GOJHY42OmQVEF0XHX71iyuxRi+106pYN5ZP0NjAC1RR4C54 WIK2hU2MzzWEdoeOHyhdPM9uAFwEqvVCbX9OFYWDzLdENyAjRSkCvnTrizKpX037QWgY +P/wDIfNLyc29oZenMT7aGE80TOA2ucIkpLxdhyktVTKRcBeQ2foqg3WUj86shSQddnB iywy7eLeneNVqdKfy6E2COoeJuKPWNBoIUeNk9RSSs+WUG9FCK+OyIPv8mRfA/6mIirS AApg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=rJSKRzs5JjhUGXJUWKlrqncxL+5LGWUOWygPzNMfNGo=; b=im81lzj5hcpocgx0M7bexU2XIHEh7mmGltra0ImPyXJvB92Gs5r4cOvKfcNk4wBh5t Vq5Q9gTjVq5uEGfON+5gAQE0TztjXL2X4PHqTHkM9DU6hv7m3NwDA8WAZCRynmQ+TziS 4zzPBJdvbHhfb6dC6rzwxA7DQEQSQj8oU7gj31lr/yUVZP4fu+KCgpd8Ms60QVnztAI2 gjEscePhFJd2N/xDKDt3beZAl0k06hrvydFOD1B+qXEsXWi5D2wuNoi39SBPJdVgSs3U UT/v/AOIiGgU56QpILRbYoCjIMPEWITSzatT1tZTcQh6mOrpMCdCwt0qtouMxarqcamK fPAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=mtmKWYZ6; 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 kq15-20020a170906abcf00b0097839dc85dfsi9398750ejb.317.2023.06.15.00.52.20; Thu, 15 Jun 2023 00:52:44 -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=mtmKWYZ6; 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 S244609AbjFOHTr (ORCPT + 99 others); Thu, 15 Jun 2023 03:19:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244608AbjFOHTN (ORCPT ); Thu, 15 Jun 2023 03:19:13 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD29D296D; Thu, 15 Jun 2023 00:18:14 -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 35F5DV13023328; Thu, 15 Jun 2023 07:17:46 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=qcppdkim1; bh=rJSKRzs5JjhUGXJUWKlrqncxL+5LGWUOWygPzNMfNGo=; b=mtmKWYZ6vjyMlBbr2Gxx9ekv59RvSHgDyxBM0c0xYnYX4sr6uTA12MTEBICFGz+2POUW WxpMpNgR17WlPKooT7E/NGb8jjk1eUFEtzLi/c2zOh18G/Id8mRpCtGhZU4oJweQvnQw +7r+mj+mnc9tHPzIqbt2M5astntjcXLDzmQ3uFyxhS/x+QpX9nokcFEXgr07v+FpZtTk GZz7yRAtSxQNQA4eXOM2wvtzyyVTblHEdKmyiuWnqOGg2I8bRmjzNB6g+VnLKWV2FyVD XbhSQ5WQj5s6Ty5YVeeGlUunMagc8Vbp0bCEnoMbVR+zRYhrsYDfes3fgMwYp+ByDvDN LA== Received: from nasanppmta03.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3r7va2g7ne-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 15 Jun 2023 07:17:45 +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 35F7Hj02001922 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 15 Jun 2023 07:17:45 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, 15 Jun 2023 00:17:35 -0700 Date: Thu, 15 Jun 2023 12:47:30 +0530 From: Varadarajan Narayanan To: Krzysztof Kozlowski CC: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: Re: [PATCH 7/9] arm64: dts: qcom: ipq5332: Add USB related nodes Message-ID: <20230615071729.GA9973@varda-linux.qualcomm.com> References: <1b48e737aa14f5b5539cbf04d473182121d5b1ad.1686126439.git.quic_varada@quicinc.com> <49258bcf-da13-78a9-8ea6-4fc7bd9a4b1d@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <49258bcf-da13-78a9-8ea6-4fc7bd9a4b1d@linaro.org> User-Agent: Mutt/1.5.24 (2015-08-30) X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) 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: xswCbauYHkr_a5gcuYpHmqRmq45OPgjw X-Proofpoint-ORIG-GUID: xswCbauYHkr_a5gcuYpHmqRmq45OPgjw X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-06-15_04,2023-06-14_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=977 priorityscore=1501 mlxscore=0 impostorscore=0 bulkscore=0 suspectscore=0 lowpriorityscore=0 clxscore=1015 phishscore=0 malwarescore=0 spamscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2306150060 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 On Wed, Jun 07, 2023 at 08:35:09PM +0200, Krzysztof Kozlowski wrote: > On 07/06/2023 12:56, Varadarajan Narayanan wrote: > > Add USB phy and controller nodes > > > > Signed-off-by: Varadarajan Narayanan > > --- > > arch/arm64/boot/dts/qcom/ipq5332.dtsi | 55 +++++++++++++++++++++++++++++++++++ > > 1 file changed, 55 insertions(+) > > > > diff --git a/arch/arm64/boot/dts/qcom/ipq5332.dtsi b/arch/arm64/boot/dts/qcom/ipq5332.dtsi > > index c2d6cc65..3183357 100644 > > --- a/arch/arm64/boot/dts/qcom/ipq5332.dtsi > > +++ b/arch/arm64/boot/dts/qcom/ipq5332.dtsi > > @@ -383,6 +383,61 @@ > > status = "disabled"; > > }; > > }; > > + > > + usb_0_m31phy: hs_m31phy@7b000 { > > Node names should be generic. See also explanation and list of examples > in DT specification: > https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation Ok. > > + compatible = "qcom,ipq5332-m31-usb-hsphy"; > > + reg = <0x0007b000 0x12C>, > > + <0x08af8800 0x400>; > > Lowercase hex only. Ok. > > + reg-names = "m31usb_phy_base", > > + "qscratch_base"; > > + phy_type= "utmi"; > > + > > + resets = <&gcc GCC_QUSB2_0_PHY_BCR>; > > + reset-names = "usb2_phy_reset"; > > + > > + status = "okay"; > > It's by default. Drop. Ok. > > + }; > > + > > + usb2: usb2@8a00000 { > > It does not look like you tested the DTS against bindings. Please run > `make dtbs_check` (see > Documentation/devicetree/bindings/writing-schema.rst for instructions). > > Node names should be generic. See also explanation and list of examples > in DT specification: > https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation Ok. > > + compatible = "qcom,ipq5332-dwc3", "qcom,dwc3"; > > + #address-cells = <1>; > > + #size-cells = <1>; > > + ranges; > > + > > + reg = <0x08af8800 0x100>; > > reg is always after compatible. Ranges is third. Then you will spot that > address is wrong. Ok. > > + > > + clocks = <&gcc GCC_USB0_MASTER_CLK>, > > + <&gcc GCC_SNOC_USB_CLK>, > > + <&gcc GCC_USB0_SLEEP_CLK>, > > + <&gcc GCC_USB0_MOCK_UTMI_CLK>; > > Fix alignment. Ok. > > + > > + clock-names = "core", > > + "iface", > > + "sleep", > > + "mock_utmi"; > > Fix alignment. Ok. > > + > > + interrupts-extended = <&intc GIC_SPI 134 IRQ_TYPE_LEVEL_HIGH>; > > + interrupt-names = "pwr_event"; > > + Thanks Varada > Best regards, > Krzysztof >