Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp680409pxv; Thu, 22 Jul 2021 09:36:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8mzNRq9/PrxAqm3jBC5O//vVbH/7YDQkLcSDyZbAKxKp7geWA5ftI7RLjW0Yrw9vuifWY X-Received: by 2002:a5d:8b8b:: with SMTP id p11mr448527iol.77.1626971783109; Thu, 22 Jul 2021 09:36:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626971783; cv=none; d=google.com; s=arc-20160816; b=jPzCOVZr5ChqU+ImahDL9b+WCWHTpvMoB3Hm2coby1RY96xVa7w1siXA5bBVocVXyf c0/j+0L/eefFTsyM4RBkxZ0JxdVNn3O43w1gbMT/9YAaG6yiCK8grbdp5nT2OPaP8+Zs xyxmlBtHv3mPozVnQmXGaDI05WjeL9c6ceOY+EflHGaK1jfLqgg75PzGOhjRSPssRWKs aDyzx02KLEw9r9kkUxPaGGVR+WccoSHZGC+Rqr7NzFCRje2Xzl3Vwhdy8SV87KM4Ub4l 00EyP8NaP8WKe1du5ZaQG+JD9jnovB9YKVON2QjJHMjYN3dv5c/PfCQ/HH+h5uWdcRLv UGOA== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=6bWu5pDCRaYMK48YHFLMsRbrFbdIIaxUZnSz7z2SRls=; b=zZgWpsvyi2OUpkhMvOeCvGKSy361to9BNnoEdjDyMQDwLCofv552oESl1Uu4nGwg3X S3+Dt69WstMCy8np9PUyBh32+gexiQe9Vpez3iF3mS82iuO+DEJdFoSMBQxEIyPPTdhR ce9bFztyWrKd9AkLW3jg3WdNBp9iJwfUme90MWpTaNIvl3kdqz4kEkDuuQvEaeQYx/aV RRW7FVvURdYQ6wX/Sgcs8DShBc9T/2FfnbnvLtK0hvcMqZNq6pbnqdhnKyx5gmlbh2GM QTe0bitQB/0XUU3CMBeThgWk2r3Mz2J1qANxF5rL44zqWshTjNUfQp3qoVvSPQgOMVjC xY8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=EC2KBJuz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v1si22930055iot.7.2021.07.22.09.36.11; Thu, 22 Jul 2021 09:36:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=EC2KBJuz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230370AbhGVPxP (ORCPT + 99 others); Thu, 22 Jul 2021 11:53:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:56508 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230216AbhGVPxH (ORCPT ); Thu, 22 Jul 2021 11:53:07 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5DC8861363; Thu, 22 Jul 2021 16:33:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626971621; bh=M+lIE9mbp+ZIawy9jie2Th+wNyWvjzKTmV9iEdbTojQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EC2KBJuzOD6M0Yb/QTHhYBNqAd5hBlJgqOz8UDMh0NRDhYHg6YEsIJpiZL7KfcF2d wjnBJweZ+54N/LQUXhP4Oz/egIptVfX2+7rZsLE0YriMGAWqI6gPANYZ80rIWniF6d wKMzEefTro1bGhh7l9w924bpdHU7NO3rnwuMJitU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Lucas Stach , Shawn Guo , Sasha Levin Subject: [PATCH 5.4 34/71] arm64: dts: imx8mq: assign PCIe clocks Date: Thu, 22 Jul 2021 18:31:09 +0200 Message-Id: <20210722155618.995595470@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210722155617.865866034@linuxfoundation.org> References: <20210722155617.865866034@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Lucas Stach [ Upstream commit 15a5261e4d052bf85c7fba24dbe0e9a7c8c05925 ] This fixes multiple issues with the current non-existent PCIe clock setup: The controller can run at up to 250MHz, so use a parent that provides this clock. The PHY needs an exact 100MHz reference clock to function if the PCIe refclock is not fed in via the refclock pads. While this mode is not supported (yet) in the driver it doesn't hurt to make sure we are providing a clock with the right rate. The AUX clock is specified to have a maximum clock rate of 10MHz. So the current setup, which drives it straight from the 25MHz oscillator is actually overclocking the AUX input. Signed-off-by: Lucas Stach Signed-off-by: Shawn Guo Signed-off-by: Sasha Levin --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi index f1011bcd5ed5..3dae8d7c7619 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq.dtsi @@ -1056,6 +1056,14 @@ <&src IMX8MQ_RESET_PCIE_CTRL_APPS_EN>, <&src IMX8MQ_RESET_PCIE_CTRL_APPS_TURNOFF>; reset-names = "pciephy", "apps", "turnoff"; + assigned-clocks = <&clk IMX8MQ_CLK_PCIE1_CTRL>, + <&clk IMX8MQ_CLK_PCIE1_PHY>, + <&clk IMX8MQ_CLK_PCIE1_AUX>; + assigned-clock-parents = <&clk IMX8MQ_SYS2_PLL_250M>, + <&clk IMX8MQ_SYS2_PLL_100M>, + <&clk IMX8MQ_SYS1_PLL_80M>; + assigned-clock-rates = <250000000>, <100000000>, + <10000000>; status = "disabled"; }; @@ -1085,6 +1093,14 @@ <&src IMX8MQ_RESET_PCIE2_CTRL_APPS_EN>, <&src IMX8MQ_RESET_PCIE2_CTRL_APPS_TURNOFF>; reset-names = "pciephy", "apps", "turnoff"; + assigned-clocks = <&clk IMX8MQ_CLK_PCIE2_CTRL>, + <&clk IMX8MQ_CLK_PCIE2_PHY>, + <&clk IMX8MQ_CLK_PCIE2_AUX>; + assigned-clock-parents = <&clk IMX8MQ_SYS2_PLL_250M>, + <&clk IMX8MQ_SYS2_PLL_100M>, + <&clk IMX8MQ_SYS1_PLL_80M>; + assigned-clock-rates = <250000000>, <100000000>, + <10000000>; status = "disabled"; }; -- 2.30.2