* [PATCH v2 0/8] SoC and board integration for RSPI on RZ/A1H @ 2013-12-27 20:15 Geert Uytterhoeven 2013-12-27 20:15 ` [PATCH v2 1/8] pinctrl: sh-pfc: r7s72100: Add RSPI support Geert Uytterhoeven ` (4 more replies) 0 siblings, 5 replies; 17+ messages in thread From: Geert Uytterhoeven @ 2013-12-27 20:15 UTC (permalink / raw) To: linux-sh; +Cc: linux-arm-kernel, linux-spi This patch series integrates Renesas RSPI on the RZ/A1H aka R7S72100 SoC, and the Genmai development board. The series is based on renesas-devel-v3.13-rc5-20131226, with Magnus' pinctrl, Wolfram's riic, and Simon's sh_eth work applied on top. It was tested on the Genmai development board (genmai-reference), using an in-kernel version of Documentation/spi/spidev_test.c, exercising loopback mode on rspi1, with the same outcome as the SDK reference code. Notes: 1. The proposed DT bindings also talk about QSPI on the R8A779x, as those SoCs use the same driver. 2. As the actual spi-rspi driver doesn't use DT yet, platform devices and spi board info are still used from C to instantiate SPI buses and their children, while pinctrl is performed by DT. 3. It will not work with the non-reference version of genmai, due to missing pinmux configuration in setup-r7s72100.c. 4. Patches [4/8] and [5/8] are new. [1/8] pinctrl: sh-pfc: r7s72100: Add RSPI support [2/8] ARM: shmobile: r7s72100: Add RSPI clocks [3/8] ARM: shmobile: r7s72100: Add RSPI platform devices [4/8] ARM: shmobile: genmai: Add RSPI children (NEW) [5/8] [RFC] ARM: shmobile: genmai: Add preliminary RSPI pinmux (NEW) [6/8] [RFC] Documentation: dt: Add Renesas RSPI/QSPI bindings [7/8] [RFC] ARM: shmobile: r7s72100 dtsi: Add RSPI nodes [8/8] [RFC] ARM: shmobile: genmai reference: Add RSPI nodes Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds ^ permalink raw reply [flat|nested] 17+ messages in thread
* [PATCH v2 1/8] pinctrl: sh-pfc: r7s72100: Add RSPI support 2013-12-27 20:15 [PATCH v2 0/8] SoC and board integration for RSPI on RZ/A1H Geert Uytterhoeven @ 2013-12-27 20:15 ` Geert Uytterhoeven 2013-12-27 20:16 ` [PATCH v2 6/8] [RFC] Documentation: dt: Add Renesas RSPI/QSPI bindings Geert Uytterhoeven ` (3 subsequent siblings) 4 siblings, 0 replies; 17+ messages in thread From: Geert Uytterhoeven @ 2013-12-27 20:15 UTC (permalink / raw) To: linux-sh; +Cc: linux-arm-kernel, linux-spi, Geert Uytterhoeven, Linus Walleij From: Geert Uytterhoeven <geert+renesas@linux-m68k.org> Signed-off-by: Geert Uytterhoeven <geert+renesas@linux-m68k.org> Cc: Linus Walleij <linus.walleij@linaro.org> --- v2: No changes drivers/pinctrl/sh-pfc/pfc-r7s72100.c | 94 +++++++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) diff --git a/drivers/pinctrl/sh-pfc/pfc-r7s72100.c b/drivers/pinctrl/sh-pfc/pfc-r7s72100.c index 267677c683c5..5e0f03c14fcc 100644 --- a/drivers/pinctrl/sh-pfc/pfc-r7s72100.c +++ b/drivers/pinctrl/sh-pfc/pfc-r7s72100.c @@ -138,6 +138,70 @@ RIIC1(RZ_PIN_AND_MUX) RIIC2(RZ_PIN_AND_MUX) RIIC3(RZ_PIN_AND_MUX) +#define RSPI0(fn) \ + fn(rspi0, rspck, 2, 12, 2) \ + fn(rspi0, ssl0, 2, 13, 2) \ + fn(rspi0, mosi, 2, 14, 2) \ + fn(rspi0, miso, 2, 15, 2) \ + fn(rspi0, rspck, 7, 15, 2) \ + fn(rspi0, ssl0, 8, 0, 2) \ + fn(rspi0, mosi, 8, 1, 2) \ + fn(rspi0, miso, 8, 2, 2) \ + fn(rspi0, rspck, 10, 12, 4) \ + fn(rspi0, ssl0, 10, 13, 4) \ + fn(rspi0, mosi, 10, 14, 4) \ + fn(rspi0, miso, 10, 15, 4) \ + +#define RSPI1(fn) \ + fn(rspi1, rspck, 4, 4, 2) \ + fn(rspi1, ssl0, 4, 5, 2) \ + fn(rspi1, mosi, 4, 6, 2) \ + fn(rspi1, miso, 4, 7, 2) \ + fn(rspi1, rspck, 6, 4, 7) \ + fn(rspi1, ssl0, 6, 5, 7) \ + fn(rspi1, mosi, 6, 6, 7) \ + fn(rspi1, miso, 6, 7, 7) \ + fn(rspi1, rspck, 11, 12, 2) \ + fn(rspi1, ssl0, 11, 13, 2) \ + fn(rspi1, mosi, 11, 14, 2) \ + fn(rspi1, miso, 11, 15, 2) \ + +#define RSPI2(fn) \ + fn(rspi2, rspck, 8, 3, 3) \ + fn(rspi2, ssl0, 8, 4, 3) \ + fn(rspi2, mosi, 8, 5, 3) \ + fn(rspi2, miso, 8, 6, 3) \ + fn(rspi2, rspck, 8, 14, 5) \ + fn(rspi2, ssl0, 8, 15, 5) \ + fn(rspi2, mosi, 9, 0, 5) \ + fn(rspi2, miso, 9, 1, 5) \ + +#define RSPI3(fn) \ + fn(rspi3, rspck, 3, 0, 8) \ + fn(rspi3, ssl0, 3, 1, 8) \ + fn(rspi3, mosi, 3, 2, 8) \ + fn(rspi3, miso, 3, 3, 8) \ + fn(rspi3, rspck, 5, 0, 8) \ + fn(rspi3, ssl0, 5, 1, 8) \ + fn(rspi3, mosi, 5, 2, 8) \ + fn(rspi3, miso, 5, 3, 8) \ + +#define RSPI4(fn) \ + fn(rspi4, rspck, 2, 8, 8) \ + fn(rspi4, ssl0, 2, 9, 8) \ + fn(rspi4, mosi, 2, 10, 8) \ + fn(rspi4, miso, 2, 11, 8) \ + fn(rspi4, rspck, 4, 0, 7) \ + fn(rspi4, ssl0, 4, 1, 7) \ + fn(rspi4, mosi, 4, 2, 7) \ + fn(rspi4, miso, 4, 3, 7) \ + +RSPI0(RZ_PIN_AND_MUX) +RSPI1(RZ_PIN_AND_MUX) +RSPI2(RZ_PIN_AND_MUX) +RSPI3(RZ_PIN_AND_MUX) +RSPI4(RZ_PIN_AND_MUX) + #define SCIF0(fn) \ fn(scif0, clk, 2, 13, 6) \ fn(scif0, txd, 2, 14, 6) \ @@ -312,6 +376,11 @@ static const struct sh_pfc_pin_group pinmux_groups[] = { RIIC1(RZ_PMX_GROUP) RIIC2(RZ_PMX_GROUP) RIIC3(RZ_PMX_GROUP) + RSPI0(RZ_PMX_GROUP) + RSPI1(RZ_PMX_GROUP) + RSPI2(RZ_PMX_GROUP) + RSPI3(RZ_PMX_GROUP) + RSPI4(RZ_PMX_GROUP) SCIF0(RZ_PMX_GROUP) SCIF1(RZ_PMX_GROUP) SCIF2(RZ_PMX_GROUP) @@ -339,6 +408,26 @@ static const char * const riic3_groups[] = { RIIC3(RZ_GROUPS) }; +static const char * const rspi0_groups[] = { + RSPI0(RZ_GROUPS) +}; + +static const char * const rspi1_groups[] = { + RSPI1(RZ_GROUPS) +}; + +static const char * const rspi2_groups[] = { + RSPI2(RZ_GROUPS) +}; + +static const char * const rspi3_groups[] = { + RSPI3(RZ_GROUPS) +}; + +static const char * const rspi4_groups[] = { + RSPI4(RZ_GROUPS) +}; + static const char * const scif0_groups[] = { SCIF0(RZ_GROUPS) }; @@ -380,6 +469,11 @@ static const struct sh_pfc_function pinmux_functions[] = { SH_PFC_FUNCTION(riic1), SH_PFC_FUNCTION(riic2), SH_PFC_FUNCTION(riic3), + SH_PFC_FUNCTION(rspi0), + SH_PFC_FUNCTION(rspi1), + SH_PFC_FUNCTION(rspi2), + SH_PFC_FUNCTION(rspi3), + SH_PFC_FUNCTION(rspi4), SH_PFC_FUNCTION(scif0), SH_PFC_FUNCTION(scif1), SH_PFC_FUNCTION(scif2), -- 1.7.9.5 ^ permalink raw reply related [flat|nested] 17+ messages in thread
* [PATCH v2 6/8] [RFC] Documentation: dt: Add Renesas RSPI/QSPI bindings 2013-12-27 20:15 [PATCH v2 0/8] SoC and board integration for RSPI on RZ/A1H Geert Uytterhoeven 2013-12-27 20:15 ` [PATCH v2 1/8] pinctrl: sh-pfc: r7s72100: Add RSPI support Geert Uytterhoeven @ 2013-12-27 20:16 ` Geert Uytterhoeven [not found] ` <1388175362-17132-7-git-send-email-geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org> 2013-12-27 20:16 ` [PATCH v2 7/8] [RFC] ARM: shmobile: r7s72100 dtsi: Add RSPI nodes Geert Uytterhoeven ` (2 subsequent siblings) 4 siblings, 1 reply; 17+ messages in thread From: Geert Uytterhoeven @ 2013-12-27 20:16 UTC (permalink / raw) To: linux-sh; +Cc: linux-arm-kernel, linux-spi, Geert Uytterhoeven, devicetree From: Geert Uytterhoeven <geert+renesas@linux-m68k.org> Signed-off-by: Geert Uytterhoeven <geert+renesas@linux-m68k.org> Cc: devicetree@vger.kernel.org --- v2: - Clarify RSPI/QSPI - Add interrupt-parent - s/should/must/ for #address-cells and #size-cells Documentation/devicetree/bindings/spi/spi-rspi.txt | 31 ++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/spi-rspi.txt diff --git a/Documentation/devicetree/bindings/spi/spi-rspi.txt b/Documentation/devicetree/bindings/spi/spi-rspi.txt new file mode 100644 index 000000000000..504db8917927 --- /dev/null +++ b/Documentation/devicetree/bindings/spi/spi-rspi.txt @@ -0,0 +1,31 @@ +Device tree configuration for Renesas RSPI/QSPI driver + +Required properties: +- compatible : For Renesas Serial Peripheral Interface: + "renesas,rspi-<soctype>", "renesas,rspi-rz" as fallback. + For Quad Serial Peripheral Interface: + "renesas,qspi-<soctype>", "renesas,qspi-rcar" as fallback. +- reg : address start and address range size of device +- interrupts : 3 interrupts for RSPI (SPEI, SPRI, SPTI), + 1 interrupt for QSPI +- interrupt-parent : the phandle for the interrupt controller that + services interrupts for this device. +- num-cs : Number of chip selects +- #address-cells : must be <1> +- #size-cells : must be <0> + +Pinctrl properties might be needed, too. See there. + +Example: + + spi0: spi@e800c800 { + compatible = "renesas,rspi-r7s72100", "renesas,rspi-rz"; + reg = <0xe800c800 0x24>; + interrupts = <0 238 IRQ_TYPE_LEVEL_HIGH>, + <0 239 IRQ_TYPE_LEVEL_HIGH>, + <0 240 IRQ_TYPE_LEVEL_HIGH>; + interrupt-parent = <&gic>; + num-cs = <1>; + #address-cells = <1>; + #size-cells = <0>; + }; -- 1.7.9.5 ^ permalink raw reply related [flat|nested] 17+ messages in thread
[parent not found: <1388175362-17132-7-git-send-email-geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org>]
* Re: [PATCH v2 6/8] [RFC] Documentation: dt: Add Renesas RSPI/QSPI bindings [not found] ` <1388175362-17132-7-git-send-email-geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org> @ 2013-12-30 12:58 ` Mark Brown 2013-12-30 13:43 ` Geert Uytterhoeven 0 siblings, 1 reply; 17+ messages in thread From: Mark Brown @ 2013-12-30 12:58 UTC (permalink / raw) To: Geert Uytterhoeven Cc: linux-sh-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-spi-u79uwXL29TY76Z2rM5mHXA, Geert Uytterhoeven, devicetree-u79uwXL29TY76Z2rM5mHXA [-- Attachment #1: Type: text/plain, Size: 674 bytes --] On Fri, Dec 27, 2013 at 09:16:00PM +0100, Geert Uytterhoeven wrote: > From: Geert Uytterhoeven <geert+renesas-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org> > > Signed-off-by: Geert Uytterhoeven <geert+renesas-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org> > Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org You've not CCed any maintainers on any of this stuff so I'm assuming you don't want any review or the patches applying. You should in general always CC maintainers, things that only go to the list can easily be missed. However I did take a brief look... > +- num-cs : Number of chip selects Why is this variable and how does this map onto hardware? [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 836 bytes --] ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH v2 6/8] [RFC] Documentation: dt: Add Renesas RSPI/QSPI bindings 2013-12-30 12:58 ` Mark Brown @ 2013-12-30 13:43 ` Geert Uytterhoeven 2013-12-30 13:50 ` Mark Brown 0 siblings, 1 reply; 17+ messages in thread From: Geert Uytterhoeven @ 2013-12-30 13:43 UTC (permalink / raw) To: Mark Brown Cc: Linux-sh list, linux-arm-kernel@lists.infradead.org, linux-spi, Geert Uytterhoeven, devicetree@vger.kernel.org On Mon, Dec 30, 2013 at 1:58 PM, Mark Brown <broonie@kernel.org> wrote: > On Fri, Dec 27, 2013 at 09:16:00PM +0100, Geert Uytterhoeven wrote: >> From: Geert Uytterhoeven <geert+renesas@linux-m68k.org> >> >> Signed-off-by: Geert Uytterhoeven <geert+renesas@linux-m68k.org> >> Cc: devicetree@vger.kernel.org > > You've not CCed any maintainers on any of this stuff so I'm assuming you > don't want any review or the patches applying. You should in general Sorry, this was indeed not meant to be applied yet, hence the [RFC]. Will CC you explicitly next time. > always CC maintainers, things that only go to the list can easily be > missed. However I did take a brief look... Thanks! >> +- num-cs : Number of chip selects > > Why is this variable and how does this map onto hardware? It's my understanding that legacy RSPi on SH7757 has 2 chip selects, while other RSPI implementations have 1 chip select. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH v2 6/8] [RFC] Documentation: dt: Add Renesas RSPI/QSPI bindings 2013-12-30 13:43 ` Geert Uytterhoeven @ 2013-12-30 13:50 ` Mark Brown 0 siblings, 0 replies; 17+ messages in thread From: Mark Brown @ 2013-12-30 13:50 UTC (permalink / raw) To: Geert Uytterhoeven Cc: Linux-sh list, linux-arm-kernel@lists.infradead.org, linux-spi, Geert Uytterhoeven, devicetree@vger.kernel.org [-- Attachment #1: Type: text/plain, Size: 698 bytes --] On Mon, Dec 30, 2013 at 02:43:53PM +0100, Geert Uytterhoeven wrote: > On Mon, Dec 30, 2013 at 1:58 PM, Mark Brown <broonie@kernel.org> wrote: > > On Fri, Dec 27, 2013 at 09:16:00PM +0100, Geert Uytterhoeven wrote: > >> +- num-cs : Number of chip selects > > Why is this variable and how does this map onto hardware? > It's my understanding that legacy RSPi on SH7757 has 2 chip selects, > while other RSPI implementations have 1 chip select. So this should be documented in the binding document in a way that allows someone reading the document and looking at the datasheet to figure out how to pick the value (for example, refer to how the chip selects are controlled in the hardware). [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 836 bytes --] ^ permalink raw reply [flat|nested] 17+ messages in thread
* [PATCH v2 7/8] [RFC] ARM: shmobile: r7s72100 dtsi: Add RSPI nodes 2013-12-27 20:15 [PATCH v2 0/8] SoC and board integration for RSPI on RZ/A1H Geert Uytterhoeven 2013-12-27 20:15 ` [PATCH v2 1/8] pinctrl: sh-pfc: r7s72100: Add RSPI support Geert Uytterhoeven 2013-12-27 20:16 ` [PATCH v2 6/8] [RFC] Documentation: dt: Add Renesas RSPI/QSPI bindings Geert Uytterhoeven @ 2013-12-27 20:16 ` Geert Uytterhoeven 2013-12-27 20:16 ` [PATCH v2 8/8] [RFC] ARM: shmobile: genmai reference: " Geert Uytterhoeven [not found] ` <1388175362-17132-1-git-send-email-geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org> 4 siblings, 0 replies; 17+ messages in thread From: Geert Uytterhoeven @ 2013-12-27 20:16 UTC (permalink / raw) To: linux-sh; +Cc: linux-arm-kernel, linux-spi, Geert Uytterhoeven, devicetree From: Geert Uytterhoeven <geert+renesas@linux-m68k.org> Signed-off-by: Geert Uytterhoeven <geert+renesas@linux-m68k.org> Cc: devicetree@vger.kernel.org --- v2: No changes arch/arm/boot/dts/r7s72100.dtsi | 65 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/arch/arm/boot/dts/r7s72100.dtsi b/arch/arm/boot/dts/r7s72100.dtsi index ff0bd6be454f..42e9b423476c 100644 --- a/arch/arm/boot/dts/r7s72100.dtsi +++ b/arch/arm/boot/dts/r7s72100.dtsi @@ -34,6 +34,11 @@ gpio10 = &port10; gpio11 = &port11; gpio12 = &jtagport0; + spi0 = &spi0; + spi1 = &spi1; + spi2 = &spi2; + spi3 = &spi3; + spi4 = &spi4; }; cpus { @@ -289,4 +294,64 @@ clock-frequency = <100000>; status = "disabled"; }; + + spi0: spi@e800c800 { + compatible = "renesas,rspi-r7s72100", "renesas,rspi-rz"; + reg = <0xe800c800 0x24>; + interrupts = <0 238 IRQ_TYPE_LEVEL_HIGH>, + <0 239 IRQ_TYPE_LEVEL_HIGH>, + <0 240 IRQ_TYPE_LEVEL_HIGH>; + num-cs = <1>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + spi1: spi@e800d000 { + compatible = "renesas,rspi-r7s72100", "renesas,rspi-rz"; + reg = <0xe800d000 0x24>; + interrupts = <0 241 IRQ_TYPE_LEVEL_HIGH>, + <0 242 IRQ_TYPE_LEVEL_HIGH>, + <0 243 IRQ_TYPE_LEVEL_HIGH>; + num-cs = <1>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + spi2: spi@e800d800 { + compatible = "renesas,rspi-r7s72100", "renesas,rspi-rz"; + reg = <0xe800d800 0x24>; + interrupts = <0 244 IRQ_TYPE_LEVEL_HIGH>, + <0 245 IRQ_TYPE_LEVEL_HIGH>, + <0 246 IRQ_TYPE_LEVEL_HIGH>; + num-cs = <1>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + spi3: spi@e800e000 { + compatible = "renesas,rspi-r7s72100", "renesas,rspi-rz"; + reg = <0xe800e000 0x24>; + interrupts = <0 247 IRQ_TYPE_LEVEL_HIGH>, + <0 248 IRQ_TYPE_LEVEL_HIGH>, + <0 249 IRQ_TYPE_LEVEL_HIGH>; + num-cs = <1>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + spi4: spi@e800e800 { + compatible = "renesas,rspi-r7s72100", "renesas,rspi-rz"; + reg = <0xe800e800 0x24>; + interrupts = <0 250 IRQ_TYPE_LEVEL_HIGH>, + <0 251 IRQ_TYPE_LEVEL_HIGH>, + <0 252 IRQ_TYPE_LEVEL_HIGH>; + num-cs = <1>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; }; -- 1.7.9.5 ^ permalink raw reply related [flat|nested] 17+ messages in thread
* [PATCH v2 8/8] [RFC] ARM: shmobile: genmai reference: Add RSPI nodes 2013-12-27 20:15 [PATCH v2 0/8] SoC and board integration for RSPI on RZ/A1H Geert Uytterhoeven ` (2 preceding siblings ...) 2013-12-27 20:16 ` [PATCH v2 7/8] [RFC] ARM: shmobile: r7s72100 dtsi: Add RSPI nodes Geert Uytterhoeven @ 2013-12-27 20:16 ` Geert Uytterhoeven [not found] ` <1388175362-17132-1-git-send-email-geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org> 4 siblings, 0 replies; 17+ messages in thread From: Geert Uytterhoeven @ 2013-12-27 20:16 UTC (permalink / raw) To: linux-sh; +Cc: linux-arm-kernel, linux-spi, Geert Uytterhoeven, devicetree From: Geert Uytterhoeven <geert+renesas@linux-m68k.org> Add pinctrl and SPI devices for RSPI on Genmai. On this board, only rspi4 is in use. Its bus contains a single device (a wm8978 audio codec), for which no bindings are defined yet. Signed-off-by: Geert Uytterhoeven <geert+renesas@linux-m68k.org> Cc: devicetree@vger.kernel.org --- v2: Use generic "codec" instead of specific "wm8978" node name. arch/arm/boot/dts/r7s72100-genmai-reference.dts | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r7s72100-genmai-reference.dts b/arch/arm/boot/dts/r7s72100-genmai-reference.dts index 367af5c133e0..c2cc4bd5a470 100644 --- a/arch/arm/boot/dts/r7s72100-genmai-reference.dts +++ b/arch/arm/boot/dts/r7s72100-genmai-reference.dts @@ -43,7 +43,7 @@ }; &pfc { - pinctrl-0 = <&scif2_pins ðernet_pins>; + pinctrl-0 = <&scif2_pins ðernet_pins &rspi4_pins>; pinctrl-names = "default"; scif2_pins: serial2 { @@ -73,6 +73,12 @@ "ethernet_int_p1_15"; renesas,function = "ethernet"; }; + + rspi4_pins: spi4 { + renesas,groups = "rspi4_rspck_p4_0", "rspi4_ssl0_p4_1", + "rspi4_mosi_p4_2", "rspi4_miso_p4_3"; + renesas,function = "rspi4"; + }; }; &i2c2 { @@ -85,3 +91,13 @@ pagesize = <64>; }; }; + +&spi4 { + status = "okay"; + + codec: codec@0 { + compatible = "wlf,wm8978"; + reg = <0>; + spi-max-frequency = <5000000>; + }; +}; -- 1.7.9.5 ^ permalink raw reply related [flat|nested] 17+ messages in thread
[parent not found: <1388175362-17132-1-git-send-email-geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org>]
* [PATCH v2 2/8] ARM: shmobile: r7s72100: Add RSPI clocks [not found] ` <1388175362-17132-1-git-send-email-geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org> @ 2013-12-27 20:15 ` Geert Uytterhoeven 2013-12-27 20:15 ` [PATCH v2 3/8] ARM: shmobile: r7s72100: Add RSPI platform devices Geert Uytterhoeven ` (3 subsequent siblings) 4 siblings, 0 replies; 17+ messages in thread From: Geert Uytterhoeven @ 2013-12-27 20:15 UTC (permalink / raw) To: linux-sh-u79uwXL29TY76Z2rM5mHXA Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-spi-u79uwXL29TY76Z2rM5mHXA, Geert Uytterhoeven From: Geert Uytterhoeven <geert+renesas-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org> Signed-off-by: Geert Uytterhoeven <geert+renesas-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org> --- v2: Correct platform device names ("rspi%u" -> "rspi.%u") arch/arm/mach-shmobile/clock-r7s72100.c | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-shmobile/clock-r7s72100.c b/arch/arm/mach-shmobile/clock-r7s72100.c index 0242ca5f499a..6ae341ca713c 100644 --- a/arch/arm/mach-shmobile/clock-r7s72100.c +++ b/arch/arm/mach-shmobile/clock-r7s72100.c @@ -22,13 +22,15 @@ #include <mach/common.h> #include <mach/r7s72100.h> -/* registers */ +/* Frequency Control Registers */ #define FRQCR 0xfcfe0010 #define FRQCR2 0xfcfe0014 +/* Standby Control Registers */ #define STBCR3 0xfcfe0420 #define STBCR4 0xfcfe0424 #define STBCR7 0xfcfe0430 #define STBCR9 0xfcfe0438 +#define STBCR10 0xfcfe043c #define PLL_RATE 30 @@ -146,12 +148,20 @@ struct clk div4_clks[DIV4_NR] = { | CLK_ENABLE_ON_INIT), }; -enum { MSTP97, MSTP96, MSTP95, MSTP94, +enum { + MSTP107, MSTP106, MSTP105, MSTP104, MSTP103, + MSTP97, MSTP96, MSTP95, MSTP94, MSTP74, MSTP47, MSTP46, MSTP45, MSTP44, MSTP43, MSTP42, MSTP41, MSTP40, - MSTP33, MSTP_NR }; + MSTP33, MSTP_NR +}; static struct clk mstp_clks[MSTP_NR] = { + [MSTP107] = SH_CLK_MSTP8(&peripheral1_clk, STBCR10, 7, 0), /* RSPI0 */ + [MSTP106] = SH_CLK_MSTP8(&peripheral1_clk, STBCR10, 6, 0), /* RSPI1 */ + [MSTP105] = SH_CLK_MSTP8(&peripheral1_clk, STBCR10, 5, 0), /* RSPI2 */ + [MSTP104] = SH_CLK_MSTP8(&peripheral1_clk, STBCR10, 4, 0), /* RSPI3 */ + [MSTP103] = SH_CLK_MSTP8(&peripheral1_clk, STBCR10, 3, 0), /* RSPI4 */ [MSTP97] = SH_CLK_MSTP8(&peripheral0_clk, STBCR9, 7, 0), /* RIIC0 */ [MSTP96] = SH_CLK_MSTP8(&peripheral0_clk, STBCR9, 6, 0), /* RIIC1 */ [MSTP95] = SH_CLK_MSTP8(&peripheral0_clk, STBCR9, 5, 0), /* RIIC2 */ @@ -179,6 +189,11 @@ static struct clk_lookup lookups[] = { CLKDEV_CON_ID("cpu_clk", &div4_clks[DIV4_I]), /* MSTP clocks */ + CLKDEV_DEV_ID("rspi.0", &mstp_clks[MSTP107]), + CLKDEV_DEV_ID("rspi.1", &mstp_clks[MSTP106]), + CLKDEV_DEV_ID("rspi.2", &mstp_clks[MSTP105]), + CLKDEV_DEV_ID("rspi.3", &mstp_clks[MSTP104]), + CLKDEV_DEV_ID("rspi.4", &mstp_clks[MSTP103]), CLKDEV_DEV_ID("fcfee000.i2c", &mstp_clks[MSTP97]), CLKDEV_DEV_ID("fcfee400.i2c", &mstp_clks[MSTP96]), CLKDEV_DEV_ID("fcfee800.i2c", &mstp_clks[MSTP95]), -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 17+ messages in thread
* [PATCH v2 3/8] ARM: shmobile: r7s72100: Add RSPI platform devices [not found] ` <1388175362-17132-1-git-send-email-geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org> 2013-12-27 20:15 ` [PATCH v2 2/8] ARM: shmobile: r7s72100: Add RSPI clocks Geert Uytterhoeven @ 2013-12-27 20:15 ` Geert Uytterhoeven 2013-12-27 20:15 ` [PATCH v2 4/8] ARM: shmobile: genmai: Add RSPI children Geert Uytterhoeven ` (2 subsequent siblings) 4 siblings, 0 replies; 17+ messages in thread From: Geert Uytterhoeven @ 2013-12-27 20:15 UTC (permalink / raw) To: linux-sh-u79uwXL29TY76Z2rM5mHXA Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-spi-u79uwXL29TY76Z2rM5mHXA, Geert Uytterhoeven From: Geert Uytterhoeven <geert+renesas-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org> Signed-off-by: Geert Uytterhoeven <geert+renesas-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org> --- v2: - Correct platform device names ("rspi%u.0" -> "rspi.%u") - Add missing platform data - Correct summary (resources -> platform devices) arch/arm/mach-shmobile/setup-r7s72100.c | 34 +++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/arch/arm/mach-shmobile/setup-r7s72100.c b/arch/arm/mach-shmobile/setup-r7s72100.c index 9c0b3a9d5f7a..c353549cad03 100644 --- a/arch/arm/mach-shmobile/setup-r7s72100.c +++ b/arch/arm/mach-shmobile/setup-r7s72100.c @@ -23,6 +23,7 @@ #include <linux/of_platform.h> #include <linux/serial_sci.h> #include <linux/sh_timer.h> +#include <linux/spi/rspi.h> #include <mach/common.h> #include <mach/irqs.h> #include <mach/r7s72100.h> @@ -81,6 +82,34 @@ static struct resource mtu2_0_resources[] __initdata = { &mtu2_##idx##_platform_data, \ sizeof(struct sh_timer_config)) +/* RSPI */ +#define RSPI_RESOURCE(idx, baseaddr, irq) \ +static const struct resource rspi##idx##_resources[] __initconst = { \ + DEFINE_RES_MEM(baseaddr, 0x24), \ + DEFINE_RES_IRQ(irq), /* SPEI */ \ + DEFINE_RES_IRQ(irq + 1), /* SPRI */ \ + DEFINE_RES_IRQ(irq + 2), /* SPTI */ \ +} + +RSPI_RESOURCE(0, 0xe800c800, gic_iid(270)); +RSPI_RESOURCE(1, 0xe800d000, gic_iid(273)); +RSPI_RESOURCE(2, 0xe800d800, gic_iid(276)); +RSPI_RESOURCE(3, 0xe800e000, gic_iid(279)); +RSPI_RESOURCE(4, 0xe800e800, gic_iid(282)); + +static const struct rspi_plat_data rspi_pdata __initconst = { + .data_width = 8, + .txmode = false, + .spcr2 = false, + .num_chipselect = 1, +}; + +#define r7s72100_register_rspi(idx) \ + platform_device_register_resndata(&platform_bus, "rspi", idx, \ + rspi##idx##_resources, \ + ARRAY_SIZE(rspi##idx##_resources), \ + &rspi_pdata, sizeof(rspi_pdata)) + void __init r7s72100_add_dt_devices(void) { r7s72100_register_scif(0); @@ -92,6 +121,11 @@ void __init r7s72100_add_dt_devices(void) r7s72100_register_scif(6); r7s72100_register_scif(7); r7s72100_register_mtu2(0); + r7s72100_register_rspi(0); + r7s72100_register_rspi(1); + r7s72100_register_rspi(2); + r7s72100_register_rspi(3); + r7s72100_register_rspi(4); } void __init r7s72100_init_early(void) -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 17+ messages in thread
* [PATCH v2 4/8] ARM: shmobile: genmai: Add RSPI children [not found] ` <1388175362-17132-1-git-send-email-geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org> 2013-12-27 20:15 ` [PATCH v2 2/8] ARM: shmobile: r7s72100: Add RSPI clocks Geert Uytterhoeven 2013-12-27 20:15 ` [PATCH v2 3/8] ARM: shmobile: r7s72100: Add RSPI platform devices Geert Uytterhoeven @ 2013-12-27 20:15 ` Geert Uytterhoeven 2013-12-27 20:15 ` [PATCH v2 5/8] [RFC] ARM: shmobile: genmai: Add preliminary RSPI pinmux setup Geert Uytterhoeven 2014-01-07 1:26 ` [PATCH v2 0/8] SoC and board integration for RSPI on RZ/A1H Simon Horman 4 siblings, 0 replies; 17+ messages in thread From: Geert Uytterhoeven @ 2013-12-27 20:15 UTC (permalink / raw) To: linux-sh-u79uwXL29TY76Z2rM5mHXA Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-spi-u79uwXL29TY76Z2rM5mHXA, Geert Uytterhoeven From: Geert Uytterhoeven <geert+renesas-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org> On this board, only rspi4 is in use. Its bus contains a single device (a wm8978 audio codec). As the RSPI driver itself doesn't use DT yet, we have to instantiate the SPI child device in C code, too, for both genmai and genmai-reference. Signed-off-by: Geert Uytterhoeven <geert+renesas-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org> --- New in v2 arch/arm/mach-shmobile/board-genmai-reference.c | 11 +++++++++++ arch/arm/mach-shmobile/board-genmai.c | 11 +++++++++++ 2 files changed, 22 insertions(+) diff --git a/arch/arm/mach-shmobile/board-genmai-reference.c b/arch/arm/mach-shmobile/board-genmai-reference.c index 7630c1053e32..2f8094b3add2 100644 --- a/arch/arm/mach-shmobile/board-genmai-reference.c +++ b/arch/arm/mach-shmobile/board-genmai-reference.c @@ -21,11 +21,21 @@ #include <linux/clk-provider.h> #include <linux/kernel.h> #include <linux/of_platform.h> +#include <linux/spi/spi.h> #include <mach/common.h> #include <mach/r7s72100.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> +static const struct spi_board_info spi_info[] __initconst = { + { + .modalias = "wm8978", + .max_speed_hz = 5000000, + .bus_num = 4, + .chip_select = 0, + }, +}; + static void __init genmai_add_standard_devices(void) { #ifdef CONFIG_COMMON_CLK @@ -34,6 +44,7 @@ static void __init genmai_add_standard_devices(void) r7s72100_clock_init(); #endif r7s72100_add_dt_devices(); + spi_register_board_info(spi_info, ARRAY_SIZE(spi_info)); of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); } diff --git a/arch/arm/mach-shmobile/board-genmai.c b/arch/arm/mach-shmobile/board-genmai.c index a1f6fe1fb06f..7c912d337828 100644 --- a/arch/arm/mach-shmobile/board-genmai.c +++ b/arch/arm/mach-shmobile/board-genmai.c @@ -21,6 +21,7 @@ #include <linux/kernel.h> #include <linux/platform_device.h> #include <linux/sh_eth.h> +#include <linux/spi/spi.h> #include <mach/common.h> #include <mach/irqs.h> #include <mach/r7s72100.h> @@ -41,11 +42,21 @@ static const struct resource ether_resources[] __initconst = { DEFINE_RES_IRQ(gic_iid(359)), }; +static const struct spi_board_info spi_info[] __initconst = { + { + .modalias = "wm8978", + .max_speed_hz = 5000000, + .bus_num = 4, + .chip_select = 0, + }, +}; + static void __init genmai_add_standard_devices(void) { r7s72100_clock_init(); r7s72100_add_dt_devices(); + spi_register_board_info(spi_info, ARRAY_SIZE(spi_info)); platform_device_register_resndata(&platform_bus, "r7s72100-ether", -1, ether_resources, ARRAY_SIZE(ether_resources), -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 17+ messages in thread
* [PATCH v2 5/8] [RFC] ARM: shmobile: genmai: Add preliminary RSPI pinmux setup [not found] ` <1388175362-17132-1-git-send-email-geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org> ` (2 preceding siblings ...) 2013-12-27 20:15 ` [PATCH v2 4/8] ARM: shmobile: genmai: Add RSPI children Geert Uytterhoeven @ 2013-12-27 20:15 ` Geert Uytterhoeven 2014-01-07 1:26 ` [PATCH v2 0/8] SoC and board integration for RSPI on RZ/A1H Simon Horman 4 siblings, 0 replies; 17+ messages in thread From: Geert Uytterhoeven @ 2013-12-27 20:15 UTC (permalink / raw) To: linux-sh-u79uwXL29TY76Z2rM5mHXA Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-spi-u79uwXL29TY76Z2rM5mHXA, Geert Uytterhoeven From: Geert Uytterhoeven <geert+renesas-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org> This does not work as there's no pinmux configuration in setup-r7s72100.c yet. Signed-off-by: Geert Uytterhoeven <geert+renesas-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org> --- New in v2 arch/arm/mach-shmobile/board-genmai.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm/mach-shmobile/board-genmai.c b/arch/arm/mach-shmobile/board-genmai.c index 7c912d337828..d89d87ac1c6f 100644 --- a/arch/arm/mach-shmobile/board-genmai.c +++ b/arch/arm/mach-shmobile/board-genmai.c @@ -19,6 +19,7 @@ */ #include <linux/kernel.h> +#include <linux/pinctrl/machine.h> #include <linux/platform_device.h> #include <linux/sh_eth.h> #include <linux/spi/spi.h> @@ -51,9 +52,25 @@ static const struct spi_board_info spi_info[] __initconst = { }, }; +static const struct pinctrl_map genmai_pinctrl_map[] = { + /* RSPI4 */ + PIN_MAP_MUX_GROUP_DEFAULT("rspi.4", "pfc-r7s72100", + "rspi4_rspck_p4_0", "rspi4"), + PIN_MAP_MUX_GROUP_DEFAULT("rspi.4", "pfc-r7s72100", + "rspi4_ssl0_p4_1", "rspi4"), + PIN_MAP_MUX_GROUP_DEFAULT("rspi.4", "pfc-r7s72100", + "rspi4_mosi_p4_2", "rspi4"), + PIN_MAP_MUX_GROUP_DEFAULT("rspi.4", "pfc-r7s72100", + "rspi4_miso_p4_3", "rspi4"), +}; + static void __init genmai_add_standard_devices(void) { r7s72100_clock_init(); + pinctrl_register_mappings(genmai_pinctrl_map, + ARRAY_SIZE(genmai_pinctrl_map)); + /* FIXME there's no pinmux configuration in setup-r7s72100.c yet */ + /* r7s72100_pinmux_init(); */ r7s72100_add_dt_devices(); spi_register_board_info(spi_info, ARRAY_SIZE(spi_info)); -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 17+ messages in thread
* Re: [PATCH v2 0/8] SoC and board integration for RSPI on RZ/A1H [not found] ` <1388175362-17132-1-git-send-email-geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org> ` (3 preceding siblings ...) 2013-12-27 20:15 ` [PATCH v2 5/8] [RFC] ARM: shmobile: genmai: Add preliminary RSPI pinmux setup Geert Uytterhoeven @ 2014-01-07 1:26 ` Simon Horman [not found] ` <20140107012628.GD2196-/R6kz+dDXgpPR4JQBCEnsQ@public.gmane.org> 4 siblings, 1 reply; 17+ messages in thread From: Simon Horman @ 2014-01-07 1:26 UTC (permalink / raw) To: Geert Uytterhoeven Cc: linux-sh-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-spi-u79uwXL29TY76Z2rM5mHXA On Fri, Dec 27, 2013 at 09:15:54PM +0100, Geert Uytterhoeven wrote: > This patch series integrates Renesas RSPI on the RZ/A1H aka R7S72100 SoC, > and the Genmai development board. > > The series is based on renesas-devel-v3.13-rc5-20131226, with Magnus' > pinctrl, Wolfram's riic, and Simon's sh_eth work applied on top. > > It was tested on the Genmai development board (genmai-reference), using > an in-kernel version of Documentation/spi/spidev_test.c, exercising > loopback mode on rspi1, with the same outcome as the SDK reference code. > > Notes: > 1. The proposed DT bindings also talk about QSPI on the R8A779x, as those > SoCs use the same driver. > 2. As the actual spi-rspi driver doesn't use DT yet, platform devices and > spi board info are still used from C to instantiate SPI buses and their > children, while pinctrl is performed by DT. > 3. It will not work with the non-reference version of genmai, due to > missing pinmux configuration in setup-r7s72100.c. > 4. Patches [4/8] and [5/8] are new. > > [1/8] pinctrl: sh-pfc: r7s72100: Add RSPI support I believe that Laurent should handle this. > [2/8] ARM: shmobile: r7s72100: Add RSPI clocks This seems fine and independent of the other patches. But unfortunately it no longer applies. Feel free to rebase it if you would like me to queue it up sooner than later. > [3/8] ARM: shmobile: r7s72100: Add RSPI platform devices I assume this depends on 1/3. Please add a patch to update the koelsch defconfig. > [4/8] ARM: shmobile: genmai: Add RSPI children (NEW) This seems reasonable but I assume it depends on earlier patches. Please add a patch to update the koelsch defconfig or Kconfig. > [5/8] [RFC] ARM: shmobile: genmai: Add preliminary RSPI pinmux (NEW) > [6/8] [RFC] Documentation: dt: Add Renesas RSPI/QSPI bindings > [7/8] [RFC] ARM: shmobile: r7s72100 dtsi: Add RSPI nodes > [8/8] [RFC] ARM: shmobile: genmai reference: Add RSPI nodes > > Gr{oetje,eeting}s, > > Geert > > -- > Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org > > In personal conversations with technical people, I call myself a hacker. But > when I'm talking to journalists I just say "programmer" or something like that. > -- Linus Torvalds > -- > To unsubscribe from this list: send the line "unsubscribe linux-sh" in > the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 17+ messages in thread
[parent not found: <20140107012628.GD2196-/R6kz+dDXgpPR4JQBCEnsQ@public.gmane.org>]
* Re: [PATCH v2 0/8] SoC and board integration for RSPI on RZ/A1H [not found] ` <20140107012628.GD2196-/R6kz+dDXgpPR4JQBCEnsQ@public.gmane.org> @ 2014-01-07 8:31 ` Geert Uytterhoeven [not found] ` <CAMuHMdW5e74keNhRkSG6q6crGWZ0Gqtb5-hntbCUNm7Md78Bcw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2014-01-07 15:01 ` Laurent Pinchart 1 sibling, 1 reply; 17+ messages in thread From: Geert Uytterhoeven @ 2014-01-07 8:31 UTC (permalink / raw) To: Simon Horman, Magnus Damm Cc: Linux-sh list, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-spi-u79uwXL29TY76Z2rM5mHXA On Tue, Jan 7, 2014 at 2:26 AM, Simon Horman <horms-/R6kz+dDXgpPR4JQBCEnsQ@public.gmane.org> wrote: >> [1/8] pinctrl: sh-pfc: r7s72100: Add RSPI support > > I believe that Laurent should handle this. Don't you mean Magnus? This is RZ/A1H, not R-Car. >> [2/8] ARM: shmobile: r7s72100: Add RSPI clocks > > This seems fine and independent of the other patches. > But unfortunately it no longer applies. > > Feel free to rebase it if you would like me to queue it up sooner > than later. Will do. >> [3/8] ARM: shmobile: r7s72100: Add RSPI platform devices > > I assume this depends on 1/3. 1/8? Or are you mixing up with 1/3 for Koelsch? Nevertheless, this just adds platform devices, so it should be fairly independent. > Please add a patch to update the koelsch defconfig. Genmai defconfig, not koelsch. >> [4/8] ARM: shmobile: genmai: Add RSPI children (NEW) > > This seems reasonable but I assume it depends on earlier patches. Yes, it's useless without 3/8. But I guess it will just fail to find the SPI bus. > Please add a patch to update the koelsch defconfig or Kconfig. Genmai ;-) Will do. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 17+ messages in thread
[parent not found: <CAMuHMdW5e74keNhRkSG6q6crGWZ0Gqtb5-hntbCUNm7Md78Bcw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: [PATCH v2 0/8] SoC and board integration for RSPI on RZ/A1H [not found] ` <CAMuHMdW5e74keNhRkSG6q6crGWZ0Gqtb5-hntbCUNm7Md78Bcw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2014-01-07 8:52 ` Simon Horman 0 siblings, 0 replies; 17+ messages in thread From: Simon Horman @ 2014-01-07 8:52 UTC (permalink / raw) To: Geert Uytterhoeven Cc: Magnus Damm, Linux-sh list, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-spi-u79uwXL29TY76Z2rM5mHXA On Tue, Jan 07, 2014 at 09:31:17AM +0100, Geert Uytterhoeven wrote: > On Tue, Jan 7, 2014 at 2:26 AM, Simon Horman <horms-/R6kz+dDXgpPR4JQBCEnsQ@public.gmane.org> wrote: > >> [1/8] pinctrl: sh-pfc: r7s72100: Add RSPI support > > > > I believe that Laurent should handle this. > > Don't you mean Magnus? This is RZ/A1H, not R-Car. > > >> [2/8] ARM: shmobile: r7s72100: Add RSPI clocks > > > > This seems fine and independent of the other patches. > > But unfortunately it no longer applies. > > > > Feel free to rebase it if you would like me to queue it up sooner > > than later. > > Will do. > > >> [3/8] ARM: shmobile: r7s72100: Add RSPI platform devices > > > > I assume this depends on 1/3. > > 1/8? Or are you mixing up with 1/3 for Koelsch? 1/8 > Nevertheless, this just adds platform devices, so it should be fairly > independent. Ok, thanks. It sounds like I will be able to queue it up once you repost the series. > > > Please add a patch to update the koelsch defconfig. > > Genmai defconfig, not koelsch. > > >> [4/8] ARM: shmobile: genmai: Add RSPI children (NEW) > > > > This seems reasonable but I assume it depends on earlier patches. > > Yes, it's useless without 3/8. But I guess it will just fail to find the > SPI bus. Useless is ok. Its just breakage that I'm concerned about these days :^) > > Please add a patch to update the koelsch defconfig or Kconfig. > > Genmai ;-) Will do. Yes, Genmai :) -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH v2 0/8] SoC and board integration for RSPI on RZ/A1H [not found] ` <20140107012628.GD2196-/R6kz+dDXgpPR4JQBCEnsQ@public.gmane.org> 2014-01-07 8:31 ` Geert Uytterhoeven @ 2014-01-07 15:01 ` Laurent Pinchart 2014-01-08 0:00 ` Simon Horman 1 sibling, 1 reply; 17+ messages in thread From: Laurent Pinchart @ 2014-01-07 15:01 UTC (permalink / raw) To: Simon Horman Cc: Geert Uytterhoeven, linux-sh-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-spi-u79uwXL29TY76Z2rM5mHXA Hi Simon, On Tuesday 07 January 2014 10:26:28 Simon Horman wrote: > On Fri, Dec 27, 2013 at 09:15:54PM +0100, Geert Uytterhoeven wrote: > > This patch series integrates Renesas RSPI on the RZ/A1H aka R7S72100 SoC, > > and the Genmai development board. > > > > The series is based on renesas-devel-v3.13-rc5-20131226, with Magnus' > > pinctrl, Wolfram's riic, and Simon's sh_eth work applied on top. > > > > It was tested on the Genmai development board (genmai-reference), using > > an in-kernel version of Documentation/spi/spidev_test.c, exercising > > loopback mode on rspi1, with the same outcome as the SDK reference code. > > > > Notes: > > 1. The proposed DT bindings also talk about QSPI on the R8A779x, as > > those SoCs use the same driver. > > > > 2. As the actual spi-rspi driver doesn't use DT yet, platform devices > > and spi board info are still used from C to instantiate SPI buses and > > their children, while pinctrl is performed by DT. > > > > 3. It will not work with the non-reference version of genmai, due to > > missing pinmux configuration in setup-r7s72100.c. > > > > 4. Patches [4/8] and [5/8] are new. > > > > [1/8] pinctrl: sh-pfc: r7s72100: Add RSPI support > > I believe that Laurent should handle this. I will, but I'm waiting for Magnus to resubmit the base r7s72100 pinctrl patch series. > > [2/8] ARM: shmobile: r7s72100: Add RSPI clocks > > This seems fine and independent of the other patches. > But unfortunately it no longer applies. > > Feel free to rebase it if you would like me to queue it up sooner > than later. > > > [3/8] ARM: shmobile: r7s72100: Add RSPI platform devices > > I assume this depends on 1/3. > > Please add a patch to update the koelsch defconfig. > > > [4/8] ARM: shmobile: genmai: Add RSPI children (NEW) > > This seems reasonable but I assume it depends on earlier patches. > > Please add a patch to update the koelsch defconfig or Kconfig. > > > [5/8] [RFC] ARM: shmobile: genmai: Add preliminary RSPI pinmux (NEW) > > [6/8] [RFC] Documentation: dt: Add Renesas RSPI/QSPI bindings > > [7/8] [RFC] ARM: shmobile: r7s72100 dtsi: Add RSPI nodes > > [8/8] [RFC] ARM: shmobile: genmai reference: Add RSPI nodes -- Regards, Laurent Pinchart -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH v2 0/8] SoC and board integration for RSPI on RZ/A1H 2014-01-07 15:01 ` Laurent Pinchart @ 2014-01-08 0:00 ` Simon Horman 0 siblings, 0 replies; 17+ messages in thread From: Simon Horman @ 2014-01-08 0:00 UTC (permalink / raw) To: Laurent Pinchart Cc: Geert Uytterhoeven, linux-sh, linux-arm-kernel, linux-spi On Tue, Jan 07, 2014 at 04:01:30PM +0100, Laurent Pinchart wrote: > Hi Simon, > > On Tuesday 07 January 2014 10:26:28 Simon Horman wrote: > > On Fri, Dec 27, 2013 at 09:15:54PM +0100, Geert Uytterhoeven wrote: > > > This patch series integrates Renesas RSPI on the RZ/A1H aka R7S72100 SoC, > > > and the Genmai development board. > > > > > > The series is based on renesas-devel-v3.13-rc5-20131226, with Magnus' > > > pinctrl, Wolfram's riic, and Simon's sh_eth work applied on top. > > > > > > It was tested on the Genmai development board (genmai-reference), using > > > an in-kernel version of Documentation/spi/spidev_test.c, exercising > > > loopback mode on rspi1, with the same outcome as the SDK reference code. > > > > > > Notes: > > > 1. The proposed DT bindings also talk about QSPI on the R8A779x, as > > > those SoCs use the same driver. > > > > > > 2. As the actual spi-rspi driver doesn't use DT yet, platform devices > > > and spi board info are still used from C to instantiate SPI buses and > > > their children, while pinctrl is performed by DT. > > > > > > 3. It will not work with the non-reference version of genmai, due to > > > missing pinmux configuration in setup-r7s72100.c. > > > > > > 4. Patches [4/8] and [5/8] are new. > > > > > > [1/8] pinctrl: sh-pfc: r7s72100: Add RSPI support > > > > I believe that Laurent should handle this. > > I will, but I'm waiting for Magnus to resubmit the base r7s72100 pinctrl patch > series. Got it. > > > [2/8] ARM: shmobile: r7s72100: Add RSPI clocks > > > > This seems fine and independent of the other patches. > > But unfortunately it no longer applies. > > > > Feel free to rebase it if you would like me to queue it up sooner > > than later. > > > > > [3/8] ARM: shmobile: r7s72100: Add RSPI platform devices > > > > I assume this depends on 1/3. > > > > Please add a patch to update the koelsch defconfig. > > > > > [4/8] ARM: shmobile: genmai: Add RSPI children (NEW) > > > > This seems reasonable but I assume it depends on earlier patches. > > > > Please add a patch to update the koelsch defconfig or Kconfig. > > > > > [5/8] [RFC] ARM: shmobile: genmai: Add preliminary RSPI pinmux (NEW) > > > [6/8] [RFC] Documentation: dt: Add Renesas RSPI/QSPI bindings > > > [7/8] [RFC] ARM: shmobile: r7s72100 dtsi: Add RSPI nodes > > > [8/8] [RFC] ARM: shmobile: genmai reference: Add RSPI nodes > > -- > Regards, > > Laurent Pinchart > > -- > To unsubscribe from this list: send the line "unsubscribe linux-sh" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > ^ permalink raw reply [flat|nested] 17+ messages in thread
end of thread, other threads:[~2014-01-08 0:00 UTC | newest] Thread overview: 17+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2013-12-27 20:15 [PATCH v2 0/8] SoC and board integration for RSPI on RZ/A1H Geert Uytterhoeven 2013-12-27 20:15 ` [PATCH v2 1/8] pinctrl: sh-pfc: r7s72100: Add RSPI support Geert Uytterhoeven 2013-12-27 20:16 ` [PATCH v2 6/8] [RFC] Documentation: dt: Add Renesas RSPI/QSPI bindings Geert Uytterhoeven [not found] ` <1388175362-17132-7-git-send-email-geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org> 2013-12-30 12:58 ` Mark Brown 2013-12-30 13:43 ` Geert Uytterhoeven 2013-12-30 13:50 ` Mark Brown 2013-12-27 20:16 ` [PATCH v2 7/8] [RFC] ARM: shmobile: r7s72100 dtsi: Add RSPI nodes Geert Uytterhoeven 2013-12-27 20:16 ` [PATCH v2 8/8] [RFC] ARM: shmobile: genmai reference: " Geert Uytterhoeven [not found] ` <1388175362-17132-1-git-send-email-geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org> 2013-12-27 20:15 ` [PATCH v2 2/8] ARM: shmobile: r7s72100: Add RSPI clocks Geert Uytterhoeven 2013-12-27 20:15 ` [PATCH v2 3/8] ARM: shmobile: r7s72100: Add RSPI platform devices Geert Uytterhoeven 2013-12-27 20:15 ` [PATCH v2 4/8] ARM: shmobile: genmai: Add RSPI children Geert Uytterhoeven 2013-12-27 20:15 ` [PATCH v2 5/8] [RFC] ARM: shmobile: genmai: Add preliminary RSPI pinmux setup Geert Uytterhoeven 2014-01-07 1:26 ` [PATCH v2 0/8] SoC and board integration for RSPI on RZ/A1H Simon Horman [not found] ` <20140107012628.GD2196-/R6kz+dDXgpPR4JQBCEnsQ@public.gmane.org> 2014-01-07 8:31 ` Geert Uytterhoeven [not found] ` <CAMuHMdW5e74keNhRkSG6q6crGWZ0Gqtb5-hntbCUNm7Md78Bcw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2014-01-07 8:52 ` Simon Horman 2014-01-07 15:01 ` Laurent Pinchart 2014-01-08 0:00 ` 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).