All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH RFC 0/4] r8a779a0: Add MSIOF support
@ 2020-11-17  9:03 Geert Uytterhoeven
  2020-11-17  9:03 ` [PATCH RFC 1/4] spi: renesas,sh-msiof: Add r8a779a0 (V3U) support Geert Uytterhoeven
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Geert Uytterhoeven @ 2020-11-17  9:03 UTC (permalink / raw)
  To: linux-renesas-soc

	Hi all,

This patch series adds support for MSIOF on R-Car V3U.

I tested it on Falcon, with MSIOF1 TXD/RXD loopback (connect pins 5/6 of
CN5), CONFIG_SPI_LOOPBACK_TEST, loopback=1, and the following appended
to arch/arm64/boot/dts/renesas/r8a779a0-falcon.dts:

    &msiof1 {
	    #address-cells = <1>;
	    #size-cells = <0>;
	    status = "okay";
     
	    loopback@0 {
		    compatible = "linux,spi-loopback-test";
		    reg = <0>;
		    spi-max-frequency = <10000000>;
	    };
    };

Although the bootloader defaults for GPSR1 (0xbff7fff) and IP1SR1
(0x00000000) should be correct to configure the pins for the MSIOF1
function, spi-loopback-test failed with:

    spi-loopback-test spi0.0:   with iteration values: len = 2, tx_off = 0, rx_off = 0
    spi-loopback-test spi0.0: loopback strangeness - transfer mismatch on byte 0001 - expected 0x01, but got 0x00
    spi-loopback-test spi0.0:   spi_msg@(____ptrval____)
    spi-loopback-test spi0.0:     frame_length:  2
    spi-loopback-test spi0.0:     actual_length: 2
    spi-loopback-test spi0.0:     spi_transfer@(____ptrval____)
    spi-loopback-test spi0.0:       len:    2
    spi-loopback-test spi0.0:       tx_buf: (____ptrval____)
	      TX: 00000000: 00 01
    spi-loopback-test spi0.0:       rx_buf: (____ptrval____)
	      RX: 00000000: 00 00
    spi-loopback-test spi0.0: test failed - test returned -22, but we expect 0
    spi-loopback-test spi0.0: Finished spi-loopback-tests with return: -22
    spi-loopback-test: probe of spi0.0 failed with error -22

Note that the tests before (len = 1) did succeed...

I will retry after we have proper pinctrl support.

Thanks for your comments!

Geert Uytterhoeven (2):
  [RFC] clk: renesas: r8a779a0: Add MSIOF clocks
  [RFC] arm64: dts: renesas: r8a779a0: Add dmac1 placeholder node

Koji Matsuoka (1):
  [RFC] arm64: dts: renesas: r8a779a0: Add MSIOF device nodes

Wolfram Sang (1):
  spi: renesas,sh-msiof: Add r8a779a0 (V3U) support

 .../bindings/spi/renesas,sh-msiof.yaml        |  1 +
 arch/arm64/boot/dts/renesas/r8a779a0.dtsi     | 96 +++++++++++++++++++
 drivers/clk/renesas/r8a779a0-cpg-mssr.c       |  6 ++
 3 files changed, 103 insertions(+)

-- 
2.25.1

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] 7+ messages in thread

end of thread, other threads:[~2020-12-21 16:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-17  9:03 [PATCH RFC 0/4] r8a779a0: Add MSIOF support Geert Uytterhoeven
2020-11-17  9:03 ` [PATCH RFC 1/4] spi: renesas,sh-msiof: Add r8a779a0 (V3U) support Geert Uytterhoeven
2020-11-17  9:03 ` [PATCH RFC 2/4] clk: renesas: r8a779a0: Add MSIOF clocks Geert Uytterhoeven
2020-11-17  9:03 ` [PATCH RFC 3/4] arm64: dts: renesas: r8a779a0: Add dmac1 placeholder node Geert Uytterhoeven
2020-12-21 16:06   ` Wolfram Sang
2020-11-17  9:03 ` [PATCH RFC 4/4] arm64: dts: renesas: r8a779a0: Add MSIOF device nodes Geert Uytterhoeven
2020-12-14 15:39 ` [PATCH RFC 0/4] r8a779a0: Add MSIOF support Geert Uytterhoeven

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.