Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp6175913rdb; Mon, 18 Sep 2023 06:29:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGN+9DhapMD8mn2bJl9YvPJexe+/gBgdyeCHzOBODcoc8vASYCGdGkkQxDa3x3wzT5R2kxP X-Received: by 2002:a05:6e02:c74:b0:34b:ba9b:c764 with SMTP id f20-20020a056e020c7400b0034bba9bc764mr9518164ilj.18.1695043750307; Mon, 18 Sep 2023 06:29:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695043750; cv=none; d=google.com; s=arc-20160816; b=tJEkd+r6Ng3UEshkuuYoIjZ6l/XXrLbYgB8jul/1cRK8FEJ1fl2eRJliB1WjpKuy29 tDxfj13qD/pHdmjpbshiiA7U9GhppXshg6L/82SmpXRwUal/8MLq2TR95Xshmtj2xJlU ocyVtio6iAz4YBC6Q6jDGHwsbg0cy8ozH2pQv7eWDVSHRnMGkgz5y3xxVxHJSXM/XY5S rVvhWrQP5tXa8nlp+YJDBrmMbbxOyXPPSy8fCAOCD9c3pe/JelZQArMdvkHUc+QatJ8i DHPDKKFkYXAXu8LE1jB6Bt4UPaka+q5syFIbmqRshA2yQSyc4M7NJNjPZTZoXZEmwimc Z9DA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:to:from:date:dkim-signature; bh=y/VpZOOKsgyPKzblDrkkOwrwRU+jJMXSt6lW9s8tAPw=; fh=lqcUDBguSdRNqtVRNM6IC5SKyIOZsO9QA8dvqnJsPTk=; b=V3ooLwi+4TcREvwNnGPakscsdF5eYGQXOszEYPlqyWFQv1+RoTk4CXxaRkX+UGDTS0 So7WuAcegIApZde5VkGLdoPQFfXluIrQhtSUwH2UKNvgN+SbsAtj6QA2JGC/SwYgHQ8Z mCX9E7HKIm7saqDoGFMge758Td/LkYGlloT/JJaIf50bdWhILxQQpqD7g0jtl2jvie+U eYApJCKgvpO+84jcO5bXkdGJXPuHp7wx8zH8B0V7khSm2q03zySUbrkicNoyzksR8h9m 9P708Wowzdtw8ACtdlsenTF0vxgR40SdZfThBl8BpSLc7hYXn4MXtBzr6m6gkE2JvHjH vMrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lopingdog.com header.s=mail header.b=rDqZhCpg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=lopingdog.com Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id t184-20020a6381c1000000b00574134c9acdsi247016pgd.647.2023.09.18.06.29.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 06:29:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@lopingdog.com header.s=mail header.b=rDqZhCpg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=lopingdog.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 73140809C4DE; Mon, 18 Sep 2023 00:10:23 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240091AbjIRHJr (ORCPT + 99 others); Mon, 18 Sep 2023 03:09:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240058AbjIRHJL (ORCPT ); Mon, 18 Sep 2023 03:09:11 -0400 Received: from core.lopingdog.com (core.lopingdog.com [162.55.228.84]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49DF212F; Mon, 18 Sep 2023 00:08:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lopingdog.com; s=mail; t=1695020341; bh=B+H2Yde7aQ0rvCr6RPca7aubuh7ZTcIKOPoviGVXPv0=; h=Date:From:To:Subject:From; b=rDqZhCpgUfIbYop4ZntRaUeRm61s4VGfbZtCyuBwn4fOG9KdTwV7QPpV3il8e0gNw nABvEhOHMtrRDHPSRGb34Q8Uh2uT8yOhkUncYl5mXbFwKRGfdb59wfq0VIvrZCbx1V BW/+A89mRmjuJ8rTSlgZDAxghz+U5Tf62OU/ou1Hpc35iTtlgYBMsxcqebaYabIigf qfkmIp3WbkEf2HWX5iKvQ7PATaCs9MeWNzKdDzoNtvoOHp2i8/dZj0OJrj6Iyfe2Jy Pi8wbP6vzprNJcHeQZbFs+BHoFRDb9vUgOhK86ktXjozfc6S7bNFGqoume1WdGHzF5 RruB7NM5zY9jQ== Received: from authenticated-user (core.lopingdog.com [162.55.228.84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by core.lopingdog.com (Postfix) with ESMTPSA id 3A2DA440CCF; Mon, 18 Sep 2023 01:59:00 -0500 (CDT) Date: Mon, 18 Sep 2023 01:58:58 -0500 From: Jay Monkman To: devicetree@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Piergiorgio Beruto , Arndt Schuebel Subject: [PATCH 2/4] dt-bindings: net: Add onsemi NCN26010 ethernet controller Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, 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 pete.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 (pete.vger.email [0.0.0.0]); Mon, 18 Sep 2023 00:10:23 -0700 (PDT) Add devicetree bindings for onsemi's NCN26010 10BASE-T1S ethernet controller. 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: | + Bindings for onsemi 10BASE-T1S ethernet controller. + + Supported devices: + ncn26010 + +allOf: + - $ref: ethernet-controller.yaml# + +properties: + compatible: + const: onnn,ncn26010 + + ctrl-protected: + description: | + Enables control data read/write protection mode. + type: boolean + + poll-interval: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + Defines how often the MACPHY thread runs in milliseconds. + 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 + + rx-fcs-check: + description: | + Enables driver checking of the FCS on received frames + type: boolean + + interrupts: + maxItems: 1 + + reg: + maxItems: 1 + + mdio: + $ref: mdio.yaml# + unevaluatedProperties: false + +required: + - compatible + +additionalProperties: false + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + + ethernet@0 { + compatible = "onnn,ncn26010"; + reg = <0>; /* CE0 */ + ctrl-protected; + tx-fcs-calc; + rx-fcs-check; + poll-interval = <5>; + pinctrl-names = "default"; + pinctrl-0 = <ð1_pins>; + interrupt-parent = <&gpio>; + interrupts = <25 0x2>; + + mdio { + #address-cells = <1>; + #size-cells = <0>; + + ephy0: ethernet-phy@0 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <0>; + dio0-fn = "gpio"; + dio0-slew = "slow"; + dio1-fn = "gpio"; + dio1-slew = "slow"; + eni-enable; + }; + }; + }; + }; -- 2.40.1