Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1806442pxb; Wed, 9 Feb 2022 05:03:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJwEigrpzsIF/wDSrh7/a8L6ktLL5/+C3wGh4fg5okBnjrbJdFcLGl/5rPiqm89BYkg6A7vR X-Received: by 2002:a17:902:d88e:: with SMTP id b14mr2086289plz.4.1644411815444; Wed, 09 Feb 2022 05:03:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644411815; cv=none; d=google.com; s=arc-20160816; b=rcYH+o/JH507vPjX1PkXNSCqZafmd0Ql2WFL2JyKd6iKOc90kBA69vc3HbB7CpHMgY bhlwVF5jgx9JfFWzKs3wfl6idscS+h/jgcnNPqIfh00W4Fx5DLmh+HDIEKs1SMz6NggH 1FLa1/XukcPRUqX/jqDFJvfni4aGVVPtxPSj2uuj344oYBogVjwJKqyuYLTb74WVsGhf 8pbpJCZWs1lDiJJPUb7aOelclzhD6YODhPeJLMsQMOYo1lylCrPhEntfe4RDIXf9jUdr aNFdwZQV3FNoBCP6yj/6c5eVw+Q1rvK9nLYxECKXGr6AtZKXeg2HZ8/F7u5ndBfWBQ+M zrOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=EXpnOvJblInEaxC6RvCQLjn4bCtu/7y7QcRx38pgfuA=; b=xeAYF/aLjWtA6P7ci5Dx8978rgcYueumDZGPSYLMk7O5eMyxIscfwVNW7D+l0hRouc GzO9G4CrCeM6mvz96m3jOWc4Cq3/FVVvB06DI8nY55l/0sqOiNaD3JG9o0VGx3olxb8I JJMfDrKoqhstzWrlP95T/zB0gLNRsWwlmlhGBybxQYb5r9BedyQhTZU06PgCje/CaaTf w4vlBw0CN5F1XlwJjaPyqAEPzn8RUnM3BSlDZzQrQtfiQVuEePtVFzh2SA8YpozJZWqE f009/8Kyyuw+ZnPZLpCdnThCZzlfba4y4CgJoRFWb6TSjR3UL3Ubl/R/DX2+nqScWA+q X8MQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id l19si17522790plg.414.2022.02.09.05.03.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 05:03:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4FB07E172840; Wed, 9 Feb 2022 02:34:21 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231390AbiBIJGK (ORCPT + 99 others); Wed, 9 Feb 2022 04:06:10 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:34740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230119AbiBIJGI (ORCPT ); Wed, 9 Feb 2022 04:06:08 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69731DD5BD21 for ; Wed, 9 Feb 2022 01:06:04 -0800 (PST) Received: from gallifrey.ext.pengutronix.de ([2001:67c:670:201:5054:ff:fe8d:eefb] helo=[IPv6:::1]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nHiuc-000491-7t; Wed, 09 Feb 2022 10:05:18 +0100 Message-ID: <936cc917828bfa3c089a33f0af219fecdc2a778a.camel@pengutronix.de> Subject: Re: [RFC 1/2] ARM: dts: imx6qp-sabresd: Enable pcie support From: Lucas Stach To: Richard Zhu , bhelgaas@google.com, lorenzo.pieralisi@arm.com, shawnguo@kernel.org Cc: linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@pengutronix.de, linux-imx@nxp.com Date: Wed, 09 Feb 2022 10:05:16 +0100 In-Reply-To: <1644390156-5940-1-git-send-email-hongxing.zhu@nxp.com> References: <1644390156-5940-1-git-send-email-hongxing.zhu@nxp.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.4 (3.40.4-1.fc34) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2001:67c:670:201:5054:ff:fe8d:eefb X-SA-Exim-Mail-From: l.stach@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Hi Richard, Am Mittwoch, dem 09.02.2022 um 15:02 +0800 schrieb Richard Zhu: > In the i.MX6QP sabresd board(sch-28857) design, one external oscillator > is used as the PCIe reference clock source by the endpoint device. > > If RC uses this oscillator as reference clock too, PLL6(ENET PLL) would > has to be in bypass mode, and ENET clocks would be messed up. > > To keep things simple, let RC use the internal PLL as reference clock > and always enable the external oscillator for endpoint device on > i.MX6QP sabresd board. > The commit message doesn't really match what's being done in the patch. Maybe you meant to say that even though the HW design is different you are enabling the PCIe controller in the same way as on the 6Q sabresd? Also, is this configuration stable for you? We've had some issues with this kind of split clocking setup in a customer design, where it was enabled by accident, due to PLL6 no being bypassed. In this design it caused the link to randomly drop under load and causing aborts on the CPU side, due to completion timeouts. I think it at least warrants a comment somewhere that this isn't a recommended setup. Regards, Lucas > Signed-off-by: Richard Zhu > --- > arch/arm/boot/dts/imx6qp-sabresd.dts | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) > > diff --git a/arch/arm/boot/dts/imx6qp-sabresd.dts b/arch/arm/boot/dts/imx6qp-sabresd.dts > index 480e73183f6b..083cf90bcab5 100644 > --- a/arch/arm/boot/dts/imx6qp-sabresd.dts > +++ b/arch/arm/boot/dts/imx6qp-sabresd.dts > @@ -50,8 +50,14 @@ MX6QDL_PAD_SD3_DAT7__SD3_DATA7 0x17059 > }; > }; > > +&vgen3_reg { > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <3300000>; > + regulator-always-on; > +}; > + > &pcie { > - status = "disabled"; > + status = "okay"; > }; > > &sata {