* [PATCH 0/3] Add R8A77980/Condor PCIe support
@ 2018-04-06 20:11 Sergei Shtylyov
2018-04-06 20:17 ` [PATCH 1/3] arm64: dts: renesas: r8a77980: add PCIe PHY support Sergei Shtylyov
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Sergei Shtylyov @ 2018-04-06 20:11 UTC (permalink / raw)
To: Simon Horman, Rob Herring, Catalin Marinas, Will Deacon,
linux-renesas-soc, devicetree
Cc: Mark Rutland, Magnus Damm, linux-arm-kernel
Hello!
Here's the set of 3 patches against Simon Horman's 'renesas.git' repo's
'renesas-devel-20180330-v4.16-rc7' tag. We're adding the R8A77980 PCIe related
device nodes and then enable PCIe on the Condor board. These patches depend on
the R8A77980 PCIe PHY and PCIEC driver support in order to work properly...
[1/3] arm64: dts: renesas: r8a77980: add PCIe PHY support
[2/3] arm64: dts: renesas: r8a77980: add PCIEC support
[3/3] arm64: dts: renesas: condor: add PCIe support
WBR, Sergei
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/3] arm64: dts: renesas: r8a77980: add PCIe PHY support
2018-04-06 20:11 [PATCH 0/3] Add R8A77980/Condor PCIe support Sergei Shtylyov
@ 2018-04-06 20:17 ` Sergei Shtylyov
2018-04-06 20:18 ` [PATCH 2/3] arm64: dts: renesas: r8a77980: add PCIEC support Sergei Shtylyov
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Sergei Shtylyov @ 2018-04-06 20:17 UTC (permalink / raw)
To: Simon Horman, Rob Herring, Catalin Marinas, Will Deacon,
linux-renesas-soc, devicetree
Cc: Mark Rutland, Magnus Damm, linux-arm-kernel
Describe the PCIe PHY in the R8A77980 device tree; it will be used by PCIEC
in the next patch...
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
---
arch/arm64/boot/dts/renesas/r8a77980.dtsi | 50 ++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
Index: renesas/arch/arm64/boot/dts/renesas/r8a77980.dtsi
===================================================================
--- renesas.orig/arch/arm64/boot/dts/renesas/r8a77980.dtsi
+++ renesas/arch/arm64/boot/dts/renesas/r8a77980.dtsi
@@ -164,6 +171,17 @@
status = "disabled";
};
+ pcie_phy: pcie-phy@e65d0000 {
+ compatible = "renesas,r8a77980-pcie-phy",
+ "renesas,rcar-gen3-pcie-phy";
+ reg = <0 0xe65d0000 0 0x8000>;
+ #phy-cells = <0>;
+ clocks = <&cpg CPG_MOD 319>;
+ power-domains = <&sysc 32>;
+ resets = <&cpg 319>;
+ status = "disabled";
+ };
+
avb: ethernet@e6800000 {
compatible = "renesas,etheravb-r8a77980",
"renesas,etheravb-rcar-gen3";
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 2/3] arm64: dts: renesas: r8a77980: add PCIEC support
2018-04-06 20:11 [PATCH 0/3] Add R8A77980/Condor PCIe support Sergei Shtylyov
2018-04-06 20:17 ` [PATCH 1/3] arm64: dts: renesas: r8a77980: add PCIe PHY support Sergei Shtylyov
@ 2018-04-06 20:18 ` Sergei Shtylyov
2018-04-06 20:19 ` [PATCH 3/3] arm64: dts: renesas: condor: add PCIe support Sergei Shtylyov
2018-04-18 13:57 ` [PATCH 0/3] Add R8A77980/Condor " Simon Horman
3 siblings, 0 replies; 5+ messages in thread
From: Sergei Shtylyov @ 2018-04-06 20:18 UTC (permalink / raw)
To: Simon Horman, Rob Herring, Catalin Marinas, Will Deacon,
linux-renesas-soc, devicetree
Cc: Mark Rutland, Magnus Damm, linux-arm-kernel
Describe PCIEC and PCIe bus clock in the R8A77980 device tree.
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
---
arch/arm64/boot/dts/renesas/r8a77980.dtsi | 39 ++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
Index: renesas/arch/arm64/boot/dts/renesas/r8a77980.dtsi
===================================================================
--- renesas.orig/arch/arm64/boot/dts/renesas/r8a77980.dtsi
+++ renesas/arch/arm64/boot/dts/renesas/r8a77980.dtsi
@@ -51,6 +51,13 @@
clock-frequency = <0>;
};
+ /* External PCIe clock - can be overridden by the board */
+ pcie_bus_clk: pcie_bus {
+ compatible = "fixed-clock";
+ #clock-cells = <0>;
+ clock-frequency = <0>;
+ };
+
psci {
compatible = "arm,psci-1.0", "arm,psci-0.2";
method = "smc";
@@ -376,6 +383,38 @@
resets = <&cpg 408>;
};
+ pciec: pcie@fe000000 {
+ compatible = "renesas,pcie-r8a77980",
+ "renesas,pcie-rcar-gen3";
+ reg = <0 0xfe000000 0 0x80000>;
+ #address-cells = <3>;
+ #size-cells = <2>;
+ bus-range = <0x00 0xff>;
+ device_type = "pci";
+ ranges = <
+ 0x01000000 0 0x00000000 0 0xfe100000 0 0x0100000
+ 0x02000000 0 0xfe200000 0 0xfe200000 0 0x0200000
+ 0x02000000 0 0x30000000 0 0x30000000 0 0x8000000
+ 0x42000000 0 0x38000000 0 0x38000000 0 0x8000000
+ >;
+ dma-ranges = <0x42000000 0 0x40000000 0 0x40000000
+ 0 0x80000000>;
+ interrupts = <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 149 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 150 IRQ_TYPE_LEVEL_HIGH>;
+ #interrupt-cells = <1>;
+ interrupt-map-mask = <0 0 0 0>;
+ interrupt-map = <0 0 0 0 &gic GIC_SPI 148
+ IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&cpg CPG_MOD 319>, <&pcie_bus_clk>;
+ clock-names = "pcie", "pcie_bus";
+ power-domains = <&sysc 32>;
+ resets = <&cpg 319>;
+ phys = <&pcie_phy>;
+ phy-names = "pcie";
+ status = "disabled";
+ };
+
prr: chipid@fff00044 {
compatible = "renesas,prr";
reg = <0 0xfff00044 0 4>;
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 3/3] arm64: dts: renesas: condor: add PCIe support
2018-04-06 20:11 [PATCH 0/3] Add R8A77980/Condor PCIe support Sergei Shtylyov
2018-04-06 20:17 ` [PATCH 1/3] arm64: dts: renesas: r8a77980: add PCIe PHY support Sergei Shtylyov
2018-04-06 20:18 ` [PATCH 2/3] arm64: dts: renesas: r8a77980: add PCIEC support Sergei Shtylyov
@ 2018-04-06 20:19 ` Sergei Shtylyov
2018-04-18 13:57 ` [PATCH 0/3] Add R8A77980/Condor " Simon Horman
3 siblings, 0 replies; 5+ messages in thread
From: Sergei Shtylyov @ 2018-04-06 20:19 UTC (permalink / raw)
To: Simon Horman, Rob Herring, Catalin Marinas, Will Deacon,
linux-renesas-soc, devicetree
Cc: Mark Rutland, Magnus Damm, linux-arm-kernel
Enable PCIe PHY and PCIEC and specify the PCIe bus clock for the Condor
board.
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
---
arch/arm64/boot/dts/renesas/r8a77980-condor.dts | 12 ++++++++++++
1 file changed, 12 insertions(+)
Index: renesas/arch/arm64/boot/dts/renesas/r8a77980-condor.dts
===================================================================
--- renesas.orig/arch/arm64/boot/dts/renesas/r8a77980-condor.dts
+++ renesas/arch/arm64/boot/dts/renesas/r8a77980-condor.dts
@@ -49,6 +49,18 @@
clock-frequency = <32768>;
};
+&pciec {
+ status = "okay";
+};
+
+&pcie_bus_clk {
+ clock-frequency = <100000000>;
+};
+
+&pcie_phy {
+ status = "okay";
+};
+
&scif0 {
status = "okay";
};
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 0/3] Add R8A77980/Condor PCIe support
2018-04-06 20:11 [PATCH 0/3] Add R8A77980/Condor PCIe support Sergei Shtylyov
` (2 preceding siblings ...)
2018-04-06 20:19 ` [PATCH 3/3] arm64: dts: renesas: condor: add PCIe support Sergei Shtylyov
@ 2018-04-18 13:57 ` Simon Horman
3 siblings, 0 replies; 5+ messages in thread
From: Simon Horman @ 2018-04-18 13:57 UTC (permalink / raw)
To: Sergei Shtylyov
Cc: Mark Rutland, devicetree, Magnus Damm, Catalin Marinas,
Will Deacon, linux-renesas-soc, Rob Herring, linux-arm-kernel
On Fri, Apr 06, 2018 at 11:11:38PM +0300, Sergei Shtylyov wrote:
> Hello!
>
> Here's the set of 3 patches against Simon Horman's 'renesas.git' repo's
> 'renesas-devel-20180330-v4.16-rc7' tag. We're adding the R8A77980 PCIe related
> device nodes and then enable PCIe on the Condor board. These patches depend on
> the R8A77980 PCIe PHY and PCIEC driver support in order to work properly...
Thanks, I have marked these as deferred.
Please ping me once the dependencies have been accepted.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2018-04-18 13:57 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-06 20:11 [PATCH 0/3] Add R8A77980/Condor PCIe support Sergei Shtylyov
2018-04-06 20:17 ` [PATCH 1/3] arm64: dts: renesas: r8a77980: add PCIe PHY support Sergei Shtylyov
2018-04-06 20:18 ` [PATCH 2/3] arm64: dts: renesas: r8a77980: add PCIEC support Sergei Shtylyov
2018-04-06 20:19 ` [PATCH 3/3] arm64: dts: renesas: condor: add PCIe support Sergei Shtylyov
2018-04-18 13:57 ` [PATCH 0/3] Add R8A77980/Condor " Simon Horman
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).