From patchwork Wed Feb 17 11:19:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kepplinger X-Patchwork-Id: 12091311 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=-13.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 A2D49C433E0 for ; Wed, 17 Feb 2021 11:22:50 +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 5469F64EAD for ; Wed, 17 Feb 2021 11:22:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5469F64EAD Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=puri.sm 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=WsRPMwMcLiD4OxjAzePODs1UxDjj2HuRj57YsiXAKK4=; b=VdJz6EANFaFyz1WSz+d8dRrTA9 AR0QqNAISOLShlIz+XxWIBs84drXDTSP6+YJn15bThWrtZaxofj9F9R423I81fsMFwvIbAaUag5Ug VFehLfUf0IqED5J0//XgocaA+eanbGwtI7gSBE3CYsmMj9TlC27SSL4UdB3diTYzSCkY0OQrcfO5O CAAuL52oSf1m0vx6emPT2bnISQbYucWGEyk1tT8QwSTQFZ0OI//tf33kNSqP+BXW6esYp79HAaWCb OF+WWh4C7GQcN3s2/mhc4Tj7bX4HBrzCOjXNKyUPt18icQQEBrksOaqGlBC8Cr67hHOdde8irSnLi lRPC3aRg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1lCKsY-0000z1-8n; Wed, 17 Feb 2021 11:20:22 +0000 Received: from comms.puri.sm ([159.203.221.185]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1lCKsP-0000x6-JS for linux-arm-kernel@lists.infradead.org; Wed, 17 Feb 2021 11:20:14 +0000 Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id DF06AE1320; Wed, 17 Feb 2021 03:20:12 -0800 (PST) Received: from comms.puri.sm ([127.0.0.1]) by localhost (comms.puri.sm [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id huagXCmOblDH; Wed, 17 Feb 2021 03:20:11 -0800 (PST) From: Martin Kepplinger To: robh@kernel.org, shawnguo@kernel.org, festevam@gmail.com Subject: [PATCH v2 4/5] arm64: dts: librem5: protect some partitions of the nor-flash Date: Wed, 17 Feb 2021 12:19:43 +0100 Message-Id: <20210217111944.1416-5-martin.kepplinger@puri.sm> In-Reply-To: <20210217111944.1416-1-martin.kepplinger@puri.sm> References: <20210217111944.1416-1-martin.kepplinger@puri.sm> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210217_062013_742797_CC25D63C X-CRM114-Status: UNSURE ( 8.32 ) X-CRM114-Notice: Please train this message. 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, kernel@puri.sm, Martin Kepplinger , Angus Ainslie , linux-kernel@vger.kernel.org, krzk@kernel.org, linux-imx@nxp.com, kernel@pengutronix.de, 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 From: Angus Ainslie These sections should be read only as they contain important data. Signed-off-by: Angus Ainslie Signed-off-by: Martin Kepplinger --- .../arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi index c2bbbdeb93e3..3c0462f81b3a 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi @@ -258,6 +258,22 @@ compatible = "jedec,spi-nor"; reg = <0>; spi-max-frequency = <1000000>; + #address-cells = <1>; + #size-cells = <1>; + partition@0 { + label = "protected0"; + reg = <0x00000000 0x00030000>; + read-only; + }; + partition@30000 { + label = "protected1"; + reg = <0x00030000 0x00010000>; + read-only; + }; + partition@40000 { + label = "rw"; + reg = <0x00040000 0x001C0000>; + }; }; };