Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1192040rwd; Wed, 7 Jun 2023 12:24:59 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7x5GcvTe2hhPxMoMTXclx0TrDeJeAsVuuiixxmrmyAuPR2jpf0Faq3rNl8D582xH0pu7Ko X-Received: by 2002:a17:90a:354:b0:252:27d9:7ef0 with SMTP id 20-20020a17090a035400b0025227d97ef0mr5336075pjf.27.1686165899014; Wed, 07 Jun 2023 12:24:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686165898; cv=none; d=google.com; s=arc-20160816; b=T+1NUwHdEh9GF6psevPe1slVyzPJoFyzu8qw4KFcQg+dLLIK/8YQrpHv5nAhwMkXUS dNXnCK3IlZGtGJfN2NbNrNJ4b8/BV7etyg/OxgVNl2skplrLuhh8QCUZBa+J61EMkfLm a8OEw/5kcqgheo9EiT3qU8cduL64WtSm4V0N+IIcsf+XKqSXd3qCO7Wk7M6e8whI08O+ sv/o9e8ARps7BMzstWbGeLqfLCR7n6Z0Fo+mLKZr/XZt3244h7uObZt8VtvZt5I3zMBc jQ6ln5M/iLWvN8K+Yua8atVtV2QiIXHZv8EB1epMTfljUIHh852By8R9EnWeqdZHrWXk D0hw== 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=5oRVbakJKhxqzwhoXotbCqDyKWlJ4PhQpqo/n0s7L7k=; b=ya+L679GVMrBci+fEqJ+basLtpEmoJ5QYFYQsYi7rnS7Ke5aKFXl9HVGKxJdhtIu2Q 0NJIW/Q1Ia3zRbQokIzSQryBqsKhBatUZi6Zas58+1DR+dmZ6zFAIwxzTuokCOwxy1Ph oxiJusgui449/3Dsof0YgiRzUSp+BAYwJHeVAkYY4T2CowXQzAnGylNnVeI+ZR96GNrW xHGGL658I5LX1Tys3MoJMsyDfpfa3LldKRcxCRWy3DfifEX86AD1S9A7a8MTxxWZ5XP/ nsNdE1mvSskFs6QubE1SKLSc6b0lJgqWl6OP/eJt3s3YZgDbgjVgVAG9ljwOFaCTxnX6 sFhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SaHwxSTH; 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 i92-20020a17090a3de500b00250365255b9si1501298pjc.116.2023.06.07.12.24.46; Wed, 07 Jun 2023 12:24:58 -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=SaHwxSTH; 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 S231942AbjFGSfX (ORCPT + 99 others); Wed, 7 Jun 2023 14:35:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232584AbjFGSfU (ORCPT ); Wed, 7 Jun 2023 14:35:20 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C06BF1BF0 for ; Wed, 7 Jun 2023 11:35:15 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-97460240863so1041296366b.0 for ; Wed, 07 Jun 2023 11:35:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686162914; x=1688754914; 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=5oRVbakJKhxqzwhoXotbCqDyKWlJ4PhQpqo/n0s7L7k=; b=SaHwxSTHyCK6ZLqMnQ2tRMbD/FXv8Q0MPpXiMqqMCSpcpygJNIx7kzZV5OPWY07Vjy FNfE+d7sfzmTr7HFJ2d17pqik93wj5/uGHjMSMjx3IqY4yEYAEplaeUL6lxdldBJsmGV 3lOPMHbN3vb2qbIqkWHxuQku2kAOioy9Oxm6gmP/Jn5i+aquF5WnSS1P/pWvX5E247mM UmFHLaAxaF7MoNbucuTv6if4W5N8Omu72Ktp9e9nqxwQfzic+T25VD0lr153Zc1J5rI+ FF/pLCcrHwXUIP4J4NszE6j9SV6nRjo4dPmh7PmGqz2uW2n4ZieJ8ejyaQl76gD5FgT/ xA8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686162914; x=1688754914; 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=5oRVbakJKhxqzwhoXotbCqDyKWlJ4PhQpqo/n0s7L7k=; b=Pbc5b73GJd16xXEgYWXLT6JD1Dsl9qD3R8LW/kSzB+hHY1RaheCAlc5K+0ujzGFu2Y t+ZP3WJMu6yATubUNxI3XVOjjh8nAAiCfv2vBcxlvkS9OEwbTs6pChOo6KVrbAYAg/+r 5Wvy+oT5upq4gC+NKwU8c2Rx4iScrJH14v72lwYbuo1sS/B/anV7oUwUwU22Qy+Z0JVU dMh9LfF0nMivVsIWoCVP5rknSiDDnOIhRpiFLVdgq0dZqVS3+4BwLNMCzhwg4wwVBSgm p3N6+dl3iLtBC0OYkWUf1pSDdpnM3KDRPMfrg+F5+EVm2o8Im4EOmWk2S7NCZDhYQ0rH GuUg== X-Gm-Message-State: AC+VfDx+8K1Mq3gaJWd9A5/qS6EelpzrG6vFe6g6xDr27D1l9SNWbPzM UbmnnG9Kl4iB34lOPw2gMhMXEg== X-Received: by 2002:a17:907:9444:b0:973:d48a:bc20 with SMTP id dl4-20020a170907944400b00973d48abc20mr6138655ejc.19.1686162914007; Wed, 07 Jun 2023 11:35:14 -0700 (PDT) Received: from [192.168.1.20] ([178.197.219.26]) by smtp.gmail.com with ESMTPSA id bq4-20020a170906d0c400b0096f7105b3a6sm7155657ejb.189.2023.06.07.11.35.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 07 Jun 2023 11:35:13 -0700 (PDT) Message-ID: <49258bcf-da13-78a9-8ea6-4fc7bd9a4b1d@linaro.org> Date: Wed, 7 Jun 2023 20:35:09 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.2 Subject: Re: [PATCH 7/9] 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, gregkh@linuxfoundation.org, catalin.marinas@arm.com, will@kernel.org, mturquette@baylibre.com, sboyd@kernel.org, p.zabel@pengutronix.de, arnd@arndb.de, geert+renesas@glider.be, neil.armstrong@linaro.org, nfraprado@collabora.com, broonie@kernel.org, rafal@milecki.pl, quic_srichara@quicinc.com, quic_varada@quicinc.org, quic_wcheng@quicinc.com, linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org References: <1b48e737aa14f5b5539cbf04d473182121d5b1ad.1686126439.git.quic_varada@quicinc.com> From: Krzysztof Kozlowski In-Reply-To: <1b48e737aa14f5b5539cbf04d473182121d5b1ad.1686126439.git.quic_varada@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 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 > + compatible = "qcom,ipq5332-m31-usb-hsphy"; > + reg = <0x0007b000 0x12C>, > + <0x08af8800 0x400>; Lowercase hex only. > + 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. > + }; > + > + 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 > + 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. > + > + clocks = <&gcc GCC_USB0_MASTER_CLK>, > + <&gcc GCC_SNOC_USB_CLK>, > + <&gcc GCC_USB0_SLEEP_CLK>, > + <&gcc GCC_USB0_MOCK_UTMI_CLK>; Fix alignment. > + > + clock-names = "core", > + "iface", > + "sleep", > + "mock_utmi"; Fix alignment. > + > + interrupts-extended = <&intc GIC_SPI 134 IRQ_TYPE_LEVEL_HIGH>; > + interrupt-names = "pwr_event"; > + Best regards, Krzysztof