Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp236173rdb; Mon, 18 Sep 2023 13:29:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEnyBz6AFDR8D+ExT/w6t6qiTg2HqLLD7+O/HJaia43EuUqFMmzoUZnaAfNPSxzcckFSoBC X-Received: by 2002:a17:90b:b17:b0:274:4fb:3610 with SMTP id bf23-20020a17090b0b1700b0027404fb3610mr8090367pjb.47.1695068945789; Mon, 18 Sep 2023 13:29:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695068945; cv=none; d=google.com; s=arc-20160816; b=Yf/AuteoSHh8gb3VZHeGYeWcQYVElQIuZS+m5ONkbD2nWfsNBS0mlgsvRrFegIRD1l u77GoInUO8e6kzQ3zAoKSHlNntcjDaK7Okh3UTVeOYEBRjWgFeDybuutOyC9Uznagh/f MbNcxSJWD192Yb4Z0lK5MwcP26iQDXH8f/7I+t583p6QRKuXH/mU1Bg1Xn54tuyuKqtK EcdxR5jOR78fy0xXwMMkAljMSRfngvJII8JzPivOr7FtgGffbZRw8fhdiEoSoP1Wa6bb M+iHsEYQXy7Oahcv0VoFqFKctnJ5MuvkJHCDPUcJ9KMPed1ZaGjUR6PKWLHw79b7+t/e OmZg== 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 :content-language:references:to:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=aaKuHL/W4OMqxyLsL0mmC/vrISUlCKVooheJCxvFeEs=; fh=neEXcbmbZu/DLmsgQ2rYQ4kLspNfDZ3he9yn64Xr3XQ=; b=ytTWH+pVdyijIAvmStYMf6VO4tuxhwCkxgqjrV7tGpyl+6Mn2wm862SZLrwdDzYNQB j7DLR0nAG4HwlQltonEv9NG7sCHyrDNymZqoO6HqbKEp4wVVPquYaWRMEMV5Q0ihD3/U 7oQoLD6WOAflB4nDW2P4aEmPHRAUCyPwrrEKu5iyBYlSoaVgfgC9Cqq2qn/X5SN96cGd 5QxmzT/iRTWcDekuLDXw5xVLJSO4qD7BDSgZphaUCPxwRspJwKaFsSRZRSwGS0t+o4NM 2/hPpq2XWA7amp3pzAePoZwMrFyE3m9r75I6AiLZfyv8rE1wsqUimql3gRmP30J6b8C2 oiFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=L7UXMY1k; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id i189-20020a6387c6000000b005775c7e504csi8360221pge.145.2023.09.18.13.29.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 13:29:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=L7UXMY1k; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 2C4448232661; Mon, 18 Sep 2023 13:28:59 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229670AbjIRU26 (ORCPT + 99 others); Mon, 18 Sep 2023 16:28:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229605AbjIRU25 (ORCPT ); Mon, 18 Sep 2023 16:28:57 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3BFC8F for ; Mon, 18 Sep 2023 13:28:51 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D942FC433C8; Mon, 18 Sep 2023 20:28:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695068931; bh=pUlBBuz1FK2J0cyfaQ4KvrItSJbWh9d+uorfnqujgLI=; h=Date:Subject:To:References:From:In-Reply-To:From; b=L7UXMY1k5WmTCEz3nJJH5T79ESygRsChx6oSvJiO5+j6bg/BaSUmONosJP7oJsJt8 0d1wogo6meA3o4KKhq4ocspMuc1nK0WHf+g3qyCQbJYXJBr1RuL0b+D8XRrAhdDX+H JNhKCCJIR3ouQCF6YXBoCZZjkpH5xi7NQchu+uQmxf9WnpAQcSjiiv0IyrkkiGUxbO Nn5giMTbLxNvRNb4pWZn7cU+yYj+pto3gAHZRnEtqWsCCcDZb0t3U3gLd0FXCSrR72 4u4z76lOj7aRqVy1V5hEuUOpEDGrB+Ud2JU6H8ZNdoBKknw2rziHJEeoeSv/ddnlAs YTigZMLrMFqhg== Message-ID: <5194bd75-9562-8375-5748-ccce560b67cf@kernel.org> Date: Mon, 18 Sep 2023 22:28:47 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH 2/4] dt-bindings: net: Add onsemi NCN26010 ethernet controller To: Jay Monkman , devicetree@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Piergiorgio Beruto , Arndt Schuebel References: Content-Language: en-US From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.7 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Mon, 18 Sep 2023 13:28:59 -0700 (PDT) On 18/09/2023 08:58, Jay Monkman wrote: > Drop stray blank line. > Add devicetree bindings for onsemi's NCN26010 10BASE-T1S > ethernet controller. Please use scripts/get_maintainers.pl to get a list of necessary people and lists to CC (and consider --no-git-fallback argument). It might happen, that command when run on an older kernel, gives you outdated entries. Therefore please be sure you base your patches on recent Linux kernel. > > Signed-off-by: Jay Monkman > --- > .../devicetree/bindings/net/onnn,macphy.yaml | 94 +++++++++++++++++++ > 1 file changed, 94 insertions(+) > create mode 100644 Documentation/devicetree/bindings/net/onnn,macphy.yaml > > diff --git a/Documentation/devicetree/bindings/net/onnn,macphy.yaml b/Documentation/devicetree/bindings/net/onnn,macphy.yaml > new file mode 100644 > index 000000000000..1813da81b95f > --- /dev/null > +++ b/Documentation/devicetree/bindings/net/onnn,macphy.yaml > @@ -0,0 +1,94 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/net/onnn,macphy.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: onsemi 10BASE-T1S Ethernet Controller > + > +maintainers: > + - Jay Monkman > + > +description: | Do not need '|' unless you need to preserve formatting. > + Bindings for onsemi 10BASE-T1S ethernet controller. Drop "bindings for" and instead describe the hardware. > + > + Supported devices: > + ncn26010 Supported by what? By bindings? Or driver? Drop, instead, describe the hardware. > + > +allOf: > + - $ref: ethernet-controller.yaml# > + > +properties: > + compatible: > + const: onnn,ncn26010 > + > + ctrl-protected: > + description: | Do not need '|' unless you need to preserve formatting. Is it a generic property? Does not look like. All non-standard properties need vendor prefix. > + Enables control data read/write protection mode. I don't understand this and it is very close to duplicate the property name. Describe what it does in the hardware, not in the driver, so it will be justified to have it in bindings in the first place. > + type: boolean > + > + poll-interval: Missing units. > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: | > + Defines how often the MACPHY thread runs in milliseconds. thread? So Linux kthread? Nope, not a bindings property. > + If not specified, a default value of 5 is used. > + > + tx-fcs-calc: > + description: | > + Enables driver calculation of the FCS on transmitted frames. > + type: boolean Driver? Not hardware? So drop the property. > + > + rx-fcs-check: > + description: | > + Enables driver checking of the FCS on received frames > + type: boolean Not a bindings property. > + > + interrupts: > + maxItems: 1 > + > + reg: > + maxItems: 1 > + > + mdio: > + $ref: mdio.yaml# > + unevaluatedProperties: false > + > +required: > + - compatible Nothing else is required? > + > +additionalProperties: false > + > +examples: > + - | > + spi { > + #address-cells = <1>; > + #size-cells = <0>; If this is a SPI device, then you miss spi-peripheral-props. > + > + ethernet@0 { > + compatible = "onnn,ncn26010"; > + reg = <0>; /* CE0 */ CE0? Isn't chip select obvious from the reg=0? Best regards, Krzysztof