Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1462244pxf; Fri, 2 Apr 2021 11:06:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzBW5VPaJ2taCv/Uj3MhP9MAnCuav6uVnVDxFN/5/juXNKPP6qyGu6HUmMhHpIDEe0wf2Mi X-Received: by 2002:a05:6402:1d39:: with SMTP id dh25mr17259754edb.282.1617386761008; Fri, 02 Apr 2021 11:06:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617386761; cv=none; d=google.com; s=arc-20160816; b=UlM2nJgCDhIO+HH8agZBLDXKnUCl94JIUEt3A+F9OtliI+5AZRu9iy0YwiEDDu0l7t 2Or8xidnWZ1IYaSCpIeDTRo63F+C/9BOjzcoyoWpsev96LhnpvNNyyyunH9DTV6+7zRc 8+tvvkE6mtpQ1tem0cE1n4AJjd0LUkV+k95WzgrYHqRau0QaKVF+47LSHwXmq8qzfF+T C3YLALdJHPjkBMse1K3OkLW3z3jsp4cUbsBuu31daybHvTux0eKTNXqTyeVU9zURVLMc uJhgNwl9V7A8PPBdfb6d9iWvI/2SI/fHJAWR55/DxLKzGRmjqJXW8z2N9cw69Tvr+GDQ J2Cw== 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=mORCxO3HCGO7EBtsipCAtewYJznM7eB0woEUd06wLLg=; b=TEqQyjmzj4TUgwSyzmOfv/lMGO0xlnzpRFAym9Zhti5xJkoOPYB1lCn3XLNdwZg5nz S+xYU0qkf1NJsxHqiBtXdBKdcqC5Z2bWt1zffNb0GGUwitXq8F2C2yGZ8TjY0mpBICGO qHvkeU+eyLZ8pYsxczjDeJQLlTSV0ZqWYKT5DZ1ZS/R+9CIA9z58nA3oFDQOpsKQUSDo O4Usl91+mbNDHk+pRRnK1sd9VtubYpGdbLXXHZUhUAurReKsPCkM3CF93Ws1yA3aZA6J VzZe8V6tCD9zTFxsAjuwSJYKLE7xdYrzzanrETqSgsYcRwDX4X6lPdDZvK8WhaW2gtJQ aGKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YhfIqSv9; 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 k24si6967059ejk.354.2021.04.02.11.05.36; Fri, 02 Apr 2021 11:06:00 -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=YhfIqSv9; 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 S236073AbhDBSEQ (ORCPT + 99 others); Fri, 2 Apr 2021 14:04:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:52300 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236045AbhDBSEP (ORCPT ); Fri, 2 Apr 2021 14:04:15 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8C47861103; Fri, 2 Apr 2021 18:04:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1617386654; bh=kFNql03iRJYWFFqCOpmJeMMhSwVZGro/bynT35/QM7Q=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YhfIqSv9ITyDPO8D/gVwv1tf48FBxjioByYJt+Ln6wAreHnm8sNKJ73WUwvKShrhM Drl4OfahXF53Dhe+fsRyJSUJceNSw+Id9vMmmQ8nTyxLpye3bJISmcEfoORt3MyL6G QJPiKZDBajUT1N7UwNzKz9tNE4kIVwol0zHrJrdSrnEnLdfUzIrbaQjw+pbcos7XOO 4dKe4oQje+7TkDwAFzULs5h5Cw7g3Xje+SYnxcMeS5ip3Oh8wEEwrU8pFf6pVe8I2W lbX3/1yiFUJmqPUyi6dLVksyJnytuTi13SbJkvugJrCy7nKzeJ6WWmt2UEKpFCdCk0 q63exufmS2fMw== Date: Fri, 2 Apr 2021 23:34: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 2/6] dt-bindings: soc: actions: Add Actions Semi Owl socinfo binding Message-ID: <20210402180407.GA31906@thinkpad> References: <15da0257b10aa62bfb7046437915d05a614c01ee.1617110420.git.cristian.ciocaltea@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <15da0257b10aa62bfb7046437915d05a614c01ee.1617110420.git.cristian.ciocaltea@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 30, 2021 at 04:48:17PM +0300, Cristian Ciocaltea wrote: > Add devicetree binding for the Actions Semi Owl socinfo driver. > Devicetree binding shouldn't be added for a driver instead for an IP or hw. > Signed-off-by: Cristian Ciocaltea > --- > .../bindings/soc/actions/owl-socinfo.yaml | 57 +++++++++++++++++++ > 1 file changed, 57 insertions(+) > create mode 100644 Documentation/devicetree/bindings/soc/actions/owl-socinfo.yaml > > diff --git a/Documentation/devicetree/bindings/soc/actions/owl-socinfo.yaml b/Documentation/devicetree/bindings/soc/actions/owl-socinfo.yaml > new file mode 100644 > index 000000000000..01e4a8b4f5ac > --- /dev/null > +++ b/Documentation/devicetree/bindings/soc/actions/owl-socinfo.yaml > @@ -0,0 +1,57 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/soc/actions/owl-socinfo.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Actions Semi Owl SoC info module > + > +maintainers: > + - Cristian Ciocaltea > + > +description: | > + Actions Semi Owl SoC info module provides access to various information > + about the S500, S700 and S900 SoC variants, such as serial number or id. > + S700/S900 are not yet confirmed, so please avoid them. > +select: > + properties: > + compatible: > + contains: > + enum: > + - actions,s500-soc > + - actions,s700-soc > + - actions,s900-soc > + required: > + - compatible > + > +properties: > + compatible: > + items: > + - enum: > + - actions,s500-soc > + - actions,s700-soc > + - actions,s900-soc > + - const: simple-bus > + > +required: > + - compatible > + > +additionalProperties: true > + > +examples: > + - | > + / { > + compatible = "roseapplepi,roseapplepi", "actions,s500"; > + model = "Roseapple Pi"; > + #address-cells = <1>; > + #size-cells = <1>; > + > + soc { > + compatible = "actions,s500-soc", "simple-bus"; No. This shouldn't fall under /soc. I think you should added a separate compatible for the reserved memory itself and add a corresponding socinfo driver under drivers/soc. This way it is obvious that the information is contained in a memory region and a driver is used for parsing that. Thanks, Mani > + #address-cells = <1>; > + #size-cells = <1>; > + ranges; > + }; > + }; > + > +... > -- > 2.31.1 >