From patchwork Tue Nov 1 09:21: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: 13026758 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 35807FA3743 for ; Tue, 1 Nov 2022 09:22:44 +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=eewYHQeVMcvPbKkr5+99e8YrR7+ee7UCtcMEEDgJpM8=; b=03bfmevY4u4y5S ERuS0VzZGyxb4tKVw0DUKotBEHJzQS1FX/Otem4zRcUONcSSV05cbxfGQ7+M5VkQZKgHsMajEcPXm je9ORT/03bk2bWBN9fijf1kpi1Fr/y0XxS0VpMtfpPnARvzHYiHqjRtayt7bW4vwoNS/6CepqFxjr WY5ylLanP4X1EyKNbqWAk9I7Y9/RbaOeBdErHQRK+5pa1jMKTC/Me/2GXg3jPT30u4XY4kOQVMkBd pJdSNiuPDtw0t0L1EfQXKAq5a/lORKsmOzTqy2uN4lBSV4dqJfx85qKMJW8GNukxHzEnK3fTYnWlK gTwkf2QYsVie+YHRY/DA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1opnSn-003ad5-Mg; Tue, 01 Nov 2022 09:21:41 +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 1opnSk-003ac2-Pp for linux-arm-kernel@lists.infradead.org; Tue, 01 Nov 2022 09:21:40 +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=1667294498; x=1698830498; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=tYpQuI9D9faace9AG9RYcoAOMMqzhp/l1Y+KvPKTtn0=; b=ODxdBtcNcpfaaWDoMyqEva+1KWe/QLae7RAURHcTUpx6K1abNSxO/ucn 643Ww9dt8Xj+pgWw9IkO/HmUM0Q99srlZ3P8DGkh2rPL26aqEWuO5cYC0 OQmatUFdJGnrd6ANTqIb4paam5k0kKbWOAo52aaJPXHPeY9uxgGE9MKK4 yoKlPxJXyvly0Q6Poo32vq20RVv1+yKFHE9hWPVmpIFyflqbi+n1XLcns cIljWSkw/KLxNEXgM2g+C8Xzl7dstjeVV+K4RrqlUwNvvQC/DrepL+0IH 43jGtnWKCwmaH85GSmbKOfyTwTLtyJHPL1jXFDxzZRh7tZTHdS4RSKvLP g==; X-IronPort-AV: E=Sophos;i="5.95,230,1661810400"; d="scan'208";a="27083697" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 01 Nov 2022 10:21:36 +0100 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Tue, 01 Nov 2022 10:21:36 +0100 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Tue, 01 Nov 2022 10:21:36 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1667294496; x=1698830496; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=tYpQuI9D9faace9AG9RYcoAOMMqzhp/l1Y+KvPKTtn0=; b=kUS4yB/TTlCnARFur5h1XuZb208pgFzASgmOgCB/QkDBLs/dc+wbU6La KbmQJuu49A76XafVJAvW/b2Te79w7E6aSarKlnGvI2SwfDRsf6CFJrgVc unkjHST1j7AHWrag0TgJfKn1sWJUWHXxpygZ1MIHSEVi34Voo8PjTByyT d7GA6+zJ8OjSpMmZ/6P21BVHepXTftXCAG7LyzC0ctiBkTRQc3TVYGFR9 E8hIyQL53xhJrQKSxporgZzUSL335PRcJY/YKxXZKlZy0OeDI8O2wqtak apOknPix+9DHGUgyeXUjFWS7YiJU2ggDJtfG14G27bbl8DEl3cyboAcvm g==; X-IronPort-AV: E=Sophos;i="5.95,230,1661810400"; d="scan'208";a="27083695" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 01 Nov 2022 10:21:36 +0100 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 ED26B280056; Tue, 1 Nov 2022 10:21:35 +0100 (CET) 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 v2 1/2] arm64: dts: tqma8mpql: add PCIe support Date: Tue, 1 Nov 2022 10:21:29 +0100 Message-Id: <20221101092130.273651-1-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221101_022139_241699_437003AC X-CRM114-Status: GOOD ( 15.22 ) 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 --- Changes in v2: * Fix node name for PCIe refclkreq GPIO hog * Fix node name for 9fgv0241 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 1c440909f580..3165044e87f4 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: clock-generator@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 Nov 1 09:21: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: 13026757 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 0E500C433FE for ; Tue, 1 Nov 2022 09:22:43 +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=WZSu+BHRJ2s3DChG2vUzITzHR/kAwe0SHEdedak50D8=; b=Ao31GW02wi9QBB ptPk3bnjC3tjIweS+X2S1+RgCuhoDD0L2onB8eBFz8DpCpcGQYVBj+Q6L92vaUB7qvPFSmSERkzQv 0ojY81DQfiaDYELTURVzU+JzcV+ZsMkCq2TJZWBs/MmEynKbYq2inT4qNBlcmBB27F8OHpntnPwj8 W22odqvNv9ICT/4xW+k3W98hOQAb27jZYQHMfFbzRl/sZk3SSpvhAldnjmDU5NLAouivQn0fxLrOU g/imrIMaNciFg0PwCeiS9yIseEm0w3IrUZf3sBn8B2R86XyGlwECitAn4WocShC2FzqCKs/m0ihmR mepboccEXjJurwItr+XA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1opnSv-003afb-RH; Tue, 01 Nov 2022 09:21:49 +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 1opnSn-003ac2-4w for linux-arm-kernel@lists.infradead.org; Tue, 01 Nov 2022 09:21:42 +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=1667294501; x=1698830501; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ljFrnRz3JxNziIRjUO9br5/N6RmBCErSU/eqVCMCEEY=; b=aL/QkgkafR4UgR8WNGThLxVxPIylgrWymk5/fgi+Amnh6YJidQL/kcKN qVDohyenRMk3GwulUpme0jtk4smrddLWdhkoCdkYCfFijzmONvN5Bx0C9 pQRJRK97RYgx4fAoJdNXHqQQUMdL9QTObXB6b+pzw/bfItkHaVyGzoMqn Tevh7H7T6qK7aSfOFjiq0Ig0s4qA4EUaZRP8VI+2GccozAAu7cnTknrSL 9eNDqEI0GNiFsaOV7yvfx2Wh3UwOATrDglz9HRxFRE3vK1EZSXszZ+Yw9 UtfokL+l4Xa/ohoFGpZrLh+FD3LTF8IOj0BUo9WwRYKSKEbxIHCPvDnes w==; X-IronPort-AV: E=Sophos;i="5.95,230,1661810400"; d="scan'208";a="27083698" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 01 Nov 2022 10:21:36 +0100 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Tue, 01 Nov 2022 10:21:36 +0100 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Tue, 01 Nov 2022 10:21:36 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1667294496; x=1698830496; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ljFrnRz3JxNziIRjUO9br5/N6RmBCErSU/eqVCMCEEY=; b=Ys+8LgRhcLdEUSn5jM9GQIr9WfmjjqrZ/lRrTqyd2qziofswFhRUoRPf ldms2p3KYTtzhJb55MIVt+etmh5y5zqy/r+MyxQZeww2uNUZf/VrZxqRH afs7MF+2WYPf+XCdD3O7W0O0jWMsCX6F0T6Lh1uFtpmCn78lzY91pNOsw 7ZevKIbYsJy1Z/0Upn+cN1D8P+wHllxTnFTM6gy5VI7KA83ozBveCV6bo aTi1oeKUtbpV2x0H/SLMrUkwwjX0rkagc8MbED1v0+hU4hTTFT8Z5GSVi 9p0KbTjVe1Hr1ApgHYJ7gRd36cKijs7ZytkggGyJ7hclhV8o79sAxrqpV w==; X-IronPort-AV: E=Sophos;i="5.95,230,1661810400"; d="scan'208";a="27083696" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 01 Nov 2022 10:21:36 +0100 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 32280280072; Tue, 1 Nov 2022 10:21:36 +0100 (CET) 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 v2 2/2] arm64: defconfig: Add Renesas 9-series PCIe clock generator Date: Tue, 1 Nov 2022 10:21:30 +0100 Message-Id: <20221101092130.273651-2-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221101092130.273651-1-alexander.stein@ew.tq-group.com> References: <20221101092130.273651-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-20221101_022141_544327_BB572C8B X-CRM114-Status: GOOD ( 11.84 ) 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 --- Changes in v2: * none arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 226bb30ea7e2..1650f4dec36f 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -1055,6 +1055,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