From patchwork Tue Oct 18 08:53:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 13010161 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3FB17C4332F for ; Tue, 18 Oct 2022 08:54:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=9wtNxFdVRpnF0YEOHEcy5c4IltWe/HiYOzxKrlU0Q34=; b=wA1WYP8SFdE7HU Q1LLB/1f/A0Zn2EFGpBZJImLFG1OFHW6NVPQsP2oDnun1AUWI2dsLZU33C31ZwrP+MQQTB5Lfrts1 t+1/pB8jBSTIAo2ipLX6Mc2QakY1odfBKIsX8iapaJ5hcIStgIGHzWPh9kh5hC9mOcK2AYGfUyJ86 mGOvQYcqZ4GGEcigkaQEbpeVMk+6qGq4IM7oXajPZ75xnBsjdnJ3P5BMFMrYtuky6OOd3+08e8dM5 8f6umjfby6zKdYMYAIOmIDDHOEKVkTSGdGOE7QbvdPMLfRwwZQEEiAIx3b7solUllFqzboUhsmtMV nvxsfSjzY+7xcNvn+9sw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1okiM6-004WBu-FS; Tue, 18 Oct 2022 08:53:46 +0000 Received: from mx1.tq-group.com ([93.104.207.81]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1okiM2-004W7f-Ve for linux-arm-kernel@lists.infradead.org; Tue, 18 Oct 2022 08:53:44 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1666083223; x=1697619223; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=B1hZbfcowIGSkAmfyHuDx/f2mgU2YVi6+6fFNT1KU40=; b=QXWzviYuon73hQvNykVDQ9hHTFjjgoRfBxD0ODA0Tl6WaKV0spMQLdOv DEeg0xtei0IcLVkRqQEmkcnYibozGfoTqNY1Mfr6VHADl9JOFGmt2nhiR f61Lmifz+fACOqXHvPhhD56IXoIn59VlY1AzGt4UB2WwtJ0OTmj8FZZgZ 82vAqujZDJFYiAlcNLUZjubDDIpBCM8IzdNqEBQApoc4PWLP4LNal44Mh 8a5AS+Id8H8T0++xvI29t29BHkQ2rdkSc8TpO54dlt/l6mrEmu4xtZuUZ HeaWs4Jp4MTh3p5UbrkwJRsijIAyX1bG7XMSxiNmwwmYoDM6UBSvrk9r2 Q==; X-IronPort-AV: E=Sophos;i="5.95,193,1661810400"; d="scan'208";a="26812031" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 18 Oct 2022 10:53:37 +0200 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Tue, 18 Oct 2022 10:53:37 +0200 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Tue, 18 Oct 2022 10:53:37 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1666083217; x=1697619217; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=B1hZbfcowIGSkAmfyHuDx/f2mgU2YVi6+6fFNT1KU40=; b=NDK/MFh4K7Ci9nLqJ6grH5TMkKT/425bxkcrnae5OQvTQtw4AcADExzd c5NfPnDGLxLFJRVpoJxfpb5hbsPszEqoPq5zI2tgccV8YQwv74n6aoVNm 0g718vYchmY9aL1iRROs9k/JO6LXdEbZf4dsVtS3X+r82dFRQitNgWs34 gp4fplWr6cEwnxkIek7ub/TPTZTFVAD+oFk5jDziK9Bdkxt7Mfomohs+E MsM2ATe6DzzNAdzBTR5c23C/Ch5Ye8scJGJ3GTH2VZCxWG/pX6pqRi1O0 lA0TpKPPJlW/FaK2SzE+uzCXYm9BPJArTzZqDZu8JAUdGLUjR89sjG7HZ w==; X-IronPort-AV: E=Sophos;i="5.95,193,1661810400"; d="scan'208";a="26812030" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 18 Oct 2022 10:53:37 +0200 Received: from steina-w.tq-net.de (unknown [10.123.53.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by vtuxmail01.tq-net.de (Postfix) with ESMTPSA id 7998E280056; Tue, 18 Oct 2022 10:53:37 +0200 (CEST) From: Alexander Stein To: Rob Herring , Krzysztof Kozlowski , Shawn Guo , Sascha Hauer , Fabio Estevam , Catalin Marinas , Will Deacon Cc: Alexander Stein , Pengutronix Kernel Team , NXP Linux Team , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/2] arm64: dts: tqma8mpql: add PCIe support Date: Tue, 18 Oct 2022 10:53:29 +0200 Message-Id: <20221018085330.2540222-1-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221018_015343_342635_F20DBF9E X-CRM114-Status: GOOD ( 14.90 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add PCIe support on TQMa8MPxL module on MBa8MPxL mainboard. Signed-off-by: Alexander Stein --- This is based on next-20221018 where imp8mp PCIe support has been merged. .../freescale/imx8mp-tqma8mpql-mba8mpxl.dts | 42 ++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mp-tqma8mpql-mba8mpxl.dts b/arch/arm64/boot/dts/freescale/imx8mp-tqma8mpql-mba8mpxl.dts index 7bf6f81e87b4..7a32379cd006 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-tqma8mpql-mba8mpxl.dts +++ b/arch/arm64/boot/dts/freescale/imx8mp-tqma8mpql-mba8mpxl.dts @@ -8,6 +8,7 @@ #include #include +#include #include #include "imx8mp-tqma8mpql.dtsi" @@ -48,6 +49,12 @@ backlight_lvds: backlight { status = "disabled"; }; + clk_xtal25: clk-xtal25 { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <25000000>; + }; + gpio-keys { compatible = "gpio-keys"; pinctrl-names = "default"; @@ -340,9 +347,16 @@ &gpio4 { "", "", "", "", "", "", "", "", "", "", "DP_IRQ", "DSI_EN", - "HDMI_OC#", "TEMP_EVENT#", "PCIE_CLK_OE#", "", + "HDMI_OC#", "TEMP_EVENT#", "PCIE_REFCLK_OE#", "", "", "", "", "FAN_PWR", "RTC_EVENT#", "CODEC_RST#", "", ""; + + pcie_refclkreq-hog { + gpio-hog; + gpios = <22 0>; + output-high; + line-name = "PCIE_REFCLK_OE#"; + }; }; &gpio5 { @@ -377,6 +391,13 @@ at24c02_54: eeprom@54 { pagesize = <16>; vcc-supply = <®_vcc_3v3>; }; + + pcieclk: clk@6a { + compatible = "renesas,9fgv0241"; + reg = <0x6a>; + clocks = <&clk_xtal25>; + #clock-cells = <1>; + }; }; &i2c4 { @@ -407,6 +428,25 @@ &pcf85063 { interrupts = <28 IRQ_TYPE_EDGE_FALLING>; }; +&pcie_phy { + fsl,clkreq-unsupported; + fsl,refclk-pad-mode = ; + clocks = <&pcieclk 0>; + clock-names = "ref"; + status = "okay"; +}; + +&pcie { + clocks = <&clk IMX8MP_CLK_HSIO_ROOT>, + <&clk IMX8MP_CLK_HSIO_AXI>, + <&clk IMX8MP_CLK_PCIE_ROOT>; + clock-names = "pcie", "pcie_bus", "pcie_aux"; + assigned-clocks = <&clk IMX8MP_CLK_PCIE_AUX>; + assigned-clock-rates = <10000000>; + assigned-clock-parents = <&clk IMX8MP_SYS_PLL2_50M>; + status = "okay"; +}; + &pwm2 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_pwm2>;