Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1393562rwd; Wed, 7 Jun 2023 15:50:55 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4n5breft+hg6m/BQNnrLRFbpXEytIsgNQxnJr6uY+qfPmqhaQrnLEYhr7vkRyWvUPdw9lo X-Received: by 2002:a9d:7312:0:b0:6b1:6583:dfd9 with SMTP id e18-20020a9d7312000000b006b16583dfd9mr7236452otk.29.1686178255539; Wed, 07 Jun 2023 15:50:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686178255; cv=none; d=google.com; s=arc-20160816; b=k9ysO4kqIVpEQJFH9lV2q4zSbOMPaRwHYHfl3dxD2z8xpdifcwuJQ05c5A1io3whHA 9QosGYEWcmN396AeeDQ34432WITuosD1tQBIzQN6um0YkOcc18S8gm6g5AuwheJR49WZ OuX3LTz25MDrHuE8qWcondzEw3NOyHnGnA9jJp24dY8Fga+MObOxFmTqbiIvlgDiHuTq T3foD62w3zBlXe6OhoRz57LrPT7IGX8VZmEdPOT43+34Ds/KQQwoOfcuOyRrYIuFoFEw /7T1qGCYGH+6dKpw4UaNPR4hj+gQG8secHMoL8t1/riWE8z3Pvo21+LimROtrBW80fsc UOwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=AxfRqxa7wvCqUms2E38nnMVQFutEDvjD8qThmFlsqqQ=; b=VUCa7Sj3tB+9Mbz5MPn+brr2G7kceFZhcRWBH/1/+tMkGfHmPzBoHQzDKfrY9RRRPK iTFoG+ydPM9YNdBJK3yZw4Te25Kwu5GePpmttU/Zr78UYpKmGMr0qnoJq0LOa1KlX+z/ r12j6e+kAG7e/7A/c77x4s4BcpLWjohg/1/7IIsDHXjYCGMlvZPJI0IWUrcFli4YXUk8 LYRT60RkpzPAehzdjp3c3TWk62sM97GTgWXzlyKy8ysmNfY57PGDD20FnkP7f1RzzZAA izM0MPWgBuBPjysmsoL8d+vJZUZyCaH7uJkqshnBCOxaZdPnwtUBej1AZJpKbYXG0rhP Ybqg== ARC-Authentication-Results: i=1; mx.google.com; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id me8-20020a17090b17c800b0024bda568513si27571pjb.123.2023.06.07.15.50.42; Wed, 07 Jun 2023 15:50:55 -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; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232953AbjFGW0b (ORCPT + 99 others); Wed, 7 Jun 2023 18:26:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232958AbjFGW0W (ORCPT ); Wed, 7 Jun 2023 18:26:22 -0400 Received: from mail-il1-f170.google.com (mail-il1-f170.google.com [209.85.166.170]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 20F772738; Wed, 7 Jun 2023 15:25:48 -0700 (PDT) Received: by mail-il1-f170.google.com with SMTP id e9e14a558f8ab-33b3cfb9495so9836205ab.2; Wed, 07 Jun 2023 15:25:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686176656; x=1688768656; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=AxfRqxa7wvCqUms2E38nnMVQFutEDvjD8qThmFlsqqQ=; b=DdNuy2ECmX8fcc3dWWMvEN+x+yuh74aV8LlPQoQoFf+jAWgWkpCAMhfrGcFQliUo9i /sfIWyGNf5EBZs7tIqhHFRpz0MSJmQFpoBi+7b7kElGODNBLBmqS4iBea2ceWD9oDGbp lSGYhFmUBHMAElcUICRVfvKULgfZmz7guAk3Zq4WU++d1a/0epChoPn8t1BqTdsT3RTN mvZPzWlzSM5peyp3zGLAu0bL+voDfse625EwFM5BH5a0i4zCR4pJqVh+Fnnw+GCGb7tr 3rSocUTRoDUwaYsoAdqEMeBt3Uo5CcobaGOMdoOIhuF31dRb+1cGoG9d8t+8n9EKXFto UtDg== X-Gm-Message-State: AC+VfDwgolyEeecx5zicXtEoSkg050d0+9rum7KUv/Glc7kgnjbBBNVX FqienDwolmJDACHFUGIQEA== X-Received: by 2002:a92:d341:0:b0:331:1834:7494 with SMTP id a1-20020a92d341000000b0033118347494mr9400434ilh.20.1686176656039; Wed, 07 Jun 2023 15:24:16 -0700 (PDT) Received: from robh_at_kernel.org ([64.188.179.250]) by smtp.gmail.com with ESMTPSA id dq31-20020a0566384d1f00b0041f5061884asm2602719jab.29.2023.06.07.15.24.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Jun 2023 15:24:15 -0700 (PDT) Received: (nullmailer pid 88530 invoked by uid 1000); Wed, 07 Jun 2023 22:24:13 -0000 Date: Wed, 7 Jun 2023 16:24:13 -0600 From: Rob Herring To: Justin Chen Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, bcm-kernel-feedback-list@broadcom.com, florian.fainelli@broadcom.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.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, simon.horman@corigine.com Subject: Re: [PATCH net-next v6 2/6] dt-bindings: net: Brcm ASP 2.0 Ethernet controller Message-ID: <20230607222413.GA84415-robh@kernel.org> References: <1685657551-38291-1-git-send-email-justin.chen@broadcom.com> <1685657551-38291-3-git-send-email-justin.chen@broadcom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1685657551-38291-3-git-send-email-justin.chen@broadcom.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On Thu, Jun 01, 2023 at 03:12:27PM -0700, Justin Chen wrote: > From: Florian Fainelli > > Add a binding document for the Broadcom ASP 2.0 Ethernet > controller. > > Reviewed-by: Conor Dooley > Signed-off-by: Florian Fainelli > Signed-off-by: Justin Chen > --- > v6 > - Moved compatible to the top > - Changed quotes to be consistent > - Elaborated on brcm,channel description > > v5 > - Fix compatible string yaml format to properly capture what we want > > v4 > - Adjust compatible string example to reference SoC and HW ver > > 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 | 153 +++++++++++++++++++++ > 1 file changed, 153 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..3f2bf64b65c0 > --- /dev/null > +++ b/Documentation/devicetree/bindings/net/brcm,asp-v2.0.yaml > @@ -0,0 +1,153 @@ > +# 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: > + compatible: > + oneOf: > + - items: > + - enum: > + - brcm,bcm74165-asp > + - const: brcm,asp-v2.1 > + - items: > + - enum: > + - brcm,bcm72165-asp > + - const: brcm,asp-v2.0 > + > + "#address-cells": > + const: 1 > + "#size-cells": > + const: 1 > + > + 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# unevaluatedProperties: false > + > + properties: > + reg: > + maxItems: 1 > + description: Port number > + > + brcm,channel: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: | > + ASP Channel Number > + > + The depacketizer channel that consumes packets from > + the unimac/port. > + > + required: > + - reg > + - brcm,channel > + > + additionalProperties: false