Merge branch 'sja1105-next'
authorDavid S. Miller <davem@davemloft.net>
Wed, 20 Oct 2021 10:32:28 +0000 (11:32 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Oct 2021 10:32:28 +0000 (11:32 +0100)
commit4d8e5035fa8cff69aa2c6e5d9ec96c5a5bd7f36a
treea3e639b8c903d35318ba527e34e808477fb694a5
parent816219a86d21a26b176bea6f9c00a71823231973
parent9ca482a246f017773c6ae9b39a02f51dfcc956d7
Merge branch 'sja1105-next'

Vladimir Oltean says:

====================
New RGMII delay DT bindings for the SJA1105 DSA driver

During recent reviews I've been telling people that new MAC drivers
should adopt a certain DT binding format for RGMII delays in order to
avoid conflicting interpretations. Some suggestions were better received
than others, and it appears we are still far from a consensus.

Part of the problem seems to be that there are still drivers that apply
RGMII delays based on an incorrect interpretation of the device tree,
and these serve as a bad example for others.
I happen to maintain one of those drivers and I am able to test it, so I
figure that one of the ways in which I can make a change is to stop
providing a bad example.

Therefore, this series adds support for the "rx-internal-delay-ps" and
"tx-internal-delay-ps" properties inside sja1105 switch port DT nodes,
and if these are present, they will decide what RGMII delays will the
driver apply.

The in-tree device trees are also updated to follow the new format, as
well as the schema validator.

I assume it's okay to get all changes merged in through the same tree
(net-next). Although the DTS changes could be split, if needed - the
driver works with or without them. There is one more DTS which should be
changed, which is in Shawn's tree but not in net-next:
https://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux.git/tree/arch/arm64/boot/dts/freescale/fsl-lx2160a-bluebox3.dts?h=for-next
For that, I'd have to send a separate patch.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>