Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4726927iob; Sun, 8 May 2022 23:26:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwfF9BiSaCfTBiZMeKlJvb1lQon5Qymh2hdT3Lrs587m2nikVGk8i2VMMXdFv+0XAO7dsFe X-Received: by 2002:a05:6a00:1881:b0:50e:1a:f452 with SMTP id x1-20020a056a00188100b0050e001af452mr14771003pfh.75.1652077564489; Sun, 08 May 2022 23:26:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652077564; cv=none; d=google.com; s=arc-20160816; b=Q55v49cjxqzQKxxHFc3OkSl9aXKJ8Zrx0lIpPfTucxJmAK8BJXVC33deRev2gbxJna hKnZglWkhyejL2WxUtZvGha+xxxIkRQMEA1G5ScYhOC/GcEXrY0Vkedf8dEOqqoneN0M Ze/1mlZ5ohAGlYBmjimx8NbfWErtCHtCv17lDhbbbdbCBKthH28HGaQfiv1qF2wWxEx1 Ti0FSN9jDcI4Zanzpa3s1GKB9euK4xCJ3XYyCYZtwMzXP/FYe21axfjkYKjfhdEDuSue onRjQJaXTOlU9bOjVBuKBNv69QdMAAXH85rBDHHBKkuyZRy9nrjo4VgPVXySNqVAy4MP Dm/w== 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=N0vLdQJC2iM6p5/E3+l3sjmXIFLEk3/c9HAP285Q4AY=; b=NzV5k4FmFzcSxih6pgpRl0fCCdxHD7fyRFGoJntqdFzYGc4BV3aCF8Rv+zxvtMyLrG eagUrJ7QMXhmAmVA1fB5lHB2w6UkRnXtABhQoI2iawMfQR/rbVlS/yhlaBRdycfP/BXv HI/4xEljoT8/ic5f2Z8JHcEdIXWiMOvhAR3PF9olqKQlkHeGqCDK9Sxuf1XWtj2ern7b pAjMJHTTsOc87FThcjx2bYcZZKQ06WplHO0mP12Xdxq9Dr9WcEJamxPx4XQlOHIQ22WV g7kMQBkcpj8VpnVrJK0KoC6TDFvRobJQl0ZavUqWAO8z7YDmlEJeXBJLrOwdTWoGVOrx ucDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jCXxMNzG; 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 u16-20020a056a00159000b004fb83b0732dsi12724042pfk.323.2022.05.08.23.26.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 23:26:04 -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=jCXxMNzG; 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 13B2A179E70; Sun, 8 May 2022 23:24:55 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230488AbiEHKRc (ORCPT + 99 others); Sun, 8 May 2022 06:17:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230328AbiEHKRZ (ORCPT ); Sun, 8 May 2022 06:17:25 -0400 Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EAA8FBF69; Sun, 8 May 2022 03:13:34 -0700 (PDT) Received: by mail-pf1-x42b.google.com with SMTP id c14so9919209pfn.2; Sun, 08 May 2022 03:13:34 -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=N0vLdQJC2iM6p5/E3+l3sjmXIFLEk3/c9HAP285Q4AY=; b=jCXxMNzGMXzO5yN8ZjRJ2aoUOjAdPIhVxUX5jBV4Se84JsLfPw78t3X0P/dOCFnyYg q3pdLDka/UN2z2G3vjDv/STs/nFUWDoI6MwbqxrrSvXSzQZHnRwz5FRpsm39sgIufHuO lwaWnbisD5TVoEtHT4YPI3uI1NQwU81JycgaoxSTCiaVi1yXBED48W8e8GIe70VJzv5I s2+MYem0vXOe0pPmEjpTcrn+dZzWcu0APg1uYwPdFFBrbPPwCvLrktQ9+E2VgTpdTGLP GAAXEJgNRhgjyKKy/hVFBGxDjTz4cRJkPwrrta1RqROG76denUGT9tQB3wM9tM+Pu9je jZ0w== 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=N0vLdQJC2iM6p5/E3+l3sjmXIFLEk3/c9HAP285Q4AY=; b=w9W8AmH47UyHtr+PyVjFLnGkZUZGzR/ILE8BlAO9J2rrGxmf2jJ7s66ERPucbL/Z1C YEFYAWa4QjDbG8jNTWJc+0108NHJfEuM7D7W64s8wq34nJ9gq7oceSddAFI9ez0fA2W9 U1CEggbRkGVeoSKrjPbSyJjnpm2yRWqsSgm+L9/xhUyXInZo1TZkaaGpT7ro7BinF3Ni Q7y/4PULmY17EmanyyRuwfrhjTg4Vz5qn5P5IyMf+UqAVPJ/oEt74eQgCKTeef0Uehwl bO38qUDw24eiTqZsnLOmZzjg1p6S9lCskMwGFET8Gtdbi4DwMDTfPu6VWFaLyfNU/TwI avng== X-Gm-Message-State: AOAM533XwwKZwqH1tm/tUA5wgrQJGqZ3wJV+kutaZnftB3gxtIeoq53V DTTiG8NnhkQUeScbOaLDCYQ= X-Received: by 2002:a63:3206:0:b0:3c2:8205:1e00 with SMTP id y6-20020a633206000000b003c282051e00mr9126081pgy.242.1652004814465; Sun, 08 May 2022 03:13:34 -0700 (PDT) Received: from scdiu3.sunplus.com ([113.196.136.192]) by smtp.googlemail.com with ESMTPSA id y2-20020a17090322c200b0015e8d4eb1f6sm4969610plg.64.2022.05.08.03.13.31 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 08 May 2022 03:13:34 -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 v11 1/2] devicetree: bindings: net: Add bindings doc for Sunplus SP7021. Date: Sun, 8 May 2022 18:13:19 +0800 Message-Id: <1652004800-3212-2-git-send-email-wellslutw@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1652004800-3212-1-git-send-email-wellslutw@gmail.com> References: <1652004800-3212-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 v11 - 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 0000000..62dffee --- /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 cbf21e1..9473062 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -18897,6 +18897,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