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>; From patchwork Tue Oct 18 08:53:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 13010162 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 D03C5C433FE 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:References:In-Reply-To: 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: List-Owner; bh=IefA4akjnD7YVAivn12u50Kp6Bs4+YT3wA2yJd3b17U=; b=BaXXruZnkReMdF z9K/FbXbrlB8QbQpmwGSKozsxELKus4RObO7zij2tgsmlByr7JASl+4ecIz2AHuIQQLIdT6jDF7U6 bXlSnJf1eFnh8E616lKQ27U2cznkVrhUk0q7nqhSET5klCTnEBCduiyMVyQSgHkLz+W0AyrRa9G0Q 4wCF6vjT9duBdZpVNYS7/N7mZwlS6mGmZVhv8pymEJnKM8vNjA8KJ9Kpb6nzs4teKdvsuynTO1UQZ Sw85aisU3qSTQaqIm7kyDjMI8z814lXroppBgyXp/vlg2m2BdRr5pnYWnRtn5j1luCgKpeMDolzBA Olhx6sgYQ4WTBsdJ0bHg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1okiMF-004WP8-CN; Tue, 18 Oct 2022 08:53:55 +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 1okiM5-004W7f-9D for linux-arm-kernel@lists.infradead.org; Tue, 18 Oct 2022 08:53:46 +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=1666083225; x=1697619225; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=YIrqbZKy9i40cn6BDWmvSaZQwPrQGOZcBBaaGWHCepE=; b=kqbees0ytj6WiaahYqQnWoZ+VrJASmAadOcN43BP/2sa+5dJVm63Z0Vn HbUjTg00d9mtKcrlmTcH7UMIuzJpNJfWDF4V8G82WRQveDim9a18yIQ3Z 0acMOnhwGNDBsOVcVFbrRwx8SIJM0FjTDG6D6RG9nY/AvcMdp8fa98SC+ QCgClgALfs2qlDtnsPBQTUkHe5ZSir2ht4exWtQYIZnlRx8VramL30YXo uXnc13lUWHAdGorPfKxC9vjBYePtZq0qWCKkaYS2fbxepZJZVcK5Y+aaW JuAgNTj05TuvvwJuj6gEewwiGDqknD8MN+VB89Hdh2L8D/byfhjjdTsco A==; X-IronPort-AV: E=Sophos;i="5.95,193,1661810400"; d="scan'208";a="26812033" 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:38 +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:38 +0200 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Tue, 18 Oct 2022 10:53:38 +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=1666083218; x=1697619218; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=YIrqbZKy9i40cn6BDWmvSaZQwPrQGOZcBBaaGWHCepE=; b=d9WTTbp7q99sKV8jA/VQZafqE5mPmroerqs7i35ulEeE3emcmMthApkr 6PyGi5YDoD4XwWa5NhzwYLKMot95QlHuib+lWyFIcign3Ish9rswqwb15 atHumGhtigRO8vVxMFpsfPtMVRVE7nNxadIayCyhQrDS4Q9AfMEHWA4QC XzkoOGx6zbY1MVpCrhh4ohPj2CCH8tP9km7kJWwM+yEzn0hn7if7X7Pqo ZFJJurNi8owhZ82y72/vBB79mvZKF78itQ17RC4Gf7Hw0jiDlsjJBR5PK EvUCIzbga7b2662Xul3CBjJxtJRM1OE2LyvOjq/fwZVCq9ubC+nOEjlgJ g==; X-IronPort-AV: E=Sophos;i="5.95,193,1661810400"; d="scan'208";a="26812032" 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 B33FD280072; 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 2/2] arm64: defconfig: Add Renesas 9-series PCIe clock generator Date: Tue, 18 Oct 2022 10:53:30 +0200 Message-Id: <20221018085330.2540222-2-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221018085330.2540222-1-alexander.stein@ew.tq-group.com> References: <20221018085330.2540222-1-alexander.stein@ew.tq-group.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221018_015345_640306_CD40FCFD X-CRM114-Status: GOOD ( 11.83 ) 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 MBa8MPxL (with TQMa8MPQL attached) needs this driver for PCIe reference clock generation. Add it do default config. Signed-off-by: Alexander Stein --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 0b6af3348e79..d3f1bf5d7e15 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -1049,6 +1049,7 @@ CONFIG_COMMON_CLK_CS2000_CP=y CONFIG_COMMON_CLK_FSL_SAI=y CONFIG_COMMON_CLK_S2MPS11=y CONFIG_COMMON_CLK_PWM=y +CONFIG_COMMON_CLK_RS9_PCIE=y CONFIG_COMMON_CLK_VC5=y CONFIG_COMMON_CLK_NPCM8XX=y CONFIG_COMMON_CLK_BD718XX=m