From patchwork Wed Dec 1 07:29:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 12694265 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 1CD8DC433F5 for ; Wed, 1 Dec 2021 07:32:02 +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=3j+Nr5BuC2FZvrt7xheHXYtjSdQNP3d2UGZxX0iKC+k=; b=S9ykAqUOq2mVTY xDAJOjahDueauQ7svu7Sx7AHZDVverPiA89mrS9wAeYiDxPUh2bdgA5AhWTYFyhbgAlOLITShmW2O j3SbLLyiP00/EYU3qXEdUv/vYMs+wgzH7wbW5J8uPrip337KErEXJR1MsgKNjFeHe1+XKXfdwDMq/ hIrVFbucSPWqg5mg4prZ+JzZ/om6YV4OxCAIO4pv9gh+ja0Cub7qCWscqPFuVIAtk9sSm+aXsCfvO G1OofDQeUwLOglO0+oaeQvOkhFc4C00dwdvZzUgPGver1Lo5lVyg7egz+bO0azK1mw6TERCZj466G hCxgxlUJ1PAh21lKJAqg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1msK4C-007eNm-RK; Wed, 01 Dec 2021 07:30:13 +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 1msK48-007eLf-QO for linux-arm-kernel@lists.infradead.org; Wed, 01 Dec 2021 07:30:11 +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=1638343808; x=1669879808; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=iMAVgNFJrRkMzoxIES2g+e2qL15Hbp1w1JuJqWBXSKs=; b=KapqpfO70ps4QOpZk/zLMWfUZFRaVDGrbrQn/K64ZLWUkImYV9+naOiC RES6SUB2awFdWPhV1lnHRBh88Y4FigTF3DUE4+HdOSwlOOf+Nw3QAryw1 yMhY9DzlHqC6BA2pJV94wEibNSs+b31K0UxcEbj2ZfY0+hyTEBdCxldle pVitpS+2RnZ5EGGZFg0Rrzyj++q3kUuFp96ZB6OJEE+f+YAOKVcCMMOtE wRImZLihxiPjFdkfUbJcIsvEvScRo/rJ7YpLsZxlKOdpauQ9+t7BvkkwC h84/4GmwWqw55DSfWSYJ+Rrowwiu7K3/sAnAIjnwMEoHe+gpZMmj5EnC6 w==; X-IronPort-AV: E=Sophos;i="5.87,278,1631570400"; d="scan'208";a="20773221" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 01 Dec 2021 08:30:03 +0100 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Wed, 01 Dec 2021 08:30:03 +0100 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Wed, 01 Dec 2021 08:30:03 +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=1638343803; x=1669879803; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=iMAVgNFJrRkMzoxIES2g+e2qL15Hbp1w1JuJqWBXSKs=; b=W8dFFVix2sVBhlPCf6GtNIS042Z2hPm50VvfHs7mzitfiiAixP7sSw3q XGXdRMhxYJ5C2HSvrbAjOiFpu3GQXP/1u4YniEUVEyJcyaJ5ouFNo51n5 WDEIYH/33HSxUfoK89NWYemdqgP1xSgjgB/t3s7KhU9r9x8MrUDrMqHm+ Sh9X04e+JEN66DucxqmIekxVMYabQQmuSpyDfpNwlRUmX2lXNUcZbA38f Cs4pB+XF7Q/FlwqUfYtrpceBGo/526pmC7OsIYxABR2a0LmMnE6koXELv H7Lge9CCCwklLzWe4GPEKuMMc4JMUViuzDfG4+uAySgQXG88W8gBdLFFc w==; X-IronPort-AV: E=Sophos;i="5.87,278,1631570400"; d="scan'208";a="20773220" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 01 Dec 2021 08:30:02 +0100 Received: from steina-w.tq-net.de (unknown [10.123.49.12]) (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 A8071280065; Wed, 1 Dec 2021 08:30:02 +0100 (CET) From: Alexander Stein To: Rob Herring , Shawn Guo , Sascha Hauer , Catalin Marinas , Will Deacon Cc: Alexander Stein , Fabio Estevam , NXP Linux Team , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v3 0/7] Support for some TQMa8M* boards Date: Wed, 1 Dec 2021 08:29:41 +0100 Message-Id: <20211201072949.53947-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-20211130_233009_278216_EACA4602 X-CRM114-Status: GOOD ( 19.99 ) 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 Thanks for the review on v2! Changes in v3: * Rebased to next-20211129 * Adjusted commit subjects (tree -> device tree) * Use hyphen in node names instead of underscore * Removed bootargs from DT * Fixed audio-codec node name and handle name * Property 'enet-phy-lane-no-swap' was already documented, but got accidently removed during YAML conversion. Fix is pending at at [2] * Use matrix instead of array for 'fsl,pins' as required by pinctrl bindings. This reduces the lines in stderr from dtbs_check for these DT files from 475 down to 191 * Removed TODO regarding unsupported USB over-current polarity Changes in v2: * Rebased to next-20211101 * Added Rob's Acked-By on Patch for DT bindings * for other changes please refer to individual patches Note on TQMa8Mx: Due to CPU errata cpuidle is broken and needs to be disabled, see [1] for pending patch. This patch set adds support for the following modules: * TQMa8Mx * TQMa8MxML * TQMa8MxNL Each of the modules is available with different i.MX8M variants, the bootloader modifies the device tree and disabled paripherals which are not available on the actual hardware. All of them can be attached to the same mainboard MBa8Mx, although TQMa8MxML & TQMa8MxNL need an adapter. For that reason there is a single mainboard .dtsi file named mba8mx.dtsi. There is a .dtsi file for each module named imx8m?-tmqa8m*.dts. Finally there is the final .dts file which includes the mainboard and the attached module and contains the missing connection, prominently clk and pinctrl defines. [1] https://patchwork.kernel.org/project/linux-arm-kernel/patch/20211105095535.3920998-1-alexander.stein@ew.tq-group.com/ [2] https://www.spinics.net/lists/devicetree/msg460023.html Alexander Stein (7): dt-bindings: arm: fsl: add TQMa8MxML boards arm64: dts: freescale: add initial device tree for TQMa8MQML with i.MX8MM arm64: defconfig: enable drivers for TQ TQMa8MxML-MBa8Mx dt-bindings: arm: fsl: add TQMa8MxNL boards arm64: dts: freescale: add initial device tree for TQMa8MQNL with i.MX8MN dt-bindings: arm: fsl: add TQMa8Mx boards arm64: dts: freescale: add initial device tree for TQMa8Mx with i.MX8M .../devicetree/bindings/arm/fsl.yaml | 31 ++ arch/arm64/boot/dts/freescale/Makefile | 3 + .../dts/freescale/imx8mm-tqma8mqml-mba8mx.dts | 253 ++++++++++++ .../boot/dts/freescale/imx8mm-tqma8mqml.dtsi | 335 ++++++++++++++++ .../dts/freescale/imx8mn-tqma8mqnl-mba8mx.dts | 237 ++++++++++++ .../boot/dts/freescale/imx8mn-tqma8mqnl.dtsi | 322 ++++++++++++++++ .../dts/freescale/imx8mq-tqma8mq-mba8mx.dts | 349 +++++++++++++++++ .../boot/dts/freescale/imx8mq-tqma8mq.dtsi | 360 ++++++++++++++++++ arch/arm64/boot/dts/freescale/mba8mx.dtsi | 282 ++++++++++++++ arch/arm64/configs/defconfig | 7 + 10 files changed, 2179 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-tqma8mqml-mba8mx.dts create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-tqma8mqml.dtsi create mode 100644 arch/arm64/boot/dts/freescale/imx8mn-tqma8mqnl-mba8mx.dts create mode 100644 arch/arm64/boot/dts/freescale/imx8mn-tqma8mqnl.dtsi create mode 100644 arch/arm64/boot/dts/freescale/imx8mq-tqma8mq-mba8mx.dts create mode 100644 arch/arm64/boot/dts/freescale/imx8mq-tqma8mq.dtsi create mode 100644 arch/arm64/boot/dts/freescale/mba8mx.dtsi