Received: by 2002:a05:6a10:5594:0:0:0:0 with SMTP id ee20csp111254pxb; Mon, 25 Apr 2022 06:47:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJ10BPJRt0nAZ2m6mJ4ejBo9By/g332XNGjyVP1zUOx1N4KA2N5hNAMtBoSyRCdojnuz00 X-Received: by 2002:a17:902:9b87:b0:156:bf3e:9ab5 with SMTP id y7-20020a1709029b8700b00156bf3e9ab5mr18174019plp.119.1650894479269; Mon, 25 Apr 2022 06:47:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650894479; cv=none; d=google.com; s=arc-20160816; b=QVhyXGW8jprTWD54ybI6hiW46o8gArwzxi3tzOkRYEVQtSjXh6lJiteoyUhX/C9P7d +ny0DfOCeshwZfV0KHO8Pg/lEuvQP4ht/5JHpUsTyXheBbVBLO202suZ/q98q9lKQmrF ntrOpk4zpwGtONE0rLGhvdibhZZpC3GALKgrlJtYve0pM5xsGQW89VxpIcGE9eUlQTPR tTfflN7MIRY3W5PEwdmZ4RovVaGSk0Olj8xHEXerXSQKFllWnVgaunGjwFSvjTn6VVZ/ W7RPnfxxuq9JvXfn52jqPExgyg68pyk2Nb6Cc8tA24EWFCmLiVVaOvB2v/2FmkDLKvgS FJbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=k9fX4QyWTzA0y00nOsSz5XPtLo1F8esV9J1yjU08QfY=; b=j6DbXY45OmG0gagoogEkm6twdoR8X3P0sGDN/U7dWF7jO6hIeAYXTpBbMCfr8Xge9K qN9t8faMzfDFhpo+muEoQ6ZlFm+FuXbfcBBsudt6r8f2u0cN+KyVViPrb2ommOCmpMyT ctLM/XO1CrC1h594tqwJDpDH0POJqWMhG2wNK4pccR7igDCe16WlLQEl3tSgBm56cVlC 738fgweaTDBZNUDg+IIk4x/okDSL9mCloToI1qEdlQAXJdAm+XKoVbNTeJW2Ht+ZXyNp ffFhUUuD+7HrgZRA9COxfW468CLU1+W9EXMmbqQUSc3WoulJAGLMi92KetRFR2qiY3QW W+Lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jjCW6bRa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d185-20020a6368c2000000b003aa8b88b231si13421579pgc.805.2022.04.25.06.47.27; Mon, 25 Apr 2022 06:47:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jjCW6bRa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239824AbiDYKey (ORCPT + 99 others); Mon, 25 Apr 2022 06:34:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241248AbiDYKen (ORCPT ); Mon, 25 Apr 2022 06:34:43 -0400 Received: from mail-pg1-x532.google.com (mail-pg1-x532.google.com [IPv6:2607:f8b0:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6066FD09; Mon, 25 Apr 2022 03:31:27 -0700 (PDT) Received: by mail-pg1-x532.google.com with SMTP id g3so12430294pgg.3; Mon, 25 Apr 2022 03:31:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=k9fX4QyWTzA0y00nOsSz5XPtLo1F8esV9J1yjU08QfY=; b=jjCW6bRaVcQ0yJumdf0PnnmaxJ33DgH8w8H47FEfg3IVO8dNl/0h4qZbohwZ5++9A5 5dMP82k3bY7TV7YDQG4MokgC1ACyMdzumlYkLr5BB3tYxcDzO6qNLmjcPJIHxtzA83Xo zha5DkvsEJioF3t7ImI7HFjcKB9BcOAazt/CdLFIwBRcWleJ/TsFuhoLIedrQLGRwjCl XuwDoIZZNP99KBQLV3GDWyPBJnFqWhRzN+7DpJHhzxkeSD9FT2qS6BcV/ufxJoB/0/aC 9R/R729dNmLgs4Kd6QIxZ/gX/WNOZrSusLwjrI9BChYMZMZt889nQGKZkB/xuGaBd0yd /DSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=k9fX4QyWTzA0y00nOsSz5XPtLo1F8esV9J1yjU08QfY=; b=S8yI3/vs7XwOCRF+EAMkGs786FM4PLSODkxjX/tdM2u910x5rdwLqAlgmhhJsp2FSW ulblC+rQ1UuolwuaZ5OovNdfll3M1W1AxdyciE6TqT03rOgYQQMAqgu4vRgNBRG2ARqt mjrgKGu4WKIcRtI+5tLjlt0wK3I1jtgVhLO3xWRJCGA2D2Oy23Ns0ZbcPfu3TbHh//0R o/Orv12+LU74XkXdwgAWpQzgGxhfR5/JrZy0vMbgce3xGOf5ApD+PWkarH+/ymPy6rt5 eoqm8HoD0+DZhIrAsATMUMZWLRblsH9uiyX48zF04gZg8feqtSnNCzJsmZWtzlTl9hjr WVqg== X-Gm-Message-State: AOAM530S2jiUsTIvLk4q+R8U0ADJ/nDm12z1F0+pokOexlUM+Ye2qOzp zLNEjtcOEsh4BJ09tTJt2bE9RQ7IRki/yA== X-Received: by 2002:a05:6a00:228b:b0:50d:3c82:911a with SMTP id f11-20020a056a00228b00b0050d3c82911amr5377143pfe.16.1650882687370; Mon, 25 Apr 2022 03:31:27 -0700 (PDT) Received: from scdiu3.sunplus.com ([113.196.136.192]) by smtp.googlemail.com with ESMTPSA id m4-20020a17090ab78400b001cd4989fed0sm14680828pjr.28.2022.04.25.03.31.24 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Apr 2022 03:31:27 -0700 (PDT) From: Wells Lu To: davem@davemloft.net, kuba@kernel.org, robh+dt@kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, p.zabel@pengutronix.de, pabeni@redhat.com, krzk+dt@kernel.org, roopa@nvidia.com, andrew@lunn.ch, edumazet@google.com Cc: wells.lu@sunplus.com, Wells Lu Subject: [PATCH net-next v9 1/2] devicetree: bindings: net: Add bindings doc for Sunplus SP7021. Date: Mon, 25 Apr 2022 18:30:39 +0800 Message-Id: <1650882640-7106-2-git-send-email-wellslutw@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1650882640-7106-1-git-send-email-wellslutw@gmail.com> References: <1650882640-7106-1-git-send-email-wellslutw@gmail.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add bindings documentation for Sunplus SP7021 SoC. Reviewed-by: Rob Herring Signed-off-by: Wells Lu --- Changes in v9 - None .../bindings/net/sunplus,sp7021-emac.yaml | 141 ++++++++++++++++++ MAINTAINERS | 7 + 2 files changed, 148 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/sunplus,sp7021-emac.yaml diff --git a/Documentation/devicetree/bindings/net/sunplus,sp7021-emac.yaml b/Documentation/devicetree/bindings/net/sunplus,sp7021-emac.yaml new file mode 100644 index 000000000..62dffee27 --- /dev/null +++ b/Documentation/devicetree/bindings/net/sunplus,sp7021-emac.yaml @@ -0,0 +1,141 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright (C) Sunplus Co., Ltd. 2021 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/sunplus,sp7021-emac.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Sunplus SP7021 Dual Ethernet MAC Device Tree Bindings + +maintainers: + - Wells Lu + +description: | + Sunplus SP7021 dual 10M/100M Ethernet MAC controller. + Device node of the controller has following properties. + +properties: + compatible: + const: sunplus,sp7021-emac + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + + resets: + maxItems: 1 + + ethernet-ports: + type: object + description: Ethernet ports to PHY + + properties: + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + patternProperties: + "^port@[0-1]$": + type: object + description: Port to PHY + + properties: + reg: + minimum: 0 + maximum: 1 + + phy-handle: + maxItems: 1 + + phy-mode: + maxItems: 1 + + nvmem-cells: + items: + - description: nvmem cell address of MAC address + + nvmem-cell-names: + description: names corresponding to the nvmem cells + items: + - const: mac-address + + required: + - reg + - phy-handle + - phy-mode + - nvmem-cells + - nvmem-cell-names + + mdio: + $ref: mdio.yaml# + unevaluatedProperties: false + +additionalProperties: false + +required: + - compatible + - reg + - interrupts + - clocks + - resets + - pinctrl-0 + - pinctrl-names + - ethernet-ports + - mdio + +examples: + - | + #include + + ethernet@9c108000 { + compatible = "sunplus,sp7021-emac"; + reg = <0x9c108000 0x400>; + interrupt-parent = <&intc>; + interrupts = <66 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&clkc 0xa7>; + resets = <&rstc 0x97>; + pinctrl-0 = <&emac_demo_board_v3_pins>; + pinctrl-names = "default"; + + ethernet-ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + phy-handle = <ð_phy0>; + phy-mode = "rmii"; + nvmem-cells = <&mac_addr0>; + nvmem-cell-names = "mac-address"; + }; + + port@1 { + reg = <1>; + phy-handle = <ð_phy1>; + phy-mode = "rmii"; + nvmem-cells = <&mac_addr1>; + nvmem-cell-names = "mac-address"; + }; + }; + + mdio { + #address-cells = <1>; + #size-cells = <0>; + + eth_phy0: ethernet-phy@0 { + reg = <0>; + }; + + eth_phy1: ethernet-phy@1 { + reg = <1>; + }; + }; + }; +... diff --git a/MAINTAINERS b/MAINTAINERS index dd61684c2..84b17ef41 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -18888,6 +18888,13 @@ L: netdev@vger.kernel.org S: Maintained F: drivers/net/ethernet/dlink/sundance.c +SUNPLUS ETHERNET DRIVER +M: Wells Lu +L: netdev@vger.kernel.org +S: Maintained +W: https://sunplus.atlassian.net/wiki/spaces/doc/overview +F: Documentation/devicetree/bindings/net/sunplus,sp7021-emac.yaml + SUNPLUS OCOTP DRIVER M: Vincent Shih S: Maintained -- 2.25.1