Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp7898330pxb; Fri, 19 Feb 2021 02:08:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJzr+xzaMUQSVUScEsqUK78kLKtIX+Im9ezsTQrL5G0qM/hZbXB1p+XBwamcLDmIWqDAXoLD X-Received: by 2002:aa7:c659:: with SMTP id z25mr8552184edr.351.1613729303456; Fri, 19 Feb 2021 02:08:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613729303; cv=none; d=google.com; s=arc-20160816; b=SjWcLbQCTE7J8eFNSjLY50HxloYg8777ihuXKcSsjJpSFPom4Np8esz7ukkVm5GzZi yvi7GHmQ7mPPBNHaZk4pN1dfG5ADhdH1VVBZCdc9XTeVPvqRv+6A7ZsWv0Xfb7Ks134w BueZXklyJgtFrkRRQZUYemSOsaryA+T+4s62PARYo271C7uVpU+xWVqw0RQ1JlaT1v6E dMKvTRlbq8/GQVGcfNkOThaqXk9x7LBW3iyq0k2PI0oHSrPh2h+UHiiNTMwh4/TJaprX xZVWPDt4Ro2I1kSfMJxZfg936TOmw0aWbTRG7KpG+OWxIXm9ThkkcnNK7aA0TvCl7Of7 tHWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:references:in-reply-to :message-id:date:subject:cc:to:from; bh=ejmu7skV7zdDnVSBrhubVXvg1CDsgP3Dv7E5yZ0EFJM=; b=OcijUOIZyc1kvjLjFH16va9Aok4mEfFkaFE0eLgA5QrWRonwoGbK6PLOLi/FbJPoF8 51SakuVj6yUNCzElb+Rwoi1xpids+Q2y/+xoRBCRfFfGv/n3EpPsavHt+Sc8VeNWinFj zxuCQf5n0mTkRzNPPEx98bO4kSO23Nlu5Tv+LZWUshd2q+24oIkw4mnisRs0QHXEQ9pc ERBapVMyQGg+8iYG0iRChSu+66//MKkTJOQWZWRVaQO401g4knRNACHfXg8CdxgjCz6M 30lCEr3ozrw+g0gdFWcw0xifPxyLUUyuusqbo/Q6O9DFzzxgDVUyyp3hVFly2SCW3G67 XDhg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=puri.sm Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p7si5388782ejd.92.2021.02.19.02.07.55; Fri, 19 Feb 2021 02:08:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=puri.sm Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230257AbhBSKGZ (ORCPT + 99 others); Fri, 19 Feb 2021 05:06:25 -0500 Received: from comms.puri.sm ([159.203.221.185]:38364 "EHLO comms.puri.sm" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230221AbhBSKGD (ORCPT ); Fri, 19 Feb 2021 05:06:03 -0500 Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id CF67BE203D; Fri, 19 Feb 2021 02:05:22 -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 lZ8UV-UxzXhk; Fri, 19 Feb 2021 02:05:21 -0800 (PST) From: Martin Kepplinger To: robh@kernel.org, shawnguo@kernel.org, festevam@gmail.com Cc: kernel@pengutronix.de, linux-imx@nxp.com, krzk@kernel.org, kernel@puri.sm, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Angus Ainslie , Martin Kepplinger Subject: [PATCH v3 4/5] arm64: dts: librem5: protect some partitions of the nor-flash Date: Fri, 19 Feb 2021 11:04:38 +0100 Message-Id: <20210219100439.9428-5-martin.kepplinger@puri.sm> In-Reply-To: <20210219100439.9428-1-martin.kepplinger@puri.sm> References: <20210219100439.9428-1-martin.kepplinger@puri.sm> Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 --- .../boot/dts/freescale/imx8mq-librem5.dtsi | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi index c2bbbdeb93e3..d39ae27c8e42 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi @@ -258,6 +258,23 @@ compatible = "jedec,spi-nor"; reg = <0>; spi-max-frequency = <1000000>; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "protected0"; + reg = <0x0 0x30000>; + read-only; + }; + partition@30000 { + label = "protected1"; + reg = <0x30000 0x10000>; + read-only; + }; + partition@40000 { + label = "rw"; + reg = <0x40000 0x1C0000>; + }; }; }; -- 2.20.1