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=-10.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,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 1D138C43461 for ; Thu, 1 Apr 2021 17:42:02 +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 C20FA61165 for ; Thu, 1 Apr 2021 17:42:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C20FA61165 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com 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=NXlekSGXenMQMcrS44rwPivtt4EEAZok7E3bGNLl41o=; b=MH2PWGLaLLP4rAF5huTm38b0L Pt+mpCAyJ8v/HbSUJqw0Cwt3jO/CyOu05/pUE27Zanh2F3eRWQHIzRkWn/McQGSlalucuTWoe1ctM z/HkCd1g1KNV7WrCEdU96wqa+OWMrOB43Y1G4Jcn6RBCOy6AZmY6RJZDUtUxFJQHIxQzSpQjVZ+aG xvNtTexUjsD4sRCDgpVUJKO590LDHcHuHaBhPWAda0Fzrv+TpK4kyIeT/afdUU+zMOO7Q9ovyPWTs Yy9quH6IScAg2JJjOcLW7T2/4twJnR/Sjv+sbYrqmK0GxN4L1kN3qOyU18p1KOZ5Cpc3CS0eNaXO0 bLVdDVfLg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lS1Ih-00AYqB-Cu; Thu, 01 Apr 2021 17:40:11 +0000 Received: from mail-ej1-x62a.google.com ([2a00:1450:4864:20::62a]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lS1Ib-00AYpU-SO; Thu, 01 Apr 2021 17:40:08 +0000 Received: by mail-ej1-x62a.google.com with SMTP id hq27so4051451ejc.9; Thu, 01 Apr 2021 10:40:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=sa4bDFe6mIaoemCJgtMB/NPxmX+AQNUFt+wjs8t9sOo=; b=D62U/IshJFz7x3o9pOoXzRhEbHEr5ja98nd820fHNV+Z/NkUu4gsmsVXhZofbgxdB4 oSaGl2RPU7Zbw5PF1dd4Xpk6evxBsHv/igGy8n1Ghr4YmC/jEvVYkO1fLMewf89y+niS roqYBSzlcM3NsZVvkXHPf7dOXWf5rJynBtLBhbjoYSgnoszPlJUooPHh+cdXw63DdZAs Sp88Uz7tWR5+ynp9rqmsNPXDzoG4lP3a/lvO+wpcgRpQwU+ppYuWCTVEUvshFoiFgLqV RqBCO4wGErcwvcxGi/pDLxGzMJgwR9xtW+7La4LR9ybjIZlKW5myG+xl4aZpJS6Jfx/p Mw4A== 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=sa4bDFe6mIaoemCJgtMB/NPxmX+AQNUFt+wjs8t9sOo=; b=HmJMsban2gF8JgdBBm2tX9atDxnYW41kdgM2BlciR8oG/RImlJvxJDADrsdd6K6HWI uDP8aR1MFuNesPjbOssMudDApR0DwH3IPOq3Zo5BDsXPQrtEf0gidAvi5l9V0mNdAoDN fqzmJI98CqAcEbIU5puHwMAiY1bZ6PMBlqoznb/+gaDkbBG9xTJ3n4YGZFdZAgm4hTfx aPOkVyz0cqBhTlnL5kUIxXOT1V08Z0foiXV4Qr8lMxmbBJlCobTbU40MHQk0izKSnfO1 2hDnJCmbkEWfghQ+pqCAelnLSjCKeg3xaSEpWHv/wgIJSB4O/OLp+dC8g+xTqLEluvq7 xOjg== X-Gm-Message-State: AOAM53179r+c00GFlKVCX1Pu699ACN7qLCQGrBpaBI66HMjgei3qYSo4 TMUEeKvcYZwI5hL4S8Ko5nMzxrI4vQ8= X-Google-Smtp-Source: ABdhPJy2sAfpdTqwT3vX1CHebqkSk0u+KeMsFGf5vdWgZRWS3RCD0iA1Np9fZT+Bd1eEgbWBo8bc0w== X-Received: by 2002:a17:907:9863:: with SMTP id ko3mr10268034ejc.543.1617298805285; Thu, 01 Apr 2021 10:40:05 -0700 (PDT) Received: from BV030612LT ([188.24.140.160]) by smtp.gmail.com with ESMTPSA id gb22sm3000106ejc.78.2021.04.01.10.40.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Apr 2021 10:40:04 -0700 (PDT) Date: Thu, 1 Apr 2021 20:40:01 +0300 From: Cristian Ciocaltea To: Rob Herring 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: <20210401174001.GA2016477@BV030612LT> References: <20210401170704.GA610119@robh.at.kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210401170704.GA610119@robh.at.kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210401_184006_066089_87A00C97 X-CRM114-Status: GOOD ( 23.53 ) 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 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 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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel