From patchwork Fri Aug 6 05:49:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 492803 Delivered-To: patch@linaro.org Received: by 2002:a05:6638:396:0:0:0:0 with SMTP id y22csp3579jap; Thu, 5 Aug 2021 22:49:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJylx8Xs/eAzBTAXfbyTkaLmvIOyigX958UdXdrFM6oQfHAaB7J+OvXPRPlHKPwIB5uziftt X-Received: by 2002:a92:d9c6:: with SMTP id n6mr344256ilq.142.1628228984270; Thu, 05 Aug 2021 22:49:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628228984; cv=none; d=google.com; s=arc-20160816; b=l7YwbRpV41kWyWjTikXOrkFm1RurBNk+9mL4f2uwGlFOeY5BwKYjnpQGE/v2zVAABt BR16RAw0uBtj2ajqKDe/OE0gDJhiJkjvexoROwUZRZFdx8yNVCyOHfiypEDwqFAQRRx/ QwCZOOOaOkhStSRYEwpU3IuhfjQIzuwqXX0RaCY/hN+VGo+I3n+XU6MARpv2jfmuuUVz w/eWty4zCb8swElHDz25qOpUi2SuQHrj9q931f5/PtLZBcqGyyeeMNJj4rCCM4/+Eoxq g/ROTyD0w8Raf8tcgUjT0p0u8jG4izEN5jpw8i2RmoV9GBUUr/BlWwvB0Dmntc/2+kwI AQBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from:sender :dkim-signature; bh=hD8la+uQht470Z79A1A0VyiqMXVtxSlHKEsCD9ytGxY=; b=ew1oFrk5nopRira699Vet257TBgWmo2qkrQa/n3wAgXZgv8+uHZBKQKubmNZkfQ+7T x9wovEKOMTeiQegEAWs81To5jInslC2NKdVQAmGa9UGK1nDgboxKR1hGmZ/Wnw1sRk62 SYE1Jp3Q7FDYZ6zlLTc+Fd6EJsIpRx8GMJtpSOYblAyDs1+3D1woG6nUVTYo9Larr+6/ oqvgfGx+8c4Ks7sO17qCSbEjQc10Ip74P2GE6K7pY9TNVupZZNMwnQBgbwZQmiSil535 8I4vZVZD9kdDogaHpdtjeLKOE+SsrBJqalMdSwG2OHAMkxFdUKQ3bm8r9BFLbqTpM9Y7 LBNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=g8CYSTwE; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 l8si7710195jap.104.2021.08.05.22.49.44; Thu, 05 Aug 2021 22:49:44 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=g8CYSTwE; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243237AbhHFFtx (ORCPT + 7 others); Fri, 6 Aug 2021 01:49:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243079AbhHFFtu (ORCPT ); Fri, 6 Aug 2021 01:49:50 -0400 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B3D8C06179B; Thu, 5 Aug 2021 22:49:34 -0700 (PDT) Received: by mail-pj1-x102a.google.com with SMTP id m10-20020a17090a34cab0290176b52c60ddso15449818pjf.4; Thu, 05 Aug 2021 22:49:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=hD8la+uQht470Z79A1A0VyiqMXVtxSlHKEsCD9ytGxY=; b=g8CYSTwEJigiAEwta2YaRM2kHqI7Qsz8dmHhg97XYpevCmoOTzJeHfS9Nw6+7i3lQK pccMDuIt9413IfkhYTDPkzKCfYpTNoXyChdrqb4bWfd0ElBuefTuuND73w+/8JWNGISi 7eYW3q7AtuC4fKP/bzxoirIR0EpD+vz4hxujgb/ubjysPLzS5DBVXvScki0bZ/LQKJJA ZpoQ9KWCLf98xLUKZe8PaFuWqlXZLBxix2v+fTtC9y29aBT0gOg12FXLc4qsqMUgU1aB TkhvC4ivxiLIF+XGgEoKZ0gveTuaNj6d/wqSb2TjWMN3Zlz+KOsjR8MmIg8Lh8+w7FH5 Rz8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=hD8la+uQht470Z79A1A0VyiqMXVtxSlHKEsCD9ytGxY=; b=NUz0HXMqMPbvKjMmsfZYYw7pQrWyGwVKSDNNigcqkOaYZZ80BtKXAoGSEg4AGu1Pww Lhi9o3mdTn5aVU4qXIx4xZnfjaBweT7MeFTx7oD8JU8duDL8EdSuG748foz8Un8VpnY6 uxPo8LWU51oecRlivzHE1VwTg6HC5rtZVHmKpFmotWFoabRGTwaB+crqEwjfXAKlnAXS UM+vt94jgNr/9ia1MY5zJA0DBxkKAcxq8UhcHk2aqrWk73BRavx+5u0wJSd8/J2OdmZ/ s1Qpd2a+GtLOOApkvWkF5gHTdH1dwzqUh3Hc5zrIhSIcWQpvXzQRtvvjSvr89QpWHmq8 CiBg== X-Gm-Message-State: AOAM5332BXVw0a2S0Lj6avvxOJg7ilRcq3LfebCkTkQVpM9lFaqwGllP qjS6O8fDziGIunA8wPwugdA= X-Received: by 2002:a17:90a:a103:: with SMTP id s3mr8522363pjp.121.1628228974137; Thu, 05 Aug 2021 22:49:34 -0700 (PDT) Received: from voyager.lan ([45.124.203.15]) by smtp.gmail.com with ESMTPSA id z2sm10902205pgz.43.2021.08.05.22.49.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Aug 2021 22:49:33 -0700 (PDT) Sender: "joel.stan@gmail.com" From: Joel Stanley To: "David S . Miller" , Jakub Kicinski , Rob Herring Cc: Stafford Horne , Benjamin Herrenschmidt , Anton Blanchard , Gabriel Somlo , David Shah , Karol Gugala , Mateusz Holenko , devicetree@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] dt-bindings: net: Add bindings for LiteETH Date: Fri, 6 Aug 2021 15:19:03 +0930 Message-Id: <20210806054904.534315-2-joel@jms.id.au> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210806054904.534315-1-joel@jms.id.au> References: <20210806054904.534315-1-joel@jms.id.au> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org LiteETH is a small footprint and configurable Ethernet core for FPGA based system on chips. Signed-off-by: Joel Stanley --- .../bindings/net/litex,liteeth.yaml | 62 +++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/litex,liteeth.yaml -- 2.32.0 diff --git a/Documentation/devicetree/bindings/net/litex,liteeth.yaml b/Documentation/devicetree/bindings/net/litex,liteeth.yaml new file mode 100644 index 000000000000..e2a837dbfdaa --- /dev/null +++ b/Documentation/devicetree/bindings/net/litex,liteeth.yaml @@ -0,0 +1,62 @@ +# SPDX-License-Identifier: GPL-2.0-or-later OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/litex,liteeth.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: LiteX LiteETH ethernet device + +maintainers: + - Joel Stanley + +description: | + LiteETH is a small footprint and configurable Ethernet core for FPGA based + system on chips. + + The hardware source is Open Source and can be found on at + https://github.com/enjoy-digital/liteeth/. + +properties: + compatible: + const: litex,liteeth + + reg: + minItems: 3 + items: + - description: MAC registers + - description: MDIO registers + - description: Packet buffer + + interrupts: + maxItems: 1 + + rx-fifo-depth: + description: Receive FIFO size, in units of 2048 bytes + + tx-fifo-depth: + description: Transmit FIFO size, in units of 2048 bytes + + mac-address: + description: MAC address to use + +required: + - compatible + - reg + - interrupts + +additionalProperties: false + +examples: + - | + mac: ethernet@8020000 { + compatible = "litex,liteeth"; + reg = <0x8021000 0x100 + 0x8020800 0x100 + 0x8030000 0x2000>; + rx-fifo-depth = <2>; + tx-fifo-depth = <2>; + interrupts = <0x11 0x1>; + }; +... + +# vim: set ts=2 sw=2 sts=2 tw=80 et cc=80 ft=yaml :