Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp611581rwd; Wed, 7 Jun 2023 04:49:10 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7lr9hhWEgWqmk+N3ZACuKb3D+XodBfOA5R7j9TxsWz9p1wcIKirZ4WO8T4xZyDoEGOZvTz X-Received: by 2002:a17:902:f7cc:b0:1b1:7362:9a18 with SMTP id h12-20020a170902f7cc00b001b173629a18mr1728256plw.27.1686138549898; Wed, 07 Jun 2023 04:49:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686138549; cv=none; d=google.com; s=arc-20160816; b=ZKa59UCuhMYCqtpZhUGlPfyKp3XWmdXEhlQSZZpnKQP7AQLv+OgQo3LB2rFsHsMFX7 xGA/k/WeB87t6gQ3pjBcs808p5ZY1N3fYc5iW1LKVQCuko37jjJk+O1cPrIGaIqkU9Ib t6qWsK7fzS+7eYCr0mRif4nIABnFPKDk/KM4Um4Ky5fg6T629719zx3UJM4hzlzXNS5m yVWJHcMMBvRmZaBGkAcT7tBlfs6Msfo4Qk8zTxaGghMNC0c0olAbT+wxLZicJ8q0c19N 6qQcNZqHoQBTEF2izZlXPH+MY/TxcEFjGF+BsNN4qwGKAU9TQ9t35R5BldIuZ/Zyeo9T k1sw== 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=MWQ2DTj6hIwW0/IdgpRWb6L4LraDGp2rzSEEh2MB8A4=; b=UNLOODIXFYALh2NzF8ji18wVahSsEfSBMDcaU5Qi93aJ6NCf2T9r+VqMINUJcA5p3F vcqZmCkWNZMUrk41jRx8zLeB+gDYTX9H7YKVaffpB3Qp/6Uiu8zd4IiP5kX5IaGb5Onu ffi+ycd9FrtO/axPetG/J7AKFRsFX0wIe+Wi57yUe3eUn1ryy+UA3gUJyi7IuZgFgbpB wyrU+sRCIg2EAiH33aLvTd7bmQ6XFbPeXZSWVxOewAlrEt4yxLBDxtkGLTamEZVO8+Hf 2OwC/eZbb776OHvZLwZIZjT1hnxm0sTckSdFJwqjPfPnYutvJdqR+9jF1KdPt09ZCU5i wnEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=n2zMrMYn; 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 b4-20020a170903228400b001ac482e25a0si1703240plh.374.2023.06.07.04.48.56; Wed, 07 Jun 2023 04:49:09 -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=n2zMrMYn; 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 S239204AbjFGLIZ (ORCPT + 99 others); Wed, 7 Jun 2023 07:08:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239169AbjFGLIV (ORCPT ); Wed, 7 Jun 2023 07:08:21 -0400 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 691DD1BE6 for ; Wed, 7 Jun 2023 04:07:46 -0700 (PDT) Received: by mail-lj1-x233.google.com with SMTP id 38308e7fff4ca-2b1bdfe51f8so5756071fa.0 for ; Wed, 07 Jun 2023 04:07:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686136062; x=1688728062; 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=MWQ2DTj6hIwW0/IdgpRWb6L4LraDGp2rzSEEh2MB8A4=; b=n2zMrMYnK70GNhmkoJoQnlGStxY6XslL4Sgn8H2ptjf5KO/pAhhtRkaVg/BpbfFfMZ 7A78SCAvPaCS5iHKKf34rsme5FziH/X2IbJAZxZWKgpxs72hRoCOSbAReuLnMoUAVYYO A56Rnpq5Hq3hJXvCkInhmUZsTkZNvcEljVmlNZNvf5o/6AP2/zK6uuKE0HyZnqp/qk3w 822/MGYOw2su3Q16911oK1R9+X1HUzW1ly0yjeXBIl7z/ikFwz5/HJgFcYd09cwtAID1 r+6Ln0ceq0UWtF/01o5rW7ltPLmL2UWUfbTGcckXK+AwiaGlUbwfOw0/BrZkjKheJrHg ZX1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686136062; x=1688728062; 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=MWQ2DTj6hIwW0/IdgpRWb6L4LraDGp2rzSEEh2MB8A4=; b=jrSSurMYPdG/YzI0KMZ4OuntcFVUfOw3e8b50c9OMIB07wL+dsu8dvMPwFDk6o7DzR iHvV6hPmoou+kQLOGHc5+T6CetYsQnBYaVir6w5v22qrtfS074m1shQHsPIi0NrpS/4I KBkhSHzy8UPP7sc25Mz2GKzfA5rIMfJc/y4sUKBtKwCkkQdz0ZAouFVfinaamXp9EryX jV3ruDtqwf1prfKniOZfXr9+0R6WkokTWs7sAd58MA8HBWpKxauTtvgVrhX6HtAuW9F7 wW6z+JuWPCEW7zssVsE5bwhgFWDUbBM9H5uMhLr7QfDdme12SjdfJ++ygqHTSAxRFJYz oQCQ== X-Gm-Message-State: AC+VfDzs/KgpKqeimtIgfuZEvN3RFXLTJtw3OoZ0tlQOXw6O6aI1RUWN sf+4+lH3XrKly3AkOWGwsvipiA== X-Received: by 2002:a2e:8096:0:b0:2a9:ec7e:8f58 with SMTP id i22-20020a2e8096000000b002a9ec7e8f58mr1846271ljg.7.1686136061682; Wed, 07 Jun 2023 04:07:41 -0700 (PDT) Received: from ?IPV6:2001:14ba:a0db:1f00::8a5? (dzdqv0yyyyyyyyyyybcwt-3.rev.dnainternet.fi. [2001:14ba:a0db:1f00::8a5]) by smtp.gmail.com with ESMTPSA id z13-20020a2e9b8d000000b002b1a4238c96sm2212966lji.128.2023.06.07.04.07.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 07 Jun 2023 04:07:40 -0700 (PDT) Message-ID: <2cd479f4-e7bc-fe0a-02aa-3429712ffbd1@linaro.org> Date: Wed, 7 Jun 2023 14:07:31 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v12 3/5] arm64: dts: qcom: ipq9574: Add USB related nodes Content-Language: en-GB To: Varadarajan Narayanan , agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, gregkh@linuxfoundation.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, mturquette@baylibre.com, sboyd@kernel.org, quic_wcheng@quicinc.com, linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org References: <5a14d113e90c85777d1c01af38a85f40d35519e0.1686045347.git.quic_varada@quicinc.com> From: Dmitry Baryshkov In-Reply-To: <5a14d113e90c85777d1c01af38a85f40d35519e0.1686045347.git.quic_varada@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed 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 13:48, Varadarajan Narayanan wrote: > Add USB phy and controller related nodes > > SS PHY need two supplies and HS PHY needs three supplies. 0.925V > and 3.3V are from fixed regulators and 1.8V is generated from > PMIC's LDO > > Reviewed-by: Dmitry Baryshkov > Signed-off-by: Varadarajan Narayanan > --- > Changes in v12: > - Rebase > Changes in v11: > - Rename dwc_0 -> usb_0_dwc3 > Changes in v10: > - Fix regulator definitions > Changes in v8: > - Change clocks order to match the bindings > Changes in v7: > - Change com_aux -> cfg_ahb > Changes in v6: > - Introduce fixed regulators for the phy > - Resolved all 'make dtbs_check' messages > > Changes in v5: > - Fix additional comments > - Edit nodes to match with qcom,sc8280xp-qmp-usb3-uni-phy.yaml > - 'make dtbs_check' giving the following messages since > ipq9574 doesn't have power domains. Hope this is ok > > /local/mnt/workspace/varada/varda-linux/arch/arm64/boot/dts/qcom/ipq9574-al02-c7.dtb: phy@7d000: 'power-domains' is a required property > From schema: /local/mnt/workspace/varada/varda-linux/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-usb3-uni-phy.yaml > /local/mnt/workspace/varada/varda-linux/arch/arm64/boot/dts/qcom/ipq9574-al02-c7.dtb: usb@8a00000: 'power-domains' is a required property > From schema: /local/mnt/workspace/varada/varda-linux/Documentation/devicetree/bindings/usb/qcom,dwc3.yaml > > Changes in v4: > - Use newer bindings without subnodes > - Fix coding style issues > > Changes in v3: > - Insert the nodes at proper location > > Changes in v2: > - Fixed issues flagged by Krzysztof > - Fix issues reported by make dtbs_check > - Remove NOC related clocks (to be added with proper > interconnect support) > --- > arch/arm64/boot/dts/qcom/ipq9574.dtsi | 104 ++++++++++++++++++++++++++++++++++ > 1 file changed, 104 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/ipq9574.dtsi b/arch/arm64/boot/dts/qcom/ipq9574.dtsi > index 0baeb10..8f7c59e 100644 > --- a/arch/arm64/boot/dts/qcom/ipq9574.dtsi > +++ b/arch/arm64/boot/dts/qcom/ipq9574.dtsi > @@ -94,6 +94,24 @@ > }; > }; > > + fixed_3p3: s3300 { > + compatible = "regulator-fixed"; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + regulator-boot-on; > + regulator-always-on; > + regulator-name = "fixed_3p3"; > + }; > + > + fixed_0p925: s0925 { > + compatible = "regulator-fixed"; > + regulator-min-microvolt = <925000>; > + regulator-max-microvolt = <925000>; > + regulator-boot-on; > + regulator-always-on; > + regulator-name = "fixed_0p925"; > + }; > + These regulators are provided by the board, not by the SoC itself. As such they should go to the board DT files. Please excuse me for not noticing this during earlier review stage. I was too concentrated on not making them non-USB-specific. > memory@40000000 { > device_type = "memory"; > /* We expect the bootloader to fill in the size */ > @@ -465,6 +483,92 @@ > status = "disabled"; > }; > > + usb_0_qusbphy: phy@7b000 { > + compatible = "qcom,ipq9574-qusb2-phy"; > + reg = <0x0007b000 0x180>; > + #phy-cells = <0>; > + > + clocks = <&gcc GCC_USB0_PHY_CFG_AHB_CLK>, > + <&xo_board_clk>; > + clock-names = "cfg_ahb", > + "ref"; > + > + resets = <&gcc GCC_QUSB2_0_PHY_BCR>; > + status = "disabled"; > + }; > + > + usb_0_qmpphy: phy@7d000 { > + compatible = "qcom,ipq9574-qmp-usb3-phy"; > + reg = <0x0007d000 0xa00>; > + #phy-cells = <0>; > + > + clocks = <&gcc GCC_USB0_AUX_CLK>, > + <&xo_board_clk>, > + <&gcc GCC_USB0_PHY_CFG_AHB_CLK>, > + <&gcc GCC_USB0_PIPE_CLK>; > + clock-names = "aux", > + "ref", > + "cfg_ahb", > + "pipe"; > + > + resets = <&gcc GCC_USB0_PHY_BCR>, > + <&gcc GCC_USB3PHY_0_PHY_BCR>; > + reset-names = "phy", > + "phy_phy"; > + > + status = "disabled"; > + > + #clock-cells = <0>; > + clock-output-names = "usb0_pipe_clk"; > + }; > + > + usb3: usb@8af8800 { > + compatible = "qcom,ipq9574-dwc3", "qcom,dwc3"; > + reg = <0x08af8800 0x400>; > + #address-cells = <1>; > + #size-cells = <1>; > + ranges; > + > + clocks = <&gcc GCC_SNOC_USB_CLK>, > + <&gcc GCC_USB0_MASTER_CLK>, > + <&gcc GCC_ANOC_USB_AXI_CLK>, > + <&gcc GCC_USB0_SLEEP_CLK>, > + <&gcc GCC_USB0_MOCK_UTMI_CLK>; > + > + clock-names = "cfg_noc", > + "core", > + "iface", > + "sleep", > + "mock_utmi"; > + > + assigned-clocks = <&gcc GCC_USB0_MASTER_CLK>, > + <&gcc GCC_USB0_MOCK_UTMI_CLK>; > + assigned-clock-rates = <200000000>, > + <24000000>; > + > + interrupts-extended = <&intc GIC_SPI 134 IRQ_TYPE_LEVEL_HIGH>; > + interrupt-names = "pwr_event"; > + > + resets = <&gcc GCC_USB_BCR>; > + status = "disabled"; > + > + usb_0_dwc3: usb@8a00000 { > + compatible = "snps,dwc3"; > + reg = <0x8a00000 0xcd00>; > + clocks = <&gcc GCC_USB0_MOCK_UTMI_CLK>; > + clock-names = "ref"; > + interrupts = ; > + phys = <&usb_0_qusbphy>, <&usb_0_qmpphy>; > + phy-names = "usb2-phy", "usb3-phy"; > + tx-fifo-resize; > + snps,is-utmi-l1-suspend; > + snps,hird-threshold = /bits/ 8 <0x0>; > + snps,dis_u2_susphy_quirk; > + snps,dis_u3_susphy_quirk; > + dr_mode = "host"; > + }; > + }; > + > intc: interrupt-controller@b000000 { > compatible = "qcom,msm-qgic2"; > reg = <0x0b000000 0x1000>, /* GICD */ -- With best wishes Dmitry