Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3985908pxb; Mon, 8 Feb 2021 05:23:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJyuHNngugiobCwkGFBdvZLZ8hRFTa3rdWoB6JLB6zP3GlYiIpCd35ae72TanzzRV2ui3+P1 X-Received: by 2002:a17:906:b28f:: with SMTP id q15mr16787466ejz.77.1612790580129; Mon, 08 Feb 2021 05:23:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612790580; cv=none; d=google.com; s=arc-20160816; b=jr9ygr93T0Evo58F4vDUw31hm/gEnYIh4CQd/rJA99rE2+o3jaj3pN2jYbDDy15CjZ HYF8RNDRwzSTsSMEcgK3Y0AZoJyfw6uM5nl0ZOCMo73tE7efuT5Tm5wnSo2PTjt5inFJ MMRHJRkfr4+gCgbIblTsYGttbDg2GUbSDJs8aL5rH3ddmTX3F8uLm/YcGgU08vCRxFxD DBbnFm25Mq98GeXyEc05F6iE4U8mUkkQybJN3NsNQb3b7OLdYqdKgkjhA4UZLvefM2hv xJ4MK0vFP3AYcizaDkY30T2tannwYTPqfRKOkmaBeft/YHbynw/4aUnAs6okx3Q94rH7 CA6A== 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=8tEvFMrHXltVfkAbiwsxOKN9vPwao58SDWTo4PadYCY=; b=J27aOYXm1d6Gk/eeO4R42RtAyeX/R6R9L0y13T7LGnModxmp9Bz0fRpyTQuEGW1kaM iRSc9GAWP6xdsP0O8e2Cb2d1tya0oOo+Zko320XxmLOZ3WFyrUdQ/XuAOIqgcjuWk04l UY2jfkUam80hgUxe17vS2jpD4Hl9A/5BqbnWGjPUqMbhgfORzAOqG5GH8iMpt0ovSSUL iCugpbT2BPAtKx3CdjFdT2ZE0IhnWyJi/bFNm9LDza9VN9c/8d06qrihjncV1kEpLMkq fVe6btNbR8fSNOgpvr5ssptQTyxg7bCwaAfr4LjfiPrDkxZZVZ98M7RvkkAKj7F+X9U3 6lLw== 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 r3si11074953edm.503.2021.02.08.05.22.35; Mon, 08 Feb 2021 05:23:00 -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 S230396AbhBHNS5 (ORCPT + 99 others); Mon, 8 Feb 2021 08:18:57 -0500 Received: from comms.puri.sm ([159.203.221.185]:42284 "EHLO comms.puri.sm" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230424AbhBHNRS (ORCPT ); Mon, 8 Feb 2021 08:17:18 -0500 Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id 96733E0164; Mon, 8 Feb 2021 05:16:08 -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 kzTAFvLI5-wC; Mon, 8 Feb 2021 05:16:07 -0800 (PST) From: Martin Kepplinger To: robh@kernel.org, shawnguo@kernel.org, kernel@pengutronix.de, festevam@gmail.com Cc: kernel@puri.sm, linux-imx@nxp.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Angus Ainslie , Martin Kepplinger Subject: [PATCH 4/5] arm64: dts: librem5: protect some partitions of the nor-flash Date: Mon, 8 Feb 2021 14:15:26 +0100 Message-Id: <20210208131527.24463-5-martin.kepplinger@puri.sm> In-Reply-To: <20210208131527.24463-1-martin.kepplinger@puri.sm> References: <20210208131527.24463-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 --- .../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..9867e2a50008 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@0x00000000 { + label = "protected0"; + reg = <0x00000000 0x00030000>; + read-only; + }; + partition@0x00030000 { + label = "protected1"; + reg = <0x00030000 0x00010000>; + read-only; + }; + partition@0x00040000 { + label = "rw"; + reg = <0x00040000 0x001C0000>; + }; }; }; -- 2.20.1