From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2429FC433ED for ; Thu, 1 Apr 2021 17:08:35 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BFBE561396 for ; Thu, 1 Apr 2021 17:08:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BFBE561396 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=ndfk/G8NoPeFi19zmULzDYw7lKi+iTEQwB1Mi00PXiY=; b=e4qiaeaKQsAWK7YPnpFIKgDyJ jFx0WF5tUD3eZDP6XPOmg1LBxbM04O7dP68VXoBixcyqMvqsr5sn0Ur08sfXkGoPUbkRMVkC2xmUG Fv15JoPQ2JST5bFaHXgEMqp5X3i+/nlSv6cjrU2PFjUIaGKO/9d5iUJq5ZLDR7KOpr961f+aos4C2 MQ+EC4TaJIpjmVGd6TeoArQR3OCcn33CbrUF9dcAqrYSgnxYkSahvaJ15DGd9pIKwF033dSpvReBi mqUEAuT2uWUrWTFUaWJ6DcyBJzPT0wr2lYVvjKa504Ng3ecU5W+EoZ1vRttjXvVCrEjIfIcC9rYCO /1JBGFtzA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lS0mm-00ARk7-MJ; Thu, 01 Apr 2021 17:07:12 +0000 Received: from mail-oi1-f172.google.com ([209.85.167.172]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lS0mi-00ARjP-FB; Thu, 01 Apr 2021 17:07:10 +0000 Received: by mail-oi1-f172.google.com with SMTP id z15so2438503oic.8; Thu, 01 Apr 2021 10:07:07 -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=AZ1fM12d2ridATPSqZgsoeZ3PV0p0zUb8XYhWHnWn+d3+t20/748BnIWbAgQ7JZ5LH psUXFZ+e7XsVKEcjUB/47yjcxKFEzDqGv/68u9naU5A2CmhTzizC7GPiDIsJ8eEspKXN bRrLVMTZjgm4wVPl7QizNe1UQOso2YKAa5T2501ErdjYqzviFACzNnTPskMxIfGPKwkv eGPXXrXq6eE3raEaj1ECrAtWBfVLbh9lA1vBZWCKhfBq0eTvClUF3xZzeJkrRQXtKJAL ZGfTL5UqbQ0gLLRyAoHgDtpUhqPEbkuQnikODaefVF+Gm5FoxMaVTeXyAGQ9vFzeIFy/ L3Xg== X-Gm-Message-State: AOAM5332ZgvyUuLd/RS4p/7CBtenEONhvIXW8oOANwxk1htZ9l9j1/9/ xf3Y+QfY2D5p34SzyADfwQ== X-Google-Smtp-Source: ABdhPJw2tthmlm9qoNnSw4eeN8+rkSiRKaShVkLC0HF+AgZyqkVjnFYUU+osAFeTS6t5LGKOREzh5g== 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-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210401_180708_550490_2D5BA3E9 X-CRM114-Status: GOOD ( 19.30 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel