Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp23883pxb; Tue, 12 Apr 2022 15:44:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzcWbxCu9zXFwbCiP5xVQIDtTvq5hCKBDZJro/MSbKaso9MXQ+MMQfRAoNRt7DtRsAYfCtv X-Received: by 2002:a17:902:bd89:b0:156:8467:782b with SMTP id q9-20020a170902bd8900b001568467782bmr39737697pls.12.1649803443305; Tue, 12 Apr 2022 15:44:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649803443; cv=none; d=google.com; s=arc-20160816; b=wFQv3KY2++VdLxf1sIS2Pj7wWOvVf7dja4/UqfXQ8mqaYTFb0fG/fO+gq6bFqv6eV9 yfcsLCznQvkw0wBMh9gnC9ZbIevnEiRvF0i98drhtVNXetP13dW2zMH+xcuawXMcKS5k QHiQqaXS7zdeSE5eEu2Y/nveTWwfrcEZ3Ot6rvFiyNBtelBQDpYuzgqB0tTsnJ36+Txy ntm0osZQRJiobIxz1xpAA9iE1+NkmHyUN3m4e83x0ToNPdGExe+qeTjOU3LWRwuUg46L viWyc9q1W7tLNhGDDmyfC2JLnOKiiOpnzBIyb+lx/qHBHnRNzD7Dv3kcWSiHKn/Qctwk kEjA== 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=lwumo4OognSssz63QX+fR2s8f7HjOZfG/NuRBmw6cy0=; b=jJLgIO041RApbbH97UDfsALnVMoUm6RcDBshbpknOddXDuXlF2Jq92cuDGpHHQ8Bx7 cwV0yn9XCQSvbrT9K3f1BJAEGbyWlEB9L6zTs3d6mPxESZyBK0s7/MINaWJGrTdeJ/sf MzVWgURO/jEIQAhpljsOomym8Kyf7GzAsIWEpzCDGQ1RywXYXjNW/TZGyArn7rHWKhuA jeK8gZ3EycNDHSf0WYnDQknboE239ovZpaVjQxFvBlUyDaoJl53TSlHdPLb5s2jo0NPW iUCZdnYsU5gDKL5+Kahb2sEYGL5gcc7FowA6yxRZY7V4yReTvugz2w/XwksPgMtd0Xca GaOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=cOozpkyO; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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. [23.128.96.19]) by mx.google.com with ESMTPS id 15-20020a630b0f000000b003816043ef25si3731054pgl.282.2022.04.12.15.43.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Apr 2022 15:44:03 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=cOozpkyO; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id F31F3106101; Tue, 12 Apr 2022 14:25:24 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348780AbiDKRN6 (ORCPT + 99 others); Mon, 11 Apr 2022 13:13:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348771AbiDKRNz (ORCPT ); Mon, 11 Apr 2022 13:13:55 -0400 Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81A8224591; Mon, 11 Apr 2022 10:11:41 -0700 (PDT) Received: by mail-pj1-x1032.google.com with SMTP id md4so7585469pjb.4; Mon, 11 Apr 2022 10:11:41 -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=lwumo4OognSssz63QX+fR2s8f7HjOZfG/NuRBmw6cy0=; b=cOozpkyOoOt1CoNh1Jomb+cWt+MwWMsw5nx63TjAFF0dSw3g+XN7EMxEqt+6c4VKNU nwxyq3WY8NTNryGB+X44vJXruXyBVM7udb6XJHbaDWJpAL2jwPw1lF1FQaRbB6J1xOLz UqBg2LROd5nItX0sYUuRlN+/X+bWoFi9GzhjDWZj/foj/QC4X673Vbq5fBqo14ms2nMX pPL3mVcDWAcMR4OQnXfME7wMS57Qw8cvbD5iRXRTpDxwwQxOWuReZyO371RhlNpj4wxp QMKiFKa4ZaY/PV3AlSONu04zb7cgX1V7XwGheKTGgjG415vbA0LhKPBj7nUt+KWtBrUV DaMg== 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=lwumo4OognSssz63QX+fR2s8f7HjOZfG/NuRBmw6cy0=; b=MBvPx00nCa45Mr4BgwqDG8/eRd2Fk84Ho082pePTpcrGVN4PEDc5m/7kGhsTsLhfkG kUEdkaimMaiMiYNDmd3D1F/jWnZOF2YoWzsCR7L6QP5z10NW4WhE3ri0hSBSc/oTm4xX nkT5qTXSckXFxCKQ3FtAXZd4pLuK9gQt6r304wSdjhMssvBNmHQS2otNwTo6qG2r2/cD eoWk0c3i4HCcA++rJqcH2Yc4rdDTnbD/Sxly4TYQ5+/y6/URKdSjyY84Gwz2HshqjzRR Ym9cyz6XipDVsRaGJ2GTP0OAHxu0qB1PN3Rj/Z0L8aVS8R0Ki31mG5vuwRgbMUMqYdI4 IAFg== X-Gm-Message-State: AOAM531NjF42etKfk9HuxEaaHLvlPrkM/zyqeOg2SaMRgCDtjMhCll6z dNC4c1MjoBTcUMj8zalSBk0= X-Received: by 2002:a17:90b:4c12:b0:1c6:f450:729d with SMTP id na18-20020a17090b4c1200b001c6f450729dmr194978pjb.190.1649697100948; Mon, 11 Apr 2022 10:11:40 -0700 (PDT) Received: from scdiu3.sunplus.com ([113.196.136.192]) by smtp.googlemail.com with ESMTPSA id y16-20020a63b510000000b00398d8b19bbfsm307213pge.23.2022.04.11.10.11.38 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Apr 2022 10:11:40 -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 v7 1/2] devicetree: bindings: net: Add bindings doc for Sunplus SP7021. Date: Tue, 12 Apr 2022 01:11:27 +0800 Message-Id: <1649697088-7812-2-git-send-email-wellslutw@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1649697088-7812-1-git-send-email-wellslutw@gmail.com> References: <1649697088-7812-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 v7 - None .../bindings/net/sunplus,sp7021-emac.yaml | 140 +++++++++++++++++++++ MAINTAINERS | 7 ++ 2 files changed, 147 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 0000000..6dc15cd --- /dev/null +++ b/Documentation/devicetree/bindings/net/sunplus,sp7021-emac.yaml @@ -0,0 +1,140 @@ +# 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 fd768d4..1d54292 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -18869,6 +18869,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.7.4