Re: [PATCH v8] watchdog: ts4800: add driver for TS-4800 watchdog

2015-12-23 Thread Damien Riegel
On Tue, Dec 08, 2015 at 11:37:28AM -0500, Damien Riegel wrote: > This watchdog is instantiated in a FPGA that is memory mapped. It is > made of only one register, called the feed register. Writing to this > register will re-arm the watchdog for a given time (and enable it if it > was

[PATCH v2 2/2] irqchip: add TS-4800 interrupt controller

2015-12-21 Thread Damien Riegel
doesn't use the IRQCHIP_DECLARE construct. Signed-off-by: Damien Riegel --- Changes in v2: - Added chained_irq_{enter,exit} in interrupt handler. drivers/irqchip/Kconfig | 6 ++ drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-ts4800.c

[PATCH v2 1/2] irqchip: add documentation for TS-4800 interrupt controller

2015-12-21 Thread Damien Riegel
This is an interrupt-controller implemented in an FPGA, to multiplex interrupts generated from other IPs. The FPGA usually uses a GPIO as a parent interrupt controller to notify that one of the multiplexed interrupts has triggered. Signed-off-by: Damien Riegel Acked-by: Rob Herring --- Changes

Re: [PATCH 1/2] ARM: dts: ts-4800: Add LCD support

2015-12-21 Thread Damien Riegel
On Mon, Dec 21, 2015 at 09:35:19PM +0800, Shawn Guo wrote: > On Fri, Dec 18, 2015 at 12:00:32PM -0500, Damien Riegel wrote: > > This commit adds LCD support for the TS-4800. The panel is an Okaya > > RS800480T-7X0WQ and the timings have been extracted from Technologic &g

Re: [PATCH 1/2] can: sja1000: add documentation for Technologic Systems version

2015-12-21 Thread Damien Riegel
On Sat, Dec 19, 2015 at 09:37:42PM -0600, Rob Herring wrote: > On Fri, Dec 18, 2015 at 03:17:24PM -0500, Damien Riegel wrote: > > This commit adds documentation for the Technologic Systems version of > > SJA1000. The difference with the NXP version is in the way the registers &

Re: [PATCH 2/2] can: sja1000: of: add compatibility with Technologic Systems version

2015-12-18 Thread Damien Riegel
On Fri, Dec 18, 2015 at 09:41:47PM +0100, Marc Kleine-Budde wrote: > On 12/18/2015 09:17 PM, Damien Riegel wrote: > > Technologic Systems provides an IP compatible with the SJA1000, > > instantiated in an FPGA. Because of some bus widths issue, access to > > registers is m

[PATCH 1/2] can: sja1000: add documentation for Technologic Systems version

2015-12-18 Thread Damien Riegel
This commit adds documentation for the Technologic Systems version of SJA1000. The difference with the NXP version is in the way the registers are accessed. Signed-off-by: Damien Riegel --- Documentation/devicetree/bindings/net/can/sja1000.txt | 3 ++- 1 file changed, 2 insertions(+), 1

[PATCH 2/2] can: sja1000: of: add compatibility with Technologic Systems version

2015-12-18 Thread Damien Riegel
adds a new compatible device, "technologic,sja1000", with read and write functions using the window mechanism. Signed-off-by: Damien Riegel --- drivers/net/can/sja1000/sja1000_platform.c | 30 -- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/dri

[PATCH 2/2] irqchip: add TS-4800 interrupt controller

2015-12-18 Thread Damien Riegel
doesn't use the IRQCHIP_DECLARE construct. Signed-off-by: Damien Riegel --- drivers/irqchip/Kconfig | 6 ++ drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-ts4800.c | 156 +++ 3 files changed, 163 insertions(+) create mode 100644 dr

[PATCH 1/2] irqchip: add documentation for TS-4800 interrupt controller

2015-12-18 Thread Damien Riegel
This is an interrupt-controller implemented in an FPGA, to multiplex interrupts generated from other IPs. The FPGA usually uses a GPIO as a parent interrupt controller to notify that one of the multiplexed interrupts has triggered. Signed-off-by: Damien Riegel --- .../bindings/interrupt

[PATCH 1/2] ARM: dts: ts-4800: Add LCD support

2015-12-18 Thread Damien Riegel
This commit adds LCD support for the TS-4800. The panel is an Okaya RS800480T-7X0WQ and the timings have been extracted from Technologic Systems' tree. Signed-off-by: Damien Riegel --- arch/arm/boot/dts/imx51-ts4800.dts | 109 + 1 file changed, 109 inser

[PATCH 2/2] ARM: dts: TS-4800: add touchscreen support

2015-12-18 Thread Damien Riegel
This commit enables the touchscreen on TS-4800, using the ts4800-ts driver. Signed-off-by: Damien Riegel --- arch/arm/boot/dts/imx51-ts4800.dts | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/imx51-ts4800.dts b/arch/arm/boot/dts/imx51-ts4800.dts index 4951ebd

[PATCH 2/2] ARM: dts: TS-4800: use weim IP to map the FPGA

2015-12-17 Thread Damien Riegel
changed. The other values are the default ones, but the WEIM bindings expect them to be all explicitly set in the device tree, so I just put the default values in the dt. Signed-off-by: Damien Riegel --- arch/arm/boot/dts/imx51-ts4800.dts | 60 +- 1 file changed, 39

[PATCH 1/2] ARM: dts: TS-4800: drop uart rts/cts pin reservations

2015-12-17 Thread Damien Riegel
These pins are actually not routed for UARTs, they should not be reserved. Signed-off-by: Damien Riegel --- arch/arm/boot/dts/imx51-ts4800.dts | 4 1 file changed, 4 deletions(-) diff --git a/arch/arm/boot/dts/imx51-ts4800.dts b/arch/arm/boot/dts/imx51-ts4800.dts index f1317f7..64ac55c

Re: [PATCH 2/2] Input: add touchscreen support for TS-4800

2015-12-13 Thread Damien Riegel
Hi Dmitry On Sat, Dec 12, 2015 at 08:58:58PM -0800, Dmitry Torokhov wrote: > Hi Damien, > > On Thu, Dec 10, 2015 at 11:11:12AM -0500, Damien Riegel wrote: > > On this board, the touchscreen, an ads7843, is not handled directly by > > Linux but by a companion FPGA. This FPGA

[PATCH v9 3/3] ARM: dts: TS-4800: add basic device tree

2015-12-11 Thread Damien Riegel
: Damien Riegel --- arch/arm/boot/dts/Makefile | 3 +- arch/arm/boot/dts/imx51-ts4800.dts | 180 + 2 files changed, 182 insertions(+), 1 deletion(-) create mode 100644 arch/arm/boot/dts/imx51-ts4800.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm

[PATCH v9 0/3] Add board support for TS-4800

2015-12-11 Thread Damien Riegel
ric syscon driver instead. Changes in v2: - Added a mfd driver to handle syscon registers - The watchdog driver now uses the regmap (created by the mfd driver) to access the feed register - Remove watchdog's dependency on SOC_IMX51 Damien Riegel (3): of: add vendor prefix for Technologic Sy

[PATCH v9 2/3] of: documentation: add bindings documentation for TS-4800

2015-12-11 Thread Damien Riegel
This adds the documentation for the TS-4800 by Technologic Systems. Signed-off-by: Damien Riegel Acked-by: Rob Herring --- Documentation/devicetree/bindings/arm/technologic.txt | 6 ++ 1 file changed, 6 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/technologic.txt

[PATCH v9 1/3] of: add vendor prefix for Technologic Systems

2015-12-11 Thread Damien Riegel
Signed-off-by: Damien Riegel Acked-by: Lee Jones Acked-by: Rob Herring --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt

[PATCH 1/2] Input: add touchscreen bindings for TS-4800

2015-12-10 Thread Damien Riegel
Add bindings for the TS-4800 touchscreen. Signed-off-by: Damien Riegel --- .../devicetree/bindings/input/touchscreen/ts4800-ts.txt | 12 1 file changed, 12 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/touchscreen/ts4800-ts.txt diff --git a

[PATCH 2/2] Input: add touchscreen support for TS-4800

2015-12-10 Thread Damien Riegel
On this board, the touchscreen, an ads7843, is not handled directly by Linux but by a companion FPGA. This FPGA is memory-mapped and the IP design is very similar to the mk712. This commit adds the support for this IP. Signed-off-by: Damien Riegel --- drivers/input/touchscreen/Kconfig

[PATCH v8 1/3] of: add vendor prefix for Technologic Systems

2015-12-08 Thread Damien Riegel
Signed-off-by: Damien Riegel Acked-by: Lee Jones Acked-by: Rob Herring --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt

[PATCH v8 2/3] of: documentation: add bindings documentation for TS-4800

2015-12-08 Thread Damien Riegel
This adds the documentation for the TS-4800 by Technologic Systems. Signed-off-by: Damien Riegel Acked-by: Rob Herring --- Documentation/devicetree/bindings/arm/technologic.txt | 6 ++ 1 file changed, 6 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/technologic.txt

[PATCH v8 0/3] Add board support for TS-4800

2015-12-08 Thread Damien Riegel
by the mfd driver) to access the feed register - Remove watchdog's dependency on SOC_IMX51 Damien Riegel (3): of: add vendor prefix for Technologic Systems of: documentation: add bindings documentation for TS-4800 ARM: dts: TS-4800: add basic device tree .../devicetree/bindings/ar

[PATCH v8 3/3] ARM: dts: TS-4800: add basic device tree

2015-12-08 Thread Damien Riegel
: Damien Riegel --- arch/arm/boot/dts/Makefile | 3 +- arch/arm/boot/dts/imx51-ts4800.dts | 190 + 2 files changed, 192 insertions(+), 1 deletion(-) create mode 100644 arch/arm/boot/dts/imx51-ts4800.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm

[PATCH v8] watchdog: ts4800: add driver for TS-4800 watchdog

2015-12-08 Thread Damien Riegel
syscon block, and the watchdog register offset in this block varies from board to board. This offset is passed in the syscon property after the phandle to the syscon node. Signed-off-by: Damien Riegel Acked-by: Rob Herring Reviewed-by: Guenter Roeck --- Changes in v8: - Split the serie into two

Re: [PATCH v7 2/6] mfd: syscon: add a DT property to set value width

2015-12-07 Thread Damien Riegel
On Mon, Dec 07, 2015 at 09:40:20AM +, Lee Jones wrote: > On Mon, 30 Nov 2015, Damien Riegel wrote: > > > Currently syscon has a fixed configuration of 32 bits for register and > > values widths. In some cases, it would be desirable to be able to > > customize the v

Re: [PATCH v7 3/6] watchdog: ts4800: add driver for TS-4800 watchdog

2015-12-04 Thread Damien Riegel
, Damien On Mon, Nov 30, 2015 at 08:14:48AM -0800, Guenter Roeck wrote: > On 11/30/2015 07:59 AM, Damien Riegel wrote: > >This watchdog is instantiated in a FPGA that is memory mapped. It is > >made of only one register, called the feed register. Writing to this > >register wil

Re: [PATCH v7 2/6] mfd: syscon: add a DT property to set value width

2015-12-02 Thread Damien Riegel
AM -0500, Damien Riegel wrote: > > Currently syscon has a fixed configuration of 32 bits for register and > > values widths. In some cases, it would be desirable to be able to > > customize the value width. > > > > For example, certain boards (like the ones manufactu

[PATCH v7 3/6] watchdog: ts4800: add driver for TS-4800 watchdog

2015-11-30 Thread Damien Riegel
syscon block, and the watchdog register offset in this block varies from board to board. This offset is passed in the syscon property after the phandle to the syscon node. Signed-off-by: Damien Riegel --- .../devicetree/bindings/watchdog/ts4800-wdt.txt| 25 +++ drivers/watchdog/Kconfig

[PATCH v7 0/6] Add board support for TS-4800

2015-11-30 Thread Damien Riegel
hdog's dependency on SOC_IMX51 Damien Riegel (6): of: add vendor prefix for Technologic Systems mfd: syscon: add a DT property to set value width watchdog: ts4800: add driver for TS-4800 watchdog ARM: imx_v6_v7_defconfig: add TS-4800 watchdog of: documentation: add bindings documentati

[PATCH v7 2/6] mfd: syscon: add a DT property to set value width

2015-11-30 Thread Damien Riegel
uration is used. Signed-off-by: Damien Riegel --- Documentation/devicetree/bindings/mfd/syscon.txt | 4 drivers/mfd/syscon.c | 13 + 2 files changed, 17 insertions(+) diff --git a/Documentation/devicetree/bindings/mfd/syscon.txt b/Documentation/devicetr

[PATCH v7 6/6] ARM: dts: TS-4800: add basic device tree

2015-11-30 Thread Damien Riegel
: Damien Riegel --- arch/arm/boot/dts/Makefile | 3 +- arch/arm/boot/dts/imx51-ts4800.dts | 190 + 2 files changed, 192 insertions(+), 1 deletion(-) create mode 100644 arch/arm/boot/dts/imx51-ts4800.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm

[PATCH v7 1/6] of: add vendor prefix for Technologic Systems

2015-11-30 Thread Damien Riegel
Signed-off-by: Damien Riegel Acked-by: Lee Jones Acked-by: Rob Herring --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt

[PATCH v7 4/6] ARM: imx_v6_v7_defconfig: add TS-4800 watchdog

2015-11-30 Thread Damien Riegel
The TS-4800, based on an IMX.515, needs its watchdog support in order to work. Signed-off-by: Damien Riegel --- arch/arm/configs/imx_v6_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig index 79194c6

[PATCH v7 5/6] of: documentation: add bindings documentation for TS-4800

2015-11-30 Thread Damien Riegel
This adds the documentation for the TS-4800 by Technologic Systems. Signed-off-by: Damien Riegel Acked-by: Rob Herring --- Documentation/devicetree/bindings/arm/technologic.txt | 6 ++ 1 file changed, 6 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/technologic.txt

Re: [PATCH v6 2/6] mfd: syscon: add a DT property to set value width

2015-11-25 Thread Damien Riegel
On Wed, Nov 25, 2015 at 02:32:53PM -0600, Rob Herring wrote: > On Wed, Nov 25, 2015 at 02:25:03PM -0500, Damien Riegel wrote: > > Currently syscon has a fixed configuration of 32 bits for register and > > values widths. In some cases, it would be desirable to be able to > >

Re: [PATCH v6 3/6] watchdog: ts4800: add driver for TS-4800 watchdog

2015-11-25 Thread Damien Riegel
On Wed, Nov 25, 2015 at 02:29:56PM -0600, Rob Herring wrote: > On Wed, Nov 25, 2015 at 02:25:04PM -0500, Damien Riegel wrote: > > This watchdog is instantiated in a FPGA that is memory mapped. It is > > made of only one register, called the feed register. Writing to this > >

[PATCH v6 1/6] of: add vendor prefix for Technologic Systems

2015-11-25 Thread Damien Riegel
Signed-off-by: Damien Riegel Acked-by: Lee Jones --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt index 82d2ac9..d3a206d

[PATCH v5 0/5] Add board support for TS-4800

2015-11-25 Thread Damien Riegel
dded a mfd driver to handle syscon registers - The watchdog driver now uses the regmap (created by the mfd driver) to access the feed register - Remove watchdog's dependency on SOC_IMX51 Damien Riegel (6): of: add vendor prefix for Technologic Systems mfd: syscon: add a DT property to s

[PATCH v6 6/6] ARM: dts: TS-4800: add basic device tree

2015-11-25 Thread Damien Riegel
: Damien Riegel --- arch/arm/boot/dts/Makefile | 3 +- arch/arm/boot/dts/imx51-ts4800.dts | 190 + 2 files changed, 192 insertions(+), 1 deletion(-) create mode 100644 arch/arm/boot/dts/imx51-ts4800.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm

[PATCH v6 3/6] watchdog: ts4800: add driver for TS-4800 watchdog

2015-11-25 Thread Damien Riegel
syscon block, and the watchdog register offset in this block varies from board to board. This offset is passed in the syscon property after the phandle to the syscon node. Signed-off-by: Damien Riegel Reviewed-by: Guenter Roeck --- .../devicetree/bindings/watchdog/ts4800-wdt.txt| 25

[PATCH v6 4/6] ARM: imx_v6_v7_defconfig: add TS-4800 watchdog

2015-11-25 Thread Damien Riegel
The TS-4800, based on an IMX.515, needs its watchdog support in order to work. Signed-off-by: Damien Riegel --- arch/arm/configs/imx_v6_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig index 79194c6

[PATCH v6 2/6] mfd: syscon: add a DT property to set value width

2015-11-25 Thread Damien Riegel
d. Signed-off-by: Damien Riegel Acked-by: Arnd Bergmann Acked-by: Lee Jones --- Documentation/devicetree/bindings/mfd/syscon.txt | 3 +++ drivers/mfd/syscon.c | 13 + 2 files changed, 16 insertions(+) diff --git a/Documentation/devicetree/bindings/mfd/sys

[PATCH v6 5/6] of: documentation: add bindings documentation for TS-4800

2015-11-25 Thread Damien Riegel
This adds the documentation for the TS-4800 by Technologic Systems. Signed-off-by: Damien Riegel --- Documentation/devicetree/bindings/arm/technologic.txt | 6 ++ 1 file changed, 6 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/technologic.txt diff --git a

Re: [PATCH 1/4] of: add vendor prefix for Technologic Systems

2015-10-30 Thread Damien Riegel
On Fri, Oct 30, 2015 at 01:50:37PM +0100, Arnd Bergmann wrote: > On Tuesday 27 October 2015 16:33:38 Damien Riegel wrote: > > truly Truly Semiconductors Limited > > +ts Technologic Systems > > usiUniversal Scientific Industrial Co., Ltd. > > > > The

Re: [PATCH 2/4] watchdog: ts4800: add new driver for TS-4800 watchdog

2015-10-30 Thread Damien Riegel
On Fri, Oct 30, 2015 at 01:53:00PM +0100, Arnd Bergmann wrote: > On Tuesday 27 October 2015 16:33:39 Damien Riegel wrote: > > +static void ts4800_write_feed(struct ts4800_wdt *wdt, u16 val) > > +{ > > + __raw_writew(val, wdt->base + TS4800_WTD_FEED); > > +} >

Re: [PATCH 2/4] watchdog: ts4800: add new driver for TS-4800 watchdog

2015-10-28 Thread Damien Riegel
On Tue, Oct 27, 2015 at 07:05:01PM -0700, Guenter Roeck wrote: > In general, naming a driver for the first chip it supports is not > problematic. Making it too generic is, on the other side, problematic. > What are you going to do if ts4900 (or ts4801) implements a different > watchdog ? Okay, I w

Re: [PATCH 2/4] watchdog: ts4800: add new driver for TS-4800 watchdog

2015-10-27 Thread Damien Riegel
On Tue, Oct 27, 2015 at 04:20:52PM -0500, Dinh Nguyen wrote: > On Tue, Oct 27, 2015 at 3:33 PM, Damien Riegel > wrote: > > Signed-off-by: Damien Riegel > > --- > > .../devicetree/bindings/watchdog/ts4800-wdt.txt| 12 ++ > > drivers/watchdog/Kconfig

[PATCH 2/4] watchdog: ts4800: add new driver for TS-4800 watchdog

2015-10-27 Thread Damien Riegel
Signed-off-by: Damien Riegel --- .../devicetree/bindings/watchdog/ts4800-wdt.txt| 12 ++ drivers/watchdog/Kconfig | 9 + drivers/watchdog/Makefile | 1 + drivers/watchdog/ts4800_wdt.c | 212 + 4

[PATCH 3/4] ARM: imx_v6_v7_defconfig: add TS-4800 watchdog

2015-10-27 Thread Damien Riegel
Signed-off-by: Damien Riegel --- arch/arm/configs/imx_v6_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig index b47863d..6bb3a50 100644 --- a/arch/arm/configs/imx_v6_v7_defconfig +++ b/arch/arm/configs

[PATCH 0/4] Add board support for TS-4800

2015-10-27 Thread Damien Riegel
it allows to get a shell on the board. Damien Riegel (4): of: add vendor prefix for Technologic Systems watchdog: ts4800: add new driver for TS-4800 watchdog ARM: imx_v6_v7_defconfig: add TS-4800 watchdog ARM: dts: TS-4800: add basic device tree Documentation/devicetree/bindings/arm/ts.txt

[PATCH 4/4] ARM: dts: TS-4800: add basic device tree

2015-10-27 Thread Damien Riegel
: Damien Riegel --- Documentation/devicetree/bindings/arm/ts.txt | 6 + arch/arm/boot/dts/Makefile | 3 +- arch/arm/boot/dts/imx51-ts4800.dts | 186 +++ 3 files changed, 194 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree

[PATCH 1/4] of: add vendor prefix for Technologic Systems

2015-10-27 Thread Damien Riegel
Signed-off-by: Damien Riegel --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt index d444757..68aad78a 100644 --- a