Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp232595iob; Mon, 2 May 2022 18:00:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzXqSPrYpI2mxlAjv1fvM0WP7+vgwl5tDxbvVuNNM09Jhdc3eojM7kFHwRRr+jARVJjAyDm X-Received: by 2002:a63:e147:0:b0:39c:d177:c01f with SMTP id h7-20020a63e147000000b0039cd177c01fmr11818914pgk.81.1651539604331; Mon, 02 May 2022 18:00:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651539604; cv=none; d=google.com; s=arc-20160816; b=x8GYW0ibQ4H01uVszeC3xUUQPit9Q63tcPmMTWotcydXAJJh2t9E6NL+nmj6C9li1t e8F9I18UB0qH1caeb9F7+5O9LkXqPDJLxVeyhq7J2hkofw4/jWpgBGCyuG/KsTP0Xvf9 QvEat8Dx5Ko+JnbDfazlblmS6GDjcjxvEVT3MZP7zUS/xq37XmT7Rw8NLcAe5G16B3Rf brMnlSqaXfWv2tnT9MnA4sj43LlAOL9YMTPZ/eOs/W9GQmZc54sdjVJjjwSiQ2Mqe4ra FeiixopYPEJEWqVpC2M7dqSfLnBj7ATyr/U0eQUXun3jhQskhLYfaIla6XtXNKmd85Kn XQoA== 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=y1MBTI2fZRzRGcuYvG64eYXq1ZKVuG6A5Hq9c/v6FTU=; b=om2YLOJdkSBzRDATrCvTD6D5bhUzlSynlzkO00O1XX+14REARvEsgUGen7i5Gop26o 3ZU0JE+RKnqmdL34PQHg1owrUTgPD4mfsQGljQ+YPjAvEqDM72/fORaR94wEwL1SrXQu IPgCdkOlPXWiHm+LeSMJzTjm+ANMNezu8rw4sabzSpbNXl8Pvpp2aboU7VG5CCjltaRm gWTJzZHavOZwOzT8MOl8AZH87SKjBCsu/4g4T7syDXtNXsrlI1GZ0EeVC4Nx7vBLQjgL cLGc2P/nWfNhPuGlkOx8Xg0BgTupa4GX6R9/jF8TcCs+3BQSREcQNnvUyLFhjy304D9F MKoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=pXBmknH4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id f22-20020a056a00239600b0050e096589cbsi1116364pfc.368.2022.05.02.18.00.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 18:00:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=pXBmknH4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4D9D24B41A; Mon, 2 May 2022 17:45:06 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345086AbiEBN1e (ORCPT + 99 others); Mon, 2 May 2022 09:27:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235504AbiEBN12 (ORCPT ); Mon, 2 May 2022 09:27:28 -0400 Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A0E811144; Mon, 2 May 2022 06:23:56 -0700 (PDT) Received: by mail-pf1-x42d.google.com with SMTP id p8so12280779pfh.8; Mon, 02 May 2022 06:23:56 -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=y1MBTI2fZRzRGcuYvG64eYXq1ZKVuG6A5Hq9c/v6FTU=; b=pXBmknH4QtAgv4fzmAgLBwyxFyIWbuGpHX8ZNDsEY6AV2tzgcaL1kmDngTmMMeBJvP kjg45ZjW5W+uA4s9PsJ40TelgeE4m7NeUB5P5li9l8KZfxZ3k/Fq1Q9q/36eVIdrBfn8 ZeS2Za6md//Qj0OispWwAm8RjRSe6DkIDvyZZfEYbHTgh1HsZWpWzC6Sv+QSR2ecLaYW GhetXZerDoONRY51/ljvz4V+DBmt1a5TOY9BiILOSUGeSAiAEZZHkXMAUItKDhXWoa89 3xBok9IN5L5p6dXxHovXViPjZND0V2M6nSQJhNfVC/j1i9qF2556i0ihWiub3TO1Rp6z aSMw== 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=y1MBTI2fZRzRGcuYvG64eYXq1ZKVuG6A5Hq9c/v6FTU=; b=7Qto1GaXMENFU6El3AVIU2JSUg2bm05vw7bTmnpjsfI4lp17fByCvioCG9RLBLVmIa e9czWhcw7ra9b56Qx/tyjIEyk8tYWGKGskMJ7HliQYbSWdJwHZMLy5yx3+szpr4znX7g eBij8JgjXg8fJJn7bry2r0NxJohYLOjTobFIZXvDMY7r5At5yHNmC59nl5TRm6qx4GW0 ag77CqZlBeTEaUctPNPb9HwzPzgNsriphMkF6vqVPSaWlPQ2srEAF4vyLgz9RpGwNoKZ u2RG1vMS3m3qCmlf6zEZY3K9dZrsFav19XGxzWIr0xqcud2SAaqc5WxUA8f3bwFEdUca jmcg== X-Gm-Message-State: AOAM531IPhdsSr6dB2xzp5kPQNwl1KPntHKk8DBY9HIF2Nz8ePymd0Kt 2RvcWZeiPp5MCp44HjNBnto= X-Received: by 2002:a63:5712:0:b0:39e:f4e7:da85 with SMTP id l18-20020a635712000000b0039ef4e7da85mr9800103pgb.109.1651497835681; Mon, 02 May 2022 06:23:55 -0700 (PDT) Received: from scdiu3.sunplus.com ([113.196.136.192]) by smtp.googlemail.com with ESMTPSA id e11-20020a62ee0b000000b0050dc762818bsm4676897pfi.101.2022.05.02.06.23.53 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 May 2022 06:23:55 -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 v10 1/2] devicetree: bindings: net: Add bindings doc for Sunplus SP7021. Date: Mon, 2 May 2022 21:23:37 +0800 Message-Id: <1651497818-25352-2-git-send-email-wellslutw@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1651497818-25352-1-git-send-email-wellslutw@gmail.com> References: <1651497818-25352-1-git-send-email-wellslutw@gmail.com> X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 v10 - 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 b5f2a647e..22a2f9699 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -18884,6 +18884,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