Re: [alsa-devel] [PATCH v3 3/5] ASoC: codecs: msm8916-wcd-analog: add MBHC support

2017-08-16 Thread Damien Riegel
On Mon, Aug 14, 2017 at 05:34:53PM +0100, Srinivas Kandagatla wrote: > > > On 14/08/17 15:12, Damien Riegel wrote: > > Hi, > > > > > > On Thu, Aug 10, 2017 at 09:33:29AM -0400, Damien Riegel wrote: > > > Hi, > > > > > > On Thu,

[PATCH] Input: tca8418 - enable interrupt after it has been requested

2017-10-16 Thread Damien Riegel
ed to determine if the device was indeed present on the bus or not, this has been replaced by reading the lock/event count register to keep the same functionality. Signed-off-by: Damien Riegel --- I originally made this patch on top of: 800e3b9a6801 Input: drop owner assignment from i2c_driver

i2c: qup: missing stop bit and messages

2017-10-31 Thread Damien Riegel
Hi, While testing a gas gauge, we encountered intermittent i2c issues with the APQ8016. Sometimes, the i2c controller seems to send incomplete messages, or doesn't send some messages. To read values from the gas gauge, this group of two messages is sent: - one write message of 1 byte, with the g

[PATCH 2/4] arm64: dts: qcom: msm8916-pins: remove assignments to bias-disable

2017-11-01 Thread Damien Riegel
Drop assignments to bias-disable as the documentation [1] states that this property doesn't take a value. Other occurrences of this property respect that. [1] Documentation/devicetree/bindings/pinctrl/qcom,msm8916-pinctrl.txt Signed-off-by: Damien Riegel --- arch/arm64/boot/dts/qcom/ms

[PATCH 3/4] arm64: dts: qcom: msm8916: normalize I2C bindings

2017-11-01 Thread Damien Riegel
s and changes the size to 0x600, as the driver only accesses registers up to address 0x408. Also align the second entry of the clocks array. Signed-off-by: Damien Riegel --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a

[PATCH 4/4] arm64: dts: qcom: msm8916: add bindings for i2c1, i2c3, i2c5

2017-11-01 Thread Damien Riegel
Signed-off-by: Damien Riegel --- arch/arm64/boot/dts/qcom/msm8916-pins.dtsi | 72 ++ arch/arm64/boot/dts/qcom/msm8916.dtsi | 45 +++ 2 files changed, 117 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916-pins.dtsi b/arch/arm64/boot/dts

[PATCH 1/4] arm64: dts: qcom: pm8916: fix wcd_codec indentation

2017-11-01 Thread Damien Riegel
Indentation did not respect kernel standards, so fix that for the usual indent with tabs, align with spaces. While at it, remove some empty lines before and after the closing parenthesis of this block. Signed-off-by: Damien Riegel --- arch/arm64/boot/dts/qcom/pm8916.dtsi | 82

[PATCH 0/4] arm64: dts: qcom: dts improvements

2017-11-01 Thread Damien Riegel
7;t take a value, and by making their style matches thus of SPI bindings. Last patch add bindings of I2C cores 1, 3, and 5. Damien Riegel (4): arm64: dts: qcom: pm8916: fix wcd_codec indentation arm64: dts: qcom: msm8916-pins: remove assignments to bias-disable arm64: dts: qcom: msm8916: nor

Re: [PATCH 4/4] arm64: dts: qcom: msm8916: add bindings for i2c1, i2c3, i2c5

2017-11-14 Thread Damien Riegel
On Fri, Nov 10, 2017 at 11:56:12PM -0800, Bjorn Andersson wrote: > On Thu 09 Nov 09:14 PST 2017, Damien Riegel wrote: > > > Hi Bjorn, > > > > > > On Thu, Nov 09, 2017 at 09:00:16AM -0800, Bjorn Andersson wrote: > > > On Wed 01 Nov 10:53 PDT 2017, Damien

wcn36xx: connection monitoring issue

2017-10-27 Thread Damien Riegel
Hi, I'm working on a board derived from the DragonBoard-410c (apq8016 + wcn3620) and noticed an issue with WiFi connection monitoring. When I get out of the range of the access point, the device stays associated, no matter how far I go or how long I wait. The chip on this board is the WCN3620, a

[PATCH] clk: clk-divider: round divider to a valid value when a table is used

2014-01-09 Thread Damien Riegel
. This patch makes round_rate return a valid rate. Signed-off-by: Damien Riegel --- drivers/clk/clk-divider.c | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/drivers/clk/clk-divider.c b/drivers/clk/clk-divider.c index 8d3009e..ab02881 100644 --- a/drivers

[PATCH v2] clk: clk-divider: round divider to a valid value when a table is used

2014-01-13 Thread Damien Riegel
. This patch makes round_rate return a valid rate. Signed-off-by: Damien Riegel --- The previous version of this patch luckily worked with the clk_div_table I had. It might return a divider that was less than the computed div. This patch should now work in every case. --- drivers/clk/clk-divider.c

[PATCH 1/2] ARM: dts: TS-4800: add FPGA's IRQ controller support

2016-05-17 Thread Damien Riegel
Enable FPGA's IRQ controller. It is in charge of dispatching interrupts generated by IPs in the FPGA. The SoC is notified that an interrupt occurred through a GPIO. Signed-off-by: Damien Riegel --- arch/arm/boot/dts/imx51-ts4800.dts | 19 +++ 1 file changed, 19 inser

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

2016-05-17 Thread Damien Riegel
This enables support for the CAN controller located in the FPGA. Signed-off-by: Damien Riegel --- arch/arm/boot/dts/imx51-ts4800.dts | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/imx51-ts4800.dts b/arch/arm/boot/dts/imx51-ts4800.dts index 2c89988..41be82e

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: [RFC/RFT PATCH] watchdog: Move watchdog device creation to watchdog_dev.c

2015-12-07 Thread Damien Riegel
vice creation into watchdog_dev.c, > and create the watchdog device prior to creating its device node. > Also move device class creation into watchdog_dev.c, since this is now > the only place where the watchdog class is needed. > > Inspired by an earlier patch set from Damien

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

[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

[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 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 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 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

[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 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 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

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

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

Re: [RFC/RFT PATCH] watchdog: Move watchdog device creation to watchdog_dev.c

2015-12-13 Thread Damien Riegel
On Mon, Dec 07, 2015 at 09:41:03PM +0100, Wim Van Sebroeck wrote: > Hi All, > > > On 12/07/2015 08:15 AM, Damien Riegel wrote: > > >On Sun, Dec 06, 2015 at 11:51:41AM -0800, Guenter Roeck wrote: > > >>The watchdog character device s currently created in >

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

2015-11-24 Thread Damien Riegel
On Tue, Nov 24, 2015 at 08:20:36AM +, Lee Jones wrote: > On Mon, 23 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

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

2015-11-24 Thread Damien Riegel
iver to allow regmap configuration - Dropped custom mfd driver, use generic 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

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

2015-11-24 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 v5 1/5] of: add vendor prefix for Technologic Systems

2015-11-24 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..0a70537

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

2015-11-24 Thread Damien Riegel
: Damien Riegel --- .../devicetree/bindings/arm/technologic.txt| 6 + arch/arm/boot/dts/Makefile | 3 +- arch/arm/boot/dts/imx51-ts4800.dts | 190 + 3 files changed, 198 insertions(+), 1 deletion(-) create mode 100644 Documentation

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

2015-11-24 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 v5 3/5] watchdog: ts4800: add driver for TS-4800 watchdog

2015-11-24 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 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

[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 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 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 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 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

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 > >

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 > >

[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

[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 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 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 v2 0/5] Add board support for TS-4800

2015-10-29 Thread Damien Riegel
it allows to get a shell on the board. 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 (5): of: add vendor prefi

[PATCH v2 2/5] mfd: ts4800-syscon: add driver for TS-4800 syscon

2015-10-29 Thread Damien Riegel
Driver for TS-4800 syscon. These registers belong to a FPGA that is memory mapped and are used for counters, enable various IPs in the FPGA, control LEDs, control IOs, etc. Currently, only the watchdog is handled. Signed-off-by: Damien Riegel --- .../devicetree/bindings/mfd/ts4800-syscon.txt

[PATCH v2 3/5] watchdog: ts4800: add driver for TS-4800 watchdog

2015-10-29 Thread Damien Riegel
Signed-off-by: Damien Riegel --- .../devicetree/bindings/mfd/ts4800-syscon.txt | 8 + .../devicetree/bindings/watchdog/ts4800-wdt.txt| 12 ++ drivers/mfd/Kconfig| 1 + drivers/mfd/ts4800-syscon.c| 13 +- drivers/watchdog

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

2015-10-29 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

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

2015-10-29 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 | 192 +++ 3 files changed, 200 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree

[PATCH v2 4/5] ARM: imx_v6_v7_defconfig: add TS-4800 watchdog and syscon

2015-10-29 Thread Damien Riegel
Signed-off-by: Damien Riegel --- arch/arm/configs/imx_v6_v7_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig index b47863d..7adc8b7 100644 --- a/arch/arm/configs/imx_v6_v7_defconfig +++ b/arch/arm/configs

Re: [PATCH 0/3] Add hardware dependency to TS-4800 board drivers

2016-02-09 Thread Damien Riegel
Hi Jean, On Tue, Feb 09, 2016 at 11:15:49AM +0100, Jean Delvare wrote: > Hi all, > > This adds hardware dependency to 3 drivers for the Technologic Systems > TS-4800 board. Thanks to these dependencies, users of other systems > will not accidentally enable these drivers. These drivers are for IP

Re: [PATCH] irqchip/ts4800: Make ts4800_ic_ops static const

2016-02-15 Thread Damien Riegel
On Sun, Feb 14, 2016 at 09:50:04PM +0800, Axel Lin wrote: > ts4800_ic_ops is only referenced in this driver, so make it static. > In additional, it's never get modified thus also make it const. > > Signed-off-by: Axel Lin Reviewed-by: Damien Riegel Thanks for catching this.

[PATCH RFC] mfd: syscon: add a DT property to set value width

2015-11-05 Thread Damien Riegel
d. Signed-off-by: Damien Riegel --- Documentation/devicetree/bindings/mfd/syscon.txt | 3 +++ drivers/mfd/syscon.c | 12 2 files changed, 15 insertions(+) diff --git a/Documentation/devicetree/bindings/mfd/syscon.txt b/Documentation/devicetree/bi

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

2015-10-30 Thread Damien Riegel
On Fri, Oct 30, 2015 at 06:04:00PM +, Lee Jones wrote: > On Thu, 29 Oct 2015, Damien Riegel wrote: > > > Signed-off-by: Damien Riegel > > --- > > Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + > > 1 file changed, 1 insertion(+) > >

Re: [PATCH v2 2/5] mfd: ts4800-syscon: add driver for TS-4800 syscon

2015-10-30 Thread Damien Riegel
On Fri, Oct 30, 2015 at 05:56:56PM +, Lee Jones wrote: > On Thu, 29 Oct 2015, Damien Riegel wrote: > > > Driver for TS-4800 syscon. These registers belong to a FPGA that is > > memory mapped and are used for counters, enable various IPs in the FPGA, > > contro

Re: [PATCH v2 2/5] mfd: ts4800-syscon: add driver for TS-4800 syscon

2015-11-02 Thread Damien Riegel
On Mon, Nov 02, 2015 at 09:12:53AM +, Lee Jones wrote: > [Cc'ing Arnd] > > On Fri, 30 Oct 2015, Damien Riegel wrote: > > On Fri, Oct 30, 2015 at 05:56:56PM +, Lee Jones wrote: > > > On Thu, 29 Oct 2015, Damien Riegel wrote: > > > > > > >

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

2015-11-23 Thread Damien Riegel
n 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 (5): of: add vendor prefix for Technologic Systems mfd: syscon: add a

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

2015-11-23 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 v4 5/5] ARM: dts: TS-4800: add basic device tree

2015-11-23 Thread Damien Riegel
: Damien Riegel --- .../devicetree/bindings/arm/technologic.txt| 6 + arch/arm/boot/dts/Makefile | 3 +- arch/arm/boot/dts/imx51-ts4800.dts | 190 + 3 files changed, 198 insertions(+), 1 deletion(-) create mode 100644 Documentation

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

2015-11-23 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..0a70537

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

2015-11-23 Thread Damien Riegel
d. Signed-off-by: Damien Riegel --- Documentation/devicetree/bindings/mfd/syscon.txt | 3 +++ drivers/mfd/syscon.c | 13 + 2 files changed, 16 insertions(+) diff --git a/Documentation/devicetree/bindings/mfd/syscon.txt b/Documentation/devicetree/bi

[PATCH v4 3/5] watchdog: ts4800: add driver for TS-4800 watchdog

2015-11-23 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

Re: [PATCH v4 3/5] watchdog: ts4800: add driver for TS-4800 watchdog

2015-11-23 Thread Damien Riegel
On Mon, Nov 23, 2015 at 06:32:15PM -0800, Guenter Roeck wrote: > Hi Damien, > > On 11/23/2015 07:17 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 > &

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

2015-11-16 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 v3 1/5] of: add vendor prefix for Technologic Systems

2015-11-16 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..0a70537

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

2015-11-16 Thread Damien Riegel
on - Dropped custom mfd driver, use generic 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 (5)

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

2015-11-16 Thread Damien Riegel
: Damien Riegel --- .../devicetree/bindings/arm/technologic.txt| 6 + arch/arm/boot/dts/Makefile | 3 +- arch/arm/boot/dts/imx51-ts4800.dts | 190 + 3 files changed, 198 insertions(+), 1 deletion(-) create mode 100644 Documentation

[PATCH v3 3/5] watchdog: ts4800: add driver for TS-4800 watchdog

2015-11-16 Thread Damien Riegel
thout relying on a userspace tool to ping their watchdog. Signed-off-by: Damien Riegel --- .../devicetree/bindings/watchdog/ts4800-wdt.txt| 21 ++ drivers/watchdog/Kconfig | 10 + drivers/watchdog/Makefile | 1 + drivers/watchdog/ts4800_

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

2015-11-16 Thread Damien Riegel
d. Signed-off-by: Damien Riegel --- Documentation/devicetree/bindings/mfd/syscon.txt | 3 +++ drivers/mfd/syscon.c | 12 2 files changed, 15 insertions(+) diff --git a/Documentation/devicetree/bindings/mfd/syscon.txt b/Documentation/devicetree/bi

Re: [PATCH v2 2/5] mfd: ts4800-syscon: add driver for TS-4800 syscon

2015-11-03 Thread Damien Riegel
On Tue, Nov 03, 2015 at 11:48:38AM +0100, Arnd Bergmann wrote: > On Tuesday 03 November 2015 10:12:17 Lee Jones wrote: > > > > > > I think a 'buswidth=<16>;' property in addition to 'compatible="syscon"' > > > is more in line with what other subsystems do. > > > > Perfect. > > > > Just to clari

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

2016-06-09 Thread Damien Riegel
This enables support for the CAN controller located in the FPGA. Signed-off-by: Damien Riegel --- Changes in v2: - Get rid of "0," in unit-address - Move node to keep them sorted by unit-address arch/arm/boot/dts/imx51-ts4800.dts | 10 ++ 1 file changed, 10 insertions(+)

[PATCH v2 1/2] ARM: dts: TS-4800: add FPGA's IRQ controller support

2016-06-09 Thread Damien Riegel
Enable FPGA's IRQ controller. It is in charge of dispatching interrupts generated by IPs in the FPGA. The SoC is notified that an interrupt occurred through a GPIO. Signed-off-by: Damien Riegel --- Changes in v2: - Remove new lines - Use hyphen rather than underscore in node name - Get r

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

Re: [PATCH 0/5] watchdog: Do not use 'dev' from watchdog_device in watchdog drivers

2015-12-24 Thread Damien Riegel
On Wed, Dec 23, 2015 at 09:11:28PM -0800, Guenter Roeck wrote: > The 'dev' variable in watchdog drivers has a different lifetime than the > watchdog character device and should therefore not be used by watchdog > drivers. > > Some of the drivers use the variable to print kernel messages. Those are

[PATCH v2 0/3] can: sja1000: support for technologic version

2015-12-24 Thread Damien Riegel
{read,write}16 Damien Riegel (3): can: sja1000: of: add per-compatible init hook can: sja1000: add documentation for Technologic Systems version can: sja1000: of: add compatibility with Technologic Systems version .../devicetree/bindings/net/can/sja1000.txt| 3 +- drivers/net/can/sj

[PATCH v2 1/3] can: sja1000: of: add per-compatible init hook

2015-12-24 Thread Damien Riegel
This commit adds the capability to allocate and init private data embedded in the sja1000_priv structure on a per-compatible basis. The device node is passed as a parameter of the init callback to allow parsing of custom device tree properties. Signed-off-by: Damien Riegel --- drivers/net/can

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

2015-12-24 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 v2 3/3] can: sja1000: of: add compatibility with Technologic Systems version

2015-12-24 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 | 47 ++ 1 file changed, 47 insertions(+) diff --git a/drivers/net/can/sja100

[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 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 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 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 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 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 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] 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 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 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

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

[RFC PATCH] can: sja1000: of: add per-compatible init hook

2015-12-19 Thread Damien Riegel
This commit adds the capability to allocate and init private data embedded in the sja1000_priv structure on a per-compatible basis. The device node is passed as a parameter of the init callback to allow parsing of custom device tree properties. Signed-off-by: Damien Riegel --- Hi Marc, I am

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 1/5] watchdog: Create watchdog device in watchdog_dev.c

2015-12-21 Thread Damien Riegel
ce number as well as the watchdog class, both of which > reside in watchdog_dev.c. > > Create the watchdog device in watchdog_dev.c to simplify the code. > > Inspired by earlier patch set from Damien Riegel. Hi Guenter, The main purpose of my patch was to inverse the device creatio

  1   2   >