add new UniPhier PCIe PHY driver
Kunihiko Hayashi
maintainercover add new UniPhier PCIe PHY driver
This series adds support for PCIe PHY interface implemented in Socionext UniPhier SoCs. This driver supports LD20 and PXs3 SoCs.
This series contains changes to phy/Kconfig and phy/Makefile, and will conflict with the preceding PHY patches for USB [1]. Either one needs to rebase itself later.
[1] http://lists.infradead.org/pipermail/linux-arm-kernel/2018-August/597430.html
Kunihiko Hayashi (2):
dt-bindings: phy: add UniPhier PCIe PHY description
phy: socionext: add PCIe PHY driver support
.../devicetree/bindings/phy/uniphier-pcie-phy.txt | 31 +++ drivers/phy/Kconfig | 1 + drivers/phy/Makefile | 1 + drivers/phy/socionext/Kconfig | 12 ++ drivers/phy/socionext/Makefile | 6 + drivers/phy/socionext/phy-uniphier-pcie.c | 240 +++++++++++++++++++++ 6 files changed, 291 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/uniphier-pcie-phy.txt create mode 100644 drivers/phy/socionext/Kconfig create mode 100644 drivers/phy/socionext/Makefile create mode 100644 drivers/phy/socionext/phy-uniphier-pcie.c
Signature · 1 line
2.7.4
Kunihiko Hayashi
maintainerPATCH 1/2 dt-bindings: phy: add UniPhier PCIe PHY description
Add DT bindings for PHY interface built into PCIe controller implemented in UniPhier SoCs.
--- .../devicetree/bindings/phy/uniphier-pcie-phy.txt | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/uniphier-pcie-phy.txt
Documentation/devicetree/bindings/phy/uniphier-pcie-phy.txt new file +31 -0
@@ -0,0 +1,31 @@ +Socionext UniPhier PCIe PHY bindings + +This describes the devicetree bindings for PHY interface built into +PCIe controller implemented on Socionext UniPhier SoCs. + +Required properties: +- compatible: Should contain one of the following: + "socionext,uniphier-ld20-pcie-phy" - for LD20 PHY + "socionext,uniphier-pxs3-pcie-phy" - for PXs3 PHY +- reg: Specifies offset and length of the register set for the device. +- #phy-cells: Must be zero. +- clocks: A phandle to the clock gate for PCIe glue layer including + this phy. +- resets: A phandle to the reset line for PCIe glue layer including + this phy. + +Optional properties: +- socionext,syscon: A phandle to system control to set configurations + for phy. + +Refer to phy/phy-bindings.txt for the generic PHY binding properties. + +Example: + pcie_phy: phy at 66038000 { + compatible = "socionext,uniphier-ld20-pcie-phy"; + reg = <0x66038000 0x4000>; + #phy-cells = <0>; + clocks = <&sys_clk 24>; + resets = <&sys_rst 24>; + socionext,syscon = <&soc_glue>; + };
Signature · 1 line
2.7.4
Rob Herring
maintainerPATCH 1/2 dt-bindings: phy: add UniPhier PCIe PHY description
Quoted 9 lines · Kunihiko Hayashi
Add DT bindings for PHY interface built into PCIe controller implemented in UniPhier SoCs.
Signed-off-by Kunihiko Hayashi <[email protected]>--- .../devicetree/bindings/phy/uniphier-pcie-phy.txt | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/uniphier-pcie-phy.txt
Kunihiko Hayashi
maintainerPATCH 2/2 phy: socionext: add PCIe PHY driver support
In reply to Kunihiko HayashiAdd a driver for PHY interface built into PCIe controller implemented in UniPhier SoCs.
--- drivers/phy/Kconfig | 1 + drivers/phy/Makefile | 1 + drivers/phy/socionext/Kconfig | 12 ++ drivers/phy/socionext/Makefile | 6 + drivers/phy/socionext/phy-uniphier-pcie.c | 240 ++++++++++++++++++++++++++++++ 5 files changed, 260 insertions(+) create mode 100644 drivers/phy/socionext/Kconfig create mode 100644 drivers/phy/socionext/Makefile create mode 100644 drivers/phy/socionext/phy-uniphier-pcie.c
drivers/phy/Kconfig +1 -0
@@ -53,6 +53,7 @@ source "drivers/phy/ralink/Kconfig" source "drivers/phy/renesas/Kconfig" source "drivers/phy/rockchip/Kconfig" source "drivers/phy/samsung/Kconfig" +source "drivers/phy/socionext/Kconfig" source "drivers/phy/st/Kconfig" source "drivers/phy/tegra/Kconfig" source "drivers/phy/ti/Kconfig"
drivers/phy/Makefile +1 -0
@@ -21,5 +21,6 @@ obj-y += broadcom/ \ qualcomm/ \ ralink/ \ samsung/ \ + socionext/ \ st/ \ ti/
drivers/phy/socionext/Kconfig new file +12 -0
@@ -0,0 +1,12 @@ +# +# PHY drivers for Socionext platforms. +# + +config PHY_UNIPHIER_PCIE + tristate "Uniphier PHY driver for PCIe controller" + depends on (ARCH_UNIPHIER || COMPILE_TEST) && OF + default PCIE_UNIPHIER + select GENERIC_PHY + help + Enable this to support PHY implemented in PCIe controller + on UniPhier SoCs. This driver supports LD20 and PXs3 SoCs.
drivers/phy/socionext/Makefile new file +6 -0
@@ -0,0 +1,6 @@ +# SPDX-License-Identifier: GPL-2.0 +# +# Makefile for the phy drivers. +# + +obj-$(CONFIG_PHY_UNIPHIER_PCIE) += phy-uniphier-pcie.o
drivers/phy/socionext/phy-uniphier-pcie.c new file +240 -0
240 lines not on this page · raw message
Signature · 1 line
2.7.4