Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp2466535rdg; Mon, 14 Aug 2023 03:38:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHIBDRETVDZd7pwYMEdjWTIO25D0LgnVl8IOyrzoVDsTIcks0oDisIvIC/0CP80cTM6Nv+9 X-Received: by 2002:a05:6a00:3987:b0:680:f6fe:8908 with SMTP id fi7-20020a056a00398700b00680f6fe8908mr7595706pfb.9.1692009526222; Mon, 14 Aug 2023 03:38:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692009526; cv=none; d=google.com; s=arc-20160816; b=nP4B8OzWpzNZlJBYXPFPXvnzCo/nYFBolcC6ZemY/WdHEaVRXebWyud5i6j/AA0F1p NdP/ZqBj0ODN3TLcV+4H/D7+J9iiGndGmL1ubYystWeEa+SIa5kcVE0M4SrE9yeGZ9Wo /GrSbFVsPjJw0z3ohiTScXyjrMuG9VmfkT5CdLhO/sdYQaAlbKU7sudLtjjzIRpXF0cu PqaCjvihGyyKEEpnJM68sQEAvag0ut2Y4bgn1cHnmfXKXnnKo6+8dK+CUE93FrDUu2Rm SVZ1tKIQ5ieSUDrVsYzeGe44lCTr96nQ1NQNpN0JzPb0qyIDgzLk49O98MD9eshrGq6m gIpA== 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:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=+ik4gXzePMNDVXoA4qrXdz513andF8ufeDJrefrHPgs=; fh=DKrVuQO/23e9EpIySA79H1+rUc8RCLfIaufrmm7q3e0=; b=Bjd0W+fm4ro5snx+Np3a7HJygIKMXsJXTVTtNATlbQk3rBAlazFsYGwCaXeVZq0FVg KIuPnfsMUqSi+EOACllJVDFWQ/YTXlIwaxBCAOMnZlW7R+klRTLpHNZta+nHn3m0fWnm yvCSEFVahsPPtHcNwwbHRBhs7mJ0TND/i37qQ2pZ4h6TLd6zpWTglmgbNe3N+Q/6eFlk CIx5UH+vQE6Yr07HM7px9KyBulJWWHA9D2A1Yji1iMS+OflzWMrn1WnA8rZtqe5icycb bbHDzXL8C0EYT6DP9jkN19+SZ8FCMK7w6Kb7a3CnBciy51n1tfX3BS0Aa2kpSFr+rZRR 7z7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Cuwgeg1o; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v186-20020a6389c3000000b00547b25ea099si7770822pgd.682.2023.08.14.03.38.33; Mon, 14 Aug 2023 03:38:46 -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=@linaro.org header.s=google header.b=Cuwgeg1o; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234671AbjHNKCz (ORCPT + 99 others); Mon, 14 Aug 2023 06:02:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236407AbjHNKCU (ORCPT ); Mon, 14 Aug 2023 06:02:20 -0400 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 526711735 for ; Mon, 14 Aug 2023 03:02:05 -0700 (PDT) Received: by mail-ed1-x535.google.com with SMTP id 4fb4d7f45d1cf-52564f3faf7so1083935a12.1 for ; Mon, 14 Aug 2023 03:02:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692007324; x=1692612124; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=+ik4gXzePMNDVXoA4qrXdz513andF8ufeDJrefrHPgs=; b=Cuwgeg1oa9UiSAgOBKYu0Awo2j/aqHQF1fXXMcimETzCFxl/+vxxrRMeirwGB6S7Bz Vi5iuaz8mof1AbUXgd8pwXCYh1ZcHjntZep94U1XR5VziXLjLR4ea2XJH6OYLsfg3tjp EyvmO8zKNvzEKtV40aki0Out/JHLkcEcemC4P7ETzUm/IY8pi5Dl0cQLjj+a4oaAwYvl 9SGodBriSN4kDTzLh+jHPbr1T1GXJM2uf1VtRxdYdxF4Q8QRIGWYNIsL7VTgNM3NZ7QM aByl7AujH1eQ4nrklkKyLqBKP+GqLo/7nXtwGtztKido4c17MeMi8vjch7zpfPmL+4D9 Dycw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692007324; x=1692612124; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=+ik4gXzePMNDVXoA4qrXdz513andF8ufeDJrefrHPgs=; b=ZT2f/5wOK5VfKf6o0b6ZIN7jl2yme7+lfuJc6XKUS324g2eyoRFprW/YAhhAhCZZxX ylEtz9KxbQSV/parXvUqg7zPwTKzqjYnmBWtmAavs8rVxwD1Uu4MzcqRXHumjONP2ZXH ErEJDqjic0pyRB3vJBx62ovQa4+z80ItJ2n0ME+l3RV+nySW+Z/Phv5smgkXlCk5464X o3N8XwxVusZvdhm8VJrH2pMzfV+eT7Fda3C/nM1kR+dSQ6SRnuCCuiEAwFDqzfKxyCtn zgyui2cSRDgi4X/nAfa51CzOhoM1rAXOflD8vVOG2NhwoZoRYTRtBFLRjxOZQJ89igFn tRJg== X-Gm-Message-State: AOJu0YzIrcIqxAh9o9PSaMQKY2OL7QtJnRN4DzPli1jAGOLJJYhFrWgM n9efhYd+ACBDDGCTknX4X1h6Cw== X-Received: by 2002:aa7:c557:0:b0:522:cef7:83c3 with SMTP id s23-20020aa7c557000000b00522cef783c3mr7646463edr.8.1692007323433; Mon, 14 Aug 2023 03:02:03 -0700 (PDT) Received: from [192.168.1.20] ([178.197.214.188]) by smtp.gmail.com with ESMTPSA id y18-20020aa7ccd2000000b005227e53cec2sm5403411edt.50.2023.08.14.03.02.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 14 Aug 2023 03:02:03 -0700 (PDT) Message-ID: <7c05f889-acee-4ef7-7fce-c30baa760138@linaro.org> Date: Mon, 14 Aug 2023 12:01:59 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Subject: Re: [PATCH v7 3/5] arm64: dts: qcom: ipq5332: Add USB related nodes Content-Language: en-US To: Varadarajan Narayanan , agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, vkoul@kernel.org, kishon@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, catalin.marinas@arm.com, will@kernel.org, p.zabel@pengutronix.de, arnd@arndb.de, geert+renesas@glider.be, nfraprado@collabora.com, rafal@milecki.pl, peng.fan@nxp.com, quic_srichara@quicinc.com, linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <066299506138ffcf1a3135b6f1a4609eee46ddf9.1691660905.git.quic_varada@quicinc.com> From: Krzysztof Kozlowski In-Reply-To: <066299506138ffcf1a3135b6f1a4609eee46ddf9.1691660905.git.quic_varada@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,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 On 10/08/2023 11:56, Varadarajan Narayanan wrote: > Add USB phy and controller nodes. > > Signed-off-by: Varadarajan Narayanan > --- > v6: > Remove clock names > Move the nodes to address sorted location > v5: > Use generic phy instead of usb-phy > 'make CHECK_DTBS=y DT_SCHEMA_FILES=qcom dtbs_check' passed > 'DT_CHECKER_FLAGS='-v -m' DT_SCHEMA_FILES=qcom dt_binding_check' passed > v4: > Change node name > Remove blank line > 'make CHECK_DTBS=y DT_SCHEMA_FILES=qcom qcom/ipq5332-rdp441.dtb' passed > 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 | 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 8bfc2db..c45d9d4 100644 > --- a/arch/arm64/boot/dts/qcom/ipq5332.dtsi > +++ b/arch/arm64/boot/dts/qcom/ipq5332.dtsi > @@ -145,6 +145,19 @@ > #size-cells = <1>; > ranges = <0 0 0 0xffffffff>; > > + usbphy0: phy@7b000 { > + compatible = "qcom,ipq5332-usb-hsphy"; > + reg = <0x0007b000 0x12c>; > + > + clocks = <&gcc GCC_USB0_PHY_CFG_AHB_CLK>; > + > + resets = <&gcc GCC_QUSB2_0_PHY_BCR>; > + > + #phy-cells = <0>; > + > + status = "disabled"; > + }; > + > qfprom: efuse@a4000 { > compatible = "qcom,ipq5332-qfprom", "qcom,qfprom"; > reg = <0x000a4000 0x721>; > @@ -290,6 +303,48 @@ > status = "disabled"; > }; > > + usb: usb2@8a00000 { usb@ Node names must be generic. > + compatible = "qcom,ipq5332-dwc3", "qcom,dwc3"; > + reg = <0x08af8800 0x400>; OK, so this was not really checked for any warnings. It does not look like you tested the DTS against bindings. Please run `make dtbs_check W=1` (see Documentation/devicetree/bindings/writing-schema.rst or https://www.linaro.org/blog/tips-and-tricks-for-validating-devicetree-sources-with-the-devicetree-schema/ for instructions). Best regards, Krzysztof