From patchwork Fri Oct 30 10:26:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Schiffer X-Patchwork-Id: 11869183 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=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham 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 61CA0C4363A for ; Fri, 30 Oct 2020 10:28:03 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 A6D5A20704 for ; Fri, 30 Oct 2020 10:28:02 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="igrQ3/Ne"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=tq-group.com header.i=@tq-group.com header.b="clgBqBIZ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A6D5A20704 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ew.tq-group.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=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Message-Id:Date:Subject: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=695Nb5YcAb/EoIOWaU8ke7lk8lUT3RZ2Wn47PwGDAYA=; b=igrQ3/NefFFf5/+1p6tLRCBzQV jBqAcQEZ6Jx6rFEdzQbhZJgItAYKOzZ3l1/V4GjUIHDnGMFxa9cQ7HeHFzU6mFvLhyIxXqZEry8VD 1yQ0K/9K+vggogXaHpRaf6BXBgjpmByWmZmInJckH2q4jtDO1Mx1b9KOjmBUrcngDIcSRRxxszkz1 r3wMzYnhzmnyEBKVPqmhnXtoIYgFx9LG0ltcyaNaTenT+DFfp6VExG2e5iQoE0FfdH3AJXCehqodu 8RJsrqH1Z6uQ7qRbZEoV5VamlucVwWwjzO+kVYJvQeXqdFFITIVTFzl4P9Hd2kZuYD7O41RTL31JH kaAUvC/A==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kYRdA-0005sB-Na; Fri, 30 Oct 2020 10:27:36 +0000 Received: from mx1.tq-group.com ([62.157.118.193]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kYRd0-0005nw-A6 for linux-arm-kernel@lists.infradead.org; Fri, 30 Oct 2020 10:27:27 +0000 IronPort-SDR: 6qAHm0gMCJWAd0q5e/VvvgR2/WDscv1B+64p/Fybd7ix+TCorVi5CKIy2rc64CMeciujk7RPBt 0J01InOFRqc9Ad6bvZO7bkvWJe4G3qv3DQ8RlBdqelLVa4DJgwSDOBdD717GQKgqySfjXaJk7g TL4GVfVtavdfTqKqI9HRq9Sb4vivKVPopI/85kkZ+mObX/bG6Ir8iLJ+lMbLD9fXNlQN4/fyWY g50ZAiV5RW0d4r5ZJ5zwaSEO9JHb/sbr8pHTboVhv/vQC38rl0c7g2BsL0oMhtbG429CiXc/6V S90= X-IronPort-AV: E=Sophos;i="5.77,432,1596492000"; d="scan'208";a="14511047" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 30 Oct 2020 11:27:21 +0100 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Fri, 30 Oct 2020 11:27:20 +0100 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Fri, 30 Oct 2020 11:27:20 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1604053641; x=1635589641; h=from:to:cc:subject:date:message-id; bh=s0F/5LqXzRIj9UmZbBqtgCyxmiNUFMVVnpLGmEUgqK4=; b=clgBqBIZ7HKqCLJj+unM3xPLv2XSN72Kc6ouXP8NYl3z2EzoKayiJT5c l4GD7eyBzYt6thXhX7Ni1edC6yNqi6G7+onShPWmPv7Zd1gXIYcHThhGP L7V81ajY6YKi5pKuj2OPRFta9mh+G0AzISE5NfUURL9nI4y+aPR1PUHmY ICGLM5FmmNSyJMlc3VS4T6sDmMSs6f9NEoRw8VsQw44SbcxCpQz7sGZ4f /GXUBmgOqH2Y98jQq09mpsb3SNtRkVDkl/Nq66bO+xWOv3rjVwt77yB50 CVAk9O8JeeF2tuW2mgKR3ifLO0JIcVAgZXBH7rRw5mfYAEGCfhk/Qvg1r A==; IronPort-SDR: dvhffsNshKMCV61oP97Vd5G3/2o4QeNhU+ZDYgy0NgNxOdaaWBesO6k26Sa9kK4Xk1UxWTpc9/ PzKCabYUan4VuKRSRIWJyBHk4iwn84NGVov8lQMuHx/JI+ZCb7CGX3bSDRcTAfI1gtex0Ibcp+ FMHF4et1mml8w83UruOMxJpKum10MaXaqY8JSr7gjdOhLvMnT8tqcDL/m+bbHanyugnCi6MM9v P52YyYdbeMH6EC78tGK3glMLd7eCEnSVAMnMjX0oSJDEYkl7ndI+ozCX/7ChL4Jr+OgF5yx8y5 9NI= X-IronPort-AV: E=Sophos;i="5.77,432,1596492000"; d="scan'208";a="14511045" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 30 Oct 2020 11:27:21 +0100 Received: from schifferm-ubuntu4.tq-net.de (schifferm-ubuntu4.tq-net.de [10.117.48.12]) by vtuxmail01.tq-net.de (Postfix) with ESMTPA id C4D95280070; Fri, 30 Oct 2020 11:27:20 +0100 (CET) From: Matthias Schiffer To: Rob Herring , Shawn Guo , Sascha Hauer Subject: [PATCH v2 1/2] ARM: dts: imx7-tqma7: add SPI-NOR flash Date: Fri, 30 Oct 2020 11:26:35 +0100 Message-Id: <20201030102636.16476-1-matthias.schiffer@ew.tq-group.com> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201030_062726_619837_8D65CD31 X-CRM114-Status: GOOD ( 12.64 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Matthias Schiffer , linux-kernel@vger.kernel.org, NXP Linux Team , Pengutronix Kernel Team , Fabio Estevam , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The SPI-NOR flash on the SoM was missing from the device tree. Signed-off-by: Matthias Schiffer --- arch/arm/boot/dts/imx7-tqma7.dtsi | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) v2: change node name to flash@0 diff --git a/arch/arm/boot/dts/imx7-tqma7.dtsi b/arch/arm/boot/dts/imx7-tqma7.dtsi index 8773344b54aa..22f4194322ed 100644 --- a/arch/arm/boot/dts/imx7-tqma7.dtsi +++ b/arch/arm/boot/dts/imx7-tqma7.dtsi @@ -160,6 +160,20 @@ >; }; + pinctrl_qspi: qspigrp { + fsl,pins = < + MX7D_PAD_EPDC_DATA00__QSPI_A_DATA0 0x5A + MX7D_PAD_EPDC_DATA01__QSPI_A_DATA1 0x5A + MX7D_PAD_EPDC_DATA02__QSPI_A_DATA2 0x5A + MX7D_PAD_EPDC_DATA03__QSPI_A_DATA3 0x5A + MX7D_PAD_EPDC_DATA05__QSPI_A_SCLK 0x11 + MX7D_PAD_EPDC_DATA06__QSPI_A_SS0_B 0x54 + MX7D_PAD_EPDC_DATA07__QSPI_A_SS1_B 0x54 + /* #QSPI_RESET */ + MX7D_PAD_EPDC_DATA04__GPIO2_IO4 0x40000052 + >; + }; + pinctrl_usdhc3: usdhc3grp { fsl,pins = < MX7D_PAD_SD3_CMD__SD3_CMD 0x59 @@ -217,6 +231,22 @@ }; }; +&qspi { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_qspi>; + status = "okay"; + + flash0: flash@0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "jedec,spi-nor"; + spi-max-frequency = <29000000>; + spi-rx-bus-width = <4>; + spi-tx-bus-width = <4>; + reg = <0>; + }; +}; + &sdma { status = "okay"; }; From patchwork Fri Oct 30 10:26:36 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Schiffer X-Patchwork-Id: 11869185 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=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham 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 7CB15C4363A for ; Fri, 30 Oct 2020 10:27:58 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 AAB2B20704 for ; Fri, 30 Oct 2020 10:27:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Ej803lsi"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=tq-group.com header.i=@tq-group.com header.b="J4m5uUOh" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AAB2B20704 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ew.tq-group.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=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:References:In-Reply-To:Message-Id:Date:Subject:To: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=LzwTOHopnAeeq0PEI5BoF/tjsJ7Rt7p3liuYsUQ1O1Q=; b=Ej803lsi377Gv1PrB7c86sXMDY Sk0YfbMtJoymzeIRKUBouAyHnVh2fnt000mOlgStRZWh4tEoHS4iBvHp9j+wkKlwmRS/9IOclXGca JMlLSB8Dg8UrUU6Nrhx8BkCxvY5y85JlOF4tLXWo85YEOOFyHD+MsiiukgbhVB6AaAuOutUSmEWSu Wv+gcrCyEXuqt2AjIjgcnx7pTIVp8Bdur8yn+Z8rhi1KdXPH7cqQU9V/45eOwfe1VlbZAvNWlx6Fx hQYilp/jV6rJLnNgbffZ0lUuknWBcupW80+ow8oCk7nPk6b/4Nj7t0+1jzIwxJUoOnROrXQSf2r9H KWBSUt/w==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kYRd1-0005p0-9q; Fri, 30 Oct 2020 10:27:27 +0000 Received: from mx1.tq-group.com ([62.157.118.193]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kYRcy-0005nw-Tn for linux-arm-kernel@lists.infradead.org; Fri, 30 Oct 2020 10:27:25 +0000 IronPort-SDR: o6O08EGS7bTOtn37NhFXoZFR5YcHzmc4gGGY1zMFH2ElbuKIFMMncMnygFxy3CJehyVQNalOHN 8Wo+ruTprDRG5Rba9uaxgj/yRSyR0eJ1Xos0Awchi8t0/Bd/cIWVrEourucA+uUZmojAD3lC3u hEMWJ1JGU0Pv0GuIpzK2vafhWXcvN07zrN0x78Hwn/x2vpMEBPcelujtoKIbKx7n4oFf0truL6 0Dszi3ocEzJhx8IxGjh0ELVA8oSr0Cb8CmdHZScLAa78RXN4rCJb3ftGh3u0o+yp+s/1AF2HBt /dw= X-IronPort-AV: E=Sophos;i="5.77,432,1596492000"; d="scan'208";a="14511048" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 30 Oct 2020 11:27:21 +0100 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Fri, 30 Oct 2020 11:27:20 +0100 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Fri, 30 Oct 2020 11:27:20 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1604053641; x=1635589641; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=B4aRjAdCIiT+jqxl5xeNc+oGMypf6gdkXGtOqsQkS8E=; b=J4m5uUOhm8/eYyzaqdt8o/MotSCu6t4YDjvJyJePQ6Jb7lIw6EBole+H pqiH13yXlaMy8MjbkYtyaV4HSky4Oc++0RlatNXAdPszKof3lANFvdC16 CcBdn2kRReC7ebIg+4n3/Qw+j9TMJU0OP8r6dFdj7dG+uIfp7+iAAoHfd xFMR/yM/MKejxecPnMR5eiCVTT3NqXKZJJ7Unmd4R6nP1x5ReKddmDzjD lTRSYD7jGKgcAoCH1j3zF/BoV27MykgkGVeQY9KrussoyP2DT4GIphGAZ YxPMbb8yB6a5kHrebkQmdK0Nsd2rtOpNydt5SPRXoDa6WfbkQLOGEiwRG w==; IronPort-SDR: 2rw6PDEGMfLEp0p/dSZqqiTww5nauUVCLPDSwcdf2JnQ9aQFtGOEiP+vxQJQfZf6SlEG1milwQ hNiOHbeqaSF+uge24txgcBKMovWbB7pAcPcleud1YuAsvC9ldAu8vk6SbG14na027Rwswfk0JG W68FmGLWlAOV5AMfJqnKcXWSAVjlRfCyWhoLWOp2t5izdHGTCvvAhDT4BFQ0sIrucNi01gZ7LO KdB9oNfxuFexaJsbXamgrCSTRsW8tl1IMi56u9H1LTZgooID7CpHv9BK3LhQ00QH2KqBBBnXHo z8k= X-IronPort-AV: E=Sophos;i="5.77,432,1596492000"; d="scan'208";a="14511046" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 30 Oct 2020 11:27:21 +0100 Received: from schifferm-ubuntu4.tq-net.de (schifferm-ubuntu4.tq-net.de [10.117.48.12]) by vtuxmail01.tq-net.de (Postfix) with ESMTPA id EFF03280075; Fri, 30 Oct 2020 11:27:20 +0100 (CET) From: Matthias Schiffer To: Rob Herring , Shawn Guo , Sascha Hauer Subject: [PATCH v2 2/2] ARM: dts: imx7-mba7: add default SPI-NOR flash partition layout Date: Fri, 30 Oct 2020 11:26:36 +0100 Message-Id: <20201030102636.16476-2-matthias.schiffer@ew.tq-group.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201030102636.16476-1-matthias.schiffer@ew.tq-group.com> References: <20201030102636.16476-1-matthias.schiffer@ew.tq-group.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201030_062725_209167_FF60C89F X-CRM114-Status: GOOD ( 11.49 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Matthias Schiffer , linux-kernel@vger.kernel.org, NXP Linux Team , Pengutronix Kernel Team , Fabio Estevam , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add the partition layout also used by the bootloader. Signed-off-by: Matthias Schiffer --- arch/arm/boot/dts/imx7-mba7.dtsi | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) v2: no changes diff --git a/arch/arm/boot/dts/imx7-mba7.dtsi b/arch/arm/boot/dts/imx7-mba7.dtsi index c6d1c63f7905..3683f97f946f 100644 --- a/arch/arm/boot/dts/imx7-mba7.dtsi +++ b/arch/arm/boot/dts/imx7-mba7.dtsi @@ -237,6 +237,38 @@ }; }; +&flash0 { + uboot@0 { + label = "U-Boot"; + reg = <0x0 0xd0000>; + }; + + env1@d0000 { + label = "ENV1"; + reg = <0xd0000 0x10000>; + }; + + env2@e0000 { + label = "ENV2"; + reg = <0xe0000 0x10000>; + }; + + dtb@f0000 { + label = "DTB"; + reg = <0xf0000 0x10000>; + }; + + linux@100000 { + label = "Linux"; + reg = <0x100000 0x700000>; + }; + + rootfs@800000 { + label = "RootFS"; + reg = <0x800000 0x3800000>; + }; +}; + &flexcan1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_flexcan1>;