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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CF84DCDB47E for ; Fri, 13 Oct 2023 16:23:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; 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=NjmdrfdW7mnR2vGaGG4suslAdrrQt0MF8aVQbxpqUE8=; b=UnhEcAwL+pmvnJ V7A7XgeCGLhy2bgMkl7MPvkRHZuq5vr7bUik+y5Wa5GKEpWqEnczermA7vLJBMzhYHh7yHENgOpJ+ TgkIdNdna/+7ntj3l3gmrYsE6P3Bqn45oTEM/nOl+KggzdAzmu1EK8J22PQIoP4DWYxH0WSS6dA2W 0DzxTZp7TRwybRcpHaDkXuu+oQTmf2VBZb5sP6Qhc3oKLpG3i9PZv5aLTj6wtErZoaou2gbdkhZ2b u1yuAh8oTmuYkhD74fvuKpm/gzFWDi/PsKkQC0DWTrz/qjQhSu5uWmz9xS4F/iR7b5AhDZAfyR/BR yXunZDKhmw6ZVxqKdzAQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qrKwU-003qtL-0T; Fri, 13 Oct 2023 16:23:14 +0000 Received: from mail-oo1-f41.google.com ([209.85.161.41]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qrKwO-003qs8-1y for linux-arm-kernel@lists.infradead.org; Fri, 13 Oct 2023 16:23:12 +0000 Received: by mail-oo1-f41.google.com with SMTP id 006d021491bc7-57b635e3fd9so1192784eaf.3 for ; Fri, 13 Oct 2023 09:23:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697214186; x=1697818986; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=NTeWtczTCim3bUIkTH8/1bxuqk9pVOgqh9GbNsNWAg4=; b=EBFv6xrIHpm1AvtGLCZxuWmEfNvEA8F43+IqZXBlLEmnYO5KS4CZFrJ0z6JkMBtcH0 f3VKiz55QZiGwtsOs8tIiCmQnsgYtAoWvTyME95mAacQ32CWoUohm6zE2iD6tIDNJSUt Qtt9TQqlFwz0Ie/YHeUI33TUiMYTeY968h/0UZJ+btpi8lSxA0XeEYzQJ5GgfJt9xzCX QR1Vaoza2FrkFVPUrJnWNVYRCdXfcpJLTer0Hq5WXwCyFCF0Xh2u9FDGA+TtOX0N0Qr7 ZJS1G33/JqPwSIDD9U+kcoGwBNK+I3Am7p6rX7uCjASvPczVl0v+iD7rUrQli5a60rJ3 zCQw== X-Gm-Message-State: AOJu0Yw7ydpDV0tFk7gWpCDROspYmh7zHteKs9LouU8gInRlCBo2mf8D QD4cndB6b1FypCbc/UUJsw== X-Google-Smtp-Source: AGHT+IE9D0QOvXopUn2q1b4CNs+O8E6MeuJ6J3Rueqw1UVR0S1wokx9EVO1bmxvkK3J7jzfvrnszSg== X-Received: by 2002:a4a:3543:0:b0:57d:e3e4:49bc with SMTP id w3-20020a4a3543000000b0057de3e449bcmr25443137oog.8.1697214186330; Fri, 13 Oct 2023 09:23:06 -0700 (PDT) Received: from robh_at_kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id y45-20020a4a9830000000b0056dbeb283cesm3190019ooi.43.2023.10.13.09.23.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 09:23:04 -0700 (PDT) Received: (nullmailer pid 4063494 invoked by uid 1000); Fri, 13 Oct 2023 16:23:03 -0000 Date: Fri, 13 Oct 2023 11:23:03 -0500 From: Rob Herring To: Praveen Teja Kundanala Cc: srinivas.kandagatla@linaro.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, michal.simek@amd.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/5] dt-bindings: nvmem: Convert xlnx,zynqmp-nvmem.txt to yaml Message-ID: <20231013162303.GA3803760-robh@kernel.org> References: <20231013101450.573-1-praveen.teja.kundanala@amd.com> <20231013101450.573-3-praveen.teja.kundanala@amd.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20231013101450.573-3-praveen.teja.kundanala@amd.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231013_092308_650139_097B6E76 X-CRM114-Status: GOOD ( 23.78 ) 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 Fri, Oct 13, 2023 at 03:44:47PM +0530, Praveen Teja Kundanala wrote: > Convert the xlnx,zynqmp-nvmem.txt to yaml. > > Signed-off-by: Praveen Teja Kundanala > --- > .../bindings/nvmem/xlnx,zynqmp-nvmem.txt | 46 --------------- > .../bindings/nvmem/xlnx,zynqmp-nvmem.yaml | 59 +++++++++++++++++++ > 2 files changed, 59 insertions(+), 46 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/nvmem/xlnx,zynqmp-nvmem.txt > create mode 100644 Documentation/devicetree/bindings/nvmem/xlnx,zynqmp-nvmem.yaml > > diff --git a/Documentation/devicetree/bindings/nvmem/xlnx,zynqmp-nvmem.txt b/Documentation/devicetree/bindings/nvmem/xlnx,zynqmp-nvmem.txt > deleted file mode 100644 > index 4881561b3a02..000000000000 > --- a/Documentation/devicetree/bindings/nvmem/xlnx,zynqmp-nvmem.txt > +++ /dev/null > @@ -1,46 +0,0 @@ > --------------------------------------------------------------------------- > -= Zynq UltraScale+ MPSoC nvmem firmware driver binding = > --------------------------------------------------------------------------- > -The nvmem_firmware node provides access to the hardware related data > -like soc revision, IDCODE... etc, By using the firmware interface. > - > -Required properties: > -- compatible: should be "xlnx,zynqmp-nvmem-fw" > - > -= Data cells = > -Are child nodes of silicon id, bindings of which as described in > -bindings/nvmem/nvmem.txt > - > -------- > - Example > -------- > -firmware { > - zynqmp_firmware: zynqmp-firmware { > - compatible = "xlnx,zynqmp-firmware"; > - method = "smc"; > - > - nvmem_firmware { > - compatible = "xlnx,zynqmp-nvmem-fw"; > - #address-cells = <1>; > - #size-cells = <1>; > - > - /* Data cells */ > - soc_revision: soc_revision { > - reg = <0x0 0x4>; > - }; > - }; > - }; > -}; > - > -= Data consumers = > -Are device nodes which consume nvmem data cells. > - > -For example: > - pcap { > - ... > - > - nvmem-cells = <&soc_revision>; > - nvmem-cell-names = "soc_revision"; > - > - ... > - }; > diff --git a/Documentation/devicetree/bindings/nvmem/xlnx,zynqmp-nvmem.yaml b/Documentation/devicetree/bindings/nvmem/xlnx,zynqmp-nvmem.yaml > new file mode 100644 > index 000000000000..e03ed8c32537 > --- /dev/null > +++ b/Documentation/devicetree/bindings/nvmem/xlnx,zynqmp-nvmem.yaml > @@ -0,0 +1,59 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/nvmem/xlnx,zynqmp-nvmem.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Zynq UltraScale+ MPSoC Non Volatile Memory interface > + > +description: | > + The ZynqMP MPSoC provides access to the hardware related data > + like SOC revision, IDCODE. > + > +maintainers: > + - Kalyani Akula > + - Praveen Teja Kundanala > + > +allOf: > + - $ref: "nvmem.yaml#" > + > +properties: > + compatible: > + const: xlnx,zynqmp-nvmem-fw > + > + '#address-cells': > + const: 1 > + > + '#size-cells': > + const: 1 > + > +required: > + - compatible > + > +patternProperties: > + "^soc_revision@0$": Fixed string, not a pattern. dtschema will now flag this. Thanks for the test case. ;) > + type: object Needs 'additionalProperties' or... > + description: > + This node is used to read SOC version and IDCODE of ZynqMP. Read-only. > + > + properties: > + reg: > + maxItems: 1 > + > + required: > + - reg fixed-cell.yaml (via nvmem.yaml) already says this, so this can all be dropped. Except that this[1] just landed, so you will need to adapt to it. Though there is an issue that fixed-cell.yaml doesn't restrict the allowed properties, so that needs to happen somewhere... Not sure what the fix is. Hopefully fixed-cell.yaml can just be changed to 'additionalProperties: false', but need to see if other properties are in use. Rob [1] https://lore.kernel.org/all/169667333484.74178.7121029453685069845.b4-ty@linaro.org/ _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel