Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp6183377rdb; Mon, 18 Sep 2023 06:39:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFYEH6euDRFIVDXSvM0vrrDukU4suozTcMDKfApHl/RGkwmZL/fSEZVuMHEnwJ2ImrvPns/ X-Received: by 2002:a17:903:1246:b0:1c3:19d6:3559 with SMTP id u6-20020a170903124600b001c319d63559mr10639796plh.1.1695044395005; Mon, 18 Sep 2023 06:39:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695044394; cv=none; d=google.com; s=arc-20160816; b=bbSMcGt+b9+br8Ce5a6RzzGxhnQixvdh/nPZV+JudoMxgridJBrdeqqq/PXMv4lBDn v3CxRxcwmtJG7OfUzmm+LRZ+/cYoeELajFO0rBOf434pxhZVVnyUdgp+HZkaqCUK9Wm2 xlhbu+C3FcnVfUY6mHv8gVP24egnh/zLntCD4VHVLYS92kpBtpJyE/4M+8xdwGpfOfAH B+HtQ3astSuZwAbYITu0xXi30QTtXcXohay5Pwk9o6q4E/pUzNPEK26NMrJu+Yyqig/j S8aIQAWW5/lapb6nBeFXYyU+tq+D2dMyuq1RRT2fEYhrfCDN69or5oKMKsIhnr9ZgW7Q GgWA== 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=beR3ImEQBJSQvGYlFPZuRL2CijT1pr9DSPPmOpX5k0I=; fh=lqcUDBguSdRNqtVRNM6IC5SKyIOZsO9QA8dvqnJsPTk=; b=RJHc26Y4LitsCF6cbv25cGKYyAHvPr9BnrupY0j9phm4d2RZiaXgI4yse4uEY4ADaa eUOx9zZMFjvLDZK+uce22a0zVK6nlpp522zXvjfeumWQX1EHHxiLcgecxNZ3JHdWKt5C 6SqUPvEwG9766rXIQ/vJl4KGojBnj3p/JRe+gGw6fvh4LMopbQxjyIhSOTAB6+a5LoAe VGyFFXq8vf6uIE7DYlkTas5knzCbPARXAollEXhkC3nSjIGWOqteAWObafMEwzbcMM3Q kdn+UJi/Opnk2/61+Ogs0daHDKC+0/9UtG4DHoeps9s+jitjENhYgWHeVgyco7o+FC4X DuoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lopingdog.com header.s=mail header.b=XmF6He8x; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id km16-20020a17090327d000b001bbc40ac12dsi7889944plb.132.2023.09.18.06.39.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 06:39:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@lopingdog.com header.s=mail header.b=XmF6He8x; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id 4758E826C4F1; Mon, 18 Sep 2023 00:10:11 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240112AbjIRHJt (ORCPT + 99 others); Mon, 18 Sep 2023 03:09:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240064AbjIRHJL (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 5563711A; Mon, 18 Sep 2023 00:08:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lopingdog.com; s=mail; t=1695020335; bh=i/qzEeo8fc//u5Bc1P6x2eVPi43Lvo5cbbQc5SwjBEs=; h=Date:From:To:Subject:From; b=XmF6He8xvOu8dvzWON+arINRODBSa6t6KE7srG2357M2cFSfN/9CS+R2zZ2gm5VE6 AHD6pf1q2PD5hMg9if8+ItTwicMoqqffUHlnMsmJkWGO/sP2a0nhFuqBSpM8qBKFTD CnSVp60n+4kptVxOYjXSQC/J9DNY0b78kIAx9SM1CMcmxosdHJJ9LD9f8rI6iTVlB2 tp8RHbVNLfdJUJagNXZIU7nknjj3bUCurvRQJHkmdMOhCn/GVGbRRsw0toBu5sIWGi dRCST4NTy5e2gHGM9XZNjbM2iw/Qwo4J4VEWbgmCONDMFNokrAEdV4cbiTJRNMAlOH EKsyMz+fRDjDA== 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 270594405E6; Mon, 18 Sep 2023 01:58:54 -0500 (CDT) Date: Mon, 18 Sep 2023 01:58:52 -0500 From: Jay Monkman To: devicetree@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Piergiorgio Beruto , Arndt Schuebel Subject: [PATCH 1/4] dt-bindings: net: Add bindings for onsemi NCN26000 PHY Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_PASS 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 18 Sep 2023 00:10:11 -0700 (PDT) Add devicetree bindings for onsemi's NCN26000 10BASE-T1S PHY. Signed-off-by: Jay Monkman --- .../bindings/net/onnn,ncn26000.yaml | 177 ++++++++++++++++++ 1 file changed, 177 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/onnn,ncn26000.yaml diff --git a/Documentation/devicetree/bindings/net/onnn,ncn26000.yaml b/Documentation/devicetree/bindings/net/onnn,ncn26000.yaml new file mode 100644 index 000000000000..b0b1e1ea86f2 --- /dev/null +++ b/Documentation/devicetree/bindings/net/onnn,ncn26000.yaml @@ -0,0 +1,177 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/onnn,ncn26000.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: onsemi NCN26000 10BASE-T1S Ethernet PHY + +maintainers: + - Jay Monkman + +description: | + Bindings for onsemi NCN26000 10BASE-T1S ethernet PHY. + +allOf: + - $ref: ethernet-phy.yaml# + +properties: + description: | + Sets the transmitter amplitude gain. If not specified, + gain is set to 1.0V (1v0) + tx-gain: + enum: + - 1v1 + - 1v0 + - 0v9 + - 0v8 + + tx-slew: + description: | + Sets the slew rate of the TX line driver output. Defaults + to slow if not set. + enum: + - fast + - slow + + dig-slew: + description: | + Sets the slew rate of the digital output pins. Defaults + to slow if not set. + enum: + - fast + - slow + + cmc-comp: + description: | + Sets the common mode choke resistance (CMC compensation). + Defaults to 0-0.5 ohm (0p25) if not set. + enum: + - 0p25 + - 1p38 + - 3p00 + - 3p37 + + plca-precedence: + description: | + Enables PLCA precedence mode. Defaults to off if not + set. + type: boolean + + eni-mode: + description: | + Enables Enhanced Noise Immunity mode. Defaults to off if + not set. + enum: + - force-on + - force-off + - auto + + tx-pkt-loop: + description: | + Enables packet loopback mode. Defaults to off is not set. + type: boolean + + unjab-tmr-disable: + description: | + Disables the Unjab Timer. When disabled, device transmission + will be stopped due to a jabber error and only restarted on + device reset. If not set, this defaults to enabled. + type: boolean + + col-disable: + description: | + Disables collision masking. Defaults to enabled if not set. + type: boolean + + no-rx-delay: + description: | + Disables the RX internal path delay. Defaults to enabled if + not set. + type: boolean + + dio0-fn: + description: | + Selects the DIO0 pin output function. Defaults to disabled if + not set. + enum: + - sfd-tx + - sfd-rx + - sfd-rxtx + - led-link + - led-plca + - led-tx + - led-rx + - led-rxtx + - clk25m + + dio0-pullup: + description: | + Enables the DIO0 pin pullup. Defaults to no pull up if not + set. + type: boolean + + dio0-active-high: + description: | + Sets DIO0 pin output state. Defaults to low if not set + type: boolean + + dio0-slew: + description: | + Sets the slew rate of the DIO0 pin. Defaults to slow if not set. + enum: + - fast + - slow + + dio1-fn: + description: | + Selects the DIO1 pin output function. Defaults to disabled if + not set. + enum: + - sfd-tx + - sfd-rx + - sfd-rxtx + - led-link + - led-plca + - led-tx + - led-rx + - led-rxtx + - clk25m + + dio1-pullup: + description: | + Enables the DIO1 pin pullup. Defaults to no pull up if not + set. + type: boolean + + dio1-active-high: + description: | + Sets DIO1 pin output state. Defaults to low if not set + type: boolean + + dio1-slew: + description: | + Sets the slew rate of the DIO1 pin. Defaults to slow if not set. + enum: + - fast + - slow + +additionalProperties: false + +examples: + - | + spi { + #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; + device_type = "ethernet-phy"; + }; + }; -- 2.40.1