Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp685587pxv; Thu, 22 Jul 2021 09:42:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/F4z0hneDrnFnBZ/TCefaL+lPaPQ78enMFXBnrikS6nRUFoErRCh7xjbo4JvhU7BAtSRc X-Received: by 2002:a05:6e02:1a8b:: with SMTP id k11mr489762ilv.136.1626972140632; Thu, 22 Jul 2021 09:42:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626972140; cv=none; d=google.com; s=arc-20160816; b=vJWeN3/7ruBe1+vwjXdrzm3MgfKbdYkKN3FosqerQ8oNV9TS9qwvZdtXIj7HJCANBt 2Z8DT5meMoHBbv305GaQJeQM2ZnuGYzrFmD6fyBzAkDcv5CfMYl1QONL3XfD8DVQngYz YM1WuD08vuuAiCZWboj2KdV3s4Kp5NfNn4SM5EvL57fxNLGR87DEahHkoeovnVrunnoM cgCG0RhVie3wwpJSFD8EsMGbo9QfRadmgmvBdEzCy5Ug94dw113B7VQmChvG4OO3RfPX plIQjqYsqwnCNFJt7uCkyeD70eolrzua6I27svNVrBj4kqEFjxqQ2WiZNW83DBtpOJ49 HGLw== 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=GURX/GOFxQEBZv6YhhZHIE7kxZDM4gaT9TWpkK+4H58=; b=yVQrc/O2kgj9a3IEbe3VrNtiAPugd1My7/1vh4eiDXzY8Si4/CRMCMFzCX5Ews1bHv Me9g8jDUx2+5+0VZCoc2zzvv2GyQOgF8Dgix1dyfOTAmlgi0KcDC6Myn+xHKV3qYmSOa qbLsrZG7VyEFrhAAR4SxvfABD7ZhYRNXhWthGkm3ZBSL2dKC5YKa1GPor/dw0S2OvFmv aAzU7g9uZivp94YYepOkx5Mk3djsNAAwWlgLQdNfvemZl41vbfHy6b22tAjPTGM2A5ND H0Q4mc/7HauWzxZYh8uO7/5qV0gXVDjSp7CByGUJAiBjxu1gVKgzeDHVb4r/QhmwvA9h saGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=R6Vlj6p3; 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 g5si19144166ilk.74.2021.07.22.09.42.08; Thu, 22 Jul 2021 09:42:20 -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=R6Vlj6p3; 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 S233492AbhGVP7L (ORCPT + 99 others); Thu, 22 Jul 2021 11:59:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:34108 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232988AbhGVP5a (ORCPT ); Thu, 22 Jul 2021 11:57:30 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B42AA61362; Thu, 22 Jul 2021 16:38:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626971884; bh=Hfm3pnE+r7php39eKohzPYd7dfQ8s4ESqxt/l9Dj39M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=R6Vlj6p3rcHncUbkJoz9mae7myUzLfrRVfISKA3KKdESFamtDdkzQr1GtyNfJgN4G yFZwG+Y9dII5Dy206fdqoW3XrHJ/jNoE/qElvaMHMzYpjybIgMyShAmaRwKWvJNsD/ eBCC/2NCazgTfdAzx79/3RvPQb/y8cqJnJ3dJets= 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.10 063/125] arm64: dts: imx8mq: assign PCIe clocks Date: Thu, 22 Jul 2021 18:30:54 +0200 Message-Id: <20210722155626.791290067@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210722155624.672583740@linuxfoundation.org> References: <20210722155624.672583740@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 5e0e7d0f1bc4..c86cf786f406 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq.dtsi @@ -1258,6 +1258,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"; }; @@ -1287,6 +1295,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