Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp680919pxf; Thu, 1 Apr 2021 10:46:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwd8+WR8hohuubTiiGoIt0GJbU/jWDc+n/TeQ0NCiwrs3EcNPWf62hnvVtpmeFOrsd2y0DL X-Received: by 2002:a92:d5cf:: with SMTP id d15mr7585792ilq.18.1617299189599; Thu, 01 Apr 2021 10:46:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617299189; cv=none; d=google.com; s=arc-20160816; b=GfJO5MeUB1byAFy9SlHV6i76chi7FeRQN9hDEfe4jka6lLht4ng/bAr3HjRCoVuhpX 5XmIdY7L/CFXCb627XHri0uV+r7nfRmoip14mBNKgcTAF+OeU9ovoayxThR67cZaQvux 4TXZr8/CH/1LHnIuadPnRmjS/OdDzIS8NYnV6B1Iit5NMH+wCj59ly57609nhubF2QVg 6qfBk6DFv/yJTy4Tm+WP8j8XQBqZk0veLTRsY9HsLVkgpBD+FCWwtBJDr2A+wT+sHDFQ yhBJlVHCrQ1YqIlWPzV7SIicvJlTXYrL2AKvagI7N7XULLDWQhTEYTHY50kGiO0BHZT+ TbPw== 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=fIoD1sqZzx73JWXZ5LfoSVqAfKupbAVCJdJdm3CE5F8=; b=GqmuKr2tH0ic1ZxaT0a4MU7kyjY1KX6ax+kvXOkGd7BNMlxaZP53SxJPEl0OZqutCR mQ8munN6K89dhFZdpyEm1VXxWh10ui14O06ikAExh4pn3lBmXbnQoNaIGi79MMp2rjcD 7AYM0RGqweb3RKrQ1EoC1MWRzVq1/lUINnehWJHB3W/Ki9O9S02yOnJaAeP6RhRzjDrv ZWF4F185cV9uCsEnsgFQYfJspN7fu/8aUkAjnNa6fo4hzvQdh3Ap10ByEBgnk1B7PY+Z 9u1x/lC6qMK8iwH6CQA+dIoWdFgUpDD5NKDPDY3c+h4PnZGjpM9/ORyLkyUl37bMtiZV fWPw== 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 v3si5470983jat.33.2021.04.01.10.46.15; Thu, 01 Apr 2021 10:46:29 -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; 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 S236417AbhDARoo (ORCPT + 99 others); Thu, 1 Apr 2021 13:44:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234584AbhDARiM (ORCPT ); Thu, 1 Apr 2021 13:38:12 -0400 Received: from mail-oi1-x235.google.com (mail-oi1-x235.google.com [IPv6:2607:f8b0:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82C0DC031175; Thu, 1 Apr 2021 10:07:10 -0700 (PDT) Received: by mail-oi1-x235.google.com with SMTP id n8so2431650oie.10; Thu, 01 Apr 2021 10:07:10 -0700 (PDT) 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=fIoD1sqZzx73JWXZ5LfoSVqAfKupbAVCJdJdm3CE5F8=; b=dJ8OYQgakJVDr9rEMy2nBzQGcu7W7o0aHrEKClaSTia2FK4/4NqM+0AsrAeW+z201x eyROb9x/m0CB5YoL/B+MT6FHvPu/PN0aX0JU6CHjohKqLzXZosVkAT3lmxCtNtjcFZC7 pitoDmSgBpZXmwvH/Mw0sviccvqLGVqaIwnLx9pKgXBgx8Wm4qAiciNlHyvCoLWzcrib d1jriWFNVuJV/9mikUfkWnq0/TZAU8r3j8MqqVEyIYBCDJKMf04dt20xUQsby0baCGkj 8k98rRePjZtafldHkgvgj0cnwYT3m667MkRJ6BWG6tS3l2ylFQEEywzNEYSyDVssG+xj SfMw== X-Gm-Message-State: AOAM5333Cpua+ucVT6YZNe6FkxHyVUvNJrWo034oA4MvR+zeFVIHboZH Wo3xqELurWD6ct6XjXkIoQ== X-Received: by 2002:aca:b645:: with SMTP id g66mr6539604oif.64.1617296826773; Thu, 01 Apr 2021 10:07:06 -0700 (PDT) Received: from robh.at.kernel.org (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id u2sm1147627oic.28.2021.04.01.10.07.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Apr 2021 10:07:05 -0700 (PDT) Received: (nullmailer pid 619798 invoked by uid 1000); Thu, 01 Apr 2021 17:07:04 -0000 Date: Thu, 1 Apr 2021 12:07:04 -0500 From: Rob Herring To: Cristian Ciocaltea Cc: Andreas =?iso-8859-1?Q?F=E4rber?= , Manivannan Sadhasivam , 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: <20210401170704.GA610119@robh.at.kernel.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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). Rob