From mboxrd@z Thu Jan 1 00:00:00 1970 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=-21.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, 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 95F0FC432BE for ; Fri, 20 Aug 2021 07:47:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6885E610A0 for ; Fri, 20 Aug 2021 07:47:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239002AbhHTHsV (ORCPT ); Fri, 20 Aug 2021 03:48:21 -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-Google-Smtp-Source: ABdhPJxdF1dR8GNSjST0CUxpxC+g3v1ZLTu/edBquj1WwM7itDbYS2oPaVN7xSxFUUqUuECyH27IlQ== 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 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 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 : -- 2.32.0