Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1463943pxf; Fri, 2 Apr 2021 11:08:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJyQTxLNK0VY7x/VioM2UMghKcWpD1Q7IXFOk6ZriAjCqvKyDFxqMbt/FTflfjUPmGWGRQ X-Received: by 2002:a50:f113:: with SMTP id w19mr16453940edl.226.1617386897502; Fri, 02 Apr 2021 11:08:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617386897; cv=none; d=google.com; s=arc-20160816; b=Ef0IqMQsqHttdsrwouvmCVL7RO7R79W5tRr4lZ3Wak3GDOKhT8aouGOqPOijTs+lLK r+gpskf59NYkBEnrKr+mVx49X7Jhl6tsWny2KNtRdnOqu/h3rJ/apRYKaZxalLHS7tW/ TWj4Pv9w/Q9Ym2pG+EG95M70x3Pu9/p0VCOsNFYTz4cYHZMgHwse4vxH43h9IB5NnwZx HhFeoBZXQkrA2bBBZ9eOEz6ktzcji+cFt8X35W3EnybnlVdTPmZ4m/DMusTEvwnagvl2 JaQzav2D+KbI/qqhkI46OgjlrklZ0VNalzKEVqNFrXqI4WIIzHpOog/txySfdzk/18TW 5LqQ== 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:dkim-signature; bh=epFmq40SMHGkWcJ8wX7G0yl4FcSFVSWxW9YCuL8xmRI=; b=BvHIujtOEzBN2dsnTOWk1+wpFqhnr6fVtstQA83W/TFBH4ObiZqW3jVx5nJz3rQUqP OHfW8/Yqf5bOIq/jMf2TXK4ttjB8NmsHhTGFzxNx+L8RG0VXHiXlJF/vOg2QQriCPMHC ezzvTLEt6K4ltocraDIqPWY4s0oy7Spg9ldPkpS9cgDswYWBydSYOibzQPnC3Kc9goyJ 4c5JvFBNUJFJ3nrBxNBDXPsROO439ypyDQluelCH6ZzHQHXWYB0nAMBNBzDDbhdOWc1U PVhvyYGeXiRx5eo38Ie92rXtrJdu5a4ysCOkWUC5i6C6nRd5GGTpXuZ/oiUvk9rAhz7A AC1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="EGaw/CfI"; 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 g9si7211049ejh.247.2021.04.02.11.07.54; Fri, 02 Apr 2021 11:08:17 -0700 (PDT) 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="EGaw/CfI"; 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 S235279AbhDBSGQ (ORCPT + 99 others); Fri, 2 Apr 2021 14:06:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:52904 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234628AbhDBSGP (ORCPT ); Fri, 2 Apr 2021 14:06:15 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5798E610A5; Fri, 2 Apr 2021 18:06:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1617386774; bh=g6R99wNEiaWYjUZA/Zr//MAlmyK7L1YWL5mD/61jbv4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=EGaw/CfI/k5x+byWWJbrGybqVaGb31AIwkEo5rGJ1eH835kv0HMdK73qwOtsRY6Nu RQ8AO0DR6v/KMLAnvA+IvKSgfp/Kw8+TLNOmSAE6RaUN10rLyeLjyhI2xu24+DcpC+ CH1kCSTuoDB3lW/nuboMLmkgZRyBQZnZTD269RhTjbkqfXP9PEBf4P+z1gtzNpaIUy 5i4GQ61FF1alW0z5K/fQX8HzYDusa74cH97ptCilGabfCE0pEzRu09C8ffzOaPD3iW RCXpfM6DHSk+3CQfGpSUrJA128uEmtUXVi/5V8Lt675cUgb6HsVmLpu2ecbbnGH4op oTml45c4736AQ== Date: Fri, 2 Apr 2021 23:36:07 +0530 From: Manivannan Sadhasivam To: Cristian Ciocaltea Cc: Rob Herring , Andreas =?iso-8859-1?Q?F=E4rber?= , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-actions@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/6] dt-bindings: reserved-memory: Add Owl SoC serial number binding Message-ID: <20210402180607.GB31906@thinkpad> References: <20210401170704.GA610119@robh.at.kernel.org> <20210401174001.GA2016477@BV030612LT> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210401174001.GA2016477@BV030612LT> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 01, 2021 at 08:40:01PM +0300, Cristian Ciocaltea wrote: > On Thu, Apr 01, 2021 at 12:07:04PM -0500, Rob Herring wrote: > > On Tue, Mar 30, 2021 at 04:48:16PM +0300, Cristian Ciocaltea wrote: > > > Add devicetree binding for the Actions Semi Owl SoC serial number > > > reserved-memory range. > > > > > > Signed-off-by: Cristian Ciocaltea > > > --- > > > .../actions,owl-soc-serial.yaml | 53 +++++++++++++++++++ > > > 1 file changed, 53 insertions(+) > > > create mode 100644 Documentation/devicetree/bindings/reserved-memory/actions,owl-soc-serial.yaml > > > > > > diff --git a/Documentation/devicetree/bindings/reserved-memory/actions,owl-soc-serial.yaml b/Documentation/devicetree/bindings/reserved-memory/actions,owl-soc-serial.yaml > > > new file mode 100644 > > > index 000000000000..41b71f47ee6c > > > --- /dev/null > > > +++ b/Documentation/devicetree/bindings/reserved-memory/actions,owl-soc-serial.yaml > > > @@ -0,0 +1,53 @@ > > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > > +%YAML 1.2 > > > +--- > > > +$id: http://devicetree.org/schemas/reserved-memory/actions,owl-soc-serial.yaml# > > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > > + > > > +title: Actions Semi Owl reserved-memory for SoC serial number > > > + > > > +maintainers: > > > + - Cristian Ciocaltea > > > + > > > +description: | > > > + Provide access to the memory region where the two parts of the Actions > > > + Semi Owl SoC serial number (low & high) can be read from. This information > > > + is provided by the bootloader, hence expose it under /reserved-memory node. > > > + > > > + Please refer to reserved-memory.txt in this directory for common binding > > > + part and usage. > > > + > > > + This is currently supported only on the S500 SoC variant. > > > + > > > +properties: > > > + compatible: > > > + oneOf: > > > + - const: actions,owl-soc-serial > > > + - items: > > > + - enum: > > > + - actions,s500-soc-serial > > > + - const: actions,owl-soc-serial > > > + > > > + reg: > > > + maxItems: 1 > > > + > > > +required: > > > + - compatible > > > + - reg > > > + > > > +additionalProperties: true > > > + > > > +examples: > > > + - | > > > + reserved-memory { > > > + #address-cells = <1>; > > > + #size-cells = <1>; > > > + ranges; > > > + > > > + soc_serial: soc-serial@800 { > > > + compatible = "actions,s500-soc-serial", "actions,owl-soc-serial"; > > > + reg = <0x800 0x8>; > > > > You end up wasting a whole page of memory for 8 bytes. It may be better > > to copy this to a DT property ('serial-number' is already a defined root > > property). > > Actually there is more information provided by the vendor bootloader Then you should call it as socinfo or something not soc_serial. Thanks, Mani > in this memory page, so we might use it once we are able to decode it. > For the moment I could only identify the serial number. > > Thanks, > Cristi > > > Rob