Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp851509rwl; Fri, 31 Mar 2023 03:25:57 -0700 (PDT) X-Google-Smtp-Source: AKy350bnnBX/YGHJKQn091Fejc552m9GTmQlFU/x7VWoW3bL8oPcAGa3xBgYfu6zaEl1TJ0XYZ3z X-Received: by 2002:a17:906:28e:b0:947:404b:eb2 with SMTP id 14-20020a170906028e00b00947404b0eb2mr5213203ejf.0.1680258357098; Fri, 31 Mar 2023 03:25:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680258357; cv=none; d=google.com; s=arc-20160816; b=mNBNY2w6Ds33IhHhQHKVXtDbSCaP5XXL8obtRESj7mcoTIccESoicGiJfxaUhdA0PP dZwSsuPmU7UYSNgeBxE7uiaRIyQu63GKJuoFD4yw3Mo08xhDvYT6Jb92O3qU8U5cSuU8 ieztwUCe5EWGL5G9JwT+mBDvCe5MvqSfnli1PP4QcfZuZxPVTkUAc+g/QTmI8iVrq3AV +zV8yGXwnvhAmMgoc4r3PcsnSNzYtFrwANFksgjOZVoSnPWone3Pswz/Pwti47GaChPt en+v5fidQ3UouC6K/hkIZIQuMptjsugkJBU6s82mRgR7gdqA+I5ENf+ZmoPhHyZDE4Ht 2VaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=fHUrW0bjeR5EN7nPDgo8Fh13HOfQg1LiMZ/1QX5nUIs=; b=aYl/US0SJFy7DOrU0a5aYxntY7hLTr5Upu1hqLjwW3TWOSYq905zaqiTF2vSBiEF9f vVJzpWEqh6DXNUOw86+8cTLQkUO2/pps/prSPTz+VaLjxSnC8vml7U0nSWqOgidq2c/V g/HckzOtjwl4Z0Yk6jyBWAh9r3Zqm2gSV1Dc5asMBiSYC+5nVjsv3Bml+O1Ijb5Mno27 UQt8Pf6vtvRo85MZdQspXjJFk6HCLCascVX1cKanu94bc3cesZkryNl/YWxw4+IvA73G nbkXJsyzorkOy4wAYGZ42TpzrQqKJRwroUzkTLgSLk4hPdSu6hDaY4dB82ZbsbI6DJ+3 etAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nFu8EEpL; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q16-20020a170906389000b0092a13a79360si1363381ejd.655.2023.03.31.03.25.33; Fri, 31 Mar 2023 03:25:57 -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=@kernel.org header.s=k20201202 header.b=nFu8EEpL; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231445AbjCaKWQ (ORCPT + 99 others); Fri, 31 Mar 2023 06:22:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230151AbjCaKVS (ORCPT ); Fri, 31 Mar 2023 06:21:18 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18A6A40C6; Fri, 31 Mar 2023 03:18:52 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id CE0A3B82E29; Fri, 31 Mar 2023 10:18:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7E4F0C433D2; Fri, 31 Mar 2023 10:18:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680257929; bh=5A3MI1NM5Uq/2OVg1nMJ+OOp//buqxGmoqLAWsIGndg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nFu8EEpL/yc6LfoS3gnG3bmm4mj3ewDjHxPWj9mvPwAM+ZuAZVRh6EhG7X6qmZ5HD l5cAYUlVPq/z4q9mER2jXuIvzGQonzJ8ULQPpBwjMYoZRY5GePZG+o+irlHXOp8vTD DybiTBkdYhiEMqL9fU4xX/j554JNFo3ZxyKdiU+b+4eR37mWDdX3AyotYNrWZGyExY Hpz6gF2ZhRcUsXKXT+FAJrZEbbdG5zOJlZ0SqmF21V+7YsHXJmMEGXHOZYsx2bPivZ heJvpIwi0b11XfAq9jWZbLUsCJrHq1WtlkBHa3Ola2amMkXG/fIyuYP/XTh0FiUG4r /PAYny8iqIpvA== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1piBqg-0004es-QE; Fri, 31 Mar 2023 12:19:10 +0200 Date: Fri, 31 Mar 2023 12:19:10 +0200 From: Johan Hovold To: Varadarajan Narayanan Cc: Dmitry Baryshkov , 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, gregkh@linuxfoundation.org, mturquette@baylibre.com, sboyd@kernel.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-clk@vger.kernel.org Subject: Re: [PATCH v5 7/8] arm64: dts: qcom: ipq9574: Add USB related nodes Message-ID: References: <20230331092710.GB19162@varda-linux.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230331092710.GB19162@varda-linux.qualcomm.com> X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 Fri, Mar 31, 2023 at 02:57:11PM +0530, Varadarajan Narayanan wrote: > On Thu, Mar 30, 2023 at 12:44:40PM +0300, Dmitry Baryshkov wrote: > > On Thu, 30 Mar 2023 at 11:42, Varadarajan Narayanan > > wrote: > > > > > > Add USB phy and controller related nodes > > > > > > Signed-off-by: Varadarajan Narayanan > > > --- > > > 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 > > > > No, I think it is not. > > There are no GDSCs in IPQ9574. Can you suggest how to proceed. You need to update the binding and either make the power domains property optional in the binding or dependent on the SoC. > > > + ssphy_0: phy@7d000 { > > > > Nit: usually the label usb_0_qmpphy > > > > > + 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", > > > + "com_aux", This is not the right name for this clock so you need to update the binding first. Please be more careful. > > > + "pipe"; > > > + > > > + resets = <&gcc GCC_USB0_PHY_BCR>, > > > + <&gcc GCC_USB3PHY_0_PHY_BCR>; > > > + reset-names = "phy", > > > + "phy_phy"; > > > + > > > + vdda-pll-supply = <®_usb_1p8>; > > > + vdda-phy-supply = <®_usb_0p925>; > > > + > > > + status = "disabled"; > > > + > > > + #clock-cells = <0>; > > > + clock-output-names = "usb0_pipe_clk"; > > > + }; Johan