u-boot-brain/arch/arm
Marek Behún 545591132a arm64: dts: armada-3720-espressobin: fix COMPHY nodes
This commit fixes initialization of COMPHY on EspressoBin.

Commit 22f418935b ("phy: marvell: a3700: Use comphy_mux on Armada
37xx.") introduced usage of comphy_mux on Armada 37xx comphy driver.
The lanes are defined in comphy_a3700.c as described in functional
specification, that is:
  lane 0 is SGMII1 or USB3
  lane 1 is PCIe or SGMII0
  lane 2 is SATA or USB3

But the DTS for EspressoBin configures PCIe on lane 0 and USB3 on
lane 1, which is wrong in the sense of the specification and doesn't
work with the comphy_mux code, which is 2 years now (the aardvark driver
causes synchronous abort in U-Boot).

It worked till the above mentioned commit, because the code for powering
up PCIe PHY doesn't work with lane number at all, and the code for
powering up USB3 PHY works differently only if USB3 is on lane 2, ie.
the check goes like:
  if (lane == 2)
    something
  else
    something else
so it does not differentiate between lanes 0 and 1.

In the future I shall post patches that remove the comphy_a3700 driver
and add comphy driver which uses calls to ATF, like Linux' driver does.
This will have the advantage of same DTS bindings as Linux', but till
this is done, we need this patch.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Tested-by: Pali Rohár <pali@kernel.org>
Cc: Stefan Roese <sr@denx.de>
Reviewed-by: Stefan Roese <sr@denx.de>
Tested-by: Andre Heider <a.heider@gmail.com>
2020-08-31 14:45:53 +02:00
..
cpu board: Introduce xenguest_arm64 board 2020-08-14 15:18:27 -04:00
dts arm64: dts: armada-3720-espressobin: fix COMPHY nodes 2020-08-31 14:45:53 +02:00
include For 2020.10 2020-08-25 23:12:43 -04:00
lib arm: Add SPL build check to SPL early bss clear 2020-08-04 23:30:02 -04:00
mach-aspeed cosmetic: aspeed: ast2500: Rename board file 2020-08-14 09:46:40 -04:00
mach-at91 Makefile: Rename ALL-y to INPUTS-y 2020-07-28 19:30:39 -06:00
mach-bcm283x - add support for PCI and XHCI for RPi4 (64 bit only) 2020-07-10 14:31:22 -04:00
mach-bcmstb
mach-cortina board: presidio-asic: Add basic G3 engr. development board support 2020-02-07 16:16:01 -05:00
mach-davinci Makefile: Rename ALL-y to INPUTS-y 2020-07-28 19:30:39 -06:00
mach-exynos common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
mach-highbank common: Drop init.h from common header 2020-05-18 17:33:33 -04:00
mach-imx arm: mx6: Make all i.MX6 SoCs user-selectable 2020-08-25 10:26:14 +02:00
mach-integrator
mach-ipq40xx arm: Add support for Qualcomm IPQ40xx family 2020-07-29 08:43:40 -04:00
mach-k3 arm: mach-k3: j7200: Detect if ROM has already loaded sysfw 2020-08-11 20:34:46 +05:30
mach-keystone Makefile: Rename ALL-y to INPUTS-y 2020-07-28 19:30:39 -06:00
mach-kirkwood Convert CONFIG_NETCONSOLE to Kconfig 2020-08-23 13:06:36 -04:00
mach-lpc32xx treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mach-mediatek common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
mach-meson treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mach-mvebu Convert CONFIG_ENV_OVERWRITE to Kconfig 2020-07-28 16:18:06 -04:00
mach-nexell pwm: add driver for nexell 2020-07-29 08:43:40 -04:00
mach-octeontx arm: octeontx: Add support for OcteonTX SoC platforms 2020-08-25 08:01:16 +02:00
mach-octeontx2 arm: octeontx2: Add support for OcteonTX2 SoC platforms 2020-08-25 08:01:16 +02:00
mach-omap2 ARM: omap3: evm: Complete DM_ETH and DM_USB migrations 2020-08-11 20:34:45 +05:30
mach-orion5x treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
mach-owl Actions: OWL: Calculate SDRAM size 2020-07-07 16:09:22 -04:00
mach-qemu qemu: don't allow to select 32- and 64-bit 2020-04-24 10:51:32 -04:00
mach-rmobile Makefile: Rename ALL-y to INPUTS-y 2020-07-28 19:30:39 -06:00
mach-rockchip rockchip: rk3188: Fix the code support for SPL_LED 2020-08-21 19:56:19 +08:00
mach-s5pc1xx common: Drop net.h from common header 2020-05-18 17:33:31 -04:00
mach-snapdragon treewide: convert devfdt_get_addr() to dev_read_addr() 2020-07-25 14:46:57 -06:00
mach-socfpga socfpga: Mark socfpga_fpga_add() as static inline in the non-FPGA case 2020-07-01 10:11:03 -04:00
mach-sti
mach-stm32 common: Drop init.h from common header 2020-05-18 17:33:33 -04:00
mach-stm32mp arm: stm32mp: stm32prog: use IS_ENABLED to prevent ifdef 2020-08-13 09:52:49 +02:00
mach-sunxi sunxi: Silence warning about non-static inline function 2020-06-01 22:38:08 +05:30
mach-tegra tegra: Don't enable binman on ARMv8 SoCs 2020-07-28 19:30:39 -06:00
mach-u8500 common: Drop init.h from common header 2020-05-18 17:33:33 -04:00
mach-uniphier ARM: uniphier: use FIELD_GET() to get access to revision register fields 2020-08-18 02:01:14 +09:00
mach-versal xilinx: zynqmp: synchronize firmware call return payload 2020-08-20 09:49:20 +02:00
mach-versatile
mach-zynq common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
mach-zynqmp xilinx: zynqmp: remove chip_id function 2020-08-20 09:49:20 +02:00
mach-zynqmp-r5 common: Drop init.h from common header 2020-05-18 17:33:33 -04:00
thumb1/include/asm/proc-armv
config.mk Makefile: Rename ALL-y to INPUTS-y 2020-07-28 19:30:39 -06:00
Kconfig Merge https://gitlab.denx.de/u-boot/custodians/u-boot-marvell 2020-08-25 13:38:29 -04:00
Kconfig.debug
Makefile arm: octeontx2: Add support for OcteonTX2 SoC platforms 2020-08-25 08:01:16 +02:00