Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp1483107rdb; Sun, 7 Jan 2024 23:50:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IHW2fEDNBpK94HzPBtAMKLM6sdzIbsWMdJ3I8Gr/UN0w4bvO7HwAmnbaLVN1qlLmugBDyVi X-Received: by 2002:a05:6214:e67:b0:681:98c:aa2e with SMTP id jz7-20020a0562140e6700b00681098caa2emr813709qvb.40.1704700237379; Sun, 07 Jan 2024 23:50:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704700237; cv=none; d=google.com; s=arc-20160816; b=I+9JwP6RKCbhtOPP8XlFna7P+vNJFsIbY+LJs5fILD37iEMLEtxXz1zsyW5wAB4htI p4i2CgDuXqB1DyigQCNAW76lMM2LfEEfaYgcLzAKNK8d8H1xmm/giuyr/8uvI1JU+cR1 FSbP4Zo5r6MZtiTVi9UzCxKy8WyZ+QLURKBs7V/iSSQ6QEi6C8niAaHhTCUzwuud16HB i6cRLWG3Yjg9mR+/kzHNzoaE1nD+HTaLrFGLNzU4flc5M8M1H3RjgRAdJRdz3VHP2P1h d305AhUZgJIhMasT3axlRy3edUBo4sakpgc1xKrYt3tGKlpBeO8rQS8oKSw16fMsW40P y79A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=MYrwE6ngrqKVKL/3yd/dMQHwciK69CisWEUZuUfgnmg=; fh=FI8BZ8h2/XCXipabEPfU436lFWLLHRJCha3HyLpbAnU=; b=pGYEytXcUChLV+yYiWsVh98GpO6PMoeBKGPYWvvsouitBdcneeD4vMJljDe3tfPOL7 onfJMTRz5Y1MYH0FJQjJqiTAPk40YpzqT6tnqSu9iV1rSPIVBLR6NYOz10/pl6L0c41E eZA1V1kPyXXQKA3S810Q3vSREPufIDDoFvmYWSWtrl5eY5SdQjpw1Pt287RnFouegp0t uRW+QnrepKG8riiwdmNF0gASuUR4NCuix/Susj7WpAkn8AaHvxCV2HvUkaPXxOoKziXL 2kNwZhsQwsYUwMI42TVMGFykFv8TGvI5cz4itRhPZ4FSvmGnctt9exxieuOROgUZWuoG TsQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=YcFCNq0G; spf=pass (google.com: domain of linux-kernel+bounces-19156-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19156-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id e28-20020a0caa5c000000b0068028d3a03csi7506882qvb.152.2024.01.07.23.50.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Jan 2024 23:50:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-19156-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=YcFCNq0G; spf=pass (google.com: domain of linux-kernel+bounces-19156-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19156-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 237581C21A61 for ; Mon, 8 Jan 2024 07:50:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4F2648F5C; Mon, 8 Jan 2024 07:50:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="YcFCNq0G" X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E3D0E8BF9; Mon, 8 Jan 2024 07:50:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1704700227; x=1736236227; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=9Gx/BXclvQkv/na5zLAkpV7uWoaXir7Ur5I5u9CS57A=; b=YcFCNq0GjxPEXo8xii2c5MQxGfJDZ38/YXUCrlpoKyka7Qu0JbTCpGWj sN5wg/7gq1LsLTFfri1ggieUR/lkhs9zdpof84bxjKPqnK3rYH7GWAQka Xb4MQ9vYTJCuq++TkkSKraLIhtzE2BYZtTncfeTvwjmZ238l+Qllq/Nge dVD5LzmaYf5ixaUkfNlyO+oeo2/yPfvzmVfXDINfva6Lrp1C+NeF/MjMs 2LdbydQbyxoREGxhA9LEvR+1H/xOLD13dp3Zf5gmW5UB3WLacBXhRG0UJ 2pQMQv8WK29pZw50OlAx4HApt6PkVnzkpUwwKvWTD/CZ+GmArYfbuIxEc Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10946"; a="4898736" X-IronPort-AV: E=Sophos;i="6.04,340,1695711600"; d="scan'208";a="4898736" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jan 2024 23:50:26 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10946"; a="851709859" X-IronPort-AV: E=Sophos;i="6.04,340,1695711600"; d="scan'208";a="851709859" Received: from yilunxu-optiplex-7050.sh.intel.com (HELO localhost) ([10.239.159.165]) by fmsmga004.fm.intel.com with ESMTP; 07 Jan 2024 23:50:22 -0800 Date: Mon, 8 Jan 2024 15:47:26 +0800 From: Xu Yilun To: Michal Simek Cc: linux-kernel@vger.kernel.org, monstr@monstr.eu, michal.simek@xilinx.com, git@xilinx.com, Conor Dooley , Krzysztof Kozlowski , Moritz Fischer , Rob Herring , Tom Rix , Wu Hao , Xu Yilun , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , kishore Manne , "open list:FPGA MANAGER FRAMEWORK" Subject: Re: [PATCH 1/2] dt-bindings: fpga: Convert bridge binding to yaml Message-ID: References: <3100bbc4723643ec1ec7d4548e9ab353c856b564.1704470663.git.michal.simek@amd.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3100bbc4723643ec1ec7d4548e9ab353c856b564.1704470663.git.michal.simek@amd.com> On Fri, Jan 05, 2024 at 05:04:30PM +0100, Michal Simek wrote: > Convert the generic fpga bridge DT binding to json-schema. > > Signed-off-by: Michal Simek Reviewed-by: Xu Yilun Thanks > --- > > .../devicetree/bindings/fpga/fpga-bridge.txt | 13 -------- > .../devicetree/bindings/fpga/fpga-bridge.yaml | 30 +++++++++++++++++++ > .../bindings/fpga/xlnx,pr-decoupler.yaml | 5 +++- > 3 files changed, 34 insertions(+), 14 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/fpga/fpga-bridge.txt > create mode 100644 Documentation/devicetree/bindings/fpga/fpga-bridge.yaml > > diff --git a/Documentation/devicetree/bindings/fpga/fpga-bridge.txt b/Documentation/devicetree/bindings/fpga/fpga-bridge.txt > deleted file mode 100644 > index 72e06917288a..000000000000 > --- a/Documentation/devicetree/bindings/fpga/fpga-bridge.txt > +++ /dev/null > @@ -1,13 +0,0 @@ > -FPGA Bridge Device Tree Binding > - > -Optional properties: > -- bridge-enable : 0 if driver should disable bridge at startup > - 1 if driver should enable bridge at startup > - Default is to leave bridge in current state. > - > -Example: > - fpga_bridge3: fpga-bridge@ffc25080 { > - compatible = "altr,socfpga-fpga2sdram-bridge"; > - reg = <0xffc25080 0x4>; > - bridge-enable = <0>; > - }; > diff --git a/Documentation/devicetree/bindings/fpga/fpga-bridge.yaml b/Documentation/devicetree/bindings/fpga/fpga-bridge.yaml > new file mode 100644 > index 000000000000..248639c6b560 > --- /dev/null > +++ b/Documentation/devicetree/bindings/fpga/fpga-bridge.yaml > @@ -0,0 +1,30 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/fpga/fpga-bridge.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: FPGA Bridge > + > +maintainers: > + - Michal Simek > + > +properties: > + $nodename: > + pattern: "^fpga-bridge(@.*)?$" > + > + bridge-enable: > + description: | > + 0 if driver should disable bridge at startup > + 1 if driver should enable bridge at startup > + Default is to leave bridge in current state. > + $ref: /schemas/types.yaml#/definitions/uint32 > + enum: [ 0, 1 ] > + > +additionalProperties: true > + > +examples: > + - | > + fpga-bridge { > + bridge-enable = <0>; > + }; > diff --git a/Documentation/devicetree/bindings/fpga/xlnx,pr-decoupler.yaml b/Documentation/devicetree/bindings/fpga/xlnx,pr-decoupler.yaml > index a7d4b8e59e19..5bf731f9d99a 100644 > --- a/Documentation/devicetree/bindings/fpga/xlnx,pr-decoupler.yaml > +++ b/Documentation/devicetree/bindings/fpga/xlnx,pr-decoupler.yaml > @@ -9,6 +9,9 @@ title: Xilinx LogiCORE Partial Reconfig Decoupler/AXI shutdown manager Softcore > maintainers: > - Nava kishore Manne > > +allOf: > + - $ref: fpga-bridge.yaml# > + > description: | > The Xilinx LogiCORE Partial Reconfig(PR) Decoupler manages one or more > decouplers/fpga bridges. The controller can decouple/disable the bridges > @@ -51,7 +54,7 @@ required: > - clocks > - clock-names > > -additionalProperties: false > +unevaluatedProperties: false > > examples: > - | > -- > 2.36.1 > >