u-boot-brain/drivers/pci
Jagan Teki 89f2fa0b5e pci: Add Rockchip PCIe PHY controller driver
Yes, it is possible to have a dedicated UCLASS PHY driver
for this Rockchip PCIe PHY but there are some issues on
Generic PHY framework to support the same.

The Generic PHY framework is unable to get the PHY if
the PHY parent is of a different uclass.

Say if we try to get the PCIe PHY then the phy-uclass
will look for PHY in the first instance if it is not
in the root node it will try to probe the parent by
assuming that the actual PHY is inside the parent PHY
of UCLASS_PHY. But, in rk3399 hardware representation
PHY like emmc, usb and pcie are part of syscon which
is completely a different of UCLASS_SYSCON.

Example:

grf: syscon@ff770000 {
   compatible = "rockchip,rk3399-grf", "syscon", "simple-mfd";
   reg = <0x0 0xff770000 0x0 0x10000>;
   #address-cells = <1>;
   #size-cells = <1>;

   pcie_phy: pcie-phy {
       compatible = "rockchip,rk3399-pcie-phy";
       clocks = <&cru SCLK_PCIEPHY_REF>;
       clock-names = "refclk";
       #phy-cells = <1>;
       resets = <&cru SRST_PCIEPHY>;
       drive-impedance-ohm = <50>;
       reset-names = "phy";
       status = "disabled";
   };
};

Due to this limitation, this patch adds a separate PHY
driver for Rockchip PCIe. This might be removed in future
once Generic PHY supports this limitation.

Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Tested-by: Suniel Mahesh <sunil@amarulasolutions.com> #roc-rk3399-pc
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2020-05-22 20:53:20 +08:00
..
fsl_pci_init.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
Kconfig pci: Add Rockchip PCIe controller driver 2020-05-22 20:53:20 +08:00
Makefile pci: Add Rockchip PCIe PHY controller driver 2020-05-22 20:53:20 +08:00
pci_auto_common.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
pci_auto_old.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
pci_auto.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
pci_common.c env: Move env_get() to env.h 2019-08-11 16:43:41 -04:00
pci_compat.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
pci_ftpci100.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
pci_gt64120.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
pci_indirect.c pci: Don't use pci_indirect when DM is active 2018-05-08 18:50:23 -04:00
pci_internal.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pci_mpc85xx.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
pci_msc01.c common: Drop init.h from common header 2020-05-18 17:33:33 -04:00
pci_mvebu.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
pci_rom.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
pci_sandbox.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
pci_sh4.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
pci_sh7751.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
pci_sh7780.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
pci_tegra.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
pci_x86.c dm: pci: Update the PCI read_config() method to const dev * 2020-02-05 19:33:45 -07:00
pci-aardvark.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
pci-emul-uclass.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
pci-rcar-gen2.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
pci-rcar-gen3.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
pci-uclass.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
pci.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
pcie_dw_mvebu.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
pcie_dw_ti.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
pcie_ecam_generic.c pci-host-ecam-generic: access config space independent of system-wide bus id 2020-03-30 08:11:56 +05:30
pcie_fsl_fixup.c dm: pci: add Freescale PowerPC PCIe driver 2019-06-20 10:44:45 +05:30
pcie_fsl.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
pcie_fsl.h dm: pcie_fsl: Fix the calculation of controller index 2019-08-28 13:47:44 +05:30
pcie_imx.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
pcie_intel_fpga.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
pcie_layerscape_fixup_common.c common: Drop init.h from common header 2020-05-18 17:33:33 -04:00
pcie_layerscape_fixup_common.h pci: layerscape: device tree fixup based on SoC and 2020-01-24 14:28:26 +05:30
pcie_layerscape_fixup.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
pcie_layerscape_gen4_fixup.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
pcie_layerscape_gen4.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
pcie_layerscape_gen4.h common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
pcie_layerscape.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
pcie_layerscape.h pci: layerscape: Add stream_id_cur field to ls_pcie structure 2019-12-26 16:00:21 +05:30
pcie_mediatek.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
pcie_phytium.c dm: pci: Update the PCI read_config() method to const dev * 2020-02-05 19:33:45 -07:00
pcie_rockchip_phy.c pci: Add Rockchip PCIe PHY controller driver 2020-05-22 20:53:20 +08:00
pcie_rockchip.c pci: Add Rockchip PCIe PHY controller driver 2020-05-22 20:53:20 +08:00
pcie_rockchip.h pci: Add Rockchip PCIe PHY controller driver 2020-05-22 20:53:20 +08:00
pcie_xilinx.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00