u-boot-brain/arch
James Byrne 83f71ef558 net: phy: micrel: Use correct skew values on KSZ9021
Commit ff7bd212cb ("net: phy: micrel: fix divisor value for KSZ9031
phy skew") fixed the skew value divisor for the KSZ9031, but left the
code using the same divisor for the KSZ9021, which is incorrect.

The preceding commit c16e69f702 ("net: phy: micrel: add documentation
for Micrel KSZ90x1 binding") added the DTS documentation for the
KSZ90x1, changing it from the equivalent file in the Linux kernel to
correctly state that for this part the skew value is set in 120ps steps,
whereas the Linux documentation and driver continue to this day to use
the incorrect value of 200 that came from the original KSZ9021 datasheet
before it was corrected in revision 1.2 (Feb 2014).

This commit sorts out the resulting confusion in a consistent way by
making the following changes:

- Update the documentation to be clear about what the skew values mean,
in the same was as for the KSZ9031.

- Update the Micrel PHY driver to select the appropriate divisor for
both parts.

- Adjust all the device trees that state skew values for KSZ9021 PHYs to
use values based on 120ps steps instead of 200ps steps. This will result
in the same values being programmed into the skew registers as the
equivalent device trees in the Linux kernel do, where it incorrectly
uses 200ps steps (since that's where all these device trees were copied
from).

Signed-off-by: James Byrne <james.byrne@origamienergy.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
2019-05-08 17:27:01 -05:00
..
arc ARC: [plat-axs10x]: migrate to DM_MMC 2019-04-18 09:12:38 +03:00
arm net: phy: micrel: Use correct skew values on KSZ9021 2019-05-08 17:27:01 -05:00
m68k m68k: ColdFire mcf5441x, add eSDHC support 2018-09-16 00:01:13 +02:00
microblaze spl: fix linker size check off-by-one errors 2019-05-05 08:48:50 -04:00
mips net: mscc: ocelot: Update DTS for Luton pcb90 2019-05-03 16:46:36 +02:00
nds32 dts: switch spi-flash to jedec, spi-nor compatible 2019-04-12 10:54:27 +05:30
nios2 .gitignore: move *.dtb and *.dtb.S patterns to the top-level .gitignore 2018-06-18 14:43:12 -04:00
powerpc watchdog: mpc8xx_wdt: Watchdog driver and macros cleanup 2019-04-26 09:16:32 +02:00
riscv dts: switch spi-flash to jedec, spi-nor compatible 2019-04-12 10:54:27 +05:30
sandbox Various minor sandbox iumprovements 2019-04-24 12:27:29 -04:00
sh sh: 7785: Remove CPU support 2019-05-07 05:41:32 +02:00
x86 x86: dts: switch spi-flash to jedec, spi-nor compatible 2019-04-12 10:54:27 +05:30
xtensa xtensa: use asm-generic/atomic.h 2018-09-25 21:49:18 -04:00
.gitignore
Kconfig arch: armv8: Provide a way to disable cache maintenance ops 2019-05-05 08:48:50 -04:00