From patchwork Fri Nov 4 13:09:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 13031735 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 77864C4332F for ; Fri, 4 Nov 2022 13:11:20 +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=swtsRJNfqga/7vOAkNjyBuNmdc2USmXmWguAycQ5wJ0=; b=fY214Ril1gO7ZE HRKxBLEzSWp2Iano7CPoIJ9lVN7yBJdzEIm0khXLAME0cTrFjH6KIwTXN2fdYcgA6mKoJ4voVlcN+ sxoVAUy5vbWQIW75OvmiQrnyEgMi3nf1+7OkP3LAg7NiPgmRIvp4K9UHOHNL0DOn75vitsRJAekBQ uwkGakJr0E7DFOOBEtmx8Yotzkk7ynn4ku5AQsAdmBGPVpL4wnPfd3M4q7ffHEfoysGhiovKHVhLd I/vRg7AsH4mKpjYwccpZlsMJAesNZsBqFM8xQg3W7u8YplrldsoQLdOPNS3OVwF1sDrwbSXgZn/9l YXu/WtnYFoBh+fFCn2xw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oqwSO-003ZsV-8m; Fri, 04 Nov 2022 13:10:00 +0000 Received: from phobos.denx.de ([85.214.62.61]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oqwSK-003ZrQ-GH for linux-arm-kernel@lists.infradead.org; Fri, 04 Nov 2022 13:09:58 +0000 Received: from tr.lan (ip-86-49-120-218.bb.vodafone.cz [86.49.120.218]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id D2E268523A; Fri, 4 Nov 2022 14:09:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1667567395; bh=NbncF3mjmPPF+/mSkfbk4dALPKFhq21I1dSs3bsjBIg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0TmVokGA0paOSZzXGHpfZuOKvP4ZHX4rdTOUN38dMuRvpwWjlgRfOGbiw7GjqsBSL +s/30jJk65owCN/rX16foCXJ2QOQGo5tXXnnxcIKLpztCDIT6/3TVvVCSrTTsq9t62 VCq8mVfKPWUDU/cj/+m4yBA3vssiEeax/pcBAEaVsP8AGWcwHk+MRgzcUREQ9fN1gq GzJlnKte8AiuBf6GhjmzEULcr/M2yFJFiOO/kOANLGbKAs9I8APJ/Zk0fis+PaOhIO +6ju7gLNSLmhOBA/9GEqHqpVFJlB401ozBjFVFzFMgFKbs6+FdHiMPiNf1HyiGffuq 8ixrJpZMcLxGQ== From: Marek Vasut To: linux-arm-kernel@lists.infradead.org Cc: Marek Vasut , Alexander Stein , Fabio Estevam , Peng Fan , Richard Zhu , Shawn Guo , NXP Linux Team Subject: [PATCH v2 2/3] arm64: dts: imx8mp: Deduplicate PCIe clock-names property Date: Fri, 4 Nov 2022 14:09:41 +0100 Message-Id: <20221104130942.103190-2-marex@denx.de> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221104130942.103190-1-marex@denx.de> References: <20221104130942.103190-1-marex@denx.de> MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221104_060956_916244_E746E7CF X-CRM114-Status: GOOD ( 12.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 Move the PCIe clock-names property from various DTs into SoC dtsi to reduce duplication. In case of a couple of boards, reorder the clock so they match the order in yaml DT bindings. Reviewed-by: Alexander Stein # imx8mp.dtsi Signed-off-by: Marek Vasut --- Cc: Fabio Estevam Cc: Peng Fan Cc: Richard Zhu Cc: Shawn Guo Cc: NXP Linux Team To: linux-arm-kernel@lists.infradead.org --- V2: - Add RB from Alex - Add default pcie clock entry into dtsi --- arch/arm64/boot/dts/freescale/imx8mp-evk.dts | 5 ++--- arch/arm64/boot/dts/freescale/imx8mp-venice-gw74xx.dts | 5 ++--- arch/arm64/boot/dts/freescale/imx8mp.dtsi | 4 ++++ 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mp-evk.dts b/arch/arm64/boot/dts/freescale/imx8mp-evk.dts index 9f1469db554d3..aa1cfa337c1ac 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx8mp-evk.dts @@ -380,9 +380,8 @@ &pcie { pinctrl-0 = <&pinctrl_pcie0>; reset-gpio = <&gpio2 7 GPIO_ACTIVE_LOW>; clocks = <&clk IMX8MP_CLK_HSIO_ROOT>, - <&clk IMX8MP_CLK_PCIE_ROOT>, - <&clk IMX8MP_CLK_HSIO_AXI>; - clock-names = "pcie", "pcie_aux", "pcie_bus"; + <&clk IMX8MP_CLK_HSIO_AXI>, + <&clk IMX8MP_CLK_PCIE_ROOT>; assigned-clocks = <&clk IMX8MP_CLK_PCIE_AUX>; assigned-clock-rates = <10000000>; assigned-clock-parents = <&clk IMX8MP_SYS_PLL2_50M>; diff --git a/arch/arm64/boot/dts/freescale/imx8mp-venice-gw74xx.dts b/arch/arm64/boot/dts/freescale/imx8mp-venice-gw74xx.dts index ceeca4966fc5c..8a8f2a7b7a5e8 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-venice-gw74xx.dts +++ b/arch/arm64/boot/dts/freescale/imx8mp-venice-gw74xx.dts @@ -594,9 +594,8 @@ &pcie { pinctrl-0 = <&pinctrl_pcie0>; reset-gpio = <&gpio2 17 GPIO_ACTIVE_LOW>; clocks = <&clk IMX8MP_CLK_HSIO_ROOT>, - <&clk IMX8MP_CLK_PCIE_ROOT>, - <&clk IMX8MP_CLK_HSIO_AXI>; - clock-names = "pcie", "pcie_aux", "pcie_bus"; + <&clk IMX8MP_CLK_HSIO_AXI>, + <&clk IMX8MP_CLK_PCIE_ROOT>; assigned-clocks = <&clk IMX8MP_CLK_PCIE_AUX>; assigned-clock-rates = <10000000>; assigned-clock-parents = <&clk IMX8MP_SYS_PLL2_50M>; diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi b/arch/arm64/boot/dts/freescale/imx8mp.dtsi index 7be02cd100cfc..6c0b396e9e159 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi @@ -1192,6 +1192,10 @@ pcie: pcie@33800000 { <0 0 0 4 &gic GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>; fsl,max-link-speed = <3>; linux,pci-domain = <0>; + clocks = <&clk IMX8MP_CLK_HSIO_ROOT>, + <&clk IMX8MP_CLK_HSIO_AXI>, + <&clk IMX8MP_CLK_PCIE_ROOT>; + clock-names = "pcie", "pcie_bus", "pcie_aux"; power-domains = <&hsio_blk_ctrl IMX8MP_HSIOBLK_PD_PCIE>; resets = <&src IMX8MP_RESET_PCIE_CTRL_APPS_EN>, <&src IMX8MP_RESET_PCIE_CTRL_APPS_TURNOFF>;