From patchwork Fri Aug 20 07:47:25 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 500383 Delivered-To: patch@linaro.org Received: by 2002:a02:6f15:0:0:0:0:0 with SMTP id x21csp1299271jab; Fri, 20 Aug 2021 00:47:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjm7edJkyGejcmc2p+UO13CW2zaztMZFBN/CurYbwPU77GH+gk1Gr22unPgKwi+WUsJ4rW X-Received: by 2002:a17:907:217a:: with SMTP id rl26mr20579037ejb.9.1629445664060; Fri, 20 Aug 2021 00:47:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629445664; cv=none; d=google.com; s=arc-20160816; b=S0MUWQRm75xAuN9/rAytQMKxlF6AxYHeYJqJL6eR4uHigIqdRr3EOLwiDzrziI64xv yWXA4MYU3fmEHutAdfR/6xa+A0i+Dqgx8wYwCIf62RwRjcmM9OXmALzu0y+8a/H8NVfv 6xNS1r1kgcaScwHUrkqGYfSU463W8okKNXcQthhQH0HtEtv1yIJPX9IZX6WwZ6pbtQMn Cv8S65kGWg5zZwVBn08tLKhG3HwWml6QbJKPygZRnCX/lZIsRJRjFA9CaPEZpROvmNgj wR+GWjoxbQuE4SeARFVQSPQj0WDuswosCCcFgHHxIvRqTozfO/ES1FX5oYWNMXZs+/S1 D5Pw== 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=u7Ude5dFki3jUL7JYHXiZ7WfcjuEcLEkwl0KWT++wrs=; b=WAY34fJn9mpH5YVVUCuMfhRjiRnUJLXszfDHfBGH7b1Ri5Ar4XA+sBiz0b/lJ68+CF vYJrW/9j7bBN8q+j9QDdQkaCZgQOdsKN3rWktzyq3qN9ln8J3ah+x18PuxXSHfS2+heX CNWnM/P0LYogw4ZEX6P1FX4usvN+FFmZw/M33w9XcOmJkSBbUunVQEos9B7EHH3YjBNn 2EMj1SVakZzeLOysuK3zvz51gGf+8SEZTi76hY+yzutRdXVOi/JzfCdP0WRAc2QN6M7t T3/f5mpx1/WUT550RS8mB5/eaj0xB7/6FuXgVDyyCr2gwB02AFKnjuxie+qnp2Zy7DR5 h6OQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NPHuVhlY; 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 y18si5763579ejh.298.2021.08.20.00.47.43; Fri, 20 Aug 2021 00:47: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=NPHuVhlY; 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 S238958AbhHTHsT (ORCPT + 7 others); Fri, 20 Aug 2021 03:48:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238976AbhHTHsT (ORCPT ); Fri, 20 Aug 2021 03:48:19 -0400 Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF547C06175F; Fri, 20 Aug 2021 00:47:41 -0700 (PDT) Received: by mail-pj1-x1031.google.com with SMTP id n13-20020a17090a4e0d00b0017946980d8dso13196906pjh.5; Fri, 20 Aug 2021 00:47:41 -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=u7Ude5dFki3jUL7JYHXiZ7WfcjuEcLEkwl0KWT++wrs=; b=NPHuVhlYnZiPD6FZgjftCsWzmLxFCES2pi+OMGWEnBY072zR8hER1FqHj/GCsCElsI EMuAXK8yPKRUQ0S7Z9hDjMJ9yxnELIoG75NyGOs3m9iIO/JF4Hd9QqiPHzm6N/d3Mw7f ZUqrg4KP9pcnJkKAISw+VgLpWI3Lr5F9T+BMmpH9JFrJDQUoiA4xLSvParUtQD3+QaS3 gbyxZV/2zLL/R5qF58xqJIHeuqj/yDoU+mPfoPXaWGSX4d+XPXJ52YX0WxhGvd4t0jbJ g93Q3afrpJrXYxzPX5+oI16JLCrBVRg/sVkwCk1sQDRtb1PpKXNptxmPIzeBj7y42Tm1 d+8Q== 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=u7Ude5dFki3jUL7JYHXiZ7WfcjuEcLEkwl0KWT++wrs=; b=sahimv9vJ3pUjn8BKLWDdDmti1URxxRhoHgGApvXQFhJemCVfvdnnZypGVL1BmmuCL HbK48XRBd7r3Lg4ZYw+Xd8fWpE4/71ejvvVXSrEiPji0vpdn5iHEFHn5MHLdjDsvumas xKakIkIKtIXnzfV5jxYmFlHXlhXR54+/jEfottOhZCbawCJFgoej3C9GK2c2gSBVrSc/ oB3VI3m52Z93D4zo0YWTHzwW0+RHEUDl/rbxuiBn3wnf2KJZqTHyv7C3KRicZbBA1aCZ J5JCsmSVJawWScjBKI1dzT8j6ONIJCIBfSCbGVvRVrMt+f/i0Tl7mhW5Q7Hm7yg9vISP 5mWw== X-Gm-Message-State: AOAM531VZQ2gbeMLS/6rrDeHvefAYwOLaCkcsMeuQZhIo86ugYMblDBH tXoEebryatrDBlRe3DZSKgk= X-Received: by 2002:a17:902:ea02:b0:12f:65d7:47eb with SMTP id s2-20020a170902ea0200b0012f65d747ebmr9593790plg.3.1629445661157; Fri, 20 Aug 2021 00:47:41 -0700 (PDT) Received: from localhost.localdomain ([45.124.203.15]) by smtp.gmail.com with ESMTPSA id o11sm5937534pfd.124.2021.08.20.00.47.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Aug 2021 00:47:40 -0700 (PDT) Sender: "joel.stan@gmail.com" From: Joel Stanley To: "David S . Miller" , Jakub Kicinski , Rob Herring Cc: Karol Gugala , Mateusz Holenko , devicetree@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/2] dt-bindings: net: Add bindings for LiteETH Date: Fri, 20 Aug 2021 17:17:25 +0930 Message-Id: <20210820074726.2860425-2-joel@jms.id.au> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210820074726.2860425-1-joel@jms.id.au> References: <20210820074726.2860425-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 --- v2: - Fix dtschema check warning relating to registers - Add names to the registers to make it easier to distinguish which is what region - Add mdio description - Includ ethernet-controller parent description .../bindings/net/litex,liteeth.yaml | 79 +++++++++++++++++++ 1 file changed, 79 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..30f8f8b0b657 --- /dev/null +++ b/Documentation/devicetree/bindings/net/litex,liteeth.yaml @@ -0,0 +1,79 @@ +# 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/. + +allOf: + - $ref: ethernet-controller.yaml# + +properties: + compatible: + const: litex,liteeth + + reg: + minItems: 3 + items: + - description: MAC registers + - description: MDIO registers + - description: Packet buffer + + reg-names: + minItems: 3 + + interrupts: + maxItems: 1 + + rx-fifo-depth: true + tx-fifo-depth: true + mac-address: true + local-mac-address: true + phy-handle: true + + mdio: + $ref: mdio.yaml# + +required: + - compatible + - reg + - interrupts + +additionalProperties: false + +examples: + - | + mac: ethernet@8020000 { + compatible = "litex,liteeth"; + reg = <0x8021000 0x100>, + <0x8020800 0x100>, + <0x8030000 0x2000>; + reg-names = "mac", "mdio", "buffer"; + rx-fifo-depth = <1024>; + tx-fifo-depth = <1024>; + interrupts = <0x11 0x1>; + phy-handle = <ð_phy>; + + mdio { + #address-cells = <1>; + #size-cells = <0>; + + eth_phy: ethernet-phy@0 { + reg = <0>; + }; + }; + }; +... + +# vim: set ts=2 sw=2 sts=2 tw=80 et cc=80 ft=yaml :