Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1982359pxb; Sat, 14 Nov 2020 08:52:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJyDCCbR/HtAaCDVHU5IcNdSNI705B5DZFPmNEc2eEwF/qqxacDNF3elNI3YeEthe0CU0o6M X-Received: by 2002:a17:906:5fd0:: with SMTP id k16mr7509941ejv.133.1605372765479; Sat, 14 Nov 2020 08:52:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605372765; cv=none; d=google.com; s=arc-20160816; b=kaWbqsO9Pgw7AjLewpu1fgPnEhf8qIxr25yb5ZSgdiPGEmW/MULp4MAp5IItNWHpC5 b+qukzAsHbVfVVudw9gSDji89T1Aon8IUhBF8qFh1DNXod6zEdSNAWJANAGLaiTXVeBn iCg0rvKA1eWJ40+w+6IDhwHur/V0uJ++QorznOznumKM6qPhcuSjUEkuvp2wWp2nNWq1 tCveeNqXd0EUqDdgqfTSgFrUsl+wGLvZqKvGo/GrHtajXZ9ZSkFFED5W02PKtVVb127t m3Ah5hS5UVMoLFMMrBChHp2DhJbtmR75phzwi6eb8nrf3u7QfCoOO9od4dov1NUv1429 ILag== 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=aRVBRsu67VpMNiZV0EvzM3D1WLASw6LIRYkR/+s56bw=; b=Cr39pm12aSgW08bxnzdfGCnNtb87ynYjpGVL7SpjWj7V6/iXlHMfLzXkAA0YkVrEpB ioDpijG+Aflj+4ex8Yk3FxqyNN1aMu6z+b6g+q8XB56uuts0jSw3QSa6APFR9vk2o3Di eSGcBvEk4RSavpbZ6NUCpLylABrOv67hMftV4vXHH94pudgVUdLyozUZmBxSQqzg9XQn EEWD2hJKCBr7atxWj+FOwDEWgnuyl/jFvZuFVID1qcbTuLCzST9TAI0QdO5ZBB7Ko6b4 XFof9alBLbIX+P+j58B4QAJ54PyqXsxRsNJBGSvGzA0FIfAtFq4pGyuhN/rxhjAhbwSC FXGw== 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 hk6si7945316ejb.716.2020.11.14.08.52.23; Sat, 14 Nov 2020 08:52:45 -0800 (PST) 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 S1726791AbgKNQtn (ORCPT + 99 others); Sat, 14 Nov 2020 11:49:43 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:56208 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726522AbgKNQtm (ORCPT ); Sat, 14 Nov 2020 11:49:42 -0500 Received: by mail-wm1-f66.google.com with SMTP id c9so19343640wml.5; Sat, 14 Nov 2020 08:49:39 -0800 (PST) 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=aRVBRsu67VpMNiZV0EvzM3D1WLASw6LIRYkR/+s56bw=; b=Eo2ZZrqb5VXwI8gBWt50IgtPcTHKc/UsTF+9AQ9MIrEtqHmmt/uwA5IFfzOAXa93K7 y81P9yzghvoGeZIZAGjObuVFLh7G+Fmc0f11xe4+NU80+y4irgUya3XIikJwfSrhLjNZ kVauopNlUHb921Q6IpvWfTeWYRL/rL+0z4/V8rBp+Hk860yhIK8xG3x/d5GA/BkCrvck pFkvq7NwtyI5zGM8rntA6vcMM7eR/YvLDt7tw96grhRakzmefxe7XJC3RElcr0yXK9k2 V31tsv85CFBAcJ2OcSaeZO/VATFVoWYR0s1KNPnzyCUKq9r15ClxspC+M2pD16hZ5EJG L6rA== X-Gm-Message-State: AOAM531xhp0fH2o01hwG2gJ1bRFlm7r5DchSEKlsMpiRlchrY2qVR2Zx /zyiNkvi0hznL7vF5cvEmQ8= X-Received: by 2002:a1c:6302:: with SMTP id x2mr7873931wmb.121.1605372579340; Sat, 14 Nov 2020 08:49:39 -0800 (PST) Received: from kozik-lap (adsl-84-226-167-205.adslplus.ch. [84.226.167.205]) by smtp.googlemail.com with ESMTPSA id k81sm24654429wma.2.2020.11.14.08.49.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Nov 2020 08:49:38 -0800 (PST) Date: Sat, 14 Nov 2020 17:49:36 +0100 From: Krzysztof Kozlowski To: Alice Guo Cc: robh+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, linux-imx@nxp.com, peng.fan@nxp.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v3 1/4] dt-bindings: soc: imx8m: add DT Binding doc for soc unique ID Message-ID: <20201114164936.GA32552@kozik-lap> References: <20201113110409.13546-1-alice.guo@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20201113110409.13546-1-alice.guo@nxp.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 13, 2020 at 07:04:06PM +0800, Alice Guo wrote: > Add DT Binding doc for the Unique ID of i.MX 8M series. > > Signed-off-by: Alice Guo > --- > .../devicetree/bindings/arm/fsl.yaml | 25 +++++++++++++++++++ > 1 file changed, 25 insertions(+) > > diff --git a/Documentation/devicetree/bindings/arm/fsl.yaml b/Documentation/devicetree/bindings/arm/fsl.yaml > index e4db0f9ed664..f4faebbb57da 100644 > --- a/Documentation/devicetree/bindings/arm/fsl.yaml > +++ b/Documentation/devicetree/bindings/arm/fsl.yaml > @@ -901,6 +901,31 @@ properties: > - fsl,s32v234-evb # S32V234-EVB2 Customer Evaluation Board > - const: fsl,s32v234 > > + soc: > + type: object > + properties: > + compatible: > + oneOf: > + - description: i.MX8M SoCs > + items: > + - enum: > + - fsl,imx8mm-soc > + - fsl,imx8mn-soc > + - fsl,imx8mp-soc > + - fsl,imx8mq-soc > + - const: simple-bus > + > + - description: Other SoCs > + items: > + - const: simple-bus > + > + nvmem-cells: > + maxItems: 1 > + description: Phandle to the SOC Unique ID provided by a nvmem node > + > + nvmem-cells-names: > + const: soc_unique_id > + > additionalProperties: true The "soc" node should be required for these compatibles. Otherwise you will have to stay with this backwards-compatible-DTB-device-initcall-glue for many years... I think you can achieve it with allOf. Best regards, Krzysztof