Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1340397rwd; Wed, 31 May 2023 12:28:49 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6QjjsTG8dF1HlPBFX4pORw80DsSlu46FfWtK9+v7w9tigbjSDQitLGtdswFWZj1ysHeGLg X-Received: by 2002:a05:6a00:3905:b0:63b:5501:6795 with SMTP id fh5-20020a056a00390500b0063b55016795mr6724502pfb.24.1685561328995; Wed, 31 May 2023 12:28:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685561328; cv=none; d=google.com; s=arc-20160816; b=Rgp+6wM/PEzcXS7TbEQV6xQlHuvQPVh+sruO8czoq1OmNtNtDkJM5N7k0No+EvRLrO GaFujRJRQNGNN+iIK1ERH2BnXN/DkPjuk0B2hpCjUhKsUHQ1CX15c3lJeWfH0PQFyMzg uh0O9njrspH+7aTpm74q3cb3x/iiXB1mt01v8G882Js5LW2FB0C2kLdQAHzNRW1TA8r/ 9dEQwox3x6M0FR2pnRIMTFsDRKMP9s7GJMF8m8XOLc3JPr4u+zDbV8FUXWuDMA8rJ9BF ouFC9LGT9Dri1WzWrm5yc6Veirei7wvy/6NKRtfed232nFRLBBAzbXKN8iuz9HxtkpPS IZ/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=n8yZnUSUyLkwq+12ZSohTFTCzqIRJUZ2nM3Mlv8CU5Y=; b=peJoxJlSQmIw1gOfN7fB0OPHuBZZWOPLA0MWqPaaQ5mKlTh6wfbLWSv5chL49SpF1/ rhVbQVcx+hkcEY6yfsHVSTnPuX0djxAO7dY4Jme/gyrfsMPEoB6jI3rT+ouqeSUXfVFU GPjs2xaC3XlsLjhtqetTxIl03hwDXXKo3HlzpdaNT4qVzwRjc2vP5eXU8SBg+zH7taeE nmmoh3IRGlEbv8ZafpzJDEPVAi1SDPEZLa2maoz5OV3kWyoXFuxp+fQf4GHpUT/XEPuR NR+bz7/qa4qAfaGuASdjksrvW6GztAefybvf7Rf/AWBYveiQBL4U3EEdJVWCVOQn+Xi+ 6NhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jfD6XoFf; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b196-20020a6334cd000000b0053efaa8a425si1543092pga.217.2023.05.31.12.28.35; Wed, 31 May 2023 12:28:48 -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=@linaro.org header.s=google header.b=jfD6XoFf; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229662AbjEaTSV (ORCPT + 99 others); Wed, 31 May 2023 15:18:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229489AbjEaTSM (ORCPT ); Wed, 31 May 2023 15:18:12 -0400 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7BC5126 for ; Wed, 31 May 2023 12:18:10 -0700 (PDT) Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-96f53c06babso1034294266b.3 for ; Wed, 31 May 2023 12:18:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685560689; x=1688152689; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=n8yZnUSUyLkwq+12ZSohTFTCzqIRJUZ2nM3Mlv8CU5Y=; b=jfD6XoFfiHEkI6WEaIYim/I1vasSk7JBwLyK4bqK4cFbR1EzpJgrKmMCfMG2T7+66I eW9Llzy3mxw+298elWEbeXxW3aL9FHM2KkaiElY/aP0PwzJaOdpdzKzjKdCRWlFPPo79 1Ba993qLQcmyLM2pyDgBcXT05a27vA/WHrnCkXEvROkoSk4OCIZDZrfFvh+dq91xiBsw 54J8wYpJxdGkStZv3l1ftgxsmOABW8duZRt33/F/pky5TsBbkgODNRf4LNtlGg7O8DDj 8+N9LbG+N8V1lWuYI3pxgJsOi6uboOUv7nCQiIqsAn8b1axOFJe6mIxfXZmOPsiXSegQ t0Kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685560689; x=1688152689; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=n8yZnUSUyLkwq+12ZSohTFTCzqIRJUZ2nM3Mlv8CU5Y=; b=aYQeT+OuZ1VqFVcUyYHuWYxlFQb6KJgiRZFYDtPC5U3CWnfipt4uZ/2jOOkbW2uLxY aoIXuPq4UPCGbJNLvMCpRnNGZtLhBLo9gx6mmUxQ8Cmsl3isUsTpGqfFtd50upol6iky P84zNIUadIKagc0BLasUOQ+tNJn4QqkzYPE28im90WzbZGSs9/dSKkB5uJwZmdx4vSju SP/n23L1+MejRO5JXEVQEyfwtYRvYlxcnMusZypW3EbyXZvpPEdIz0GzL5wQ4mmuIcJ0 OzT9UiaP11Th5UfAvCM7zn62QoNhzGmhsv+o9hqx4WQCdCk9URitXZerIU5wVyWXgHjF yU2A== X-Gm-Message-State: AC+VfDxhSx3nQPqqxpIZseKFbKyftoU5eHs5EhX8XggI+qwG7TGnHcfm f2idAbxLI32UTMKoqAVDsgvWKg== X-Received: by 2002:a17:906:5d10:b0:969:813c:9868 with SMTP id g16-20020a1709065d1000b00969813c9868mr5844763ejt.18.1685560689407; Wed, 31 May 2023 12:18:09 -0700 (PDT) Received: from [192.168.1.20] ([178.197.199.204]) by smtp.gmail.com with ESMTPSA id qw23-20020a170906fcb700b0096f71ace804sm9491344ejb.99.2023.05.31.12.18.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 31 May 2023 12:18:08 -0700 (PDT) Message-ID: Date: Wed, 31 May 2023 21:18:06 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH net-next v5 2/6] dt-bindings: net: Brcm ASP 2.0 Ethernet controller Content-Language: en-US To: Justin Chen , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, bcm-kernel-feedback-list@broadcom.com Cc: florian.fainelli@broadcom.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh+dt@kernel.org, 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 References: <1684969313-35503-1-git-send-email-justin.chen@broadcom.com> <1684969313-35503-3-git-send-email-justin.chen@broadcom.com> From: Krzysztof Kozlowski In-Reply-To: <1684969313-35503-3-git-send-email-justin.chen@broadcom.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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 25/05/2023 01:01, Justin Chen wrote: > 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 > --- > 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 | 149 +++++++++++++++++++++ > 1 file changed, 149 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..c4cd24492bfd > --- /dev/null > +++ b/Documentation/devicetree/bindings/net/brcm,asp-v2.0.yaml > @@ -0,0 +1,149 @@ > +# 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': Judging by more comments, there will be a v6, thus please also use consistent quotes - either ' or ". > + const: 1 > + '#size-cells': > + const: 1 > + > + compatible: As Conor pointed out, compatible is always first. > + oneOf: > + - items: > + - enum: > + - brcm,bcm74165-asp > + - const: brcm,asp-v2.1 > + - items: > + - enum: > + - brcm,bcm72165-asp > + - const: brcm,asp-v2.0 > + > + 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 Why do you need it? reg defines it. Your description does not explain here much, except copying property name. Can we please avoid descriptions which just copy name? > + > + required: > + - reg > + - brcm,channel > + > + additionalProperties: false > + > +patternProperties: > + "^mdio@[0-9a-f]+$": Isn't mdio a property of each ethernet port? Existing users (e.g.bcmgenet, owl-emac, switches) do it that way... Otherwise how do you define relation-ship? Can one mdio fit multiple ports? > + type: object > + $ref: brcm,unimac-mdio.yaml > + > + description: > + ASP internal UniMAC MDIO bus > + > +required: > + - compatible > + - reg > + - interrupts > + - clocks Best regards, Krzysztof