From patchwork Tue Aug 31 19:34:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerhard Engleder X-Patchwork-Id: 504888 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A214BC4320E for ; Tue, 31 Aug 2021 19:34:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 84A7161058 for ; Tue, 31 Aug 2021 19:34:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240855AbhHaTfw (ORCPT ); Tue, 31 Aug 2021 15:35:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240833AbhHaTfv (ORCPT ); Tue, 31 Aug 2021 15:35:51 -0400 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BF01C061575 for ; Tue, 31 Aug 2021 12:34:55 -0700 (PDT) Received: by mail-wr1-x42d.google.com with SMTP id z4so829908wrr.6 for ; Tue, 31 Aug 2021 12:34:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=engleder-embedded-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ol/c9feioOQRNOgfYGi4dbOTUm2kRKKFKHXlFmZJpVw=; b=Ujoyp4RB5TnvODP7xsDvWwEOMU5uHPRfF7dcy4IvLhSLddUwnlS19ta8WvCsqlaArE K5Mo8owR9YN9/ORQzZZHCK3hCZ2HkmOQvWeTgOc8HyXgJI7lp4EUKrhfI7IYHksH+dvU MhicAqX8a4Y4coDNgdsl5bsG59jfm9H5bIjjknICXDfsujh203ODVQIslfV3ScGsY2gw IlxyfXsIXvJmgAscBDXW+Pk6qeTEZqN9RyiGp43MCJdS+qVOxEZN8qTcuubx4CnbRE+P 2njxeX0zuLtgy9qucCtzMZG1QW4qXOSsdfVK4zn95yT9h32NeRaDoGbWrpVej0PYEe7A eHLg== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=ol/c9feioOQRNOgfYGi4dbOTUm2kRKKFKHXlFmZJpVw=; b=mYSBLY3qvmUBcNrvOBlTQKRGnqgQv2mEK59Tq/mtvbR4AqVUUPsdTB4yKWOlAb+ibk +46/XOi5/DDOLiqzcya2g3zHp6L+SfXsMKvMR3+fkzKAaqsqQ+iy++q88u+5htxG1Xwa BS/YfbN7xz3OqTGzR3sLBnxwiGfkusWqR/EC9u3gTEnhZlfRJTJxv/f5YeCN107Qe0QO kms9O9kFz/Cfa1H3drD/NNqEzB/0EYwTU6b5zqUhX/TKBP/wkBfgdfI0/vO7cTaZvR3u Zp1/RU4pn4eeK9GOlnLXJvo+gWAOT1nbvOy0WpOE+EwFvKqe0YpGHEZW58ZHfE4xSjl1 iKyQ== X-Gm-Message-State: AOAM532MqjgAGuFez+rbsQLFZh3I5BrdXl+KESice10aCNozb+l6h+R+ 36GxhtbEFWXpa1WZy/Oxu1F+CA== X-Google-Smtp-Source: ABdhPJzoHlbq1/9AnXDnj2dMWI8BC0+TezgiqqR9jRH7lCWqcK5nWWeiVMB/5Ub3d4UR4lBXxfi2gw== X-Received: by 2002:a5d:63d2:: with SMTP id c18mr33416673wrw.240.1630438494244; Tue, 31 Aug 2021 12:34:54 -0700 (PDT) Received: from hornet.engleder.at (dynamic-2el0lv6sxxeorz8a81-pd01.res.v6.highway.a1.net. [2001:871:23a:b9:6e3b:e5ff:fe2c:34c1]) by smtp.gmail.com with ESMTPSA id n4sm18708324wri.78.2021.08.31.12.34.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Aug 2021 12:34:53 -0700 (PDT) From: Gerhard Engleder To: davem@davemloft.net, kuba@kernel.org, andrew@lunn.ch, robh+dt@kernel.org, michal.simek@xilinx.com Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, Gerhard Engleder Subject: [PATCH net-next v2 2/3] dt-bindings: net: Add tsnep Ethernet controller Date: Tue, 31 Aug 2021 21:34:24 +0200 Message-Id: <20210831193425.26193-3-gerhard@engleder-embedded.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210831193425.26193-1-gerhard@engleder-embedded.com> References: <20210831193425.26193-1-gerhard@engleder-embedded.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org The TSN endpoint Ethernet MAC is a FPGA based network device for real-time communication. It is integrated as normal Ethernet controller with ethernet-controller.yaml and mdio.yaml. Signed-off-by: Gerhard Engleder Reviewed-by: Rob Herring --- .../bindings/net/engleder,tsnep.yaml | 78 +++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/engleder,tsnep.yaml diff --git a/Documentation/devicetree/bindings/net/engleder,tsnep.yaml b/Documentation/devicetree/bindings/net/engleder,tsnep.yaml new file mode 100644 index 000000000000..962ce75dab07 --- /dev/null +++ b/Documentation/devicetree/bindings/net/engleder,tsnep.yaml @@ -0,0 +1,78 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/engleder,tsnep.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: TSN endpoint Ethernet MAC binding + +maintainers: + - Gerhard Engleder + +allOf: + - $ref: ethernet-controller.yaml# + +properties: + compatible: + const: engleder,tsnep + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + local-mac-address: true + + mac-address: true + + nvmem-cells: true + + nvmem-cells-names: true + + phy-connection-type: + enum: + - mii + - gmii + - rgmii + - rgmii-id + + phy-mode: true + + phy-handle: true + + mdio: + type: object + $ref: "mdio.yaml#" + description: optional node for embedded MDIO controller + +required: + - compatible + - reg + - interrupts + +additionalProperties: false + +examples: + - | + axi { + #address-cells = <2>; + #size-cells = <2>; + tnsep0: ethernet@a0000000 { + compatible = "engleder,tsnep"; + reg = <0x0 0xa0000000 0x0 0x10000>; + interrupts = <0 89 1>; + interrupt-parent = <&gic>; + local-mac-address = [00 00 00 00 00 00]; + phy-mode = "rgmii"; + phy-handle = <&phy0>; + mdio { + #address-cells = <1>; + #size-cells = <0>; + phy0: ethernet-phy@1 { + reg = <1>; + rxc-skew-ps = <1080>; + }; + }; + }; + };