From patchwork Wed Feb 21 17:33:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Moritz Fischer X-Patchwork-Id: 10233627 X-Patchwork-Delegate: moritz.fischer@ettus.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5726360392 for ; Wed, 21 Feb 2018 17:38:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 48FAD26B41 for ; Wed, 21 Feb 2018 17:38:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3D7C226BE9; Wed, 21 Feb 2018 17:38:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BF1BF26CFF for ; Wed, 21 Feb 2018 17:38:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754948AbeBURh7 (ORCPT ); Wed, 21 Feb 2018 12:37:59 -0500 Received: from mail-pl0-f66.google.com ([209.85.160.66]:39852 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753724AbeBURh6 (ORCPT ); Wed, 21 Feb 2018 12:37:58 -0500 Received: by mail-pl0-f66.google.com with SMTP id s13so1297662plq.6 for ; Wed, 21 Feb 2018 09:37:58 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=F9gXvYwcKrR6gta3qJipWSiMdjrcmgPVNRwTCtwWrQs=; b=Vb1CCmwJyygauYfA35vygESlnzW9/6K17A+/cZj9z2VH3KV9Lb7LnqQqjnNJzY9fRs dzf8/fH3uEyZEm6BVg4U0Q1sBiCoYYoAksFQgbAT1krCcwx7/ME0HRYqeSMjsVV9Z+ih prFhd9gt5k7oZn5GS4PsEi635CZ63ln4EFXFDnEjIN0TNeKJoHNkkxM6Bprn46YtMC/A wpsyFuxUHVTYMYrKzoL9czOcIOE47DazEQqCf4WJrnKUnSHzhf8d+aSxqpUUFCx2HBVO wOV8h7+EHdj443xgffyjwBkVycmtF/VEtnDk/hwUC9gx4jnK5XX6v3b4vIjAbtE5uvL7 gmYw== X-Gm-Message-State: APf1xPDXWtv3YAacPNuQjhq7wDJB6U6+bZFnFYlAz/2TKbIssikGG0zX 3+WbcJFqWgdbF89qZOC0GaYD/ThodEQ= X-Google-Smtp-Source: AH8x225eAIYfWx2fLOvJJAP8kZlp+OAFvWZzOXbGLTPVHMRgQsLYexfg1yQlRPeT0nn9UYAMWybPkg== X-Received: by 2002:a17:902:7c84:: with SMTP id y4-v6mr3775998pll.305.1519234677233; Wed, 21 Feb 2018 09:37:57 -0800 (PST) Received: from localhost (207-114-172-147.static.twtelecom.net. [207.114.172.147]) by smtp.gmail.com with ESMTPSA id y131sm54018988pfg.30.2018.02.21.09.37.56 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 21 Feb 2018 09:37:56 -0800 (PST) From: Moritz Fischer To: linux-fpga@vger.kernel.org Cc: linux-kernel@vger.kernel.org, atull@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, michal.simek@xilinx.com, devicetree@vger.kernel.org, Moritz Fischer Subject: [PATCH] dt-bindings: fpga: Consolidate bridge properties Date: Wed, 21 Feb 2018 09:33:06 -0800 Message-Id: <20180221173306.17265-1-mdf@kernel.org> X-Mailer: git-send-email 2.16.1 Sender: linux-fpga-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fpga@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Consolidate bridge properties in a single file, instead of duplicating the same optional property over and over again. Signed-off-by: Moritz Fischer Cc: Alan Tull Cc: Rob Herring Acked-by: Alan Tull Acked-by: Michal Simek Reviewed-by: Rob Herring --- .../devicetree/bindings/fpga/altera-fpga2sdram-bridge.txt | 5 +---- .../devicetree/bindings/fpga/altera-freeze-bridge.txt | 5 +---- .../devicetree/bindings/fpga/altera-hps2fpga-bridge.txt | 5 +---- Documentation/devicetree/bindings/fpga/fpga-bridge.txt | 15 +++++++++++++++ .../devicetree/bindings/fpga/xilinx-pr-decoupler.txt | 8 ++------ 5 files changed, 20 insertions(+), 18 deletions(-) create mode 100644 Documentation/devicetree/bindings/fpga/fpga-bridge.txt diff --git a/Documentation/devicetree/bindings/fpga/altera-fpga2sdram-bridge.txt b/Documentation/devicetree/bindings/fpga/altera-fpga2sdram-bridge.txt index 817a8d4bf903..5dd0ff0f7b4e 100644 --- a/Documentation/devicetree/bindings/fpga/altera-fpga2sdram-bridge.txt +++ b/Documentation/devicetree/bindings/fpga/altera-fpga2sdram-bridge.txt @@ -3,10 +3,7 @@ Altera FPGA To SDRAM Bridge Driver Required properties: - compatible : Should contain "altr,socfpga-fpga2sdram-bridge" -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. +See Documentation/devicetree/bindings/fpga/fpga-bridge.txt for generic bindings. Example: fpga_bridge3: fpga-bridge@ffc25080 { diff --git a/Documentation/devicetree/bindings/fpga/altera-freeze-bridge.txt b/Documentation/devicetree/bindings/fpga/altera-freeze-bridge.txt index f8e288c71b2d..8b26fbcff3c6 100644 --- a/Documentation/devicetree/bindings/fpga/altera-freeze-bridge.txt +++ b/Documentation/devicetree/bindings/fpga/altera-freeze-bridge.txt @@ -10,10 +10,7 @@ Required properties: - compatible : Should contain "altr,freeze-bridge-controller" - regs : base address and size for freeze bridge module -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. +See Documentation/devicetree/bindings/fpga/fpga-bridge.txt for generic bindings. Example: freeze-controller@100000450 { diff --git a/Documentation/devicetree/bindings/fpga/altera-hps2fpga-bridge.txt b/Documentation/devicetree/bindings/fpga/altera-hps2fpga-bridge.txt index 6406f9337eeb..68cce3945b10 100644 --- a/Documentation/devicetree/bindings/fpga/altera-hps2fpga-bridge.txt +++ b/Documentation/devicetree/bindings/fpga/altera-hps2fpga-bridge.txt @@ -9,10 +9,7 @@ Required properties: - resets : Phandle and reset specifier for this bridge's reset - clocks : Clocks used by this module. -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 its current state. +See Documentation/devicetree/bindings/fpga/fpga-bridge.txt for generic bindings. Example: fpga_bridge0: fpga-bridge@ff400000 { diff --git a/Documentation/devicetree/bindings/fpga/fpga-bridge.txt b/Documentation/devicetree/bindings/fpga/fpga-bridge.txt new file mode 100644 index 000000000000..82607b23a287 --- /dev/null +++ b/Documentation/devicetree/bindings/fpga/fpga-bridge.txt @@ -0,0 +1,15 @@ +FPGA Bridge Device Tree Binding + +Moritz Fischer 2018 (Consolidated from previous bindings) + +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/xilinx-pr-decoupler.txt b/Documentation/devicetree/bindings/fpga/xilinx-pr-decoupler.txt index 8dcfba926bc7..4284d293fa61 100644 --- a/Documentation/devicetree/bindings/fpga/xilinx-pr-decoupler.txt +++ b/Documentation/devicetree/bindings/fpga/xilinx-pr-decoupler.txt @@ -18,12 +18,8 @@ Required properties: - clocks : input clock to IP - clock-names : should contain "aclk" -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. - -See Documentation/devicetree/bindings/fpga/fpga-region.txt for generic bindings. +See Documentation/devicetree/bindings/fpga/fpga-region.txt and +Documentation/devicetree/bindings/fpga/fpga-bridge.txt for generic bindings. Example: fpga-bridge@100000450 {