Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: dp83867: Convert DP83867 to yaml

Convert the dp83867 binding to yaml.

Signed-off-by: Dan Murphy <dmurphy@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Dan Murphy and committed by
David S. Miller
74ac28f1 e90b651e

+127 -68
-68
Documentation/devicetree/bindings/net/ti,dp83867.txt
··· 1 - * Texas Instruments - dp83867 Giga bit ethernet phy 2 - 3 - Required properties: 4 - - reg - The ID number for the phy, usually a small integer 5 - - ti,rx-internal-delay - RGMII Receive Clock Delay - see dt-bindings/net/ti-dp83867.h 6 - for applicable values. Required only if interface type is 7 - PHY_INTERFACE_MODE_RGMII_ID or PHY_INTERFACE_MODE_RGMII_RXID 8 - - ti,tx-internal-delay - RGMII Transmit Clock Delay - see dt-bindings/net/ti-dp83867.h 9 - for applicable values. Required only if interface type is 10 - PHY_INTERFACE_MODE_RGMII_ID or PHY_INTERFACE_MODE_RGMII_TXID 11 - 12 - Note: If the interface type is PHY_INTERFACE_MODE_RGMII the TX/RX clock delays 13 - will be left at their default values, as set by the PHY's pin strapping. 14 - The default strapping will use a delay of 2.00 ns. Thus 15 - PHY_INTERFACE_MODE_RGMII, by default, does not behave as RGMII with no 16 - internal delay, but as PHY_INTERFACE_MODE_RGMII_ID. The device tree 17 - should use "rgmii-id" if internal delays are desired as this may be 18 - changed in future to cause "rgmii" mode to disable delays. 19 - 20 - Optional property: 21 - - ti,min-output-impedance - MAC Interface Impedance control to set 22 - the programmable output impedance to 23 - minimum value (35 ohms). 24 - - ti,max-output-impedance - MAC Interface Impedance control to set 25 - the programmable output impedance to 26 - maximum value (70 ohms). 27 - - ti,dp83867-rxctrl-strap-quirk - This denotes the fact that the 28 - board has RX_DV/RX_CTRL pin strapped in 29 - mode 1 or 2. To ensure PHY operation, 30 - there are specific actions that 31 - software needs to take when this pin is 32 - strapped in these modes. See data manual 33 - for details. 34 - - ti,clk-output-sel - Muxing option for CLK_OUT pin. See dt-bindings/net/ti-dp83867.h 35 - for applicable values. The CLK_OUT pin can also 36 - be disabled by this property. When omitted, the 37 - PHY's default will be left as is. 38 - - ti,sgmii-ref-clock-output-enable - This denotes which 39 - SGMII configuration is used (4 or 6-wire modes). 40 - Some MACs work with differential SGMII clock. 41 - See data manual for details. 42 - 43 - - ti,fifo-depth - Transmitt FIFO depth- see dt-bindings/net/ti-dp83867.h 44 - for applicable values (deprecated) 45 - 46 - -tx-fifo-depth - As defined in the ethernet-controller.yaml. Values for 47 - the depth can be found in dt-bindings/net/ti-dp83867.h 48 - -rx-fifo-depth - As defined in the ethernet-controller.yaml. Values for 49 - the depth can be found in dt-bindings/net/ti-dp83867.h 50 - 51 - Note: ti,min-output-impedance and ti,max-output-impedance are mutually 52 - exclusive. When both properties are present ti,max-output-impedance 53 - takes precedence. 54 - 55 - Default child nodes are standard Ethernet PHY device 56 - nodes as described in Documentation/devicetree/bindings/net/phy.txt 57 - 58 - Example: 59 - 60 - ethernet-phy@0 { 61 - reg = <0>; 62 - ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>; 63 - ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_75_NS>; 64 - tx-fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>; 65 - }; 66 - 67 - Datasheet can be found: 68 - http://www.ti.com/product/DP83867IR/datasheet
+127
Documentation/devicetree/bindings/net/ti,dp83867.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0+ OR BSD-2-Clause) 2 + # Copyright (C) 2019 Texas Instruments Incorporated 3 + %YAML 1.2 4 + --- 5 + $id: "http://devicetree.org/schemas/net/ti,dp83867.yaml#" 6 + $schema: "http://devicetree.org/meta-schemas/core.yaml#" 7 + 8 + title: TI DP83867 ethernet PHY 9 + 10 + allOf: 11 + - $ref: "ethernet-controller.yaml#" 12 + 13 + maintainers: 14 + - Dan Murphy <dmurphy@ti.com> 15 + 16 + description: | 17 + The DP83867 device is a robust, low power, fully featured Physical Layer 18 + transceiver with integrated PMD sublayers to support 10BASE-Te, 100BASE-TX 19 + and 1000BASE-T Ethernet protocols. 20 + 21 + The DP83867 is designed for easy implementation of 10/100/1000 Mbps Ethernet 22 + LANs. It interfaces directly to twisted pair media via an external 23 + transformer. This device interfaces directly to the MAC layer through the 24 + IEEE 802.3 Standard Media Independent Interface (MII), the IEEE 802.3 Gigabit 25 + Media Independent Interface (GMII) or Reduced GMII (RGMII). 26 + 27 + Specifications about the charger can be found at: 28 + https://www.ti.com/lit/gpn/dp83867ir 29 + 30 + properties: 31 + reg: 32 + maxItems: 1 33 + 34 + ti,min-output-impedance: 35 + type: boolean 36 + description: | 37 + MAC Interface Impedance control to set the programmable output impedance 38 + to a minimum value (35 ohms). 39 + 40 + ti,max-output-impedance: 41 + type: boolean 42 + description: | 43 + MAC Interface Impedance control to set the programmable output impedance 44 + to a maximum value (70 ohms). 45 + Note: ti,min-output-impedance and ti,max-output-impedance are mutually 46 + exclusive. When both properties are present ti,max-output-impedance 47 + takes precedence. 48 + 49 + tx-fifo-depth: 50 + $ref: /schemas/types.yaml#definitions/uint32 51 + description: | 52 + Transmitt FIFO depth see dt-bindings/net/ti-dp83867.h for values 53 + 54 + rx-fifo-depth: 55 + $ref: /schemas/types.yaml#definitions/uint32 56 + description: | 57 + Receive FIFO depth see dt-bindings/net/ti-dp83867.h for values 58 + 59 + ti,clk-output-sel: 60 + $ref: /schemas/types.yaml#definitions/uint32 61 + description: | 62 + Muxing option for CLK_OUT pin. See dt-bindings/net/ti-dp83867.h 63 + for applicable values. The CLK_OUT pin can also be disabled by this 64 + property. When omitted, the PHY's default will be left as is. 65 + 66 + ti,rx-internal-delay: 67 + $ref: /schemas/types.yaml#definitions/uint32 68 + description: | 69 + RGMII Receive Clock Delay - see dt-bindings/net/ti-dp83867.h 70 + for applicable values. Required only if interface type is 71 + PHY_INTERFACE_MODE_RGMII_ID or PHY_INTERFACE_MODE_RGMII_RXID. 72 + 73 + ti,tx-internal-delay: 74 + $ref: /schemas/types.yaml#definitions/uint32 75 + description: | 76 + RGMII Transmit Clock Delay - see dt-bindings/net/ti-dp83867.h 77 + for applicable values. Required only if interface type is 78 + PHY_INTERFACE_MODE_RGMII_ID or PHY_INTERFACE_MODE_RGMII_TXID. 79 + 80 + Note: If the interface type is PHY_INTERFACE_MODE_RGMII the TX/RX clock 81 + delays will be left at their default values, as set by the PHY's pin 82 + strapping. The default strapping will use a delay of 2.00 ns. Thus 83 + PHY_INTERFACE_MODE_RGMII, by default, does not behave as RGMII with no 84 + internal delay, but as PHY_INTERFACE_MODE_RGMII_ID. The device tree 85 + should use "rgmii-id" if internal delays are desired as this may be 86 + changed in future to cause "rgmii" mode to disable delays. 87 + 88 + ti,dp83867-rxctrl-strap-quirk: 89 + type: boolean 90 + description: | 91 + This denotes the fact that the board has RX_DV/RX_CTRL pin strapped in 92 + mode 1 or 2. To ensure PHY operation, there are specific actions that 93 + software needs to take when this pin is strapped in these modes. 94 + See data manual for details. 95 + 96 + ti,sgmii-ref-clock-output-enable: 97 + type: boolean 98 + description: | 99 + This denotes which SGMII configuration is used (4 or 6-wire modes). 100 + Some MACs work with differential SGMII clock. See data manual for details. 101 + 102 + ti,fifo-depth: 103 + deprecated: true 104 + $ref: /schemas/types.yaml#definitions/uint32 105 + description: | 106 + Transmitt FIFO depth- see dt-bindings/net/ti-dp83867.h for applicable 107 + values. 108 + 109 + required: 110 + - reg 111 + 112 + examples: 113 + - | 114 + #include <dt-bindings/net/ti-dp83867.h> 115 + mdio0 { 116 + #address-cells = <1>; 117 + #size-cells = <0>; 118 + ethphy0: ethernet-phy@0 { 119 + reg = <0>; 120 + tx-fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>; 121 + rx-fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>; 122 + ti,max-output-impedance; 123 + ti,clk-output-sel = <DP83867_CLK_O_SEL_CHN_A_RCLK>; 124 + ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>; 125 + ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_75_NS>; 126 + }; 127 + };