From patchwork Fri May 19 21:19:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Justin Chen X-Patchwork-Id: 96639 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1528766vqo; Fri, 19 May 2023 14:20:58 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7i6s3FEegFF+6jPdzQbw3jAaxXIILX5u21x5cgzXIoqL6hdnKojlxOopOu5a7R5LfVnnp0 X-Received: by 2002:a17:90b:1e06:b0:24e:2d3:a404 with SMTP id pg6-20020a17090b1e0600b0024e02d3a404mr3292924pjb.4.1684531258145; Fri, 19 May 2023 14:20:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684531258; cv=none; d=google.com; s=arc-20160816; b=pp15BpLqJyGwkpbyJC9pEi16Yxd/zGMyZHbFVnbvarJv4yyBAy2MnXKKLv4xyF2l+S CQSxOWIfXAzK2LY7PoJu5XGgfxa/sSjYB84IilJM+fdUtX/u2BjGUZCY2QY82BxExJVb jhF8qoCBcqzt4TeOX0Rday7DHVMi2u7SFmGdjZhlzeVPHdE7zkyukVUxpGZ6RQi81OqK fsbuN1C8o5cjjYj1tjKzZtuX7AU96rRJqrK4T3+UXMzwNm/ZGKv6l1sdig2irbKnn3I4 Lu7eT+CnUhzyMMIa3UdeHSDQAXVKmwg9qBF1MbS3o9fJq0k/jbnp/1VR7Pjzs428rNAx ek5g== 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=BoRMLajzLDXItZ+DGiK62xk0stXEyr5GYK6xpoh2GfI=; b=bgS9HgeNlfCxmnugsWm+MDdWuV54gu4fcweT385l3JE9H09ZRG+DiMnSrViEfrnVoG r56TV2ycpiV9RCf9CoasrGBU2Fd1V4GmGZK2fzMJBotI8T+27QKv9y+rqSH6UrYoYdJK Q+zIxqlBORmMapMQwe1gBAo6t/R6C6oxvVO+VoY51qVP2p8iZSWoOjML4/R2yc9pu5sL Uae0tRAwNLORCOO7juqqpgQdZR/qT3UzyGHqOE3VCLTay1Djc6OvE3HIdlsDWrY4wFxz SJm9gpWe1AOfmwEFM6wvmmOMuJgz59pbiSLmusp20SxO1GFT9wKwaPdbkhCL/EB+ript lAgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=fb59u4d1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s22-20020a17090ad49600b002498408b1c5si2359657pju.39.2023.05.19.14.20.44; Fri, 19 May 2023 14:20:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=fb59u4d1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231340AbjESVUD (ORCPT + 99 others); Fri, 19 May 2023 17:20:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230409AbjESVT7 (ORCPT ); Fri, 19 May 2023 17:19:59 -0400 Received: from mail-qv1-xf36.google.com (mail-qv1-xf36.google.com [IPv6:2607:f8b0:4864:20::f36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30389BC for ; Fri, 19 May 2023 14:19:58 -0700 (PDT) Received: by mail-qv1-xf36.google.com with SMTP id 6a1803df08f44-6239b45765eso14193326d6.2 for ; Fri, 19 May 2023 14:19:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1684531197; x=1687123197; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=BoRMLajzLDXItZ+DGiK62xk0stXEyr5GYK6xpoh2GfI=; b=fb59u4d1F8yRAd3Q4LGdcomvAowu3hkrRzwq7Omcv/hB6SXvqllIxv+WPKAVhTRlEH f+EPwfHee85gkO31dIl7q3q/s+H6v7wGxdpR9FqMxPtAeVs4je0kdbJz15HV0f6RZvV0 eZg9de/6c1BeRu5TH2Oo2hBxBH9X8b+8y/uGM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684531197; x=1687123197; h=references:in-reply-to:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=BoRMLajzLDXItZ+DGiK62xk0stXEyr5GYK6xpoh2GfI=; b=Y87QXtYSuEvCMbgMTAa5joWhNEOtIn/3+J8LaZXaC8F3kJuSPiZWaeNouJAwtNaRG8 NsX1spfHE3JChJsrHPkVAqONIexnSbcJt9cv+cM/iMewNTmoH0hQX2Cg5JXuplHogtIg zO7Mi9vFJMc4bB6hLzhl3tJCxs05rYY5gMHXTFFh3VGe/9cYTABEBiYzzhu5cvYUu2qh qlqKqcexyIgos27LAcOA/fWPE1adE9pZMalp58ArmNlqhAzvb7AMHUqBpSjppnSDiaT1 r7oEr5CBYxdbpiQkSBECoCSNQRBTuKgxmWOJe3qJqYPXsCCTupqXuIGeRuYs6eyZEZZK tBsA== X-Gm-Message-State: AC+VfDyiRSeKw0E8SY7GHh3IrBuaiI0D+693YcdC1ui/HUorRG1wxiGg Hq1og8PXoG02uFP9Ak8SllfNcQ== X-Received: by 2002:a05:6214:cc7:b0:623:8214:14c8 with SMTP id 7-20020a0562140cc700b00623821414c8mr7654970qvx.51.1684531197254; Fri, 19 May 2023 14:19:57 -0700 (PDT) Received: from stbirv-lnx-2.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id p11-20020ae9f30b000000b0074df8eefe2dsm1364585qkg.98.2023.05.19.14.19.54 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 May 2023 14:19:56 -0700 (PDT) From: Justin Chen To: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, bcm-kernel-feedback-list@broadcom.com Cc: justinpopo6@gmail.com, justin.chen@broadcom.com, f.fainelli@gmail.com, davem@davemloft.net, florian.fainelli@broadcom.com, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, opendmb@gmail.com, andrew@lunn.ch, hkallweit1@gmail.com, linux@armlinux.org.uk, richardcochran@gmail.com, sumit.semwal@linaro.org, christian.koenig@amd.com Subject: [PATCH net-next v3 2/6] dt-bindings: net: Brcm ASP 2.0 Ethernet controller Date: Fri, 19 May 2023 14:19:40 -0700 Message-Id: <1684531184-14009-3-git-send-email-justin.chen@broadcom.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1684531184-14009-1-git-send-email-justin.chen@broadcom.com> References: <1684531184-14009-1-git-send-email-justin.chen@broadcom.com> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, MIME_HEADER_CTYPE_ONLY,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE,T_TVD_MIME_NO_HEADERS,URIBL_BLOCKED autolearn=ham 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766359048749057834?= X-GMAIL-MSGID: =?utf-8?q?1766359048749057834?= 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 --- v3 - Minor formatting issues - Change channel prop to brcm,channel for vendor specific format - Removed redundant v2.0 from compat string - Fix ranges field v2 - Minor formatting issues .../devicetree/bindings/net/brcm,asp-v2.0.yaml | 145 +++++++++++++++++++++ 1 file changed, 145 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 000000000000..a9fed957e1d6 --- /dev/null +++ b/Documentation/devicetree/bindings/net/brcm,asp-v2.0.yaml @@ -0,0 +1,145 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%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,asp-v2.0 + - brcm,bcm72165-asp + - brcm,asp-v2.1 + - brcm,bcm74165-asp + + reg: + maxItems: 1 + + ranges: true + + interrupts: + minItems: 1 + items: + - description: RX/TX interrupt + - description: Port 0 Wake-on-LAN + - description: Port 1 Wake-on-LAN + + clocks: + maxItems: 1 + + 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 + + brcm,channel: + $ref: /schemas/types.yaml#/definitions/uint32 + description: ASP channel number + + required: + - reg + - brcm,channel + + additionalProperties: false + +patternProperties: + "^mdio@[0-9a-f]+$": + type: object + $ref: brcm,unimac-mdio.yaml + + description: + ASP internal UniMAC MDIO bus + +required: + - compatible + - reg + - interrupts + - clocks + - ranges + +additionalProperties: false + +examples: + - | + #include + #include + + ethernet@9c00000 { + compatible = "brcm,asp-v2.0"; + reg = <0x9c00000 0x1fff14>; + interrupts = ; + ranges = <0x0 0x9c00000 0x1fff14>; + clocks = <&scmi 14>; + #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>; + brcm,channel = <8>; + phy-mode = "rgmii"; + phy-handle = <&phy0>; + }; + + port@1 { + reg = <1>; + brcm,channel = <9>; + phy-mode = "rgmii"; + phy-handle = <&phy1>; + }; + }; + };