Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4043444pxb; Mon, 8 Feb 2021 06:40:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJxBxo90p9U7ZGcaWoYSkoNOEMul+VQgpkREputtPQiRH8pVvJQPJkjWL3rVZy29y/Tn16rn X-Received: by 2002:aa7:dd49:: with SMTP id o9mr17309323edw.14.1612795205449; Mon, 08 Feb 2021 06:40:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612795205; cv=none; d=google.com; s=arc-20160816; b=chqrUCI7dhSH/Qauhwtthp6nI8zSrwTrkgdE2XChBMeQA59taMu7XoFDwbq+LmzWor 92itZAQfp7h2o4R5KmZIT6Pn3JYAH28eZbktS1wUmqkujVZCdKCNti6PkA74kyd8KbhB eIsmVnPlONhaxIFVCXnZ9/V7JCRolXlNL+n60H/9W6SzeqJs+H2Ms73uViLcmCjPoYEY J1CJKTz19kTHEesc/6HhY9lJ3aQ2aQ7pRSwBYZKRIN7Pj6sTz5nLpYWA8EF6Ef8vOmj2 njaJoHXQhh+Q6KMGMXSVMu0TsEF27RIfILHIbxunJUn+rj82lkStReJdKOMXwI2pswcs bbog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=dpsm0bZ/m5A29PuyUa9YgWYc5KvB/3XFGrUZ84aiJKo=; b=t7hOOoBUcNEUJHU2GsBa04/bR5qcCkfMoINBlLMmkH4i+L5if+1YYnr4a931NZWTKS l0VvlZZUWbK0zyeJygvabEtod+0V7NAaGtvPEyw6IIHUk2SA220FIX3L2Lfz7E7V1V8y AkrjuTkvZMzDKEIvXxBSfmnTe8PSPRGj+v/kt1duypxdANGNOKlZVahwMcu3NDmaCr8v wIVjRFwXOjfJJ9O96FR2trAxsZBzCMq0EU9DdZriwUxIKlh2W7ImqDBYOzGCHfTRtooF OPHv60Y0TuMTN9tFbjUTJzhFpE743xm2kkLjRz9kiNoVfRH3NxziUmuxRfel2TGpyAmb JqtA== 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g19si12044998ejf.66.2021.02.08.06.39.39; Mon, 08 Feb 2021 06:40:05 -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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232776AbhBHOhz (ORCPT + 99 others); Mon, 8 Feb 2021 09:37:55 -0500 Received: from mail-ed1-f46.google.com ([209.85.208.46]:42924 "EHLO mail-ed1-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232237AbhBHOK3 (ORCPT ); Mon, 8 Feb 2021 09:10:29 -0500 Received: by mail-ed1-f46.google.com with SMTP id z22so18166863edb.9; Mon, 08 Feb 2021 06:10:12 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=dpsm0bZ/m5A29PuyUa9YgWYc5KvB/3XFGrUZ84aiJKo=; b=XizILjWQR4ch6g02yA82rn4OzhutL0MO9jjNW7fdsmedC0Y2KsEH+9XsuVGF72h5LL 74JeuyMR2vGDw89OrV6sshPZfuFBka9vlUJAYic9y/QlIOeaWuJY+HlREp1Y7BlBV6jG GPspbWYY4PVeyrC02/ecPy7DvtSTpVhHyYRpfFQ16lrxItoRAQr1RlAc2D9Ve8Au6oXB P+/0PN4SgBdHNhJpIeOdX61dhELAd+Z7B+Q6t5xjky15k04VmgBPJHgqZq5NZLI5CU+y 0mgnsFm8WNTpi0bQU1nANR07lDjjT7UT+ndB/3d+FlLYUzRoifO9sx+kkyLG3Ghu6nsb BfDg== X-Gm-Message-State: AOAM533SkJ7rDhDlFtEyR4/59jXlFo+5RIkq3o7jxKiEHW+LYqAmyavo lVKYJl7FJDCUbXutGM+WO0w= X-Received: by 2002:aa7:ce96:: with SMTP id y22mr17236639edv.369.1612793386884; Mon, 08 Feb 2021 06:09:46 -0800 (PST) Received: from kozik-lap (adsl-84-226-167-205.adslplus.ch. [84.226.167.205]) by smtp.googlemail.com with ESMTPSA id hy24sm8230648ejc.40.2021.02.08.06.09.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Feb 2021 06:09:44 -0800 (PST) Date: Mon, 8 Feb 2021 15:09:43 +0100 From: Krzysztof Kozlowski To: Martin Kepplinger Cc: robh@kernel.org, shawnguo@kernel.org, kernel@pengutronix.de, festevam@gmail.com, kernel@puri.sm, linux-imx@nxp.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Angus Ainslie Subject: Re: [PATCH 4/5] arm64: dts: librem5: protect some partitions of the nor-flash Message-ID: <20210208140943.6dewq4b3dmaxh7ia@kozik-lap> References: <20210208131527.24463-1-martin.kepplinger@puri.sm> <20210208131527.24463-5-martin.kepplinger@puri.sm> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210208131527.24463-5-martin.kepplinger@puri.sm> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 08, 2021 at 02:15:26PM +0100, Martin Kepplinger wrote: > 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>; One empty line here. > + partition@0x00000000 { Wrong unit names. Compile dtses with W=1. > + label = "protected0"; > + reg = <0x00000000 0x00030000>; Get rid of leading 0000 - it makes it less readable. Best regards, Krzysztof