Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp1482834rdb; Sun, 7 Jan 2024 23:49:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IE4LXvdu9xoX+15lsdTx83BeaXO0NSaREYRzlcaK6XiuiDf4XQ+iMncwIXedSMh1Z1E5bx5 X-Received: by 2002:a05:622a:14ca:b0:428:3bee:ea2d with SMTP id u10-20020a05622a14ca00b004283beeea2dmr5096690qtx.96.1704700173214; Sun, 07 Jan 2024 23:49:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704700173; cv=none; d=google.com; s=arc-20160816; b=t/uOe6s71VNBgkfPNggNKDfEVG18QNV/pZ32miD9cvvE7H3Q86XTuOwM7KabKQNOrO Y2jjZzCc2qvd6eT+HxRlKp2e50yU/iITZHOfxb5u0RSMaTaEi47KJNKwbwycpP0yYSbN pdvh/x56hat0GEN1VsQ/Vg4xdsqfoOqKbM2fWIVpVdU/izh+a9Gzz9EEUfu8N6DRJQK7 IZdulRrj9MBXVJGV8xAPpLkhiLq35VF3a0CPyn0i5ud0rABnk5OfTxYqdVk4VGFGjctL isdXgxy7834uAJiHSuGraNHyce5iSpnNkxdEAh1NFPNVx/bjEsNS72yXxPjDsFKfQmrc h//Q== 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=A/UaUNxTxMQ+2bBesXWPRPP8qHmMFBOo7xRvnWco+80=; fh=7v1l0/D4nPmt5F3P61+EgeZLyveRhQGCKVPtiR7EKnc=; b=Cj/TDP7Wq6L6JOXjID90DB/fvHBjPAg70l1uYpT9uDXlWwR9359GMimIuxnb7noXFp ChBdU3OGUFo5FqKjHCzH+h60IuF1vG5kftRKzmLcnNn2Z654nf2CNuyROGtwnG3z44kc mjZKnGi36mF78wlpdnLqoHOK4/YtGIgCCb/rv0rEl09eIA2HGjYz5qksSJfVAQq9CVcq hlJz710cafB3b41GL75A+/WTKvYH3YoOJ6WjPIzNanbunTKQ8bPmryE/73kgWxvBXHpA sMYmUQhZRh/7G7NG/VcAhyMlnLKKmSAO7ZkQL0zCOpjk5vt1DwECfR/eRE2RpxWvnwg9 0jrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=KITGLv8y; spf=pass (google.com: domain of linux-kernel+bounces-19155-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19155-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d13-20020a05622a100d00b00417b523872dsi7186655qte.621.2024.01.07.23.49.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Jan 2024 23:49:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-19155-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=KITGLv8y; spf=pass (google.com: domain of linux-kernel+bounces-19155-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19155-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 DF0891C21A84 for ; Mon, 8 Jan 2024 07:49:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 832AF8F55; Mon, 8 Jan 2024 07:49:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="KITGLv8y" 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 E4DA08BF3; Mon, 8 Jan 2024 07:49:20 +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=1704700161; x=1736236161; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=3JUd2u6+WmcDLRkS6SGeD8yDlGeehHUpeG8fD2943NU=; b=KITGLv8yEpsIJKwrOUN9uzoHyomcAguat2ouHa+IA0iJFiM87hB3dfbd oDSUZa65N61GRRi0+l0esMGaJnEntwf+/rW2241H2htlDJ5vi78HQMFAZ 8VMfEEKNtWgatc1MynZT81K2bSG7scqMTQe73lv3R0r6tMyhEgrqvjpet cKVx71LbjpHdtIVMSb/E+oBTssMIEI29785XE09h0o7SlMbcs/l4Y7fnr fWVhtUGwWs2YMtFQpjlHG9P0e3h+uYfMttuPL+8xamL4SDK5/OsGJ9cXp UG8ZTa3os9yOufz/S/oRCGvNR8RrMV3pOeJu5ywA/Vl4miZAlIX5/QcJP w==; X-IronPort-AV: E=McAfee;i="6600,9927,10946"; a="4898552" X-IronPort-AV: E=Sophos;i="6.04,340,1695711600"; d="scan'208";a="4898552" 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:49:20 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10946"; a="851709196" X-IronPort-AV: E=Sophos;i="6.04,340,1695711600"; d="scan'208";a="851709196" 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:49:16 -0800 Date: Mon, 8 Jan 2024 15:46:20 +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" , "open list:FPGA MANAGER FRAMEWORK" Subject: Re: [PATCH 2/2] dt-bindings: fpga: altera: Convert bridge bindings 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: On Fri, Jan 05, 2024 at 05:04:31PM +0100, Michal Simek wrote: > Convert Altera's bridges to yaml with using fpga-bridge.yaml. > > Signed-off-by: Michal Simek > --- > > .../fpga/altera-fpga2sdram-bridge.txt | 13 ---- > .../fpga/altera-fpga2sdram-bridge.yaml | 34 ++++++++++ > .../bindings/fpga/altera-freeze-bridge.txt | 20 ------ > .../bindings/fpga/altera-freeze-bridge.yaml | 41 ++++++++++++ > .../bindings/fpga/altera-hps2fpga-bridge.txt | 36 ----------- > .../bindings/fpga/altera-hps2fpga-bridge.yaml | 63 +++++++++++++++++++ > 6 files changed, 138 insertions(+), 69 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/fpga/altera-fpga2sdram-bridge.txt > create mode 100644 Documentation/devicetree/bindings/fpga/altera-fpga2sdram-bridge.yaml > delete mode 100644 Documentation/devicetree/bindings/fpga/altera-freeze-bridge.txt > create mode 100644 Documentation/devicetree/bindings/fpga/altera-freeze-bridge.yaml > delete mode 100644 Documentation/devicetree/bindings/fpga/altera-hps2fpga-bridge.txt > create mode 100644 Documentation/devicetree/bindings/fpga/altera-hps2fpga-bridge.yaml > > diff --git a/Documentation/devicetree/bindings/fpga/altera-fpga2sdram-bridge.txt b/Documentation/devicetree/bindings/fpga/altera-fpga2sdram-bridge.txt > deleted file mode 100644 > index 5dd0ff0f7b4e..000000000000 > --- a/Documentation/devicetree/bindings/fpga/altera-fpga2sdram-bridge.txt > +++ /dev/null > @@ -1,13 +0,0 @@ > -Altera FPGA To SDRAM Bridge Driver > - > -Required properties: > -- compatible : Should contain "altr,socfpga-fpga2sdram-bridge" > - > -See Documentation/devicetree/bindings/fpga/fpga-bridge.txt for generic bindings. > - > -Example: > - fpga_bridge3: fpga-bridge@ffc25080 { > - compatible = "altr,socfpga-fpga2sdram-bridge"; > - reg = <0xffc25080 0x4>; > - bridge-enable = <0>; > - }; > diff --git a/Documentation/devicetree/bindings/fpga/altera-fpga2sdram-bridge.yaml b/Documentation/devicetree/bindings/fpga/altera-fpga2sdram-bridge.yaml > new file mode 100644 > index 000000000000..a3f3fe2729f2 > --- /dev/null > +++ b/Documentation/devicetree/bindings/fpga/altera-fpga2sdram-bridge.yaml > @@ -0,0 +1,34 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/fpga/altera-fpga2sdram-bridge.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Altera FPGA To SDRAM Bridge > + > +maintainers: > + - Xu Yilun > + > +allOf: > + - $ref: fpga-bridge.yaml# > + > +properties: > + compatible: > + const: altr,socfpga-fpga2sdram-bridge > + > + reg: > + maxItems: 1 > + > +required: > + - compatible > + - reg Is the 'reg' required? I didn't see it in original txt. > + > +unevaluatedProperties: false > + > +examples: > + - | > + fpga-bridge@ffc25080 { > + compatible = "altr,socfpga-fpga2sdram-bridge"; > + reg = <0xffc25080 0x4>; > + bridge-enable = <0>; > + }; > diff --git a/Documentation/devicetree/bindings/fpga/altera-freeze-bridge.txt b/Documentation/devicetree/bindings/fpga/altera-freeze-bridge.txt > deleted file mode 100644 > index 8b26fbcff3c6..000000000000 > --- a/Documentation/devicetree/bindings/fpga/altera-freeze-bridge.txt > +++ /dev/null > @@ -1,20 +0,0 @@ > -Altera Freeze Bridge Controller Driver > - > -The Altera Freeze Bridge Controller manages one or more freeze bridges. > -The controller can freeze/disable the bridges which prevents signal > -changes from passing through the bridge. The controller can also > -unfreeze/enable the bridges which allows traffic to pass through the > -bridge normally. > - > -Required properties: > -- compatible : Should contain "altr,freeze-bridge-controller" > -- regs : base address and size for freeze bridge module > - > -See Documentation/devicetree/bindings/fpga/fpga-bridge.txt for generic bindings. > - > -Example: > - freeze-controller@100000450 { > - compatible = "altr,freeze-bridge-controller"; > - regs = <0x1000 0x10>; > - bridge-enable = <0>; > - }; > diff --git a/Documentation/devicetree/bindings/fpga/altera-freeze-bridge.yaml b/Documentation/devicetree/bindings/fpga/altera-freeze-bridge.yaml > new file mode 100644 > index 000000000000..4a89e3980669 > --- /dev/null > +++ b/Documentation/devicetree/bindings/fpga/altera-freeze-bridge.yaml > @@ -0,0 +1,41 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/fpga/altera-freeze-bridge.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Altera Freeze Bridge Controller > + > +description: | > + The Altera Freeze Bridge Controller manages one or more freeze bridges. > + The controller can freeze/disable the bridges which prevents signal > + changes from passing through the bridge. The controller can also > + unfreeze/enable the bridges which allows traffic to pass through the bridge > + normally. > + > +maintainers: > + - Xu Yilun > + > +allOf: > + - $ref: fpga-bridge.yaml# > + > +properties: > + compatible: > + const: altr,freeze-bridge-controller > + > + reg: > + maxItems: 1 > + > +required: > + - compatible > + - reg > + > +unevaluatedProperties: false > + > +examples: > + - | > + fpga-bridge@100000450 { > + compatible = "altr,freeze-bridge-controller"; > + reg = <0x1000 0x10>; > + bridge-enable = <0>; > + }; > diff --git a/Documentation/devicetree/bindings/fpga/altera-hps2fpga-bridge.txt b/Documentation/devicetree/bindings/fpga/altera-hps2fpga-bridge.txt > deleted file mode 100644 > index 68cce3945b10..000000000000 > --- a/Documentation/devicetree/bindings/fpga/altera-hps2fpga-bridge.txt > +++ /dev/null > @@ -1,36 +0,0 @@ > -Altera FPGA/HPS Bridge Driver > - > -Required properties: > -- regs : base address and size for AXI bridge module > -- compatible : Should contain one of: > - "altr,socfpga-lwhps2fpga-bridge", > - "altr,socfpga-hps2fpga-bridge", or > - "altr,socfpga-fpga2hps-bridge" > -- resets : Phandle and reset specifier for this bridge's reset > -- clocks : Clocks used by this module. > - > -See Documentation/devicetree/bindings/fpga/fpga-bridge.txt for generic bindings. > - > -Example: > - fpga_bridge0: fpga-bridge@ff400000 { > - compatible = "altr,socfpga-lwhps2fpga-bridge"; > - reg = <0xff400000 0x100000>; > - resets = <&rst LWHPS2FPGA_RESET>; > - clocks = <&l4_main_clk>; > - bridge-enable = <0>; > - }; > - > - fpga_bridge1: fpga-bridge@ff500000 { > - compatible = "altr,socfpga-hps2fpga-bridge"; > - reg = <0xff500000 0x10000>; > - resets = <&rst HPS2FPGA_RESET>; > - clocks = <&l4_main_clk>; > - bridge-enable = <1>; > - }; > - > - fpga_bridge2: fpga-bridge@ff600000 { > - compatible = "altr,socfpga-fpga2hps-bridge"; > - reg = <0xff600000 0x100000>; > - resets = <&rst FPGA2HPS_RESET>; > - clocks = <&l4_main_clk>; > - }; > diff --git a/Documentation/devicetree/bindings/fpga/altera-hps2fpga-bridge.yaml b/Documentation/devicetree/bindings/fpga/altera-hps2fpga-bridge.yaml > new file mode 100644 > index 000000000000..f8210449dfed > --- /dev/null > +++ b/Documentation/devicetree/bindings/fpga/altera-hps2fpga-bridge.yaml > @@ -0,0 +1,63 @@ Is the License identifier also needed? Otherwise, Reviewed-by: Xu Yilun Thanks > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/fpga/altera-hps2fpga-bridge.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Altera FPGA/HPS Bridge > + > +maintainers: > + - Xu Yilun > + > +allOf: > + - $ref: fpga-bridge.yaml# > + > +properties: > + compatible: > + enum: > + - altr,socfpga-lwhps2fpga-bridge > + - altr,socfpga-hps2fpga-bridge > + - altr,socfpga-fpga2hps-bridge > + > + reg: > + maxItems: 1 > + > + resets: > + maxItems: 1 > + > + clocks: > + maxItems: 1 > + > +required: > + - compatible > + - reg > + - clocks > + - resets > + > +unevaluatedProperties: false > + > +examples: > + - | > + #include > + > + fpga-bridge@ff400000 { > + compatible = "altr,socfpga-lwhps2fpga-bridge"; > + reg = <0xff400000 0x100000>; > + bridge-enable = <0>; > + clocks = <&l4_main_clk>; > + resets = <&rst LWHPS2FPGA_RESET>; > + }; > + > + fpga_bridge1: fpga-bridge@ff500000 { > + compatible = "altr,socfpga-hps2fpga-bridge"; > + reg = <0xff500000 0x10000>; > + bridge-enable = <1>; > + clocks = <&l4_main_clk>; > + resets = <&rst HPS2FPGA_RESET>; > + }; > + > + fpga_bridge2: fpga-bridge@ff600000 { > + compatible = "altr,socfpga-fpga2hps-bridge"; > + reg = <0xff600000 0x100000>; > + clocks = <&l4_main_clk>; > + resets = <&rst FPGA2HPS_RESET>; > + }; > -- > 2.36.1 > >