Received: by 2002:a25:1104:0:0:0:0:0 with SMTP id 4csp222574ybr; Fri, 22 May 2020 05:13:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8qYthnRQzJaMnuwLU2JHrB+n5/V/boZ9zwdnj+9Hc9HgY8YTfkFSeaOn0lAnVk11CIWA8 X-Received: by 2002:a05:6402:1817:: with SMTP id g23mr2821270edy.132.1590149605370; Fri, 22 May 2020 05:13:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590149605; cv=none; d=google.com; s=arc-20160816; b=TlsTH5mcYuegl/5v1gscgYy9xXWNS9X1j4lIwGnOaC888N2X0YxqV89yRit2RpzShd eK2z5JsBF01cJ046w2d6h1XPND3+mJXcNEk598vqO3JGJyZJ2S2gHCK4wKBYIaeRXl61 carw1pn1K02QByD/idPGclNFLlqtsJz6X5hCjArBN7KcU5XkTeT9Z63ALmN8KPD21vxw GS+ZWNty9zWKSPHCi1KsHXX21xhM3gGP63S1AMepX1Rkc6OIIxIgGe0ZIibWumpENjZR 4/XUUxaGc0F4dY9QvCdmcuBhR6h/7d3VwgOVAiaGJiuzjo3nOL4yIwyjR8/55VN9ynUH Yghg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=/pmWjPydDcH2ECRLQQUecpuUxdBwIQiF7KV5PtBBYA0=; b=nWJQnF4hOEgLoR+o5ztej7pBK9T+iCqlNZ1ADhr2cxIY1pE4fOvEqR58o+Z044wF+D mkxAV6jAoQMrr6y5NezKuMtPIUSst8mD1CGUD6+jZEWgq0gCJz8R+wJEpdxBTWwb09Ul F9RoEZntN5+IXyqvI1Kk4dkssk0xvm+dV+rxChi6TUauHx1u6HGCbRq2qKCl/z3nTmMM p7Q2W14hlvXDq05QeSZVUn0Jjoqzah2tZLDpLrSh3owOTu+EE8DvIE5jAa0/+W4TbsLi xz5lu3HlY5jtXPV7aBhX/qGljixWWE4K18eh3pv5Vbkv0yvNAm6w7erv5XJ/2MfLGmVq 1jag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=i0LAaJO4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lr24si4924688ejb.383.2020.05.22.05.13.00; Fri, 22 May 2020 05:13:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=i0LAaJO4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729971AbgEVMI1 (ORCPT + 99 others); Fri, 22 May 2020 08:08:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729253AbgEVMH0 (ORCPT ); Fri, 22 May 2020 08:07:26 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB934C08C5C5 for ; Fri, 22 May 2020 05:07:25 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id c11so435956wrn.6 for ; Fri, 22 May 2020 05:07:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=/pmWjPydDcH2ECRLQQUecpuUxdBwIQiF7KV5PtBBYA0=; b=i0LAaJO4/OsiG8tHqQqh8QMJFnyB9fw0SVJmnxPGwVTC6c84IGU5mK5QyKhXXyAdJY gwxhvTbndWQZIPz4rlVu6qopD/zba+IYsJRc0V8W25aObCVlipS1HOIqHGeuz4IRwc0C 3WkftM8s+RgwQxuqLazSX/TOdAZqK2SNnCMJCce1G8I5UroZMlsPaWtI1A3KC0M35wNv 5PTjSWIHb9XdOhVpsE/mAichJ+oodz+TsK9zHPZGJCX7A4uGLz0CCB5ySpw+QlijqLzE utvl5/7gbRxf6t+9Os+RqahStxHmEBlGoJ9zX+YiptZIfhJagdJ0rLderVS/L4oc62u1 vMHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=/pmWjPydDcH2ECRLQQUecpuUxdBwIQiF7KV5PtBBYA0=; b=ASCtdgio7aFarwN1rPx38HcgHelOTb8uz8uUCD8m7EZKmfL4Dfnb759G8tXNcRlur0 9nxAEfL67dxWCt2dRIfxM9ch94tERwW+T1H2cvE7V2QPsrYvrtrJFHscQep9I6F5wR+L MQpilXgoLCqx+7hjTLxK/YJyyFxHt6yaKvXFAOQVfRE2cD8FBgAPRa8s8ay4MEq5QhC2 eHEK5YA5d2uJoptc1w+S7zfh0yM7tSl4ku0bj7YxDcon8nH3ND1cHjHkGPynMgt/tQTC Nw6SQC/7WcDXTCTUC+ULKtjBdP2dIWSdbPecMogM9yE0Cs0hXfO6gC1slMqPAzi3I97r Za9w== X-Gm-Message-State: AOAM530ppVCcOuE0hA2TapZSEnmrF5+Zbe732kSiI/Tp9bLtpJ6tooGL vbf60BKfozMWZ0jdAkp1RO+wXw== X-Received: by 2002:a5d:4dd0:: with SMTP id f16mr1475060wru.117.1590149244637; Fri, 22 May 2020 05:07:24 -0700 (PDT) Received: from localhost.localdomain (lfbn-nic-1-65-232.w2-15.abo.wanadoo.fr. [2.15.156.232]) by smtp.gmail.com with ESMTPSA id f128sm9946233wme.1.2020.05.22.05.07.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 May 2020 05:07:24 -0700 (PDT) From: Bartosz Golaszewski To: Rob Herring , "David S . Miller" , Matthias Brugger , John Crispin , Sean Wang , Mark Lee , Jakub Kicinski , Arnd Bergmann , Fabien Parent , Heiner Kallweit , Edwin Peer Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Stephane Le Provost , Pedro Tsai , Andrew Perepech , Bartosz Golaszewski Subject: [PATCH v5 03/11] dt-bindings: net: add a binding document for MediaTek STAR Ethernet MAC Date: Fri, 22 May 2020 14:06:52 +0200 Message-Id: <20200522120700.838-4-brgl@bgdev.pl> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200522120700.838-1-brgl@bgdev.pl> References: <20200522120700.838-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bartosz Golaszewski This adds yaml DT bindings for the MediaTek STAR Ethernet MAC present on the mt8* family of SoCs. Signed-off-by: Bartosz Golaszewski --- .../bindings/net/mediatek,eth-mac.yaml | 89 +++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/mediatek,eth-mac.yaml diff --git a/Documentation/devicetree/bindings/net/mediatek,eth-mac.yaml b/Documentation/devicetree/bindings/net/mediatek,eth-mac.yaml new file mode 100644 index 000000000000..f85d91a9d6e5 --- /dev/null +++ b/Documentation/devicetree/bindings/net/mediatek,eth-mac.yaml @@ -0,0 +1,89 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/mediatek,eth-mac.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek STAR Ethernet MAC Controller + +maintainers: + - Bartosz Golaszewski + +description: + This Ethernet MAC is used on the MT8* family of SoCs from MediaTek. + It's compliant with 802.3 standards and supports half- and full-duplex + modes with flow-control as well as CRC offloading and VLAN tags. + +allOf: + - $ref: "ethernet-controller.yaml#" + +properties: + compatible: + enum: + - mediatek,mt8516-eth + - mediatek,mt8518-eth + - mediatek,mt8175-eth + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + minItems: 3 + maxItems: 3 + + clock-names: + additionalItems: false + items: + - const: core + - const: reg + - const: trans + + mediatek,pericfg: + $ref: /schemas/types.yaml#definitions/phandle + description: + Phandle to the device containing the PERICFG register range. This is used + to control the MII mode. + + mdio: + type: object + description: + Creates and registers an MDIO bus. + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + - mediatek,pericfg + - phy-handle + +examples: + - | + #include + #include + + ethernet: ethernet@11180000 { + compatible = "mediatek,mt8516-eth"; + reg = <0x11180000 0x1000>; + mediatek,pericfg = <&pericfg>; + interrupts = ; + clocks = <&topckgen CLK_TOP_RG_ETH>, + <&topckgen CLK_TOP_66M_ETH>, + <&topckgen CLK_TOP_133M_ETH>; + clock-names = "core", "reg", "trans"; + phy-handle = <ð_phy>; + phy-mode = "rmii"; + + mdio { + #address-cells = <1>; + #size-cells = <0>; + + eth_phy: ethernet-phy@0 { + reg = <0>; + }; + }; + }; -- 2.25.0