[PATCH v2 1/3] arm64: dts: r8a77995: add SYS-DMAC nodes

2017-11-20 Thread Ulrich Hecht
Differs from other Gen3 SoCs in that each controller only supports eight channels. Signed-off-by: Ulrich Hecht --- arch/arm64/boot/dts/renesas/r8a77995.dtsi | 72 +++ 1 file changed, 72 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a77995.dtsi b/arch

[PATCH v2 0/3] R-Car D3 (r8a77995) SYS-DMAC integration

2017-11-20 Thread Ulrich Hecht
Hi! This adds DT nodes and bindings for the SYS-DMAC on R-Car D3 and enables the DMAs for SCIF2. Thanks to Chris, Geert and Simon for the review. This revision adds the second pair of DMAs to SCIF2 and fixes a typo in the subject line. CU Uli Ulrich Hecht (3): arm64: dts: r8a77995: add SYS

[PATCH 4/7] arm64: dts: r8a77995: Add CAN support

2017-11-17 Thread Ulrich Hecht
Adds CAN controller nodes for r8a77995. Based on a patch for r8a7796 by Chris Paterson. Signed-off-by: Ulrich Hecht --- arch/arm64/boot/dts/renesas/r8a77995.dtsi | 32 +++ 1 file changed, 32 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a77995.dtsi b

[PATCH 1/7] pinctrl: sh-pfc: r8a77995: Add CAN support

2017-11-17 Thread Ulrich Hecht
This patch adds CAN[0-1] pinmux support to the r8a77995 SoC. Signed-off-by: Ulrich Hecht --- drivers/pinctrl/sh-pfc/pfc-r8a77995.c | 59 +++ 1 file changed, 59 insertions(+) diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a77995.c b/drivers/pinctrl/sh-pfc/pfc

[PATCH 3/7] arm64: dts: r8a77995: Add CAN external clock support

2017-11-17 Thread Ulrich Hecht
Adds external CAN clock node for r8a77995. This clock can be used as fCAN clock of CAN and CAN FD controller. Based on a patch for r8a7796 by Chris Paterson. Signed-off-by: Ulrich Hecht --- arch/arm64/boot/dts/renesas/r8a77995.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a

[PATCH 5/7] arm64: dts: r8a77995: Add CAN FD support

2017-11-17 Thread Ulrich Hecht
Adds CAN FD controller node for r8a77995. Based on a patch for r8a7796 by Chris Paterson. Signed-off-by: Ulrich Hecht --- arch/arm64/boot/dts/renesas/r8a77995.dtsi | 25 + 1 file changed, 25 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a77995.dtsi b/arch

[PATCH 2/7] pinctrl: sh-pfc: r8a77995: Add CAN FD support

2017-11-17 Thread Ulrich Hecht
This patch adds CAN FD[0-1] pinmux support to the r8a77995 SoC. Signed-off-by: Ulrich Hecht --- drivers/pinctrl/sh-pfc/pfc-r8a77995.c | 27 +++ 1 file changed, 27 insertions(+) diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a77995.c b/drivers/pinctrl/sh-pfc/pfc-r8a77995.c

[PATCH 7/7] can: rcar_canfd: document r8a77995 (R-Car D3) compatibility strings

2017-11-17 Thread Ulrich Hecht
Signed-off-by: Ulrich Hecht --- Documentation/devicetree/bindings/net/can/rcar_canfd.txt | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Documentation/devicetree/bindings/net/can/rcar_canfd.txt b/Documentation/devicetree/bindings/net/can/rcar_canfd.txt index

[PATCH 0/7] R-Car D3 (r8a77995) CAN support

2017-11-17 Thread Ulrich Hecht
vised. CU Uli Ulrich Hecht (7): pinctrl: sh-pfc: r8a77995: Add CAN support pinctrl: sh-pfc: r8a77995: Add CAN FD support arm64: dts: r8a77995: Add CAN external clock support arm64: dts: r8a77995: Add CAN support arm64: dts: r8a77995: Add CAN FD support can: rcar_can: document r8a77995 (

[PATCH 6/7] can: rcar_can: document r8a77995 (R-Car D3) compatibility strings

2017-11-17 Thread Ulrich Hecht
Signed-off-by: Ulrich Hecht --- Documentation/devicetree/bindings/net/can/rcar_can.txt | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Documentation/devicetree/bindings/net/can/rcar_can.txt b/Documentation/devicetree/bindings/net/can/rcar_can.txt index 06bb7cc

[PATCH 3/4] arm64: dts: r8a77995: draak: enable SDHI2

2017-11-15 Thread Ulrich Hecht
The single SDHI controller is connected to eMMC. Signed-off-by: Ulrich Hecht --- arch/arm64/boot/dts/renesas/r8a77995-draak.dts | 44 ++ 1 file changed, 44 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a77995-draak.dts b/arch/arm64/boot/dts/renesas/r8a77995

[PATCH 6/6] i2c: rcar: document R8A77970 bindings

2017-11-15 Thread Ulrich Hecht
R-Car D3 (R8A77995) SoC has a R-Car Gen3-compatible I2C controller. Signed-off-by: Ulrich Hecht --- Documentation/devicetree/bindings/i2c/i2c-rcar.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/i2c/i2c-rcar.txt b/Documentation/devicetree/bindings/i2c

[PATCH 1/4] mmc: renesas_sdhi: enable R-Car D3 (r8a77995) support

2017-11-15 Thread Ulrich Hecht
Adds compatible string and whitelists for internal DMAC implementation. Signed-off-by: Ulrich Hecht --- drivers/mmc/host/renesas_sdhi_internal_dmac.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mmc/host/renesas_sdhi_internal_dmac.c b/drivers/mmc/host

[PATCH 0/4] R-Car D3 (r8a77995) SDHI (eMMC) integration

2017-11-15 Thread Ulrich Hecht
Hi! This integrates the SDHI hardware on R-Car D3 and enables the Draak board's eMMC drive. Includes whitelisting the internal DMAC on D3. CU Uli Ulrich Hecht (4): mmc: renesas_sdhi: enable R-Car D3 (r8a77995) support arm64: dts: r8a77995: Add SDHI (MMC) support arm64: dts: r8a

[PATCH 4/4] dt-bindings: mmc: renesas_sdhi: Add r8a77995 support

2017-11-15 Thread Ulrich Hecht
Adds bindings for the R-Car D3 SoC's SDHI IP. Signed-off-by: Ulrich Hecht --- Documentation/devicetree/bindings/mmc/tmio_mmc.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/mmc/tmio_mmc.txt b/Documentation/devicetree/bindings/mmc/tmio_mmc.txt

[PATCH 2/4] arm64: dts: r8a77995: Add SDHI (MMC) support

2017-11-15 Thread Ulrich Hecht
R-Car D3 has only one SDHI controller. Signed-off-by: Ulrich Hecht --- arch/arm64/boot/dts/renesas/r8a77995.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a77995.dtsi b/arch/arm64/boot/dts/renesas/r8a77995.dtsi index b3113003..89cb32e

[PATCH 0/6] R-Car D3 (r8a77995) I2C integration

2017-11-15 Thread Ulrich Hecht
Hi! This adds I2C controllers to the D3 device tree and enables I2C busses 0 and 1 on the Draak board. (I2C2 is not connected on that board.) Includes missing pins, DMA support and the Draak's serial EEPROM. CU Uli Ulrich Hecht (6): pinctrl: sh-pfc: r8a77995: add missing pins SCL0 and

[PATCH 5/6] arm64: renesas: draak: enable I2C controller 1

2017-11-15 Thread Ulrich Hecht
No devices to add, I2C1 has an external connector only. Signed-off-by: Ulrich Hecht --- arch/arm64/boot/dts/renesas/r8a77995-draak.dts | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a77995-draak.dts b/arch/arm64/boot/dts/renesas/r8a77995

[PATCH 1/3] arm64: dts: r8a77995: add SYS-DMAC nodes

2017-11-15 Thread Ulrich Hecht
Differs from other Gen3 SoCs in that each controller only supports eight channels. Signed-off-by: Ulrich Hecht --- arch/arm64/boot/dts/renesas/r8a77995.dtsi | 72 +++ 1 file changed, 72 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a77995.dtsi b/arch

[PATCH 2/3] arm64: dts: r8a7795: add DMA for SCIF2

2017-11-15 Thread Ulrich Hecht
Tested on Draak. Signed-off-by: Ulrich Hecht --- arch/arm64/boot/dts/renesas/r8a77995.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a77995.dtsi b/arch/arm64/boot/dts/renesas/r8a77995.dtsi index 04a392a..5fa7572 100644 --- a/arch/arm64/boot/dts/renesas

[PATCH 4/6] arm64: renesas: draak: enable I2C controller 0 and EEPROM

2017-11-15 Thread Ulrich Hecht
Enables EEPROM on I2C0 on the Draak board. Signed-off-by: Ulrich Hecht --- arch/arm64/boot/dts/renesas/r8a77995-draak.dts | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a77995-draak.dts b/arch/arm64/boot/dts/renesas/r8a77995-draak.dts index

[PATCH 0/3] R-Car D3 (r8a77995) SYS-DMAC integration

2017-11-15 Thread Ulrich Hecht
Hi! This adds DT nodes and bindings for the SYS-DMAC on R-Car D3 and enables the DMAs for SCIF2. CU Uli Ulrich Hecht (3): arm64: dts: r8a77995: add SYS-DMAC nodes arm64: dts: r8a7795: add DMA for SCIF2 dmaengine: rcar-dmac: Document R-Car D3 bindings .../devicetree/bindings/dma/renesas

[PATCH 1/6] pinctrl: sh-pfc: r8a77995: add missing pins SCL0 and SDA0 to pinmux data

2017-11-15 Thread Ulrich Hecht
Required for I2C0 operation. Signed-off-by: Ulrich Hecht --- drivers/pinctrl/sh-pfc/pfc-r8a77995.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a77995.c b/drivers/pinctrl/sh-pfc/pfc-r8a77995.c index 89b7541..2c9a71a 100644 --- a/drivers/pinctrl/sh-pfc/pfc

[PATCH 3/3] dmaengine: rcar-dmac: Document R-Car D3 bindings

2017-11-15 Thread Ulrich Hecht
R8A77995's SYS-DMAC is R-Car Gen3-compatible. Signed-off-by: Ulrich Hecht --- Documentation/devicetree/bindings/dma/renesas,rcar-dmac.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/dma/renesas,rcar-dmac.txt b/Documentation/devicetree/binding

[PATCH 2/6] i2c: rcar: enable for R-Car D3 (r8a77995)

2017-11-15 Thread Ulrich Hecht
Same as other Gen3 SoCs. Signed-off-by: Ulrich Hecht --- drivers/i2c/busses/i2c-rcar.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/i2c/busses/i2c-rcar.c b/drivers/i2c/busses/i2c-rcar.c index 15d764a..9469f01 100644 --- a/drivers/i2c/busses/i2c-rcar.c +++ b/drivers/i2c/busses/i2c

[PATCH 3/6] arm64: renesas: r8a77995: add I2C support

2017-11-15 Thread Ulrich Hecht
Defines R-Car D3 I2C controllers 0-3. Signed-off-by: Ulrich Hecht --- arch/arm64/boot/dts/renesas/r8a77995.dtsi | 64 +++ 1 file changed, 64 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a77995.dtsi b/arch/arm64/boot/dts/renesas/r8a77995.dtsi index

[PATCH 1/2] serial: sh-sci: Support for variable HSCIF hardware RX timeout

2017-09-29 Thread Ulrich Hecht
HSCIF has facilities that allow changing the timeout after which an RX interrupt is triggered even if the FIFO is not filled. This patch allows changing the default (15 bits of silence) using the existing sysfs attribute "rx_fifo_timeout". Signed-off-by: Ulrich Hecht --- drivers/tty

[PATCH 2/2] serial: sh-sci: Support for HSCIF RX sampling point adjustment

2017-09-29 Thread Ulrich Hecht
, meaning center) using the sysfs attribute "rx_sampling_point". Signed-off-by: Ulrich Hecht --- drivers/tty/serial/sh-sci.c | 62 +++-- drivers/tty/serial/sh-sci.h | 4 +++ 2 files changed, 64 insertions(+), 2 deletions(-) diff --git a/drivers/tty

[PATCH 0/2] HSCIF tweaks support

2017-09-29 Thread Ulrich Hecht
touch-ups suggested in Geert's review of the standalone version. CU Uli Ulrich Hecht (2): serial: sh-sci: Support for variable HSCIF hardware RX timeout serial: sh-sci: Support for HSCIF RX sampling point adjustment drivers/tty/serial/sh-sci.c | 114 +-

[PATCH] serial: sh-sci: Support for variable HSCIF hardware RX timeout

2017-09-19 Thread Ulrich Hecht
HSCIF has facilities that allow changing the timeout after which an RX interrupt is triggered even if the FIFO is not filled. This patch allows changing the default (15 bits of silence) using the existing sysfs attribute "rx_fifo_timeout". Signed-off-by: Ulrich Hecht --- drivers/tty

[PATCH] arm64: dts: salvator-common: add 12V regulator to backlight

2017-09-18 Thread Ulrich Hecht
This fixes the warning "pwm-backlight backlight: backlight supply power not found, using dummy regulator". Fixes: b33be33670217533 ("arm64: dts: salvator-x: Add panel backlight support") Reported-by: Geert Uytterhoeven Signed-off-by: Ulrich Hecht --- arch/arm64/boot/

Re: [RFC v2 5/6] max9260: add driver for i2c over GMSL passthrough

2017-08-16 Thread Ulrich Hecht
On Mon, Jul 31, 2017 at 1:13 PM, Laurent Pinchart wrote: >> +static int max9260_probe(struct serdev_device *serdev) >> +{ >> + struct max9260_device *dev; >> + struct i2c_adapter *adap; >> + int ret; >> + >> + dev = kzalloc(sizeof(*dev), GFP_KERNEL); >> + if (!dev) >> +

Re: [RFC v2 5/6] max9260: add driver for i2c over GMSL passthrough

2017-08-16 Thread Ulrich Hecht
On Wed, Jul 19, 2017 at 5:00 PM, Wolfram Sang wrote: >> +{ >> + wait_event_interruptible_timeout(dev->rx_wq, >> + dev->rx_state <= RX_FRAME_ERROR, >> + HZ/2); > > I'd suggest to drop the interruptible. It can be done but it is usually > not trivial to abort the operatio

Re: [RFC v2 3/6] serdev: add multiplexer support

2017-08-16 Thread Ulrich Hecht
On Wed, Jul 19, 2017 at 1:06 AM, Rob Herring wrote: >> static inline struct serdev_controller *to_serdev_controller(struct device >> *d) >> @@ -172,7 +180,7 @@ static inline void serdev_controller_write_wakeup(struct >> serdev_controller *ctrl >> { >> struct serdev_device *serdev = ctr

[PATCH 2/6] serdev: add multiplexer support

2017-08-16 Thread Ulrich Hecht
Adds an interface for slave device multiplexing using the mux subsystem. Signed-off-by: Ulrich Hecht --- drivers/tty/serdev/Kconfig | 1 + drivers/tty/serdev/Makefile | 2 +- drivers/tty/serdev/core.c | 13 - drivers/tty/serdev/mux.c| 66

[PATCH 5/6] ARM: dts: blanche: add SCIF1 and MAX9260 deserializer

2017-08-16 Thread Ulrich Hecht
Adds serial port SCIF1 and the MAX9260 deserializers connected to it. Signed-off-by: Ulrich Hecht --- arch/arm/boot/dts/r8a7792-blanche.dts | 52 +++ 1 file changed, 52 insertions(+) diff --git a/arch/arm/boot/dts/r8a7792-blanche.dts b/arch/arm/boot/dts/r8a7792

[PATCH 3/6] serial: core: support deferring serdev controller registration

2017-08-16 Thread Ulrich Hecht
serdev controllers may depend on other devices (such as multiplexers) and thus require deferred probing support. Signed-off-by: Ulrich Hecht --- drivers/tty/serial/serial_core.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/tty/serial/serial_core.c b/drivers/tty/serial

[PATCH 4/6] max9260: add driver for i2c over GMSL passthrough

2017-08-16 Thread Ulrich Hecht
This driver implements tunnelling of i2c requests over GMSL via a MAX9260 deserializer. It provides an i2c adapter that can be used to reach devices on the far side of the link. Signed-off-by: Ulrich Hecht --- drivers/media/i2c/Kconfig | 6 + drivers/media/i2c/Makefile | 1 + drivers

[PATCH 6/6] dt-bindings: slave-device: add reg property

2017-08-16 Thread Ulrich Hecht
This adds a new DT property to define the index used by a multiplexer to select the device. Signed-off-by: Ulrich Hecht --- Documentation/devicetree/bindings/serial/slave-device.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/serial/slave-device.txt

[PATCH 1/6] serdev: add method to set parity

2017-08-16 Thread Ulrich Hecht
Adds serdev_device_set_parity() and an implementation for ttyport. Signed-off-by: Ulrich Hecht --- drivers/tty/serdev/core.c | 12 drivers/tty/serdev/serdev-ttyport.c | 18 ++ include/linux/serdev.h | 10 ++ 3 files changed, 40

[PATCH 0/6] serdev multiplexing support

2017-08-16 Thread Ulrich Hecht
t respond correctly - max9260: change a number of length-bearing variables to size_t - dt: number max9260 devices according to their "reg" node Ulrich Hecht (6): serdev: add method to set parity serdev: add multiplexer support serial: core: support deferring serdev contr

Re: [RFC v2 1/6] mux: include compiler.h from mux/consumer.h

2017-07-31 Thread Ulrich Hecht
On Mon, Jul 31, 2017 at 11:02 AM, Peter Rosin wrote: > Hi Ulrich, > > This patch looks good to me. Let me know if I should feed this > through the mux subsystem or if it will take some other route. Please pick it up, thanks. > In case someone else ends up taking it: > Acked-by: Peter Rosin CU

[RFC v2 6/6] ARM: dts: blanche: add SCIF1 and MAX9260 deserializer

2017-07-17 Thread Ulrich Hecht
Adds serial port SCIF1 and the MAX9260 deserializers connected to it. Signed-off-by: Ulrich Hecht --- arch/arm/boot/dts/r8a7792-blanche.dts | 52 +++ 1 file changed, 52 insertions(+) diff --git a/arch/arm/boot/dts/r8a7792-blanche.dts b/arch/arm/boot/dts/r8a7792

[RFC v2 5/6] max9260: add driver for i2c over GMSL passthrough

2017-07-17 Thread Ulrich Hecht
This driver implements tunnelling of i2c requests over GMSL via a MAX9260 deserializer. It provides an i2c adapter that can be used to reach devices on the far side of the link. Signed-off-by: Ulrich Hecht --- drivers/media/i2c/Kconfig | 6 + drivers/media/i2c/Makefile | 1 + drivers

[RFC v2 4/6] serial: core: support deferring serdev controller registration

2017-07-17 Thread Ulrich Hecht
serdev controllers may depend on other devices (such as multiplexers) and thus require deferred probing support. Signed-off-by: Ulrich Hecht --- drivers/tty/serial/serial_core.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/tty/serial/serial_core.c b/drivers/tty/serial

[RFC v2 2/6] serdev: add method to set parity

2017-07-17 Thread Ulrich Hecht
Adds serdev_device_set_parity() and an implementation for ttyport. Signed-off-by: Ulrich Hecht --- drivers/tty/serdev/core.c | 12 drivers/tty/serdev/serdev-ttyport.c | 17 + include/linux/serdev.h | 4 3 files changed, 33 insertions

[RFC v2 0/6] serdev multiplexing support

2017-07-17 Thread Ulrich Hecht
controllers ("serial: core: support deferring serdev controller registration"), hopefully correctly. This series depends on the "pinctrl: sh-pfc: r8a7792: Add SCIF1 pin groups" patch as well as v15 of the mux subsystem series ("[PATCH v15 00/13] mux controller abstraction a

[RFC v2 3/6] serdev: add multiplexer support

2017-07-17 Thread Ulrich Hecht
Adds an interface for slave device multiplexing using the mux subsystem. Signed-off-by: Ulrich Hecht --- drivers/tty/serdev/Kconfig | 3 +++ drivers/tty/serdev/Makefile | 1 + drivers/tty/serdev/core.c | 14 +- drivers/tty/serdev/mux.c| 66

[RFC v2 1/6] mux: include compiler.h from mux/consumer.h

2017-07-17 Thread Ulrich Hecht
Required for __must_check. Signed-off-by: Ulrich Hecht --- include/linux/mux/consumer.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/mux/consumer.h b/include/linux/mux/consumer.h index 5577e1b..ea96d4c 100644 --- a/include/linux/mux/consumer.h +++ b/include/linux/mux

Re: [PATCH v3 2/4] media: adv7180: add adv7180cp, adv7180st compatible strings

2017-07-03 Thread Ulrich Hecht
On Fri, Jun 30, 2017 at 11:19 AM, Geert Uytterhoeven wrote: > Hi Ulrich, > > On Fri, May 19, 2017 at 3:07 PM, Ulrich Hecht > wrote: >> Used to differentiate between models with 3 and 6 inputs. >> >> Signed-off-by: Ulrich Hecht >> --- >> drivers/media/

[PATCH] media: adv7180: add missing adv7180cp, adv7180st i2c device IDs

2017-07-03 Thread Ulrich Hecht
Fixes a crash on Renesas R8A7793 Gose board that uses these "compatible" entries. Signed-off-by: Ulrich Hecht --- drivers/media/i2c/adv7180.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/i2c/adv7180.c b/drivers/media/i2c/adv7180.c index 78de7dd..3df28f2 10

[PATCH] pinctrl: sh-pfc: r8a7792: Add SCIF1 and SCIF2 pin groups

2017-06-20 Thread Ulrich Hecht
Add SCIF1 and SCIF2 pin groups to the R8A7792 PFC driver. Signed-off-by: Ulrich Hecht --- Superseding "[PATCH] pinctrl: sh-pfc: r8a7792: Add SCIF1 pin groups", this adds the missing SCIF1 control pins as well as SCIF2, as suggested by Geert. CU Uli drivers/pinctrl/sh-pfc/pfc-r8a7

[RFC 2/4] serdev: add GPIO-based multiplexer support

2017-06-14 Thread Ulrich Hecht
Adds an interface for slave device multiplexing, and an implementation for GPIO-based multiplexers. Signed-off-by: Ulrich Hecht --- drivers/tty/serdev/Kconfig| 3 ++ drivers/tty/serdev/Makefile | 1 + drivers/tty/serdev/core.c | 43 ++- drivers/tty/serdev/mux

[RFC 3/4] max9260: add driver for i2c over GMSL passthrough

2017-06-14 Thread Ulrich Hecht
This driver implements tunnelling of i2c requests over GMSL via a MAX9260 deserializer. It provides an i2c adapter that can be used to reach devices on the far side of the link. Signed-off-by: Ulrich Hecht --- drivers/media/i2c/Kconfig | 6 + drivers/media/i2c/Makefile | 1 + drivers

[RFC 4/4] ARM: dts: blanche: add SCIF1 and MAX9260 deserializer

2017-06-14 Thread Ulrich Hecht
Adds serial port SCIF1 and the MAX9260 deserializers connected to it. Signed-off-by: Ulrich Hecht --- arch/arm/boot/dts/r8a7792-blanche.dts | 45 +++ 1 file changed, 45 insertions(+) diff --git a/arch/arm/boot/dts/r8a7792-blanche.dts b/arch/arm/boot/dts/r8a7792

[RFC 0/4] serdev GPIO-based multiplexing support

2017-06-14 Thread Ulrich Hecht
implement this functionality in serdev, or how to improve it. Thank you. CU Uli Ulrich Hecht (4): serdev: add method to set parity serdev: add GPIO-based multiplexer support max9260: add driver for i2c over GMSL passthrough ARM: dts: blanche: add SCIF1 and MAX9260 deserializer arch/ar

[RFC 1/4] serdev: add method to set parity

2017-06-14 Thread Ulrich Hecht
Adds serdev_device_set_parity() and an implementation for ttyport. Signed-off-by: Ulrich Hecht --- drivers/tty/serdev/core.c | 12 drivers/tty/serdev/serdev-ttyport.c | 17 + include/linux/serdev.h | 4 3 files changed, 33 insertions

[PATCH] pinctrl: sh-pfc: r8a7792: Add SCIF1 pin groups

2017-05-19 Thread Ulrich Hecht
Add SCIF1 pin groups to the R8A7792 PFC driver. Signed-off-by: Ulrich Hecht --- These are the pins the MAX9260 deserializers are connected to on Blanche. CU Uli drivers/pinctrl/sh-pfc/pfc-r8a7792.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/drivers/pinctrl

[PATCH v3 3/4] media: adv7180: Add adv7180cp, adv7180st bindings

2017-05-19 Thread Ulrich Hecht
To differentiate between two classes of chip packages that have different numbers of input ports. Signed-off-by: Ulrich Hecht --- Documentation/devicetree/bindings/media/i2c/adv7180.txt | 15 +++ 1 file changed, 15 insertions(+) diff --git a/Documentation/devicetree/bindings/media

[PATCH v3 1/4] ARM: dts: gose: add HDMI input

2017-05-19 Thread Ulrich Hecht
Identical to the setup on Koelsch. Signed-off-by: Ulrich Hecht Reviewed-by: Laurent Pinchart --- arch/arm/boot/dts/r8a7793-gose.dts | 68 -- 1 file changed, 66 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/r8a7793-gose.dts b/arch/arm/boot

[PATCH v3 4/4] ARM: dts: gose: add composite video input

2017-05-19 Thread Ulrich Hecht
Adds VIN, decoder and connector. Signed-off-by: Ulrich Hecht --- arch/arm/boot/dts/r8a7793-gose.dts | 59 ++ 1 file changed, 59 insertions(+) diff --git a/arch/arm/boot/dts/r8a7793-gose.dts b/arch/arm/boot/dts/r8a7793-gose.dts index 30f0835..76e3aca 100644

[PATCH v3 2/4] media: adv7180: add adv7180cp, adv7180st compatible strings

2017-05-19 Thread Ulrich Hecht
Used to differentiate between models with 3 and 6 inputs. Signed-off-by: Ulrich Hecht --- drivers/media/i2c/adv7180.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/i2c/adv7180.c b/drivers/media/i2c/adv7180.c index bdbbf8c..78de7dd 100644 --- a/drivers/media/i2c/adv7180.c

[PATCH v3 0/4] r8a7793 Gose video input support

2017-05-19 Thread Ulrich Hecht
- modeled HDMI decoder input/output and connector - added "renesas,rcar-gen2-vin" compat strings - removed unnecessary "remote" node and aliases - set ADV7612 interrupt to GP4_2 Ulrich Hecht (4): ARM: dts: gose: add HDMI input media: adv7180: add adv7180cp, adv7180st c

Re: [PATCH v2 0/8] r8a7795/6 Salvator-X PWM enablement

2017-05-12 Thread Ulrich Hecht
On Fri, May 12, 2017 at 12:00 PM, Laurent Pinchart wrote: >> * arm64: dts: r8a7795-salvator-x: Enable PWM2 > > I've asked Ulrich for a clarification on this patch as I'm not sure it's > needed, but he hasn't answered yet. Could we delay merging it until the > situation is clarified ? Enabling it

[PATCH v2 3/8] arm64: dts: r8a7796: Add PWM device nodes

2017-04-27 Thread Ulrich Hecht
From: Takeshi Kihara This patch adds PWM{0,1,2,3,4,5,6} device nodes for R8A7796 SoC. Signed-off-by: Takeshi Kihara [uli: added resets, shortened reg lengths to 8] Signed-off-by: Ulrich Hecht --- arch/arm64/boot/dts/renesas/r8a7796.dtsi | 70 1 file changed

[PATCH v2 8/8] dt-bindings: pwm: Add R-Car M3-W device tree bindings

2017-04-27 Thread Ulrich Hecht
Add device tree bindings for the PWM controller found on R-Car M3-W SoCs. Signed-off-by: Ulrich Hecht --- Documentation/devicetree/bindings/pwm/renesas,pwm-rcar.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/pwm/renesas,pwm-rcar.txt b/Documentation

[PATCH v2 6/8] arm64: dts: r8a7795: salvator-x: Add panel backlight support

2017-04-27 Thread Ulrich Hecht
From: Laurent Pinchart The panel backlight is controlled through a GPIO and a PWM channel. Signed-off-by: Laurent Pinchart --- arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a7795-salv

[PATCH v2 4/8] arm64: dts: r8a7796: salvator-x: Add panel backlight support

2017-04-27 Thread Ulrich Hecht
The panel backlight is controlled through a GPIO and a PWM channel. Signed-off-by: Ulrich Hecht --- arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts b/arch/arm64

[PATCH v2 1/8] pinctrl: sh-pfc: r8a7796: Add PWM pins, groups and functions

2017-04-27 Thread Ulrich Hecht
From: Takeshi Kihara This patch adds PWM{0,1,2,3,4,5,6} pins, groups and functions to R8A7796 SoC. Signed-off-by: Takeshi Kihara Signed-off-by: Ulrich Hecht --- drivers/pinctrl/sh-pfc/pfc-r8a7796.c | 153 +++ 1 file changed, 153 insertions(+) diff --git a

[PATCH v2 7/8] arm64: dts: r8a7795-salvator-x: Enable PWM2

2017-04-27 Thread Ulrich Hecht
From: Takeshi Kihara This patch enables PWM2 for Salvator-X board on R8A7795 SoC. Signed-off-by: Takeshi Kihara Signed-off-by: Ulrich Hecht --- arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/renesas

[PATCH v2 0/8] r8a7795/6 Salvator-X PWM enablement

2017-04-27 Thread Ulrich Hecht
Kihara (3): pinctrl: sh-pfc: r8a7796: Add PWM pins, groups and functions arm64: dts: r8a7796: Add PWM device nodes arm64: dts: r8a7795-salvator-x: Enable PWM2 Ulrich Hecht (2): arm64: dts: r8a7796: salvator-x: Add panel backlight support dt-bindings: pwm: Add R-Car M3-W device tre

[PATCH v2 2/8] clk: renesas: r8a7796: add PWM clock

2017-04-27 Thread Ulrich Hecht
From: Ryo Kodama This patch adds PWM clock for PWM. Signed-off-by: Ryo Kodama Signed-off-by: Takeshi Kihara [uli: changed from S3D4 to S0D12 in accordance with datasheet] Signed-off-by: Ulrich Hecht --- drivers/clk/renesas/r8a7796-cpg-mssr.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v2 5/8] arm64: dts: r8a7796-salvator-x: Add PWM device support

2017-04-27 Thread Ulrich Hecht
From: Ryo Kodama This patch adds support of PWM2 device for Salvator-X board on R8A7796 SoC. Signed-off-by: Ryo Kodama Signed-off-by: Takeshi Kihara Signed-off-by: Ulrich Hecht --- arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts | 13 + 1 file changed, 13 insertions(+) diff

Re: [PATCH 5/5] arm64: dts: r8a7795-salvator-x: Enable PWM

2017-04-26 Thread Ulrich Hecht
On Wed, Apr 26, 2017 at 9:50 AM, Simon Horman wrote: > On Mon, Apr 24, 2017 at 12:02:17PM +0200, Ulrich Hecht wrote: >> On Mon, Apr 24, 2017 at 10:35 AM, Laurent Pinchart >> wrote: >> > Hi Ulrich, >> > >> > On Monday 24 Apr 2017 10:22:31 Ulrich Hecht wr

Re: [PATCH 5/5] arm64: dts: r8a7795-salvator-x: Enable PWM

2017-04-24 Thread Ulrich Hecht
On Mon, Apr 24, 2017 at 10:35 AM, Laurent Pinchart wrote: > Hi Ulrich, > > On Monday 24 Apr 2017 10:22:31 Ulrich Hecht wrote: >> On Mon, Apr 24, 2017 at 9:59 AM, Laurent Pinchart wrote: >> > How about using pwm1 for backlight as done in "[PATCH v2 09/13] arm64: >&

Re: [PATCH 5/5] arm64: dts: r8a7795-salvator-x: Enable PWM

2017-04-24 Thread Ulrich Hecht
On Mon, Apr 24, 2017 at 9:59 AM, Laurent Pinchart wrote: > How about using pwm1 for backlight as done in "[PATCH v2 09/13] arm64: dts: > r8a7795: salvator-x: Add panel backlight support" ? Makes sense. Simon, should that go in a separate patch, or should I add it to this one? CU Uli

Re: [PATCH 5/5] arm64: dts: r8a7795-salvator-x: Enable PWM

2017-04-24 Thread Ulrich Hecht
On Mon, Apr 24, 2017 at 9:49 AM, Simon Horman wrote: > Given it was over a year ago I hope you can understand that I don't recall > why this wasn't accepted. I didn't remember having sent it myself, so, yes, I do understand. :) I just thought there might be something obvious about it that I'm mis

Re: Commit 18e8cf159177 broke qemu-system-sh4 serial input.

2017-04-24 Thread Ulrich Hecht
On Sat, Apr 22, 2017 at 10:49 AM, Rob Landley wrote: > > > On 04/21/2017 02:26 AM, Geert Uytterhoeven wrote: >> According to the SH7751R datasheet, SCFCR does have the RTRG1 and RTRG0 bits. >> I assume the problem goes away if you comment out the call to >> scif_set_rtrg()? > > The current code h

Re: [PATCH 5/5] arm64: dts: r8a7795-salvator-x: Enable PWM

2017-04-21 Thread Ulrich Hecht
On Fri, Apr 21, 2017 at 9:35 AM, Kuninori Morimoto wrote: > > Hi Ulrich > >> > And we already have a correct v3 from you in patchwork: >> > https://patchwork.kernel.org/patch/8711801/ >> >> Whoops... >> >> In my defense, that was over a year ago. Simon, any reason this didn't >> make it in? > > If

Re: [PATCH 5/5] arm64: dts: r8a7795-salvator-x: Enable PWM

2017-04-21 Thread Ulrich Hecht
On Thu, Apr 20, 2017 at 7:51 PM, Geert Uytterhoeven wrote: > And we already have a correct v3 from you in patchwork: > https://patchwork.kernel.org/patch/8711801/ Whoops... In my defense, that was over a year ago. Simon, any reason this didn't make it in? CU Uli

Re: [PATCH 0/5] r8a7795/6 Salvator-X PWM enablement

2017-04-21 Thread Ulrich Hecht
On Thu, Apr 20, 2017 at 4:23 PM, Geert Uytterhoeven wrote: > Hi Uli, > > On Wed, Apr 19, 2017 at 3:24 PM, Ulrich Hecht > wrote: >> This is a straight port from the BSP, enabling PWM1 and PWM2 on the >> Salvator-X boards. For r8a7796 it also adds the required infrastru

[PATCH 4/5] arm64: dts: r8a7796-salvator-x: Add PWM device support

2017-04-19 Thread Ulrich Hecht
From: Ryo Kodama This patch adds support of PWM{1,2} device for Salvator-X board on R8A7796 SoC. Signed-off-by: Ryo Kodama Signed-off-by: Takeshi Kihara Signed-off-by: Ulrich Hecht --- arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts | 21 + 1 file changed, 21

[PATCH 3/5] arm64: dts: r8a7796: Add PWM device nodes

2017-04-19 Thread Ulrich Hecht
From: Takeshi Kihara This patch adds PWM{0,1,2,3,4,5,6} device nodes for R8A7796 SoC. Signed-off-by: Takeshi Kihara Signed-off-by: Ulrich Hecht --- arch/arm64/boot/dts/renesas/r8a7796.dtsi | 63 1 file changed, 63 insertions(+) diff --git a/arch/arm64/boot

[PATCH 5/5] arm64: dts: r8a7795-salvator-x: Enable PWM

2017-04-19 Thread Ulrich Hecht
From: Takeshi Kihara This patch enables PWM{1,2} for Salvator-X board on R8A7795 SoC. Signed-off-by: Takeshi Kihara Signed-off-by: Ulrich Hecht --- arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot

[PATCH 1/5] pinctrl: sh-pfc: r8a7796: Add PWM pins, groups and functions

2017-04-19 Thread Ulrich Hecht
From: Takeshi Kihara This patch adds PWM{0,1,2,3,4,5,6} pins, groups and functions to R8A7796 SoC. Signed-off-by: Takeshi Kihara Signed-off-by: Ulrich Hecht --- drivers/pinctrl/sh-pfc/pfc-r8a7796.c | 153 +++ 1 file changed, 153 insertions(+) diff --git a

[PATCH 2/5] clk: renesas: r8a7796: add PWM clock

2017-04-19 Thread Ulrich Hecht
From: Ryo Kodama This patch adds PWM clock for PWM. Signed-off-by: Ryo Kodama Signed-off-by: Takeshi Kihara Signed-off-by: Ulrich Hecht --- drivers/clk/renesas/r8a7796-cpg-mssr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/renesas/r8a7796-cpg-mssr.c b/drivers/clk

[PATCH 0/5] r8a7795/6 Salvator-X PWM enablement

2017-04-19 Thread Ulrich Hecht
Hi! This is a straight port from the BSP, enabling PWM1 and PWM2 on the Salvator-X boards. For r8a7796 it also adds the required infrastructure (clock and pins). Not fully tested because I cannot find my breakout adapter. Looks OK from the software side, though. CU Uli Ryo Kodama (2): clk: r

[PATCH] serial: sh-sci: fix hardware RX trigger level setting

2017-02-08 Thread Ulrich Hecht
1. Do not set the RX trigger level for software timeout devices on reset; there is no timeout by default, and data will rot. 2. Do set the RX trigger level for hardware timeout devices when set via sysfs attribute. Fixes SCIFA-type serial consoles. Signed-off-by: Ulrich Hecht Tested-by: Geert

Re: [PATCH v4 4/4] arm64: dts: r8a7796: salvator-x: add SCIF1 (DEBUG1)

2017-02-08 Thread Ulrich Hecht
On Wed, Feb 8, 2017 at 11:54 AM, Simon Horman wrote: > On Fri, Feb 03, 2017 at 11:38:20AM +0100, Ulrich Hecht wrote: >> Enables the SCIF hooked up to the DEBUG1 connector. >> >> Signed-off-by: Ulrich Hecht >> Reviewed-by: Geert Uytterhoeven > > Hi Ulrich, > &

Re: [PATCH v4 3/4] serial: sh-sci: make RX FIFO parameters tunable via sysfs

2017-02-08 Thread Ulrich Hecht
On Tue, Feb 7, 2017 at 3:40 PM, Geert Uytterhoeven wrote: > Hi Ulrich, > > On Fri, Feb 3, 2017 at 11:38 AM, Ulrich Hecht > wrote: >> Allows tuning of the RX FIFO fill threshold and timeout. (The latter is >> only applicable to SCIFA and SCIFB). >> >> Signed-

[PATCH v4 3/4] serial: sh-sci: make RX FIFO parameters tunable via sysfs

2017-02-03 Thread Ulrich Hecht
Allows tuning of the RX FIFO fill threshold and timeout. (The latter is only applicable to SCIFA and SCIFB). Signed-off-by: Ulrich Hecht Reviewed-by: Geert Uytterhoeven --- drivers/tty/serial/sh-sci.c | 87 + 1 file changed, 87 insertions(+) diff

[PATCH v4 0/4] Renesas *SCIF* RX FIFO support

2017-02-03 Thread Ulrich Hecht
ure to create sysfs attribute - r8a7796 DT: add control pins, rtscts flag Ulrich Hecht (4): serial: sh-sci: increase RX FIFO trigger defaults for (H)SCIF serial: sh-sci: SCIFA/B RX FIFO software timeout serial: sh-sci: make RX FIFO parameters tunable via sysfs arm64: dts: r8a7796: salvato

[PATCH v4 2/4] serial: sh-sci: SCIFA/B RX FIFO software timeout

2017-02-03 Thread Ulrich Hecht
. Signed-off-by: Ulrich Hecht --- drivers/tty/serial/sh-sci.c | 101 +--- 1 file changed, 68 insertions(+), 33 deletions(-) diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c index 520e344..4a165ed 100644 --- a/drivers/tty/serial/sh

[PATCH v4 4/4] arm64: dts: r8a7796: salvator-x: add SCIF1 (DEBUG1)

2017-02-03 Thread Ulrich Hecht
Enables the SCIF hooked up to the DEBUG1 connector. Signed-off-by: Ulrich Hecht Reviewed-by: Geert Uytterhoeven --- arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts b/arch

[PATCH v4 1/4] serial: sh-sci: increase RX FIFO trigger defaults for (H)SCIF

2017-02-03 Thread Ulrich Hecht
Sets reasonable trigger defaults for the various SCIF variants. Also corrects the FIFO size for SH7705-style ports. Signed-off-by: Ulrich Hecht Reviewed-by: Geert Uytterhoeven --- drivers/tty/serial/sh-sci.c | 29 - 1 file changed, 28 insertions(+), 1 deletion

[PATCH v3 2/7] serial: sh-sci: consider DR (data ready) bit adequately

2017-02-02 Thread Ulrich Hecht
d. Signed-off-by: Ulrich Hecht --- drivers/tty/serial/sh-sci.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/sh-sci.h b/drivers/tty/serial/sh-sci.h index 30b6d67..971b2ab 100644 --- a/drivers/tty/serial/sh-sci.h +++ b/drivers/tty/serial/sh-sci.h @@ -15

[PATCH v3 7/7] arm64: dts: r8a7796: salvator-x: add SCIF1 (DEBUG1)

2017-02-02 Thread Ulrich Hecht
Enables the SCIF hooked up to the DEBUG1 connector. Signed-off-by: Ulrich Hecht Reviewed-by: Geert Uytterhoeven --- arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts b/arch

[PATCH v3 3/7] serial: sh-sci: implement FIFO threshold register setting

2017-02-02 Thread Ulrich Hecht
Sets the closest match for a desired RX trigger level. Signed-off-by: Ulrich Hecht Reviewed-by: Geert Uytterhoeven --- drivers/tty/serial/sh-sci.c | 59 + 1 file changed, 59 insertions(+) diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial

[PATCH v3 4/7] serial: sh-sci: increase RX FIFO trigger defaults for (H)SCIF

2017-02-02 Thread Ulrich Hecht
Sets reasonable trigger defaults for the various SCIF variants. Also corrects the FIFO size for SH7705-style ports. Signed-off-by: Ulrich Hecht Reviewed-by: Geert Uytterhoeven --- drivers/tty/serial/sh-sci.c | 29 - 1 file changed, 28 insertions(+), 1 deletion

[PATCH v3 5/7] serial: sh-sci: SCIFA/B RX FIFO software timeout

2017-02-02 Thread Ulrich Hecht
. Signed-off-by: Ulrich Hecht --- drivers/tty/serial/sh-sci.c | 100 +--- 1 file changed, 67 insertions(+), 33 deletions(-) diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c index ae9b10a..17a2be3 100644 --- a/drivers/tty/serial/sh

<    1   2   3   4   5   6   >