···11-* Texas Instruments - dp83867 Giga bit ethernet phy22-33-Required properties:44- - reg - The ID number for the phy, usually a small integer55- - ti,rx-internal-delay - RGMII Receive Clock Delay - see dt-bindings/net/ti-dp83867.h66- for applicable values. Required only if interface type is77- PHY_INTERFACE_MODE_RGMII_ID or PHY_INTERFACE_MODE_RGMII_RXID88- - ti,tx-internal-delay - RGMII Transmit Clock Delay - see dt-bindings/net/ti-dp83867.h99- for applicable values. Required only if interface type is1010- PHY_INTERFACE_MODE_RGMII_ID or PHY_INTERFACE_MODE_RGMII_TXID1111-1212-Note: If the interface type is PHY_INTERFACE_MODE_RGMII the TX/RX clock delays1313- will be left at their default values, as set by the PHY's pin strapping.1414- The default strapping will use a delay of 2.00 ns. Thus1515- PHY_INTERFACE_MODE_RGMII, by default, does not behave as RGMII with no1616- internal delay, but as PHY_INTERFACE_MODE_RGMII_ID. The device tree1717- should use "rgmii-id" if internal delays are desired as this may be1818- changed in future to cause "rgmii" mode to disable delays.1919-2020-Optional property:2121- - ti,min-output-impedance - MAC Interface Impedance control to set2222- the programmable output impedance to2323- minimum value (35 ohms).2424- - ti,max-output-impedance - MAC Interface Impedance control to set2525- the programmable output impedance to2626- maximum value (70 ohms).2727- - ti,dp83867-rxctrl-strap-quirk - This denotes the fact that the2828- board has RX_DV/RX_CTRL pin strapped in2929- mode 1 or 2. To ensure PHY operation,3030- there are specific actions that3131- software needs to take when this pin is3232- strapped in these modes. See data manual3333- for details.3434- - ti,clk-output-sel - Muxing option for CLK_OUT pin. See dt-bindings/net/ti-dp83867.h3535- for applicable values. The CLK_OUT pin can also3636- be disabled by this property. When omitted, the3737- PHY's default will be left as is.3838- - ti,sgmii-ref-clock-output-enable - This denotes which3939- SGMII configuration is used (4 or 6-wire modes).4040- Some MACs work with differential SGMII clock.4141- See data manual for details.4242-4343- - ti,fifo-depth - Transmitt FIFO depth- see dt-bindings/net/ti-dp83867.h4444- for applicable values (deprecated)4545-4646- -tx-fifo-depth - As defined in the ethernet-controller.yaml. Values for4747- the depth can be found in dt-bindings/net/ti-dp83867.h4848- -rx-fifo-depth - As defined in the ethernet-controller.yaml. Values for4949- the depth can be found in dt-bindings/net/ti-dp83867.h5050-5151-Note: ti,min-output-impedance and ti,max-output-impedance are mutually5252- exclusive. When both properties are present ti,max-output-impedance5353- takes precedence.5454-5555-Default child nodes are standard Ethernet PHY device5656-nodes as described in Documentation/devicetree/bindings/net/phy.txt5757-5858-Example:5959-6060- ethernet-phy@0 {6161- reg = <0>;6262- ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>;6363- ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_75_NS>;6464- tx-fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;6565- };6666-6767-Datasheet can be found:6868-http://www.ti.com/product/DP83867IR/datasheet
···11+# SPDX-License-Identifier: (GPL-2.0+ OR BSD-2-Clause)22+# Copyright (C) 2019 Texas Instruments Incorporated33+%YAML 1.244+---55+$id: "http://devicetree.org/schemas/net/ti,dp83867.yaml#"66+$schema: "http://devicetree.org/meta-schemas/core.yaml#"77+88+title: TI DP83867 ethernet PHY99+1010+allOf:1111+ - $ref: "ethernet-controller.yaml#"1212+1313+maintainers:1414+ - Dan Murphy <dmurphy@ti.com>1515+1616+description: |1717+ The DP83867 device is a robust, low power, fully featured Physical Layer1818+ transceiver with integrated PMD sublayers to support 10BASE-Te, 100BASE-TX1919+ and 1000BASE-T Ethernet protocols.2020+2121+ The DP83867 is designed for easy implementation of 10/100/1000 Mbps Ethernet2222+ LANs. It interfaces directly to twisted pair media via an external2323+ transformer. This device interfaces directly to the MAC layer through the2424+ IEEE 802.3 Standard Media Independent Interface (MII), the IEEE 802.3 Gigabit2525+ Media Independent Interface (GMII) or Reduced GMII (RGMII).2626+2727+ Specifications about the charger can be found at:2828+ https://www.ti.com/lit/gpn/dp83867ir2929+3030+properties:3131+ reg:3232+ maxItems: 13333+3434+ ti,min-output-impedance:3535+ type: boolean3636+ description: |3737+ MAC Interface Impedance control to set the programmable output impedance3838+ to a minimum value (35 ohms).3939+4040+ ti,max-output-impedance:4141+ type: boolean4242+ description: |4343+ MAC Interface Impedance control to set the programmable output impedance4444+ to a maximum value (70 ohms).4545+ Note: ti,min-output-impedance and ti,max-output-impedance are mutually4646+ exclusive. When both properties are present ti,max-output-impedance4747+ takes precedence.4848+4949+ tx-fifo-depth:5050+ $ref: /schemas/types.yaml#definitions/uint325151+ description: |5252+ Transmitt FIFO depth see dt-bindings/net/ti-dp83867.h for values5353+5454+ rx-fifo-depth:5555+ $ref: /schemas/types.yaml#definitions/uint325656+ description: |5757+ Receive FIFO depth see dt-bindings/net/ti-dp83867.h for values5858+5959+ ti,clk-output-sel:6060+ $ref: /schemas/types.yaml#definitions/uint326161+ description: |6262+ Muxing option for CLK_OUT pin. See dt-bindings/net/ti-dp83867.h6363+ for applicable values. The CLK_OUT pin can also be disabled by this6464+ property. When omitted, the PHY's default will be left as is.6565+6666+ ti,rx-internal-delay:6767+ $ref: /schemas/types.yaml#definitions/uint326868+ description: |6969+ RGMII Receive Clock Delay - see dt-bindings/net/ti-dp83867.h7070+ for applicable values. Required only if interface type is7171+ PHY_INTERFACE_MODE_RGMII_ID or PHY_INTERFACE_MODE_RGMII_RXID.7272+7373+ ti,tx-internal-delay:7474+ $ref: /schemas/types.yaml#definitions/uint327575+ description: |7676+ RGMII Transmit Clock Delay - see dt-bindings/net/ti-dp83867.h7777+ for applicable values. Required only if interface type is7878+ PHY_INTERFACE_MODE_RGMII_ID or PHY_INTERFACE_MODE_RGMII_TXID.7979+8080+ Note: If the interface type is PHY_INTERFACE_MODE_RGMII the TX/RX clock8181+ delays will be left at their default values, as set by the PHY's pin8282+ strapping. The default strapping will use a delay of 2.00 ns. Thus8383+ PHY_INTERFACE_MODE_RGMII, by default, does not behave as RGMII with no8484+ internal delay, but as PHY_INTERFACE_MODE_RGMII_ID. The device tree8585+ should use "rgmii-id" if internal delays are desired as this may be8686+ changed in future to cause "rgmii" mode to disable delays.8787+8888+ ti,dp83867-rxctrl-strap-quirk:8989+ type: boolean9090+ description: |9191+ This denotes the fact that the board has RX_DV/RX_CTRL pin strapped in9292+ mode 1 or 2. To ensure PHY operation, there are specific actions that9393+ software needs to take when this pin is strapped in these modes.9494+ See data manual for details.9595+9696+ ti,sgmii-ref-clock-output-enable:9797+ type: boolean9898+ description: |9999+ This denotes which SGMII configuration is used (4 or 6-wire modes).100100+ Some MACs work with differential SGMII clock. See data manual for details.101101+102102+ ti,fifo-depth:103103+ deprecated: true104104+ $ref: /schemas/types.yaml#definitions/uint32105105+ description: |106106+ Transmitt FIFO depth- see dt-bindings/net/ti-dp83867.h for applicable107107+ values.108108+109109+required:110110+ - reg111111+112112+examples:113113+ - |114114+ #include <dt-bindings/net/ti-dp83867.h>115115+ mdio0 {116116+ #address-cells = <1>;117117+ #size-cells = <0>;118118+ ethphy0: ethernet-phy@0 {119119+ reg = <0>;120120+ tx-fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;121121+ rx-fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;122122+ ti,max-output-impedance;123123+ ti,clk-output-sel = <DP83867_CLK_O_SEL_CHN_A_RCLK>;124124+ ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>;125125+ ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_75_NS>;126126+ };127127+ };