Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp194101rdf; Mon, 20 Nov 2023 22:58:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IG+G6E1H+138syskmfo1WvmsenGIavCJlc4ieqZKj3CY3mlGNEtjqR4HBM1Fz5J+b7kT8jR X-Received: by 2002:a17:903:ca:b0:1cc:385b:456a with SMTP id x10-20020a17090300ca00b001cc385b456amr6542918plc.44.1700549897567; Mon, 20 Nov 2023 22:58:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700549897; cv=none; d=google.com; s=arc-20160816; b=AA8hQgzFwqp9QCTSKRNCJaWJPGlBzarsTQks76BQ3+XGEG8+IF4y5MogP7nehInwmy QMmvEu9OdVn1OGCMtKOUsb3sip0w+3DOrJdC9wfxrWu9NTAWv4AJHfaCeQ7f0Jl+Ooj5 X8wH69ZVTwAil9rwwPMkqVRY2gZpGgQOS+HJ5z82z1yIv/SZQvqqT0g9k+gmAn6JcpGc 12AIdmpjPeE41jqa4OIlfgYp9h5woeDtKcQjpt4Px0rr/IqPEAxAhl9cDupxdrAFM5ZI ebtsx154V2kR9UxGm9UiQovBJEvVD7eFWbxFaz17WMWM2iQ2sZwz5sCU+Nu02jDGO7uF w+cg== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=6LWOToaRl3u8DHoicgFk93G3zwmTCXkSJtELLAUwCuI=; fh=/oaDO6gbTSLfOfIkMvS344b5OPsjt/UUgqAS1DeYwmQ=; b=kYg4Yx5aKHszx7fY8rmqbSPqgjCt/6kF9un4T0XDF9K7czOp5DNvo4GIaHApSmoh00 SvlM9wU86KotRRnA19t12t6+sBo203nSseCfhvv73xqDLgpiFhhu/VPbluIgADAOs53Q kAizwZbn1hJhpS2+9rym8bwXPk2T5ulTL0pq0n/14XkRTN0NjbJxTWdl1Z3dhOwRdXNV HiBNTLC4Z261hzxYPJuPxWGrbHZzyYsWiWHdrLgDefzcsABjBq9WLE4saozGvxA0maKE 1jQvv6R11SfHflHnf4Qfb6RqYdZNBUbfuUQLUObiCMsPbsC59F4wUogrQukO0g17pbnJ Rf3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cIPNBoVW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id k10-20020a170902ce0a00b001b222cd9826si10452348plg.349.2023.11.20.22.58.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 22:58:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cIPNBoVW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id DB94F807E448; Mon, 20 Nov 2023 22:55:13 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229492AbjKUGzA (ORCPT + 99 others); Tue, 21 Nov 2023 01:55:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229454AbjKUGy6 (ORCPT ); Tue, 21 Nov 2023 01:54:58 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93A37BB for ; Mon, 20 Nov 2023 22:54:55 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7927CC433C8; Tue, 21 Nov 2023 06:54:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700549695; bh=RC5ZdYA1C0XmYYroKXT596EA+PosEEwbcr5BlUftzz4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cIPNBoVW+CIEuujkcy643EdBJLG/1c5e/LQ3JEe5jKWq4O2dwGcXb9SIuRKd4bdgH MoFaA3SCR0YBWn8bjyWvEE8naeFCgWR/7vD0CiXeyQrPYV8eLs/qKpLcEiWMTi2jCS HWgHAlVcR5dPQmnPzdF16zzataafTPMOTOkbo7wzgkvfNMKmQn9uKBOe24QIg26Eeg V6r1uJ3TgInM9NHdeGAI8QVaFQFegEo/uMqI3W5GQd6be3BNvDbxeVVmoiW3Gb6G4V G+r7n1wNayHQ4E7IjfmiaN/jE1OQlakHZXXGMF+jeGFMJPKNjMAHX+uIj5S3sLHeDA NAUyS+7wwis1A== Date: Tue, 21 Nov 2023 12:24:40 +0530 From: Manivannan Sadhasivam To: Krzysztof Kozlowski Cc: Dmitry Baryshkov , Andy Gross , Bjorn Andersson , Konrad Dybcio , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Rob Herring , Bjorn Helgaas , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Manivannan Sadhasivam Subject: Re: [PATCH v2 2/2] dt-bindings: PCI: qcom: correct clocks for SC8180x and SM8150 Message-ID: <20231121065440.GB3315@thinkpad> References: <20231120070910.16697-1-krzysztof.kozlowski@linaro.org> <20231120070910.16697-2-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Mon, 20 Nov 2023 22:55:14 -0800 (PST) On Mon, Nov 20, 2023 at 11:48:25AM +0100, Krzysztof Kozlowski wrote: > On 20/11/2023 11:11, Dmitry Baryshkov wrote: > >> + then: > >> + oneOf: > >> + - properties: > >> + clocks: > >> + minItems: 7 > >> + maxItems: 7 > >> + clock-names: > >> + items: > >> + - const: pipe # PIPE clock > >> + - const: aux # Auxiliary clock > >> + - const: cfg # Configuration clock > >> + - const: bus_master # Master AXI clock > >> + - const: bus_slave # Slave AXI clock > >> + - const: slave_q2a # Slave Q2A clock > > > > Mani promised to check whether we should use the 'ref' clock for the > > PCIe hosts or not. > > I'd ask to delay this patch until we finish that investigation. > > Right. I thought that his Rb-tag solves it, but if not - let's wait. > We discussed mostly offline, after I gave my R-b tag. I checked with Qcom on the use of "ref" clock in both PCIe and PHY nodes. It turned out that both nodes indeed need the "ref" clock, but not the GCC.*CLKREF that comes out of GCC. GCC.*CLKREF is only needed by the PHY node since PHY uses it for it's internal logic. For PCIe node, RPMH_CXO_CLK should be used as "ref" clock since it is used by the PCIe IP internally. This behavior applies to other peripherals like UFS, USB as well with same inconsistency in DT. So we need to fix this for those peripherals also. I can take up PCIe and UFS, and someone needs to fix USB. And for this patch, "ref" clock needs to be added to SM8150. Thanks Dmitry for pointing this out mess! - Mani > Best regards, > Krzysztof > -- மணிவண்ணன் சதாசிவம்