Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5183833pxj; Wed, 9 Jun 2021 11:05:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyBOqgxiDQZmwFP9H2sLrz4I3q7mqErh4rnJOnpZlkrqYX0bE/rCyEtBpKz+jxzAFyasLx+ X-Received: by 2002:a17:906:4483:: with SMTP id y3mr1080042ejo.92.1623261908928; Wed, 09 Jun 2021 11:05:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623261908; cv=none; d=google.com; s=arc-20160816; b=Cr1OG/tLpodIzjNKpmj9cIPw7T6njydoRbAri8EMD0dUcFU5QPuArs2ra9tQZk8/Yp /fQdi7cOTWY8iIiljmARpHbVk8DFR2vowcWMo2uaP85K0wVd3AyojeB8Ya77oJDu8FR2 A7emMFtx26V43atNyvyQthJxqjjo5cjO0cN1Yxqbmww/AJJ+8n6mF106cj2KIHhVV8pr lfFWrnhxBXi8ztWAOdba0IpngzYM45vPXIkz+i6fhhIW/xvPrrqilLhJqwAaF5mNuaRh xjILPDdUAvN4yoF/HZjt6I4s1A3LU1SNec9rujVvzBF4Jj3NIupI/vqtEnOMfueNbTQW iswA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=Uc80ffGUW4bvL26aSzQf5lcnkR5pCyi0tKOquETfeS4=; b=kJFiOKEmBk6XmQPAPZDLJKzzc0XrjX7eln6D37M30Er/thxVPrzsCtWNjqJZgWFoju Om6Yt2gddUJsADVqGlzMGJjB+T3EZRyhzfgfyAokQpsumu4AGnrPMGHE1sGvOXXedTUO ho0OwefIZv1LaC0ZZNUbsanGUUUVECJqm8eIKIh/dvpLw95pmJIRCJLQSv6eT4cGiLDl TB8R3z/OWZO+GdKKYIuuql0jAnrqWh9AfFpHh7Zfx1SAr/z3n5FeC1IsZ9RmGR1JwAiY rdqVo+bbHhc0ZXQiAG1yZh0FiRlOcP4NyvrvSSw6wpaL5RhGubHiJ13/cFR+YZRzgeOu gX+g== 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=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t12si316378edc.333.2021.06.09.11.04.25; Wed, 09 Jun 2021 11:05:08 -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=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236294AbhFIP2r (ORCPT + 99 others); Wed, 9 Jun 2021 11:28:47 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:46493 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236254AbhFIP2l (ORCPT ); Wed, 9 Jun 2021 11:28:41 -0400 Received: from mail-wr1-f70.google.com ([209.85.221.70]) by youngberry.canonical.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1lr06P-0000Ia-OR for linux-kernel@vger.kernel.org; Wed, 09 Jun 2021 15:26:45 +0000 Received: by mail-wr1-f70.google.com with SMTP id z3-20020adfdf830000b02901198337bc39so10345023wrl.0 for ; Wed, 09 Jun 2021 08:26:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Uc80ffGUW4bvL26aSzQf5lcnkR5pCyi0tKOquETfeS4=; b=pJYNN6VYP4WHpNU/Hkx/G76l8rCGWdr9YHhrf/pmJgAnrAur/hP4mKcjQRWdbjLLD/ okJsyWBWp56sIh/vxrbLdoIqkg1O16uebvlDEiOAULbYPAbLl8RpxLixDwU+PVzBqcvf oc0mVriameKJEumj7akM5ccyQGwE0WEpSxc+Pi0PP//fQDIHeE4EqTkoSb+GJu+/FKui P5ij7PDWh/k3L5gY9dLrSbhGFR4w9sQBjads4u+ptH8zgCwOGFmg1P5koP1XocoiW/bz wkHxC6pda2amYEYd0lFm+xBwS7/FDoZBKH23ER9p3pcqL6fMXLdRedaqrPPkCy9Z94kJ B7DQ== X-Gm-Message-State: AOAM53382avwBoKKwXnvqmpezazN5WMbSeISYx+em/zzW0LbQRrR9SPs lWq85+dDadbfIJr8cGHtxWhkLW8xydK9u5YP58WimAVBQ7FJkbVM2u8TZi4qVVEpb929dXLi+HJ XY37ladwyoB14VbdKCxehrTwIPZEzR92aqXkFYVNC0g== X-Received: by 2002:adf:ed8d:: with SMTP id c13mr424020wro.164.1623252405364; Wed, 09 Jun 2021 08:26:45 -0700 (PDT) X-Received: by 2002:adf:ed8d:: with SMTP id c13mr423998wro.164.1623252405214; Wed, 09 Jun 2021 08:26:45 -0700 (PDT) Received: from [192.168.1.115] (xdsl-188-155-177-222.adslplus.ch. [188.155.177.222]) by smtp.gmail.com with ESMTPSA id k42sm7937283wms.0.2021.06.09.08.26.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 09 Jun 2021 08:26:44 -0700 (PDT) Subject: Re: [PATCH v22 09/18] dt-binding: memory: pl353-smc: Convert to yaml To: Miquel Raynal Cc: Richard Weinberger , Vignesh Raghavendra , Tudor Ambarus , linux-mtd@lists.infradead.org, Rob Herring , devicetree@vger.kernel.org, Michal Simek , Naga Sureshkumar Relli , Amit Kumar Mahapatra , Thomas Petazzoni , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, helmut.grohne@intenta.de, Srinivas Goud , Siva Durga Prasad Paladugu References: <20210609080112.1753221-1-miquel.raynal@bootlin.com> <20210609080112.1753221-10-miquel.raynal@bootlin.com> <20210609153410.53eadf8e@xps13> <77db74d3-c44a-6aa3-1b61-f6bed565fa04@canonical.com> <20210609161128.16cdf5ec@xps13> From: Krzysztof Kozlowski Message-ID: <32c7adf2-6f4e-ef2d-a137-a9674f9e6baa@canonical.com> Date: Wed, 9 Jun 2021 17:26:42 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <20210609161128.16cdf5ec@xps13> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/06/2021 16:11, Miquel Raynal wrote: > Hi Krzysztof, Rob, > > Krzysztof Kozlowski wrote on Wed, 9 > Jun 2021 15:54:19 +0200: > >> On 09/06/2021 15:34, Miquel Raynal wrote: >>> Hi Krzysztof, >>> >>> Krzysztof Kozlowski wrote on Wed, 9 >>> Jun 2021 14:12:40 +0200: >>> >>>> On 09/06/2021 10:01, Miquel Raynal wrote: >>>>> Convert this binding file to yaml schema. >>>>> >>>>> Signed-off-by: Miquel Raynal >>>>> --- >>>>> .../memory-controllers/arm,pl353-smc.yaml | 133 ++++++++++++++++++ >>>>> .../bindings/memory-controllers/pl353-smc.txt | 45 ------ >>>>> 2 files changed, 133 insertions(+), 45 deletions(-) >>>>> create mode 100644 Documentation/devicetree/bindings/memory-controllers/arm,pl353-smc.yaml >>>>> delete mode 100644 Documentation/devicetree/bindings/memory-controllers/pl353-smc.txt >>>>> >>>>> diff --git a/Documentation/devicetree/bindings/memory-controllers/arm,pl353-smc.yaml b/Documentation/devicetree/bindings/memory-controllers/arm,pl353-smc.yaml >>>>> new file mode 100644 >>>>> index 000000000000..1de6f87d4986 >>>>> --- /dev/null >>>>> +++ b/Documentation/devicetree/bindings/memory-controllers/arm,pl353-smc.yaml >>>>> @@ -0,0 +1,133 @@ >>>>> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) >>>>> +%YAML 1.2 >>>>> +--- >>>>> +$id: http://devicetree.org/schemas/memory-controllers/arm,pl353-smc.yaml# >>>>> +$schema: http://devicetree.org/meta-schemas/core.yaml# >>>>> + >>>>> +title: ARM PL353 Static Memory Controller (SMC) device-tree bindings >>>>> + >>>>> +maintainers: >>>>> + - Miquel Raynal >>>>> + - Naga Sureshkumar Relli >>>>> + >>>>> +description: >>>>> + The PL353 Static Memory Controller is a bus where you can connect two kinds >>>>> + of memory interfaces, which are NAND and memory mapped interfaces (such as >>>>> + SRAM or NOR). >>>>> + >>>>> +# We need a select here so we don't match all nodes with 'arm,primecell' >>>>> +select: >>>>> + properties: >>>>> + compatible: >>>>> + contains: >>>>> + enum: >>>>> + - arm,pl353-smc-r2p1 >>>> >>>> That's a const... but also I don't get the need for select. >>> >>> I think this is needed to ensure this binding is not enforced against >>> arm,primecell compatible nodes which are not featuring the >>> arm,pl353-smc-r2p1 compatible. >> >> Which seems to be result of unusual compatible match, so once you >> convert to regular match, this select is not needed. > > I don't think so, I received a hint from Rob some time ago, he told > me to add this additional select line as in all other arm,primecell > binding. > > Rob, any additional info regarding this? Hmm, I think you' are right. Since arm,primecell is used in many other compatibles (including ones without schema yet), the select is needed. In such case the select can be only: select: properties: compatible: contains: const: arm,pl353-smc-r2p1 Best regards, Krzysztof