Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2299612pxa; Mon, 3 Aug 2020 12:30:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzuTV41YAEAyGFxEbtYV21p+cOAnziiZRiluSgvp/Zk10O6fGtMrQuysbuZOGvOLSy6CqCb X-Received: by 2002:a05:6402:84e:: with SMTP id b14mr8928254edz.115.1596483012218; Mon, 03 Aug 2020 12:30:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596483012; cv=none; d=google.com; s=arc-20160816; b=jod7xIEYpvBIcy+XZMFvPzwhzruN5PvSLAtHvkp7xQ8pu7fs+kKLUvym85aYrYO5KJ j2n6cxbDq9SKFA4QpbsCAxPtuFVcAsANGe05yfOhtvmO6ywAg5fKV+ZsuRz68wsutED7 NUcxEVDfKBjZqn0Lnw7WDfeeyhUea40N6+3kZ76LEmJyo0oxZ4FY56L0nprKaYsRt6nJ h1gcMQ2s55CSmi8NRjahxgXLovpj+eoNs1nzeaAXiWzfyTpgX9lWnDMr90G/Kn9Xo29M TahJ6kT6IBfq5UgE6gyei2khTFJzixOxnuXjNJ0RbjkDIUU9vOdsy9XHQSSK6dMW3ask LrxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=K7b69kEsrOjwEzZPo/Bh9RVFaIhvLiqNWlOACancYCg=; b=AEMwIYMv3dIlcKfrbqaZlLqhn1ZA0WPnO3rS2QGEP6Y3GuigwY0g9cAigRcnyjFAeK Bs36JvGf/30k61Aqp9QtQIjnw1svla6zp2NcBHR7tDmKUmykmOBnicpLtaMi9evqZuBP jYnZzKMgaJr27A+PdKaqdDgEEYPq8Fy5hFQlWwjnrdMgvA4I4F2F3Ht8I7fjWAXKPRe5 Eu6qnIMuCcjCbRnlo2LLSFQc79mK3ewAIO+9wdhQCm8QdofwK96cqok29YoOZ0/Klo4l /n+aAoscvO5sIGVX1TVIFBaoJgpej4/pene6vAnB45ucRzvntGtL7zesHIqMp6EjaugF GRMQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a20si9914858edr.171.2020.08.03.12.29.49; Mon, 03 Aug 2020 12:30:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728034AbgHCT10 (ORCPT + 99 others); Mon, 3 Aug 2020 15:27:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726615AbgHCT10 (ORCPT ); Mon, 3 Aug 2020 15:27:26 -0400 Received: from relay.felk.cvut.cz (relay.felk.cvut.cz [IPv6:2001:718:2:1611:0:1:0:70]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id AD837C06174A; Mon, 3 Aug 2020 12:27:25 -0700 (PDT) Received: from cmp.felk.cvut.cz (haar.felk.cvut.cz [147.32.84.19]) by relay.felk.cvut.cz (8.15.2/8.15.2) with ESMTP id 073JPMkY035348; Mon, 3 Aug 2020 21:25:22 +0200 (CEST) (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 073JPLGA008470; Mon, 3 Aug 2020 21:25:21 +0200 Received: (from pisa@localhost) by haar.felk.cvut.cz (8.14.0/8.13.7/Submit) id 073JPLni008469; Mon, 3 Aug 2020 21:25:21 +0200 From: pisa@cmp.felk.cvut.cz To: linux-can@vger.kernel.org, devicetree@vger.kernel.org, mkl@pengutronix.de, socketcan@hartkopp.net Cc: wg@grandegger.com, davem@davemloft.net, robh+dt@kernel.org, mark.rutland@arm.com, c.emde@osadl.org, armbru@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, martin.jerabek01@gmail.com, ondrej.ille@gmail.com, jnovak@fel.cvut.cz, jara.beran@gmail.com, porazil@pikron.com, Pavel Pisa Subject: [PATCH v4 2/6] dt-bindings: net: can: binding for CTU CAN FD open-source IP core. Date: Mon, 3 Aug 2020 20:34:50 +0200 Message-Id: <701442883f2b439637ff84544745725bdee7bcf8.1596408856.git.pisa@cmp.felk.cvut.cz> X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-FELK-MailScanner-Information: X-MailScanner-ID: 073JPMkY035348 X-FELK-MailScanner: Found to be clean X-FELK-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-0.098, required 6, BAYES_00 -0.50, KHOP_HELO_FCRDNS 0.40, SPF_HELO_NONE 0.00, SPF_NONE 0.00) X-FELK-MailScanner-From: pisa@cmp.felk.cvut.cz X-FELK-MailScanner-Watermark: 1597087523.8618@7fuBkNjFSKLuJEzJ6Ox1xA X-Spam-Status: No Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Pavel Pisa The device-tree bindings for open-source CAN FD IP core which design started at Department of Measurement at Faculty of Electrical Engineering of Czech Technical University in Prague. The IP core main author is Ondrej Ille who continues on the core development even after finishing the studies. The CTU CAN FD IP core main repository https://gitlab.fel.cvut.cz/canbus/ctucanfd_ip_core The list of related CAN bus projects which we participate in http://canbus.pages.fel.cvut.cz/ The commit text again to make checkpatch happy. Signed-off-by: Pavel Pisa --- .../devicetree/bindings/net/can/ctu,ctucanfd.yaml | 70 ++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/can/ctu,ctucanfd.yaml diff --git a/Documentation/devicetree/bindings/net/can/ctu,ctucanfd.yaml b/Documentation/devicetree/bindings/net/can/ctu,ctucanfd.yaml new file mode 100644 index 000000000000..b74bfc951062 --- /dev/null +++ b/Documentation/devicetree/bindings/net/can/ctu,ctucanfd.yaml @@ -0,0 +1,70 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/can/ctu,ctucanfd.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: CTU CAN FD Open-source IP Core Device Tree Bindings + +description: | + Open-source CAN FD IP core developed at the Czech Technical University in Prague + + The core sources and documentation on project page + [1] sources : https://gitlab.fel.cvut.cz/canbus/ctucanfd_ip_core + [2] datasheet : https://canbus.pages.fel.cvut.cz/ctucanfd_ip_core/Progdokum.pdf + + Integration in Xilinx Zynq SoC based system together with + OpenCores SJA1000 compatible controllers + [3] project : https://gitlab.fel.cvut.cz/canbus/zynq/zynq-can-sja1000-top + Martin Jerabek dimploma thesis with integration and testing + framework description + [4] PDF : https://dspace.cvut.cz/bitstream/handle/10467/80366/F3-DP-2019-Jerabek-Martin-Jerabek-thesis-2019-canfd.pdf + +maintainers: + - Pavel Pisa + - Ondrej Ille + - Martin Jerabek + +properties: + compatible: + oneOf: + - items: + - const: ctu,ctucanfd + - const: ctu,canfd-2 + - const: ctu,ctucanfd + + reg: + description: + mapping into bus address space, offset and size + maxItems: 1 + + interrupts: + description: | + interrupt source. 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. + maxItems: 1 + + clocks: + description: | + phandle of reference clock (100 MHz is appropriate + for FPGA implementation on Zynq-7000 system). + maxItems: 1 + +required: + - compatible + - reg + - interrupts + - clocks + +additionalProperties: false + +examples: + - | + ctu_can_fd_0: can@43c30000 { + compatible = "ctu,ctucanfd"; + interrupts = <0 30 4>; + clocks = <&clkc 15>; + reg = <0x43c30000 0x10000>; + }; -- 2.11.0