diff options
author | Nate Drude <nate.d@variscite.com> | 2022-04-08 19:28:14 +0300 |
---|---|---|
committer | Ramon Fried <ramon@neureality.ai> | 2022-04-10 08:44:13 +0300 |
commit | d79f1a85697e3af24a97728f6e4f16635bdc8290 (patch) | |
tree | 9d0fe45093c5123e61558588981ecf6dc7816648 /doc/device-tree-bindings | |
parent | f3409d7ae6127b6aa33ec9cdb63808745ed4b56e (diff) | |
download | u-boot-d79f1a85697e3af24a97728f6e4f16635bdc8290.tar.xz |
phy: adin: add driver for Analog Devices ADIN1300 PHY
The current implementation configures RGMII using device tree phy-mode
property and then calls genphy_config
adin_config_rgmii_mode is derived from:
https://github.com/varigit/linux-imx/blob/lf-5.10.y_var04/drivers/net/phy/adin.c#L218-L262
Signed-off-by: Nate Drude <nate.d@variscite.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
Diffstat (limited to 'doc/device-tree-bindings')
-rw-r--r-- | doc/device-tree-bindings/net/phy/adin.txt | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/doc/device-tree-bindings/net/phy/adin.txt b/doc/device-tree-bindings/net/phy/adin.txt new file mode 100644 index 0000000000..d4bab57e2d --- /dev/null +++ b/doc/device-tree-bindings/net/phy/adin.txt @@ -0,0 +1,26 @@ +* Analog Devices ADIN PHY Device Tree binding + +Required properties: +- reg: PHY address + +Optional properties: +- adi,rx-internal-delay-ps: RGMII RX Clock Delay used only when PHY operates + in RGMII mode with internal delay (phy-mode is 'rgmii-id' or + 'rgmii-rxid') in pico-seconds. +- adi,tx-internal-delay-ps: RGMII TX Clock Delay used only when PHY operates + in RGMII mode with internal delay (phy-mode is 'rgmii-id' or + 'rgmii-txid') in pico-seconds. +- adi,phy-mode-override: Override phy-mode property for adin. This is useful + when a single device tree supports an adin PHY (e.g. ADIN1300) + or another PHY (e.g. AR8033) at the same address, but they require + different phy-modes. + +Example: + + ethernet-phy@0 { + reg = <0>; + + adi,rx-internal-delay-ps = <1800>; + adi,tx-internal-delay-ps = <2200>; + adi,phy-mode-override = "rgmii-id"; + }; |