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

dt: update Marvell Armada 38x COMPHY binding

Update the Marvell Armada 38x COMPHY binding with an additional
optional register pair describing the location of an undocumented
system register controlling something to do with the Gigabit Ethernet
and COMPHY. There is one bit for each COMPHY lane that may be using
the serdes, but exactly what this register does is completely unknown.

This register only appears to exist on Armada 38x devices, and not
other SoCs using the NETA ethernet block, so it seems logical that it
should be part of the COMPHY.

This is also how u-boot groups this register; it is dealt with as part
of the COMPHY initialisation there.

However, at the end of the day, due to the undocumented nature of this
register, we can only guess.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Acked-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/E1jxtRZ-0003Ta-4h@rmk-PC.armlinux.org.uk
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Russell King and committed by
Vinod Koul
6c89533d e9f84ec6

+9 -1
+9 -1
Documentation/devicetree/bindings/phy/phy-armada38x-comphy.txt
··· 12 12 - #address-cells: should be 1. 13 13 - #size-cells: should be 0. 14 14 15 + Optional properties: 16 + 17 + - reg-names: must be "comphy" as the first name, and "conf". 18 + - reg: must contain the comphy register location and length as the first 19 + pair, followed by an optional configuration register address and 20 + length pair. 21 + 15 22 A sub-node is required for each comphy lane provided by the comphy. 16 23 17 24 Required properties (child nodes): ··· 31 24 32 25 comphy: phy@18300 { 33 26 compatible = "marvell,armada-380-comphy"; 34 - reg = <0x18300 0x100>; 27 + reg-names = "comphy", "conf"; 28 + reg = <0x18300 0x100>, <0x18460 4>; 35 29 #address-cells = <1>; 36 30 #size-cells = <0>; 37 31