* [PATCH 0/2] Add PCI USB DT support for R8A7791/Koelsch reference board
@ 2014-04-07 22:48 Sergei Shtylyov
2014-04-07 22:49 ` [PATCH 1/2] ARM: shmobile: r8a7791: add internal PCI bridge nodes Sergei Shtylyov
2014-04-07 22:51 ` [PATCH 2/2] ARM: shmobile: koelsch: enable internal PCI Sergei Shtylyov
0 siblings, 2 replies; 3+ messages in thread
From: Sergei Shtylyov @ 2014-04-07 22:48 UTC (permalink / raw)
To: horms, linux-sh, devicetree
Cc: magnus.damm, linux, linux-arm-kernel, robh+dt, pawel.moll,
mark.rutland, ijc+devicetree, galak
Hello.
Here's the set of 2 patches against Simon Horman's 'renesas.git' repo,
'renesas-devel-v3.14-20140403' tag and R8A7791 EHCI clock device tree support
patch. Here we add the PCI USB device tree support on the R8A7791/Koelsch
reference board. The patchset requires the 'pci-rcar-gen2' driver device tree
support (just re-posted) in order to work.
[1/2] ARM: shmobile: r8a7791: add internal PCI bridge nodes
[2/2] ARM: shmobile: koelsch: enable internal PCI
WBR, Sergei
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/2] ARM: shmobile: r8a7791: add internal PCI bridge nodes
2014-04-07 22:48 [PATCH 0/2] Add PCI USB DT support for R8A7791/Koelsch reference board Sergei Shtylyov
@ 2014-04-07 22:49 ` Sergei Shtylyov
2014-04-07 22:51 ` [PATCH 2/2] ARM: shmobile: koelsch: enable internal PCI Sergei Shtylyov
1 sibling, 0 replies; 3+ messages in thread
From: Sergei Shtylyov @ 2014-04-07 22:49 UTC (permalink / raw)
To: horms, linux-sh, devicetree, robh+dt, pawel.moll, mark.rutland,
ijc+devicetree, galak
Cc: magnus.damm, linux, linux-arm-kernel
Add device nodes for the R8A7791 internal PCI bridge devices.
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
---
arch/arm/boot/dts/r8a7791.dtsi | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
Index: renesas/arch/arm/boot/dts/r8a7791.dtsi
===================================================================
--- renesas.orig/arch/arm/boot/dts/r8a7791.dtsi
+++ renesas/arch/arm/boot/dts/r8a7791.dtsi
@@ -875,4 +875,30 @@
#size-cells = <0>;
status = "disabled";
};
+
+ pci0: pci@ee090000 {
+ compatible = "renesas,pci-r8a7791";
+ clocks = <&mstp7_clks R8A7791_CLK_EHCI>;
+ reg = <0x0 0xee090000 0x0 0xc00>,
+ <0x0 0xee080000 0x0 0x1100>;
+ interrupts = <0 108 IRQ_TYPE_LEVEL_HIGH>;
+ status = "disabled";
+
+ bus-range = <0 0>;
+ #address-cells = <3>;
+ #size-cells = <2>;
+ };
+
+ pci1: pci@ee0d0000 {
+ compatible = "renesas,pci-r8a7791";
+ clocks = <&mstp7_clks R8A7791_CLK_EHCI>;
+ reg = <0x0 0xee0d0000 0x0 0xc00>,
+ <0x0 0xee0c0000 0x0 0x1100>;
+ interrupts = <0 113 IRQ_TYPE_LEVEL_HIGH>;
+ status = "disabled";
+
+ bus-range = <1 1>;
+ #address-cells = <3>;
+ #size-cells = <2>;
+ };
};
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 2/2] ARM: shmobile: koelsch: enable internal PCI
2014-04-07 22:48 [PATCH 0/2] Add PCI USB DT support for R8A7791/Koelsch reference board Sergei Shtylyov
2014-04-07 22:49 ` [PATCH 1/2] ARM: shmobile: r8a7791: add internal PCI bridge nodes Sergei Shtylyov
@ 2014-04-07 22:51 ` Sergei Shtylyov
1 sibling, 0 replies; 3+ messages in thread
From: Sergei Shtylyov @ 2014-04-07 22:51 UTC (permalink / raw)
To: horms, linux-sh, devicetree, robh+dt, pawel.moll, mark.rutland,
ijc+devicetree, galak
Cc: magnus.damm, linux, linux-arm-kernel
Enable internal AHB-PCI bridges for the USB EHCI/OHCI controllers attached to
them.
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
---
arch/arm/boot/dts/r8a7791-koelsch.dts | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
Index: renesas/arch/arm/boot/dts/r8a7791-koelsch.dts
===================================================================
--- renesas.orig/arch/arm/boot/dts/r8a7791-koelsch.dts
+++ renesas/arch/arm/boot/dts/r8a7791-koelsch.dts
@@ -288,6 +288,16 @@
"msiof0_tx";
renesas,function = "msiof0";
};
+
+ usb0_pins: usb0 {
+ renesas,groups = "usb0";
+ renesas,function = "usb0";
+ };
+
+ usb1_pins: usb1 {
+ renesas,groups = "usb1";
+ renesas,function = "usb1";
+ };
};
ðer {
@@ -387,3 +397,15 @@
spi-cpha;
};
};
+
+&pci0 {
+ status = "okay";
+ pinctrl-0 = <&usb0_pins>;
+ pinctrl-names = "default";
+};
+
+&pci1 {
+ status = "okay";
+ pinctrl-0 = <&usb1_pins>;
+ pinctrl-names = "default";
+};
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-04-07 22:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-07 22:48 [PATCH 0/2] Add PCI USB DT support for R8A7791/Koelsch reference board Sergei Shtylyov
2014-04-07 22:49 ` [PATCH 1/2] ARM: shmobile: r8a7791: add internal PCI bridge nodes Sergei Shtylyov
2014-04-07 22:51 ` [PATCH 2/2] ARM: shmobile: koelsch: enable internal PCI Sergei Shtylyov
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).