* [PATCH v2 0/2] add the Amlogic Meson PCIe phy driver
@ 2018-08-24 7:33 Hanjie Lin
2018-08-24 7:33 ` [PATCH v2 1/2] dt-bindings: phy: add DT bindings for Amlogic Meson PCIe Phy controller Hanjie Lin
0 siblings, 1 reply; 4+ messages in thread
From: Hanjie Lin @ 2018-08-24 7:33 UTC (permalink / raw)
To: Kishon Vijay Abraham I
Cc: Rob Herring, Hanjie Lin, Jianxin Pan, devicetree, Kevin Hilman,
Yixun Lan, Qiufang Dai, Liang Yang, Jian Hu, linux-pci,
Carlo Caione, linux-amlogic, linux-arm-kernel
This patcheset add the driver and dt-bindings for
the Meson-PCIE-PHY controller.
Changes since v1: [0]
- move 'apb' and 'port' reset to ctrl driver
- format correcting
[0] : https://lkml.org/lkml/2018/8/14/66
Yue Wang (2):
dt-bindings: phy: add DT bindings for Amlogic Meson PCIe Phy
controller
PCI: meson: add the Amlogic Meson PCIe phy driver
.../bindings/phy/amlogic,meson-pcie-phy.txt | 21 ++++
drivers/phy/amlogic/Kconfig | 8 ++
drivers/phy/amlogic/Makefile | 1 +
drivers/phy/amlogic/phy-meson-axg-pcie.c | 124 +++++++++++++++++++++
4 files changed, 154 insertions(+)
create mode 100644 Documentation/devicetree/bindings/phy/amlogic,meson-pcie-phy.txt
create mode 100644 drivers/phy/amlogic/phy-meson-axg-pcie.c
--
2.7.4
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v2 1/2] dt-bindings: phy: add DT bindings for Amlogic Meson PCIe Phy controller
2018-08-24 7:33 [PATCH v2 0/2] add the Amlogic Meson PCIe phy driver Hanjie Lin
@ 2018-08-24 7:33 ` Hanjie Lin
2018-08-29 0:37 ` Rob Herring
0 siblings, 1 reply; 4+ messages in thread
From: Hanjie Lin @ 2018-08-24 7:33 UTC (permalink / raw)
To: Kishon Vijay Abraham I
Cc: Rob Herring, Hanjie Lin, Jianxin Pan, devicetree, linux-pci,
Yixun Lan, Yue Wang, Qiufang Dai, Liang Yang, Jian Hu,
Kevin Hilman, Carlo Caione, linux-amlogic, linux-arm-kernel
From: Yue Wang <yue.wang@amlogic.com>
The Meson-PCIE-PHY controller supports the 5-Gbps data rate
of the PCI Express Gen 2 specification and is backward compatible
with the 2.5-Gbps Gen 1.1 specification with only
inferred idle detection supported on Amlogic SoCs.
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
Signed-off-by: Yue Wang <yue.wang@amlogic.com>
---
.../bindings/phy/amlogic,meson-pcie-phy.txt | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
create mode 100644 Documentation/devicetree/bindings/phy/amlogic,meson-pcie-phy.txt
diff --git a/Documentation/devicetree/bindings/phy/amlogic,meson-pcie-phy.txt b/Documentation/devicetree/bindings/phy/amlogic,meson-pcie-phy.txt
new file mode 100644
index 0000000..e2f0a27
--- /dev/null
+++ b/Documentation/devicetree/bindings/phy/amlogic,meson-pcie-phy.txt
@@ -0,0 +1,21 @@
+* Amlogic Meson AXG PCIE PHY binding
+
+Required properties:
+- compatible: Should be
+ - "amlogic,axg-pcie-phy"
+- #phys-cells: must be 0 (see phy-bindings.txt in this directory)
+- reg: The base address and length of the registers
+- resets: phandle to the reset lines
+- reset-names: must contain "phy" and "peripheral"
+ - "phy" PHY reset
+Optional properties:
+- phy-supply: see phy-bindings.txt in this directory
+
+Example:
+ pcie_phy: pcie-phy@ff644000 {
+ #phy-cells = <0>;
+ compatible = "amlogic,axg-pcie-phy";
+ reg = <0x0 0xff644000 0x0 0x2000>;
+ resets = <&reset RESET_PCIE_PHY>;
+ reset-names = "phy";
+ };
--
2.7.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v2 1/2] dt-bindings: phy: add DT bindings for Amlogic Meson PCIe Phy controller
2018-08-24 7:33 ` [PATCH v2 1/2] dt-bindings: phy: add DT bindings for Amlogic Meson PCIe Phy controller Hanjie Lin
@ 2018-08-29 0:37 ` Rob Herring
2018-08-30 7:50 ` Hanjie Lin
0 siblings, 1 reply; 4+ messages in thread
From: Rob Herring @ 2018-08-29 0:37 UTC (permalink / raw)
Cc: devicetree, Hanjie Lin, Jianxin Pan, linux-pci, Yixun Lan,
Yue Wang, Qiufang Dai, Liang Yang, Jian Hu, Kevin Hilman,
Carlo Caione, linux-amlogic, Kishon Vijay Abraham I,
linux-arm-kernel
On Fri, 24 Aug 2018 15:33:25 +0800, Hanjie Lin wrote:
> From: Yue Wang <yue.wang@amlogic.com>
>
> The Meson-PCIE-PHY controller supports the 5-Gbps data rate
> of the PCI Express Gen 2 specification and is backward compatible
> with the 2.5-Gbps Gen 1.1 specification with only
> inferred idle detection supported on Amlogic SoCs.
>
> Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
> Signed-off-by: Yue Wang <yue.wang@amlogic.com>
> ---
> .../bindings/phy/amlogic,meson-pcie-phy.txt | 21 +++++++++++++++++++++
> 1 file changed, 21 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/phy/amlogic,meson-pcie-phy.txt
>
Reviewed-by: Rob Herring <robh@kernel.org>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2 1/2] dt-bindings: phy: add DT bindings for Amlogic Meson PCIe Phy controller
2018-08-29 0:37 ` Rob Herring
@ 2018-08-30 7:50 ` Hanjie Lin
0 siblings, 0 replies; 4+ messages in thread
From: Hanjie Lin @ 2018-08-30 7:50 UTC (permalink / raw)
To: Rob Herring
Cc: devicetree, Jianxin Pan, linux-pci, Yixun Lan, Yue Wang,
Qiufang Dai, Liang Yang, Jian Hu, Kevin Hilman, Carlo Caione,
linux-amlogic, Kishon Vijay Abraham I, linux-arm-kernel
On 2018/8/29 8:37, Rob Herring wrote:
> On Fri, 24 Aug 2018 15:33:25 +0800, Hanjie Lin wrote:
>> From: Yue Wang <yue.wang@amlogic.com>
>>
>> The Meson-PCIE-PHY controller supports the 5-Gbps data rate
>> of the PCI Express Gen 2 specification and is backward compatible
>> with the 2.5-Gbps Gen 1.1 specification with only
>> inferred idle detection supported on Amlogic SoCs.
>>
>> Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
>> Signed-off-by: Yue Wang <yue.wang@amlogic.com>
>> ---
>> .../bindings/phy/amlogic,meson-pcie-phy.txt | 21 +++++++++++++++++++++
>> 1 file changed, 21 insertions(+)
>> create mode 100644 Documentation/devicetree/bindings/phy/amlogic,meson-pcie-phy.txt
>>
>
> Reviewed-by: Rob Herring <robh@kernel.org>
>
> .
>
Thanks for the review.
As described during the discussion [0], we consider it's too overkill to
have a dedicated phy driver which only process reset line. So we will abandon phy driver
and integrate phy reset into the controller driver int the next version.
[0] https://lkml.kernel.org/r/1535096165-45827-1-git-send-email-hanjie.lin@amlogic.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-08-30 7:50 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-24 7:33 [PATCH v2 0/2] add the Amlogic Meson PCIe phy driver Hanjie Lin
2018-08-24 7:33 ` [PATCH v2 1/2] dt-bindings: phy: add DT bindings for Amlogic Meson PCIe Phy controller Hanjie Lin
2018-08-29 0:37 ` Rob Herring
2018-08-30 7:50 ` Hanjie Lin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).