* [PATCH v2 1/3] ARM: shmobile: r8a7791: add internal PCI bridge nodes
2014-05-19 21:48 [PATCH v2 0/3] Add R8A7791/Koelsch/Henninger board PCI DT support Sergei Shtylyov
@ 2014-05-19 21:52 ` Sergei Shtylyov
2014-05-20 8:04 ` Arnd Bergmann
2014-05-19 21:53 ` [PATCH v2 2/3] ARM: shmobile: koelsch: enable internal PCI Sergei Shtylyov
` (2 subsequent siblings)
3 siblings, 1 reply; 9+ messages in thread
From: Sergei Shtylyov @ 2014-05-19 21:52 UTC (permalink / raw)
To: horms, linux-sh, robh+dt, pawel.moll, mark.rutland,
ijc+devicetree, galak, devicetree
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>
---
Changes in version 2:
- added interrupt-related properties to the PCI device nodes;
- refreshed the patch.
arch/arm/boot/dts/r8a7791.dtsi | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
Index: renesas/arch/arm/boot/dts/r8a7791.dtsi
===================================================================
--- renesas.orig/arch/arm/boot/dts/r8a7791.dtsi
+++ renesas/arch/arm/boot/dts/r8a7791.dtsi
@@ -880,4 +880,40 @@
#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>;
+ #interrupt-cells = <1>;
+ interrupt-map-mask = <0xff00 0 0 0x7>;
+ interrupt-map = <0x0000 0 0 1 &gic 0 108 IRQ_TYPE_LEVEL_HIGH
+ 0x0800 0 0 1 &gic 0 108 IRQ_TYPE_LEVEL_HIGH
+ 0x1000 0 0 2 &gic 0 108 IRQ_TYPE_LEVEL_HIGH>;
+ };
+
+ 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>;
+ #interrupt-cells = <1>;
+ interrupt-map-mask = <0xff00 0 0 0x7>;
+ interrupt-map = <0x0000 0 0 1 &gic 0 113 IRQ_TYPE_LEVEL_HIGH
+ 0x0800 0 0 1 &gic 0 113 IRQ_TYPE_LEVEL_HIGH
+ 0x1000 0 0 2 &gic 0 113 IRQ_TYPE_LEVEL_HIGH>;
+ };
};
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v2 1/3] ARM: shmobile: r8a7791: add internal PCI bridge nodes
2014-05-19 21:52 ` [PATCH v2 1/3] ARM: shmobile: r8a7791: add internal PCI bridge nodes Sergei Shtylyov
@ 2014-05-20 8:04 ` Arnd Bergmann
2014-05-20 10:45 ` Sergei Shtylyov
0 siblings, 1 reply; 9+ messages in thread
From: Arnd Bergmann @ 2014-05-20 8:04 UTC (permalink / raw)
To: Sergei Shtylyov
Cc: mark.rutland, devicetree, linux, pawel.moll, ijc+devicetree,
linux-sh, magnus.damm, robh+dt, horms, galak, linux-arm-kernel
On Tuesday 20 May 2014 01:52:05 Sergei Shtylyov wrote:
> + interrupt-map-mask = <0xff00 0 0 0x7>;
> + interrupt-map = <0x0000 0 0 1 &gic 0 108 IRQ_TYPE_LEVEL_HIGH
> + 0x0800 0 0 1 &gic 0 108 IRQ_TYPE_LEVEL_HIGH
> + 0x1000 0 0 2 &gic 0 108 IRQ_TYPE_LEVEL_HIGH>;
Are there only internal devices on this PCI host?
If there are slots, the map should normally list all four interrupts
per slot in some way.
Arnd
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v2 1/3] ARM: shmobile: r8a7791: add internal PCI bridge nodes
2014-05-20 8:04 ` Arnd Bergmann
@ 2014-05-20 10:45 ` Sergei Shtylyov
0 siblings, 0 replies; 9+ messages in thread
From: Sergei Shtylyov @ 2014-05-20 10:45 UTC (permalink / raw)
To: Arnd Bergmann
Cc: horms, linux-sh, robh+dt, pawel.moll, mark.rutland,
ijc+devicetree, galak, devicetree, magnus.damm, linux,
linux-arm-kernel
Hello.
On 20-05-2014 12:04, Arnd Bergmann wrote:
>> + interrupt-map-mask = <0xff00 0 0 0x7>;
>> + interrupt-map = <0x0000 0 0 1 &gic 0 108 IRQ_TYPE_LEVEL_HIGH
>> + 0x0800 0 0 1 &gic 0 108 IRQ_TYPE_LEVEL_HIGH
>> + 0x1000 0 0 2 &gic 0 108 IRQ_TYPE_LEVEL_HIGH>;
> Are there only internal devices on this PCI host?
Yes, and all populated device slots are listed.
> Arnd
WBR, Sergei
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH v2 2/3] ARM: shmobile: koelsch: enable internal PCI
2014-05-19 21:48 [PATCH v2 0/3] Add R8A7791/Koelsch/Henninger board PCI DT support Sergei Shtylyov
2014-05-19 21:52 ` [PATCH v2 1/3] ARM: shmobile: r8a7791: add internal PCI bridge nodes Sergei Shtylyov
@ 2014-05-19 21:53 ` Sergei Shtylyov
2014-05-19 21:55 ` [PATCH v2 3/3] ARM: shmobile: henninger: " Sergei Shtylyov
2014-05-20 18:20 ` [PATCH v2 0/3] Add R8A7791/Koelsch/Henninger board PCI DT support Sergei Shtylyov
3 siblings, 0 replies; 9+ messages in thread
From: Sergei Shtylyov @ 2014-05-19 21:53 UTC (permalink / raw)
To: horms, linux-sh, robh+dt, pawel.moll, mark.rutland,
ijc+devicetree, galak, devicetree
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>
---
Changes in version 2:
- refreshed the patch.
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
@@ -293,6 +293,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 {
@@ -408,3 +418,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] 9+ messages in thread
* [PATCH v2 3/3] ARM: shmobile: henninger: enable internal PCI
2014-05-19 21:48 [PATCH v2 0/3] Add R8A7791/Koelsch/Henninger board PCI DT support Sergei Shtylyov
2014-05-19 21:52 ` [PATCH v2 1/3] ARM: shmobile: r8a7791: add internal PCI bridge nodes Sergei Shtylyov
2014-05-19 21:53 ` [PATCH v2 2/3] ARM: shmobile: koelsch: enable internal PCI Sergei Shtylyov
@ 2014-05-19 21:55 ` Sergei Shtylyov
2014-05-20 18:20 ` [PATCH v2 0/3] Add R8A7791/Koelsch/Henninger board PCI DT support Sergei Shtylyov
3 siblings, 0 replies; 9+ messages in thread
From: Sergei Shtylyov @ 2014-05-19 21:55 UTC (permalink / raw)
To: horms, linux-sh, robh+dt, pawel.moll, mark.rutland,
ijc+devicetree, galak, devicetree
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-henninger.dts | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
Index: renesas/arch/arm/boot/dts/r8a7791-henninger.dts
===================================================================
--- renesas.orig/arch/arm/boot/dts/r8a7791-henninger.dts
+++ renesas/arch/arm/boot/dts/r8a7791-henninger.dts
@@ -120,6 +120,16 @@
"msiof0_tx";
renesas,function = "msiof0";
};
+
+ usb0_pins: usb0 {
+ renesas,groups = "usb0";
+ renesas,function = "usb0";
+ };
+
+ usb1_pins: usb1 {
+ renesas,groups = "usb1";
+ renesas,function = "usb1";
+ };
};
&scif0 {
@@ -217,3 +227,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] 9+ messages in thread
* Re: [PATCH v2 0/3] Add R8A7791/Koelsch/Henninger board PCI DT support
2014-05-19 21:48 [PATCH v2 0/3] Add R8A7791/Koelsch/Henninger board PCI DT support Sergei Shtylyov
` (2 preceding siblings ...)
2014-05-19 21:55 ` [PATCH v2 3/3] ARM: shmobile: henninger: " Sergei Shtylyov
@ 2014-05-20 18:20 ` Sergei Shtylyov
2014-06-27 23:59 ` Simon Horman
3 siblings, 1 reply; 9+ messages in thread
From: Sergei Shtylyov @ 2014-05-20 18:20 UTC (permalink / raw)
To: horms, linux-sh, robh+dt, pawel.moll, mark.rutland,
ijc+devicetree, galak, devicetree
Cc: magnus.damm, linux, linux-arm-kernel
Hello.
On 05/20/2014 01:48 AM, Sergei Shtylyov wrote:
> Here's the set of 3 patches against Simon Horman's 'renesas.git' repo,
> 'renesas-devel-v3.15-rc5-20140517' tag. Here we add internal PCI support for
> the R8A7791-based Koelsch and Henninger boards for the sake of getting USB
> EHCI/OHCI working...
Forgot to mention that it depends on the internal PCI bridge device tree
support reposted just before these patches...
> [1/3] ARM: shmobile: r8a7791: add internal PCI bridge nodes
> [2/3] ARM: shmobile: koelsch: enable internal PCI
> [3/3] ARM: shmobile: henninger: enable internal PCI
WBR, Sergei
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v2 0/3] Add R8A7791/Koelsch/Henninger board PCI DT support
2014-05-20 18:20 ` [PATCH v2 0/3] Add R8A7791/Koelsch/Henninger board PCI DT support Sergei Shtylyov
@ 2014-06-27 23:59 ` Simon Horman
2014-06-28 0:17 ` Sergei Shtylyov
0 siblings, 1 reply; 9+ messages in thread
From: Simon Horman @ 2014-06-27 23:59 UTC (permalink / raw)
To: Sergei Shtylyov
Cc: linux-sh, robh+dt, pawel.moll, mark.rutland, ijc+devicetree,
galak, devicetree, magnus.damm, linux, linux-arm-kernel
On Tue, May 20, 2014 at 10:20:32PM +0400, Sergei Shtylyov wrote:
> Hello.
>
> On 05/20/2014 01:48 AM, Sergei Shtylyov wrote:
>
> > Here's the set of 3 patches against Simon Horman's 'renesas.git' repo,
> >'renesas-devel-v3.15-rc5-20140517' tag. Here we add internal PCI support for
> >the R8A7791-based Koelsch and Henninger boards for the sake of getting USB
> >EHCI/OHCI working...
>
> Forgot to mention that it depends on the internal PCI bridge device tree
> support reposted just before these patches...
>
> >[1/3] ARM: shmobile: r8a7791: add internal PCI bridge nodes
> >[2/3] ARM: shmobile: koelsch: enable internal PCI
> >[3/3] ARM: shmobile: henninger: enable internal PCI
Thanks, please repost these patches when the device tree support
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v2 0/3] Add R8A7791/Koelsch/Henninger board PCI DT support
2014-06-27 23:59 ` Simon Horman
@ 2014-06-28 0:17 ` Sergei Shtylyov
0 siblings, 0 replies; 9+ messages in thread
From: Sergei Shtylyov @ 2014-06-28 0:17 UTC (permalink / raw)
To: Simon Horman
Cc: linux-sh, robh+dt, pawel.moll, mark.rutland, ijc+devicetree,
galak, devicetree, magnus.damm, linux, linux-arm-kernel
Hello.
On 06/28/2014 03:59 AM, Simon Horman wrote:
>>> Here's the set of 3 patches against Simon Horman's 'renesas.git' repo,
>>> 'renesas-devel-v3.15-rc5-20140517' tag. Here we add internal PCI support for
>>> the R8A7791-based Koelsch and Henninger boards for the sake of getting USB
>>> EHCI/OHCI working...
>> Forgot to mention that it depends on the internal PCI bridge device tree
>> support reposted just before these patches...
>>> [1/3] ARM: shmobile: r8a7791: add internal PCI bridge nodes
>>> [2/3] ARM: shmobile: koelsch: enable internal PCI
>>> [3/3] ARM: shmobile: henninger: enable internal PCI
> Thanks, please repost these patches when the device tree support
Where did you get that old stuff? The current version of this patchset is
4, not 2!
WBR, Sergei
^ permalink raw reply [flat|nested] 9+ messages in thread