From patchwork Fri Mar 5 13:17:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dong Aisheng X-Patchwork-Id: 12118475 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 59AF6C433E9 for ; Fri, 5 Mar 2021 13:33:20 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DB0FF64FDD for ; Fri, 5 Mar 2021 13:33:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DB0FF64FDD Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:MIME-Version:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id: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=bqeuGjMSR4dNDFnf6jS6Z0RQLCmYS3ifjMTvIu/tzVs=; b=MBkJfMyO7TvHVkZwNs3qbcVqdB ajpHWaeIKaK5RqEISxv5hOs/VX+wxoq0fFVBxcDP9QGjBQVycu5J3fSZllm0MskPlLS9+is7js7CC R25T+CyEfdDsaH8/6p7IuTNIAriE1MI6i8lS8RTxZoR039rYg5x09xdLFx/Mu52MnETjPktSRjJvH +2/NqWvmjMdYeT4Ppat0Z/c9RyWvVdcYtUM6WItqq++S1Eh0DphBNV+V6CBlH3I+G1atytih2Z622 HElioYePY/qp9PBekoE3zbnx/AiSp8o7r4eaeshundaoFK8tHEKMW0hnhGEbxHdreJtHqx/u07Jkl w01jLazw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lIAXx-00F606-89; Fri, 05 Mar 2021 13:31:13 +0000 Received: from inva021.nxp.com ([92.121.34.21]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lIAXT-00F5s2-AB for linux-arm-kernel@lists.infradead.org; Fri, 05 Mar 2021 13:30:46 +0000 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 29BA12010AA; Fri, 5 Mar 2021 14:30:40 +0100 (CET) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 240B02006AC; Fri, 5 Mar 2021 14:30:35 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id BF263402AA; Fri, 5 Mar 2021 14:30:28 +0100 (CET) From: Dong Aisheng To: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Cc: dongas86@gmail.com, kernel@pengutronix.de, shawnguo@kernel.org, robh+dt@kernel.org, linux-imx@nxp.com, jan.kiszka@siemens.com, Dong Aisheng Subject: [PATCH v5 00/18] arm64: dts: imx8: architecture improvement and adding imx8qm support Date: Fri, 5 Mar 2021 21:17:29 +0800 Message-Id: <1614950268-22073-1-git-send-email-aisheng.dong@nxp.com> X-Mailer: git-send-email 2.7.4 X-Virus-Scanned: ClamAV using ClamSMTP X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210305_133043_551366_37927821 X-CRM114-Status: GOOD ( 12.88 ) 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: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org IMX SCU based platforms (e.g. MX8QM/MX8QXP) are comprised of a number of SS (Subsystems), those SS may be shared between different SoCs while most of them can be reused like Devices Resources, Clocks, Power domains and etc. This patch series aims to improve the MX8 architecture to comply with the HW design to save a lot of duplicated codes and benefits us a better maintainability and scalability in the future. ChangeLog: v5: * rebase to latest shawn/for-next * make mx8qm usdhc compatible with imx8qxp v4-resend: * no change except put three module binding patches first which are used by this patchset. v3->v4: * mainly rebase to latest kernel except a few very minor changes like change to use new scu protocol binding which was not supported in last version v2->v3: * use clock-indices property instead of bit-offset property suggested by Shawn Guo * rebase to latest shawn/for-next v1->v2: * change to the new two cells scu clock binding, so original adding scu clocks patches were removed. * Move scu pd node above clk node Dong Aisheng (18): dt-bindings: arm: fsl: add imx8qm boards compatible string dt-bindings: mailbox: mu: add imx8qm support arm64: dts: imx8qxp: add fallback compatible string for scu pd arm64: dts: imx8qxp: move scu pd node before scu clock node arm64: dts: imx8qxp: orginize dts in subsystems arm64: dts: imx8: add lsio lpcg clocks arm64: dts: imx8: add conn lpcg clocks arm64: dts: imx8: add adma lpcg clocks arm64: dts: imx8: switch to two cell scu clock binding arm64: dts: imx8: switch to new lpcg clock binding arm64: dts: imx8qm: add lsio ss support arm64: dts: imx8qm: add conn ss support arm64: dts: imx8: split adma ss into dma and audio ss arm64: dts: imx8qm: add dma ss support arm64: dts: imx: add imx8qm common dts file arm64: dts: imx: add imx8qm mek support arm64: defconfig: add imx8qm mek support firmware: imx: scu-pd: do not power off console domain .../devicetree/bindings/arm/fsl.yaml | 6 + .../devicetree/bindings/mailbox/fsl,mu.yaml | 5 +- arch/arm64/boot/dts/freescale/Makefile | 1 + .../boot/dts/freescale/imx8-ss-adma.dtsi | 8 + .../boot/dts/freescale/imx8-ss-audio.dtsi | 68 +++ .../boot/dts/freescale/imx8-ss-conn.dtsi | 184 ++++++++ .../arm64/boot/dts/freescale/imx8-ss-ddr.dtsi | 18 + .../arm64/boot/dts/freescale/imx8-ss-dma.dtsi | 202 +++++++++ .../boot/dts/freescale/imx8-ss-lsio.dtsi | 311 +++++++++++++ arch/arm64/boot/dts/freescale/imx8qm-mek.dts | 144 ++++++ .../boot/dts/freescale/imx8qm-ss-conn.dtsi | 21 + .../boot/dts/freescale/imx8qm-ss-dma.dtsi | 51 +++ .../boot/dts/freescale/imx8qm-ss-lsio.dtsi | 61 +++ arch/arm64/boot/dts/freescale/imx8qm.dtsi | 176 ++++++++ .../boot/dts/freescale/imx8qxp-ai_ml.dts | 20 +- .../freescale/imx8qxp-colibri-eval-v3.dtsi | 8 +- .../boot/dts/freescale/imx8qxp-colibri.dtsi | 12 +- arch/arm64/boot/dts/freescale/imx8qxp-mek.dts | 50 +-- .../boot/dts/freescale/imx8qxp-ss-adma.dtsi | 37 ++ .../boot/dts/freescale/imx8qxp-ss-conn.dtsi | 25 ++ .../boot/dts/freescale/imx8qxp-ss-lsio.dtsi | 61 +++ arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 423 ++---------------- arch/arm64/configs/defconfig | 1 + drivers/firmware/imx/scu-pd.c | 28 +- 24 files changed, 1481 insertions(+), 440 deletions(-) create mode 100644 arch/arm64/boot/dts/freescale/imx8-ss-adma.dtsi create mode 100644 arch/arm64/boot/dts/freescale/imx8-ss-audio.dtsi create mode 100644 arch/arm64/boot/dts/freescale/imx8-ss-conn.dtsi create mode 100644 arch/arm64/boot/dts/freescale/imx8-ss-ddr.dtsi create mode 100644 arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi create mode 100644 arch/arm64/boot/dts/freescale/imx8-ss-lsio.dtsi create mode 100644 arch/arm64/boot/dts/freescale/imx8qm-mek.dts create mode 100644 arch/arm64/boot/dts/freescale/imx8qm-ss-conn.dtsi create mode 100644 arch/arm64/boot/dts/freescale/imx8qm-ss-dma.dtsi create mode 100644 arch/arm64/boot/dts/freescale/imx8qm-ss-lsio.dtsi create mode 100644 arch/arm64/boot/dts/freescale/imx8qm.dtsi create mode 100644 arch/arm64/boot/dts/freescale/imx8qxp-ss-adma.dtsi create mode 100644 arch/arm64/boot/dts/freescale/imx8qxp-ss-conn.dtsi create mode 100644 arch/arm64/boot/dts/freescale/imx8qxp-ss-lsio.dtsi