Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2177394pxb; Fri, 24 Sep 2021 23:31:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyreSK9SgxjE5q4rCk1cPCW/MB9BjZ07fL5Idw/eC7lOI+/zeioL3EoyGran6FXn2LUb5Mz X-Received: by 2002:a17:907:3f18:: with SMTP id hq24mr15680477ejc.384.1632551476405; Fri, 24 Sep 2021 23:31:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632551476; cv=none; d=google.com; s=arc-20160816; b=oo2kYYu7BRTS8y/8DrvaQZX8Zm6lfg0TDv7TyOLEyv0bj7X3LdeLwXgx7kSE93tnlM EUG4De55fFEaBtjblUYc7zcz9cTVakwo8YaySlcNkRxQSvNvu/JyUdsVuPq5Tavf54XU a+3M9fvmPbuKGHxl1VrkzzvzBgsHE929xpBvHgqNXh2hBiOrR17te0KyRzeUaBfnDhyL 6iLMpzPHZUndeJY2MzKR3So73NIntWQLiDDlod3nWosx0WJ6v2D2k2xtB1/KuADQ/yxe 9xHbDYIZjqaAZulHTR7l0daYY7UBgre6OFLLINyDP4WFyl1iLi5fAdGP4LCSjb4BVNdR Vc/g== 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=gFs+xx2qBOTJUs4a6bSmi6bDzVEq4nz1xAMrovAUtoE=; b=Nf99byD+eCmbhinYjId7tH3qaG8g1beMEzcGxr6qFf5Bp6UMUqzmSl2AF2ZbYsTP/2 SjQ+74KtRWq93UngDM8QDYAqr1Iz2G9Vv6SX5nTiAVpZ+D/mx8j88oS/9R5kdzTcQ2WD kInEcHfTy7xX6ch4CitGsVTrvOUsxr9skSAwRkgDK6LmUheGEi4aLaZumdCJZynTsAzB Uysm/Y+Vdk0zmEqdeCcQOmxy8ZgUj2aylc/vDgLb2a9yrsa7ZExyikAb/o+7P1XXDb9y opZNVLbEzOBpJJVqyyIAeYn2BZE1ekFwZbKNPZzofD4qP3fEXGSyMXJFZ0fvp8zVVu19 nECQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Mg9Bxa76; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h9si6459936edb.422.2021.09.24.23.30.53; Fri, 24 Sep 2021 23:31:16 -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=@gmail.com header.s=20210112 header.b=Mg9Bxa76; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348591AbhIXVqk (ORCPT + 99 others); Fri, 24 Sep 2021 17:46:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348588AbhIXVqj (ORCPT ); Fri, 24 Sep 2021 17:46:39 -0400 Received: from mail-pg1-x529.google.com (mail-pg1-x529.google.com [IPv6:2607:f8b0:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B34BC0614ED; Fri, 24 Sep 2021 14:45:06 -0700 (PDT) Received: by mail-pg1-x529.google.com with SMTP id x191so4156355pgd.9; Fri, 24 Sep 2021 14:45:06 -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=gFs+xx2qBOTJUs4a6bSmi6bDzVEq4nz1xAMrovAUtoE=; b=Mg9Bxa76EEKyFK6smxpytkPNqX1zOloVPCNYTPB+ewz8nni7T0chkGlsHthrKQBHRH AkYCGLypsd1QFl16fL14fMXdfRPotaj6F53OdxRVgy6aaBH+fkAzMteSriYqU8SmV1/u 2LxFhXGtJVE0AA3o1Wa86oCfef97pnqJ4p+dRgCVaIe9EfiZAjThlxBQ4hQoOnFPpk1c UACo3RM/+tqE7l3LT1JinN41+OotSw5UhjF7YfzO0OrfRt6D25prucmo5AfaUKXOapXy s8ng3fkvgJkFT9ytXzZucyqagdO0/jR9a9QU3C//wZ0XttcZNn7vC98crqf2wAzIwuON MRFg== 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=gFs+xx2qBOTJUs4a6bSmi6bDzVEq4nz1xAMrovAUtoE=; b=MxJcECQ4cbOGWqVIeqwtH0AFTuxn7Vc9gTmBKEhOw4nuEHkZa0sCwRDtpfo2rNGcTt tQVunnoxZrjRfflCJJs1pLdkxbAC6J+sDPRWPtIHWl/gqSXovJY257oAOV9b8QLF9yI3 h0gkr6Ni1sD5adghymYrKL548TGNc1vj1mhMqLQRI792AWZpimDHgk/qg6KiusfrQ41L KDpJfC5D3JWF1kE6yLScu7v/6DcfI3vxE/TbJFpzb63FrHgmmoyDGrHRhG928vHJr3Fk IG4NQODoP+Nhk7CRro1UMAHrAt+cVzZEvOAzTsAJJBDiRwdrY7MKbkhcazQUQuxwbsla kmvA== X-Gm-Message-State: AOAM5312q6xB1hlK/uJhf7ulfLqalhrNYsuVplJR1EDPWA0bXP9FL8Fx Pmp/LvbMAhNBZZcxvyvsDI4JQMmvs7V9+g== X-Received: by 2002:a63:3504:: with SMTP id c4mr5389911pga.203.1632519905278; Fri, 24 Sep 2021 14:45:05 -0700 (PDT) Received: from stbirv-lnx-2.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id n66sm9842029pfn.142.2021.09.24.14.45.03 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Sep 2021 14:45:04 -0700 (PDT) From: Justin Chen To: netdev@vger.kernel.org Cc: bcm-kernel-feedback-list@broadcom.com, Florian Fainelli , Justin Chen , "David S. Miller" , Jakub Kicinski , Rob Herring , Doug Berger , Andrew Lunn , Heiner Kallweit , Russell King , Sumit Semwal , =?UTF-8?q?Christian=20K=C3=B6nig?= , =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= , Randy Dunlap , Arnd Bergmann , Michael Chan , Geert Uytterhoeven , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list), linux-media@vger.kernel.org (open list:DMA BUFFER SHARING FRAMEWORK), dri-devel@lists.freedesktop.org (open list:DMA BUFFER SHARING FRAMEWORK), linaro-mm-sig@lists.linaro.org (moderated list:DMA BUFFER SHARING FRAMEWORK) Subject: [PATCH net-next 1/5] dt-bindings: net: Brcm ASP 2.0 Ethernet controller Date: Fri, 24 Sep 2021 14:44:47 -0700 Message-Id: <1632519891-26510-2-git-send-email-justinpopo6@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1632519891-26510-1-git-send-email-justinpopo6@gmail.com> References: <1632519891-26510-1-git-send-email-justinpopo6@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Florian Fainelli Add a binding document for the Broadcom ASP 2.0 Ethernet controller. Signed-off-by: Florian Fainelli Signed-off-by: Justin Chen --- .../devicetree/bindings/net/brcm,asp-v2.0.yaml | 147 +++++++++++++++++++++ 1 file changed, 147 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/brcm,asp-v2.0.yaml diff --git a/Documentation/devicetree/bindings/net/brcm,asp-v2.0.yaml b/Documentation/devicetree/bindings/net/brcm,asp-v2.0.yaml new file mode 100644 index 0000000..bab31d9 --- /dev/null +++ b/Documentation/devicetree/bindings/net/brcm,asp-v2.0.yaml @@ -0,0 +1,147 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/net/brcm,asp-v2.0.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Broadcom ASP 2.0 Ethernet controller + +maintainers: + - Justin Chen + - Florian Fainelli + +description: Broadcom Ethernet controller first introduced with 72165 + +properties: + '#address-cells': + const: 1 + '#size-cells': + const: 1 + + compatible: + enum: + - brcm,bcm72165-asp-v2.0 + - brcm,asp-v2.0 + + reg: + maxItems: 1 + description: ASP registers + + ranges: true + + interrupts: + minItems: 1 + maxItems: 3 + items: + - description: RX/TX interrupt + - description: Port 0 Wake-on-LAN + - description: Port 1 Wake-on-LAN + + clocks: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: Phandle to clock controller + + clock-names: + const: sw_asp + + brcm,reserved-net-filters-mask: + $ref: /schemas/types.yaml#/definitions/uint32 + description: bitmap of reserved network filters that the driver will not use. + + mdio: + type: object + $ref: brcm,unimac-mdio.yaml# + + ethernet-ports: + type: object + properties: + '#address-cells': + const: 1 + '#size-cells': + const: 0 + + patternProperties: + "^port@[0-9]+$": + type: object + + $ref: ethernet-controller.yaml# + + properties: + reg: + maxItems: 1 + description: Port number + + channel: + maxItems: 1 + description: ASP channel number + + required: + - reg + - channel + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + - ranges + +additionalProperties: false + +examples: + - | + asp@9c00000 { + compatible = "brcm,asp-v2.0"; + reg = <0x9c00000 0x1fff14>; + interrupts = <0x0 0x33 0x4>; + ranges; + clocks = <&scmi 14>; + clock-names = "sw_asp"; + brcm,reserved-net-filters-mask = <0xff>; + #address-cells = <1>; + #size-cells = <1>; + + mdio@c614 { + compatible = "brcm,asp-v2.0-mdio"; + reg = <0xc614 0x8>; + reg-names = "mdio"; + #address-cells = <1>; + #size-cells = <0>; + + phy0: ethernet-phy@1 { + reg = <1>; + }; + }; + + mdio@ce14 { + compatible = "brcm,asp-v2.0-mdio"; + reg = <0xce14 0x8>; + reg-names = "mdio"; + #address-cells = <1>; + #size-cells = <0>; + + phy1: ethernet-phy@1 { + reg = <1>; + }; + }; + + ethernet-ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + channel = <8>; + phy-mode = "rgmii"; + phy-handle = <&phy0>; + }; + + port@1 { + reg = <1>; + channel = <9>; + phy-mode = "rgmii"; + phy-handle = <&phy1>; + }; + }; + }; -- 2.7.4