Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp1547521imp; Fri, 22 Feb 2019 05:55:25 -0800 (PST) X-Google-Smtp-Source: AHgI3IYejphaWxBTYtcdKtfcKtDpvdWEUAu0knH7yxqr+ju6RmUhLaLBazzlSMOVuSQL6myHmq6l X-Received: by 2002:a63:9246:: with SMTP id s6mr4020953pgn.349.1550843725577; Fri, 22 Feb 2019 05:55:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550843725; cv=none; d=google.com; s=arc-20160816; b=FXOW3X+E2KAOEX7KwHhb3B1tm0l0yP64oeu/Hro7dH2chWC8BxOkLiv+dnnYXrl/L4 Qkql0WzT590rjz/OIyxm8VrhHrgFA5t48QLNHezgoS3QwuM/+eTUueZHcN/hWhzgUn2r qk9uiBEzqH7BWdAb5x05ywlzlwUGUCWbUE6a8A5laxaiyPc3eVEYikVgDYUuP7FkQxFn q8xdMKnrC0AN8hwnp7nFSsYvZ2ZxqrLx5am5TOwC60ZLv412AbgDj4TV2eI88CG02Jb4 Pw7iF83RebpvkRBNBvVaVgQ66dVjzeMqimH6rdEj7B0d7TawzfA246bCemNklLcrchVX N92w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-disposition :content-transfer-encoding:mime-version:cc:user-agent:date:subject :to:from; bh=pdOcchxa6XIu7lbOdWWsKyPCCo3xUm7dA6KtC4LapEk=; b=YqIuhVVUi1A+eVFXDHODznth1lYxaInYqUZbnvJP6r7yFmitvgxMlqvqS7pQmKRx6G xDbTdMCQmvIG6SbR8SeLh020q/hbiX29eikNDLsi+bt65HDZsdfsIT2IOdLYeoVUsmmr mXnfOQlj0BLFxQI/58B8TvJpqql2l48OIEsgyg1xyNOoSgzc6MrzRJU06bdig4pOzElm HeYeM/LK2AYziLCuCQ4puWJU4gOwCXScJKxDkxG8I7k3gw/hlH8i9DN/0Z3YytfkSgGp H2wkUEMXFGBdpWsc/8rShFwaCtwoKfPjcwMC8u7vHr26/PP1nP4bAGV3IPPqvnatlFzw U4OA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cs19si1531528plb.431.2019.02.22.05.55.08; Fri, 22 Feb 2019 05:55:25 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726599AbfBVNyp convert rfc822-to-8bit (ORCPT + 99 others); Fri, 22 Feb 2019 08:54:45 -0500 Received: from relay.felk.cvut.cz ([147.32.80.7]:21962 "EHLO relay.felk.cvut.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725942AbfBVNyp (ORCPT ); Fri, 22 Feb 2019 08:54:45 -0500 X-Greylist: delayed 2033 seconds by postgrey-1.27 at vger.kernel.org; Fri, 22 Feb 2019 08:54:42 EST Received: from cmp.felk.cvut.cz (haar.felk.cvut.cz [147.32.84.19]) by relay.felk.cvut.cz (8.15.2/8.14.9) with ESMTP id x1MDK6lg087363; Fri, 22 Feb 2019 14:20:09 +0100 (CET) (envelope-from pisa@cmp.felk.cvut.cz) Received: from haar.felk.cvut.cz (localhost [127.0.0.1]) by cmp.felk.cvut.cz (8.14.0/8.12.3/SuSE Linux 0.6) with ESMTP id x1MDK6eQ019323; Fri, 22 Feb 2019 14:20:06 +0100 Received: (from pisa@localhost) by haar.felk.cvut.cz (8.14.0/8.13.7/Submit) id x1MDK5Xb019321; Fri, 22 Feb 2019 14:20:05 +0100 X-Authentication-Warning: haar.felk.cvut.cz: pisa set sender to pisa@cmp.felk.cvut.cz using -f From: Pavel Pisa To: devicetree@vger.kernel.org Subject: [PATCH] dt-bindings: net: can: binding for CTU CAN FD open-source IP core. Date: Fri, 22 Feb 2019 14:20:05 +0100 User-Agent: KMail/1.9.10 Cc: Wolfgang Grandegger , "Marc Kleine-Budde" , "David S. Miller" , Rob Herring , Mark Rutland , linux-can@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Martin Jerabek , Ondrej Ille MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT Content-Disposition: inline Message-Id: <201902221420.05267.pisa@cmp.felk.cvut.cz> X-FELK-MailScanner-Information: X-MailScanner-ID: x1MDK6lg087363 X-FELK-MailScanner: Found to be clean X-FELK-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-0.5, required 6, autolearn=not spam, BAYES_00 -0.50) X-FELK-MailScanner-From: pisa@cmp.felk.cvut.cz X-FELK-MailScanner-Watermark: 1551446412.89797@lxVRaSAMJaQ3gAIsuiR8ww X-Spam-Status: No Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From 3e19a7f5c33e5fb50f52c9df05bf00022e3f3dd5 Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Fri, 22 Feb 2019 14:11:11 +0100 Subject: [PATCH] dt-bindings: net: can: binding for CTU CAN FD open-source IP core. Signed-off-by: Pavel Pisa --- .../devicetree/bindings/net/can/ctu,ctucanfd.txt | 102 +++++++++++++++++++++ 1 file changed, 102 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/can/ctu,ctucanfd.txt diff --git a/Documentation/devicetree/bindings/net/can/ctu,ctucanfd.txt b/Documentation/devicetree/bindings/net/can/ctu,ctucanfd.txt new file mode 100644 index 000000000000..6c75e5850904 --- /dev/null +++ b/Documentation/devicetree/bindings/net/can/ctu,ctucanfd.txt @@ -0,0 +1,102 @@ +Memory mapped CTU CAN FD open-source IP core + +The core sources and documentation on project page + + https://gitlab.fel.cvut.cz/canbus/ctucanfd_ip_core + http://canbus.pages.fel.cvut.cz/ctucanfd_ip_core/Progdokum.pdf + +Integration in Xilinx Zynq SoC based system together with +OpenCores SJA1000 compatible controllers + + https://gitlab.fel.cvut.cz/canbus/zynq/zynq-can-sja1000-top + +Martin Jerabek's dimploma thesis with integration and testing +framework description + + https://dspace.cvut.cz/bitstream/handle/10467/80366/F3-DP-2019-Jerabek-Martin-Jerabek-thesis-2019-canfd.pdf + +Required properties: + +- compatible : should be one of "ctu,ctucanfd", "ctu,canfd-2". + +- reg = <(baseaddr) (size)> : specify mapping into physical address + space of the processor system. + +- interrupts : property with a value describing the interrupt source + required for the CTU CAN FD. For Zynq SoC system format is + <(is_spi) (number) (type)> where is_spi defines if it is SPI + (shared peripheral) interrupt, the second number is translated + to the vector by addition of 32 on Zynq-7000 systems and type + is IRQ_TYPE_LEVEL_HIGH (4) for Zynq. + +- interrupt-parent = <&interrupt-controller-phandle> : + is required for Zynq SoC to find map interrupt + to the correct controller + +- clocks: phandle of reference clock (100 MHz is appropriate + for FPGA implementation on Zynq-7000 system). + +Example when integrated to Zynq-7000 system DTS: + + / { + /* ... */ + amba: amba { + #address-cells = <1>; + #size-cells = <1>; + compatible = "simple-bus"; + + CTU_CAN_FD_0: CTU_CAN_FD@43c30000 { + compatible = "ctu,ctucanfd"; + interrupt-parent = <&intc>; + interrupts = <0 30 4>; + clocks = <&clkc 15>; + reg = <0x43c30000 0x10000>; + }; + }; + }; + + +Example when used as DTS overlay on Zynq-7000 system: + + +// Device Tree Example: Full Reconfiguration without Bridges +/dts-v1/; +/plugin/; + +/ { + fragment@0 { + target-path = "/fpga-full"; + + __overlay__ { + #address-cells = <1>; + #size-cells = <1>; + + firmware-name = "system.bit.bin"; + }; + }; + + fragment@1 { + target-path = "/amba"; + __overlay__ { + #address-cells = <1>; + #size-cells = <1>; + + CTU_CAN_FD_0: CTU_CAN_FD@43c30000 { + compatible = "ctu,ctucanfd"; + interrupt-parent = <&intc>; + interrupts = <0 30 4>; + clocks = <&clkc 15>; + //clock-names = "can_clk"; + reg = <0x43c30000 0x10000>; + }; + CTU_CAN_FD_1: CTU_CAN_FD@43c70000 { + compatible = "ctu,ctucanfd"; + interrupt-parent = <&intc>; + interrupts = <0 31 4>; + clocks = <&clkc 15>; + //clock-names = "can_clk"; + reg = <0x43c70000 0x10000>; + }; + }; + }; +}; -- 2.11.0