Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1880118rwr; Fri, 21 Apr 2023 00:32:07 -0700 (PDT) X-Google-Smtp-Source: AKy350bHXcZ3yDhrvT9uPNpiQlr8WfplnnE10gULA0IqdViMl3QpIpNDevY8rQYT5A3eHEuydMZz X-Received: by 2002:a05:6a00:182a:b0:63d:2648:f93e with SMTP id y42-20020a056a00182a00b0063d2648f93emr5475766pfa.20.1682062327392; Fri, 21 Apr 2023 00:32:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682062327; cv=none; d=google.com; s=arc-20160816; b=fGnI7wSnoGYC/yMKO5HCOUMr8CaZkGMFhrZj6R8xCKZ47pGp44zDO4o0AuVZsaQfib ORBlrBeuGsJV5+DPy0cnRkT+tKqxmes9A7KrYhBy4n78AVqRf3AX2kuaqwRYCaWDThNO FWvxOlU8/m2VjIku3QSlUKECmjlNTxUQaBBnidU5ycvVuZZm5FB5Lo0/6XnJN1YxNCJm SMpKc4OA6nrEexYGTXFeeDEmDJBbuYa432iTkE4CmLicr5YGQf9BH3kjiZwTHJc2hxYM P3WgNHW/P99hc1D5Drc4z66f66+TAa8Qbc4X1oGU7tSMfo7ma3HIXyZzvUEv1BxqktPU MFOQ== 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=N+iZ1aFyoi01Oag2G0IVEtycCaHj8d8JsSoYMnnAS8s=; b=WXlBJNfSWjYBU1A3mVJ/DRS8aUGQnUbjYYIt6RLFyYvrRT6gPW7YQEXMXhmWO5Ectc U1GSW5x3bdpam09ozzQ7z//ajX6gltHVFWq5Eod/BBlSQXEkn8HQnCjx81jaXT8V4+rZ aDVtIptgmbgBVylTDUBFe1Pxfc8EBcFHDVI0J3/SzZb6D0fYaauWaBRxjPpT60K+b1wC b7l+EXTdkiBvtnNSfK6RUcUTpJE1DBwAxk5IDqX1eDgj+K4NFCLGz2KpPG5SZNXi3qc6 igKHIkZdwd85E8Sl4QZwMe3tqJ+cim5RZ/L4CnaakfFGjRsllIu/NZRUAYMjzf+rcC3l MLZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ux5ynbWj; 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 w7-20020aa79547000000b0063d40888f69si3686690pfq.223.2023.04.21.00.31.48; Fri, 21 Apr 2023 00:32:07 -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=Ux5ynbWj; 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 S231130AbjDUH3x (ORCPT + 99 others); Fri, 21 Apr 2023 03:29:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230495AbjDUH3t (ORCPT ); Fri, 21 Apr 2023 03:29:49 -0400 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6CF5B1FC7 for ; Fri, 21 Apr 2023 00:29:48 -0700 (PDT) Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-94f910ea993so170544266b.3 for ; Fri, 21 Apr 2023 00:29:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1682062187; x=1684654187; 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=N+iZ1aFyoi01Oag2G0IVEtycCaHj8d8JsSoYMnnAS8s=; b=Ux5ynbWj9qHDQvjPzho8jJ1gQ2rb4QipL0X/UAtCqkvo7IZDtVmz74f5nFVkxoK2oW e/Hwaxw55z4H8cQ8dTXOQO9SnOUisy/XUhbW/V15gBm7GX8+N8NXFi8WeSOUU2ztdice sS1JHQqVHyrPHzOG8qMKQWd4aaXR9mPKYJt38A7HKrctdthX39VX4bBI0e76rCrTClfO JkV4BDMB4G0puP7iVT+bFLwgyv07uv+9ie32NqUZzjgSs+T/iTK94VXRicodc5eYYFZc 9pXeF0kAJDN7/JWfZ1nWQOjFTHbk3L4gQMRJ93LeMNipt/wqgIbPWCU+NUr1nRr8eR3J zIIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682062187; x=1684654187; 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=N+iZ1aFyoi01Oag2G0IVEtycCaHj8d8JsSoYMnnAS8s=; b=QEZhj8y7mmzP8BCyeYvHorkB2F2mMh1DptvjDyvgZuzqy/rPXDZLrLpgplYP9sYOiF O9QJghagjBaEUzce3tMIPfh3BXRMtiT2b09dV0enFuDYTrIY0dl6QLyVHMua6aNilL1O WWpgmpHGuH44+flAQ9RPXNs8UPePpZtrXS8fmNJ8OTmpRd+STFmu4jrJ/qRMxFH5xNsv GTh52vDGpHTH+WYGQNCRN0qvgR+/UbrVrrZckFazT8wHWVMpx+X83NyexPw8C6pOe4zF mJ/9BhuytQFexgj+435rghr9hn9ZrESl3/WmkyqND7iO6KYdEk9jxdEi7lvD+JcBjcjI gskA== X-Gm-Message-State: AAQBX9dC4gq9j1Rh1Qls71SBmWlKJvplwxvdQc8u6T5BIbSUlFv4AesQ bGhk03TF6FIRhsRix5idstd/sg== X-Received: by 2002:a17:906:35c6:b0:94a:9c9e:6885 with SMTP id p6-20020a17090635c600b0094a9c9e6885mr1316489ejb.58.1682062186815; Fri, 21 Apr 2023 00:29:46 -0700 (PDT) Received: from ?IPV6:2a02:810d:15c0:828:668b:1e57:3caa:4d06? ([2a02:810d:15c0:828:668b:1e57:3caa:4d06]) by smtp.gmail.com with ESMTPSA id s22-20020a170906169600b0094f3132cb86sm1712708ejd.40.2023.04.21.00.29.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 21 Apr 2023 00:29:46 -0700 (PDT) Message-ID: Date: Fri, 21 Apr 2023 09:29:44 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH net-next 1/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, linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, bcm-kernel-feedback-list@broadcom.com Cc: justin.chen@broadcom.com, f.fainelli@gmail.com, davem@davemloft.net, 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 References: <1681863018-28006-1-git-send-email-justinpopo6@gmail.com> <1681863018-28006-2-git-send-email-justinpopo6@gmail.com> From: Krzysztof Kozlowski In-Reply-To: <1681863018-28006-2-git-send-email-justinpopo6@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.8 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=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 On 19/04/2023 02:10, 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 > --- > .../devicetree/bindings/net/brcm,asp-v2.0.yaml | 146 +++++++++++++++++++++ > 1 file changed, 146 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..3817d722244f > --- /dev/null > +++ b/Documentation/devicetree/bindings/net/brcm,asp-v2.0.yaml > @@ -0,0 +1,146 @@ > +# 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#" Drop quotes. > + > +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 > + - brcm,asp-v2.1 Is this part of SoC? If so, then SoC compatibles are preferred, not IP block versions. > + > + reg: > + maxItems: 1 > + description: ASP registers Drop description. > + > + ranges: true > + > + interrupts: > + minItems: 1 > + 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 Drop. > + description: Phandle to clock controller Drop. Instead maxItems. > + > + clock-names: > + const: sw_asp Drop entire property. > + > + ethernet-ports: > + type: object > + properties: > + '#address-cells': > + const: 1 > + '#size-cells': > + const: 0 Missing additionalProperties:false. Look at existing bindings how it is done. > + > + 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 > + > +patternProperties: > + "^mdio@[0-9a-f]+$": > + type: object > + $ref: "brcm,unimac-mdio.yaml" > + > + description: > + ASP internal UniMAC MDIO bus > + > +required: > + - compatible > + - reg > + - interrupts > + - clocks > + - clock-names > + - ranges > + > +additionalProperties: false > + > +examples: > + - | > + asp@9c00000 { Node names should be generic. https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation > + compatible = "brcm,asp-v2.0"; > + reg = <0x9c00000 0x1fff14>; > + interrupts = <0x0 0x33 0x4>; Use proper defines for flags. > + ranges; > + clocks = <&scmi 14>; > + clock-names = "sw_asp"; > + #address-cells = <1>; > + #size-cells = <1>; Best regards, Krzysztof