Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1102172pxb; Sun, 7 Mar 2021 06:21:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJxf53JNnBx2pJGQsLrRqiFzpeF0zp/0aEXab0Gk54U3SDBwJDicn3IztjWiEEdt3pxtRNaZ X-Received: by 2002:a50:eb49:: with SMTP id z9mr18569928edp.234.1615126897913; Sun, 07 Mar 2021 06:21:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615126897; cv=none; d=google.com; s=arc-20160816; b=AMQppzq/5vbA9p2IveQLbLQer0waYUPIZqhGr5W+cBqZOTp4CG+Ux4YjmxgW5K0SWb HSu13szyMD/Yh0+9HwS8ACIOKO7ta5UWKcE+5repMAlV/9BDgDomvoUUZitnjItA3QI7 3NfYug8GJLg4eAC+HzYlmfDDuWlgY6CqTGu8lOSIIBloVPdR2o/dL/QLeYUN1Ip7Aaez MHTmn95lemKJtsKOZ1vuNQ+BtJQ7rUBez9pNCL/BFwmWQs3InMcJ48J6Oknq0sMDbiO6 6e9soRjQ1i+nc09LnORhsfJwNGfaz+3Z7BU/2mEndi76dxBJwP/F9S3AOOHs1lXVsN33 qfJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=0imhT8e/S70Blwop4W3PcFaqKcJftnH8XOV9AL88oas=; b=Mb/pyQ5aH63OkssMmIpYeUpSxyrqkgBvM0A02DJyqPt6bAYXp9zqNu57CKXusae0XU eFREZgCYaL46gnUtNR4PzJhr0c7VF25mjiGHqrIT74GkAQeoZwH8RuQrOUG7Ap7IRAJm oPx53sKIUuK2rNVT7ZTeHyKWFemgSmz1v1JqFZu/i0nRLMsYbsUANeqERWiHNH141Rsu mBe6ZO8DXcfTiFzKUDWT8vKkdBeRTYWye86rKkplmx6gyUKzufB2aDJFIOe/Po8zYv6S loQ8DykeafNJzYTuJnOlrNVu1ugX2yz59pKIfI8dPhcdul0y/8K49uRZxbYtknuDuPmi BTwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ODp56EEx; 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 l10si5156948edf.444.2021.03.07.06.21.15; Sun, 07 Mar 2021 06:21:37 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ODp56EEx; 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 S231392AbhCGNk2 (ORCPT + 99 others); Sun, 7 Mar 2021 08:40:28 -0500 Received: from mail.kernel.org ([198.145.29.99]:37494 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231393AbhCGNkE (ORCPT ); Sun, 7 Mar 2021 08:40:04 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 955E66509B; Sun, 7 Mar 2021 13:40:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1615124404; bh=KAdEzK9L5PScgpNAXea/SaJwnc31diz8Kc4lZDKBNQI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ODp56EExQBe5YBqwFMwKZFkQS82V2r/lVxi3enrxB8rg7DOX/AeqQWV90hw2t2GCH FxSLhQxMhKAufgWdvnAgMRx+w2rKi9PaQbqhNwHbHOHI1nxyc8w7wp8XGezbB6vvr3 DB8asULJ3DNPWARceFOaoTuKJBYftGTAsur8kEFDnCnf9zRIJNTRGp9kazg+oanhIw E9ThWB9iY3acPTle3GhyNQgapKYxZHkyqnGImKRFdbuTB28dhYIy6Tr0lkDAtAcIvj 7UFEqNAd4m8ORMoVl0ry2ib3j9ZMCUjmJkHge6xwtrMKK4uBs3X+TkkV0VFC7uGbWP J9gPRfV6qU5KA== Date: Sun, 7 Mar 2021 21:39:59 +0800 From: Shawn Guo To: Martin Kepplinger Cc: robh@kernel.org, festevam@gmail.com, 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 Subject: Re: [PATCH v3 4/5] arm64: dts: librem5: protect some partitions of the nor-flash Message-ID: <20210307133958.GH543@dragon> References: <20210219100439.9428-1-martin.kepplinger@puri.sm> <20210219100439.9428-5-martin.kepplinger@puri.sm> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210219100439.9428-5-martin.kepplinger@puri.sm> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 19, 2021 at 11:04:38AM +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 > --- > .../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; > + }; Please have a newline between nodes. I fixed it up when applying. Shawn > + partition@40000 { > + label = "rw"; > + reg = <0x40000 0x1C0000>; > + }; > }; > }; > > -- > 2.20.1 >