Re: [PATCH v7] rtc: rewrite DS1302 using SPI

2016-03-19 Thread Sergei Ianovich
On Tue, 2016-03-15 at 01:18 +0100, Alexandre Belloni wrote: > I would like to have a solution for secureedge5410 even if it is > untested. Else, we are breaking an existing platform without any > solution. > > I've put the sh maintainers in copy, maybe they have an opinion. Else > I'll let your pa

[PATCH v10] serial: support for 16550A serial ports on LP-8x4x

2016-03-01 Thread Sergei Ianovich
..d3a72da --- /dev/null +++ b/drivers/tty/serial/8250/8250_lp8841.c @@ -0,0 +1,156 @@ +/* linux/drivers/tty/serial/8250/8250_lp8841.c + * + * Support for 16550A serial ports on ICP DAS LP-8841 + * + * Copyright (C) 2013 Sergei Ianovich + * + * This program is free software; you can redistribute it an

[PATCH v9] serial: support for 16550A serial ports on LP-8x4x

2016-03-01 Thread Sergei Ianovich
/* linux/drivers/tty/serial/8250/8250_lp8841.c + * + * Support for 16550A serial ports on ICP DAS LP-8841 + * + * Copyright (C) 2013 Sergei Ianovich + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as +

[PATCH v8] serial: support for 16550A serial ports on LP-8x4x

2016-03-01 Thread Sergei Ianovich
}; diff --git a/drivers/tty/serial/8250/8250_lp8841.c b/drivers/tty/serial/8250/8250_lp8841.c new file mode 100644 index 000..d80e218 --- /dev/null +++ b/drivers/tty/serial/8250/8250_lp8841.c @@ -0,0 +1,173 @@ +/* linux/drivers/tty/serial/8250/8250_lp8841.c + * + * Support for 16550A serial p

Re: [PATCH v7] serial: support for 16550A serial ports on LP-8x4x

2016-03-01 Thread Sergei Ianovich
On Tue, 2016-03-01 at 19:48 +0200, Andy Shevchenko wrote: > On Tue, 2016-03-01 at 20:14 +0300, Sergei Ianovich wrote: > > On Tue, 2016-03-01 at 18:46 +0200, Andy Shevchenko wrote: > > > On Tue, 2016-03-01 at 19:25 +0300, Sergei Ianovich wrote: > > > > On Tue, 2

Re: [PATCH v7] serial: support for 16550A serial ports on LP-8x4x

2016-03-01 Thread Sergei Ianovich
On Tue, 2016-03-01 at 18:46 +0200, Andy Shevchenko wrote: > On Tue, 2016-03-01 at 19:25 +0300, Sergei Ianovich wrote: > > On Tue, 2016-03-01 at 13:06 +0200, Andy Shevchenko wrote: > > > On Tue, 2016-03-01 at 00:26 +0300, Sergei Ianovich wrote: > > > > > +

Re: [PATCH v7] serial: support for 16550A serial ports on LP-8x4x

2016-03-01 Thread Sergei Ianovich
On Tue, 2016-03-01 at 13:06 +0200, Andy Shevchenko wrote: > On Tue, 2016-03-01 at 00:26 +0300, Sergei Ianovich wrote: > > The patch adds support for 3 additional LP-8x4x built-in serial > > ports. > > > > The device can also host up to 8 extension cards with 4 serial

[PATCH v7] serial: support for 16550A serial ports on LP-8x4x

2016-02-29 Thread Sergei Ianovich
ile mode 100644 index 000..e92c01c --- /dev/null +++ b/drivers/tty/serial/8250/8250_lp8841.c @@ -0,0 +1,193 @@ +/* linux/drivers/tty/serial/8250/8250_lp8841.c + * + * Support for 16550A serial ports on ICP DAS LP-8841 + * + * Copyright (C) 2013 Sergei Ianovich + * + * This program is free software

Re: [PATCH v6] serial: support for 16550A serial ports on LP-8x4x

2016-02-29 Thread Sergei Ianovich
On Mon, 2016-02-29 at 12:29 +0200, Andy Shevchenko wrote: > On Sat, 2016-02-27 at 19:14 +0300, Sergei Ianovich wrote: > > +struct lp8841_serial_data { > > + int line; > > + void*ios_mem; > > __iomem OK > > +}; > &

Re: [PATCH] spi: lp-8841: return correct error code from probe

2016-02-27 Thread Sergei Ianovich
Hi Arnd, On Thu, 2016-02-25 at 12:37 +0100, Arnd Bergmann wrote: > The spi_lp8841_rtc_probe() function misses an initialization of the > return code when it fails to get its memory resource, as gcc notices: > > drivers/spi/spi-lp8841-rtc.c: In function 'spi_lp8841_rtc_probe': > drivers/spi/spi-lp

[PATCH v6] serial: support for 16550A serial ports on LP-8x4x

2016-02-27 Thread Sergei Ianovich
..6fef37f --- /dev/null +++ b/drivers/tty/serial/8250/8250_lp8841.c @@ -0,0 +1,166 @@ +/* linux/drivers/tty/serial/8250/8250_lp8841.c + * + * Support for 16550A serial ports on ICP DAS LP-8841 + * + * Copyright (C) 2013 Sergei Ianovich + * + * This program is free software; you can redistribute it an

[PATCH v6] arm: pxa: support ICP DAS LP-8x4x FPGA irq

2016-02-27 Thread Sergei Ianovich
allow normal initialization of IRQ resources with DT. Signed-off-by: Sergei Ianovich Reviewed-by: Linus Walleij CC: Arnd Bergmann CC: Rob Herring CC: Marc Zyngier v5..v6 fixes according to Rob Herring review comments: * drop wildcards in binding and file names * rename alias '

Re: [PATCH] spi: lp-8841: return correct error code from probe

2016-02-25 Thread Sergei Ianovich
("spi: master driver to enable RTC on ICPDAS LP- > 8841") Tested-by: Sergei Ianovich

[PATCH v6] mtd: support BB SRAM on ICP DAS LP-8x4x

2016-02-23 Thread Sergei Ianovich
volatile process data like counter values and sensor statuses. Storing those data in flash or mmc card is not a viable solution. Signed-off-by: Sergei Ianovich Reviewed-by: Brian Norris CC: Rob Herring v5..v6 * replace wildcards in compatible and module name * drop obsolete

Re: [PATCH v1] arm: pxa: fix DT node name for PXA27X usb

2016-02-23 Thread Sergei Ianovich
declared in pxa27x.dtsi and pxa3xx.dtsi, there is a stronger ground to have node clocks properties set in pxa27x.dtsi and pxa3xx.dtsi as well. However, there is already nodes with clocks properties in pxa2xx.dtsi. I cannot choose, you should make a decision. -- Sergei Ianovich

[PATCH v7] rtc: rewrite DS1302 using SPI

2016-02-23 Thread Sergei Ianovich
DS1302 is half-duplex SPI device. The driver respects this fact now. Pin configurations should be implemented using SPI subsystem. Signed-off-by: Sergei Ianovich CC: Alexandre Belloni CC: Rob Herring v6..v7 * change binding and doc file names v5..v6 * rewrite the driver as an

[PATCH v4] spi: master driver to enable RTC on ICPDAS LP-8841

2016-02-23 Thread Sergei Ianovich
edge. Master input is set by the RTC on the trailing edge and is sensed by the master on low clock. Signed-off-by: Sergei Ianovich CC: Mark Brown CC: Rob Herring v3..v4 fix Mark Brown review comments * fix dependencies in Kconfig fix Rob Herring review comments * rewrite binding

[PATCH v3] spi: master driver to enable RTC on ICPDAS LP-8841

2016-02-22 Thread Sergei Ianovich
edge. Master input is set by the RTC on the trailing edge and is sensed by the master on low clock. Signed-off-by: Sergei Ianovich CC: Mark Brown --- v2..v3 to fix Mark Brown review comments * drop dependencies in Kconfig * use #ifdef CONFIG_OF to allow build without DT * drop empty

[PATCH v1] arm: pxa: fix DT node name for PXA27X usb

2016-02-22 Thread Sergei Ianovich
m_clk_get(&pdev->dev, NULL); 442:if (IS_ERR(usb_clk)) 443:return PTR_ERR(usb_clk); ---8<--- The error is caused by different names for the same DT node in pxa2xx.dtsi and pxa27x.dtsi. Signed-off-by: Sergei Ianovich CC: Robert Jarzmik --- arch/arm/boot/dts/pxa27x.dtsi | 2

[PATCH v2] spi: master driver to enable RTC on ICPDAS LP-8841

2016-02-22 Thread Sergei Ianovich
edge. Master input is set by the RTC on the trailing edge and is sensed by the master on low clock. Signed-off-by: Sergei Ianovich CC: Mark Brown --- v1..v2 to fix Mark Brown review comments * drop ifdef around MODULE_NAME * use usleep_range directly * drop empty master->clea

Re: [PATCH v1] spi: master driver to enable RTC on ICPDAS LP-8841

2016-02-22 Thread Sergei Ianovich
On Mon, 2016-02-22 at 12:10 +0900, Mark Brown wrote: > On Mon, Feb 22, 2016 at 04:47:06AM +0300, Sergei Ianovich wrote: > > ICP DAS LP-8841 contains a DS-1302 RTC. This driver provides an SPI > > master which makes the RTC usable. The driver is not supposed to > > work &

Re: [PATCH v6] serial: rewrite pxa2xx-uart to use 8250_core

2016-02-21 Thread Sergei Ianovich
On Sat, 2016-02-06 at 22:22 -0800, Greg Kroah-Hartman wrote: > On Thu, Dec 24, 2015 at 06:15:14PM +0300, Sergei Ianovich wrote: > > pxa2xx-uart was a separate uart platform driver. It was declaring > > the same device names and numbers as 8250 driver. As a result, > > it was i

[PATCH v1] spi: master driver to enable RTC on ICPDAS LP-8841

2016-02-21 Thread Sergei Ianovich
edge. Master input is set by the RTC on the trailing edge and is sensed by the master on low clock. Signed-off-by: Sergei Ianovich --- .../devicetree/bindings/spi/spi-lp8841-rtc.txt | 55 + drivers/spi/Kconfig| 10 + drivers/spi/Makefile

[PATCH v6] rtc: rewrite DS1302 using SPI

2016-02-21 Thread Sergei Ianovich
DS1302 is half-duplex SPI device. The driver respects this fact now. Pin configurations should be implemented using SPI subsystem. Signed-off-by: Sergei Ianovich CC: Alexandre Belloni CC: Rob Herring --- v5..v6 * rewrite the driver as an SPI slave device * use "maxim" for v

Re: [PATCH v3] net: ethernet: davicom: fix devicetree irq resource

2016-02-21 Thread Sergei Ianovich
upt trigger flags are honored > in > platform_get_irq(), so remove the needless code in dm9000. > > Signed-off-by: Robert Jarzmik > Acked-by: Marcel Ziswiler > Cc: Sergei Shtylyov > Tested-by: Sergei Ianovich I've hit the original bug too. This patch fixes the *regression*. It may be worth adding a note about this. -- Sergei Ianovich

[PATCH v6] serial: rewrite pxa2xx-uart to use 8250_core

2015-12-24 Thread Sergei Ianovich
/8250_pxa.c @@ -0,0 +1,177 @@ +/* + * drivers/tty/serial/8250/8250_pxa.c -- driver for PXA on-board UARTS + * Copyright: (C) 2013 Sergei Ianovich + * + * replaces drivers/serial/pxa.c by Nicolas Pitre + * Created: Feb 20, 2003 + * Copyright: (C) 2003 Monta Vista Software, Inc. + * + * Based on

Re: [PATCH v5] rtc: support DS1302 RTC on ICP DAS LP-8x4x

2015-12-24 Thread Sergei Ianovich
On Thu, 2015-12-24 at 12:04 +0100, Alexandre Belloni wrote: > On 22/12/2015 at 12:16:41 -0600, Rob Herring wrote : > > Well, the binding should reflect that, whether the driver needs to > > be > > re-written is somewhat a separate question. That should probably > > have > > been done for the DS1302

[PATCH v5] serial: rewrite pxa2xx-uart to use 8250_core

2015-12-23 Thread Sergei Ianovich
+ * Copyright: (C) 2013 Sergei Ianovich + * + * replaces drivers/serial/pxa.c by Nicolas Pitre + * Created: Feb 20, 2003 + * Copyright: (C) 2003 Monta Vista Software, Inc. + * + * Based on drivers/serial/8250.c by Russell King. + * + * This program is free software; you can redistribute it and/or modify

Re: [PATCH v5] rtc: support DS1302 RTC on ICP DAS LP-8x4x

2015-12-20 Thread Sergei Ianovich
On Sat, 2015-12-19 at 21:38 -0600, Rob Herring wrote: > On Tue, Dec 15, 2015 at 08:45:23PM +0300, Sergei Ianovich wrote: > > Nothing in this is specific to ICP, so the subject should be updated. > > > Signed-off-by: Sergei Ianovich > > CC: Alexandre Belloni > > -

Re: [PATCH v4 1/2] serial: rewrite pxa2xx-uart to use 8250_core

2015-12-20 Thread Sergei Ianovich
On Sun, 2015-12-20 at 00:12 +0100, Robert Jarzmik wrote: > Sergei Ianovich writes: > > > On Sat, 2015-12-19 at 20:31 +0100, Robert Jarzmik wrote: > > > Sergei Ianovich writes: > > > Thanks for spotting this. This is caused by a change in the latest > > >

Re: [PATCH v5] mtd: support BB SRAM on ICP DAS LP-8x4x

2015-12-20 Thread Sergei Ianovich
On Sat, 2015-12-19 at 21:38 -0600, Rob Herring wrote: > On Tue, Dec 15, 2015 at 09:58:53PM +0300, Sergei Ianovich wrote: > > This provides an MTD device driver for 512kB of battery backed up > > SRAM > > on ICPDAS LP-8X4X programmable automation controllers. > > >

Re: [PATCH v5] serial: support for 16550A serial ports on LP-8x4x

2015-12-19 Thread Sergei Ianovich
On Tue, 2015-12-15 at 22:51 +0100, Arnd Bergmann wrote: > On Wednesday 16 December 2015 00:04:45 Sergei Ianovich wrote: > > +Examples (from pxa27x-lp8x4x.dts): > > + > > +   uart@9050 { > > By convention, the name should be 'serial', not 'uar

Re: [PATCH v4 1/2] serial: rewrite pxa2xx-uart to use 8250_core

2015-12-19 Thread Sergei Ianovich
On Sat, 2015-12-19 at 20:31 +0100, Robert Jarzmik wrote: > Sergei Ianovich writes: > Thanks for spotting this. This is caused by a change in the latest > > version of the patch (SERIAL_8250_PXA instead of SERIAL_PXA). This > > change could be reverted. > Actually I'm

Re: [PATCH v4 1/2] serial: rewrite pxa2xx-uart to use 8250_core

2015-12-19 Thread Sergei Ianovich
On Sat, 2015-12-19 at 14:26 +0100, Robert Jarzmik wrote: > Robert Jarzmik writes: > > > Sergei Ianovich writes: > > > > > pxa2xx-uart was a separate uart platform driver. It was declaring > > > the same device names and numbers as 8250 driver. As a result,

Re: [PATCH v5] serial: support for 16550A serial ports on LP-8x4x

2015-12-19 Thread Sergei Ianovich
On Wed, 2015-12-16 at 11:26 +0100, Arnd Bergmann wrote: > On Wednesday 16 December 2015 11:04:57 Sergei Ianovich wrote: > > On Tue, 2015-12-15 at 22:51 +0100, Arnd Bergmann wrote: > > > 'x' wildcards in the name of the board seem important. There are > > devices &

[PATCH] arm: pxa: create a unified defconfig for PXA27X-DT

2015-12-18 Thread Sergei Ianovich
Instead of one defconfig file per board, pxa27x-dt_defconfig is expected to provide a configuration for kernel which can test any PXA27X-DT compatible board Signed-off-by: Sergei Ianovich CC: Robert Jarzmik CC: Arnd Bergmann --- Documentation/arm/pxa/pxa27x_defconfig.txt | 7 ++ arch/arm

Re: [PATCH v5] arm: pxa: support ICP DAS LP-8x4x FPGA irq

2015-12-18 Thread Sergei Ianovich
On Fri, 2015-12-18 at 21:58 -0600, Rob Herring wrote: > On Tue, Dec 15, 2015 at 10:26:21PM +0300, Sergei Ianovich wrote: > > +Example: > > + > > + fpga: fpga@1706 { > > Nothing else in the fpga? In any case, this node should be named >

Re: [PATCH v5] serial: support for 16550A serial ports on LP-8x4x

2015-12-16 Thread Sergei Ianovich
On Tue, 2015-12-15 at 22:51 +0100, Arnd Bergmann wrote: > On Wednesday 16 December 2015 00:04:45 Sergei Ianovich wrote: > > index 000..5f9a4c1 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/serial/lp8x4x-serial.txt > > @@ -0,0 +1,35 @@ > &g

[PATCH v5] serial: support for 16550A serial ports on LP-8x4x

2015-12-15 Thread Sergei Ianovich
/null +++ b/drivers/tty/serial/8250/8250_lp8x4x.c @@ -0,0 +1,168 @@ +/* linux/drivers/tty/serial/8250/8250_lp8x4x.c + * + * Support for 16550A serial ports on ICP DAS LP-8x4x + * + * Copyright (C) 2013 Sergei Ianovich + * + * This program is free software; you can redistribute it and/or modify + *

[PATCH v5] arm: pxa: support ICP DAS LP-8x4x FPGA irq

2015-12-15 Thread Sergei Ianovich
allow normal initialization of IRQ resources with DT. Signed-off-by: Sergei Ianovich Reviewed-by: Linus Walleij CC: Arnd Bergmann --- v4..v5 * constify struct of_device_id * drop irq number from handler signature v3.2..v4 * move DTS binding to a different patch (8/21) v3.1

[PATCH v5] mtd: support BB SRAM on ICP DAS LP-8x4x

2015-12-15 Thread Sergei Ianovich
volatile process data like counter values and sensor statuses. Storing those data in flash or mmc card is not a viable solution. Signed-off-by: Sergei Ianovich Reviewed-by: Brian Norris --- v4..v5 * remove .owner from struct platform_driver * constify struct of_device_id for further

Re: [PATCH v5 2/2] arm: pxa27x: support for ICP DAS LP-8x4x w/ DT

2015-12-15 Thread Sergei Ianovich
On Tue, 2015-12-15 at 18:02 +0100, Arnd Bergmann wrote: > On Tuesday 15 December 2015 19:42:07 Sergei Ianovich wrote: > > There are several board-specific devices on LP8x4x: custom FPGA, > > custom > > UART, custom IRQ on FPGA, custom parallel bus for industrial IO. The >

[PATCH v5] rtc: support DS1302 RTC on ICP DAS LP-8x4x

2015-12-15 Thread Sergei Ianovich
Signed-off-by: Sergei Ianovich CC: Alexandre Belloni --- v4..v5 * drop THIS_MODULE from struct platform driver * use "dallas" for vendor name per vendor-prefixes.txt v3..v4 * move DTS bindings to a different patch v2..v3 * use usleep_range instead of cus

Re: [PATCH v5 2/2] arm: pxa27x: support for ICP DAS LP-8x4x w/ DT

2015-12-15 Thread Sergei Ianovich
On Tue, 2015-12-15 at 19:06 +0100, Robert Jarzmik wrote: >  > > > Maybe we can have a pxa_defconfig file that enables lots of boards > > > and then we remove the individual configs? We don't have to remove > > > them all at once, but it would make me very happy if we could at > > > least kill off s

Re: [PATCH v5 2/2] arm: pxa27x: support for ICP DAS LP-8x4x w/ DT

2015-12-15 Thread Sergei Ianovich
On Tue, 2015-12-15 at 17:32 +0100, Arnd Bergmann wrote: > On Tuesday 15 December 2015 19:27:50 Sergei Ianovich wrote: > >  .../devicetree/bindings/vendor-prefixes.txt|   1 + > >  arch/arm/boot/dts/Makefile |   3 + > >  arch/arm/boot/dts/p

[PATCH v5 2/2] arm: pxa27x: support for ICP DAS LP-8x4x w/ DT

2015-12-15 Thread Sergei Ianovich
a correct device tree, all of them can be booted using the same kernel. Signed-off-by: Sergei Ianovich Acked-by: Rob Herring CC: Daniel Mack CC: Robert Jarzmik CC: Arnd Bergmann --- v4..v5 fixes to apply Rob Herring's "Acked-by": * provide board compatible string

[PATCH v4 1/2] serial: rewrite pxa2xx-uart to use 8250_core

2015-12-09 Thread Sergei Ianovich
according to Marvel(R) PXA270M Processor Specification Update (April 19, 2010) is dropped. 8250_core reads from FIFO immediately after checking DR bit in LSR. Signed-off-by: Sergei Ianovich Reviewed-by: Heikki Krogerus Reviewed-by: James Cameron Acked-by: Greg Kroah-Hartman --- The patch was reviewed

[PATCH v4 2/2] arm: pxa27x: support for ICP DAS LP-8x4x w/ DT

2015-12-09 Thread Sergei Ianovich
a correct device tree, all of them can be booted using the same kernel. Signed-off-by: Sergei Ianovich CC: Daniel Mack CC: Robert Jarzmik CC: Arnd Bergmann --- v3..v4 * support for newer flavor w/ 96Mb flash memory * use 'partitions' subnodes * move device-specific twe

[PATCH v4 0/2] series to support for ICP DAS LP-8x4x (ARM PXA270)

2015-12-09 Thread Sergei Ianovich
gital output/16 port digital input Not supported for now: * VGA interface on PXA270 for lack of dts binding * the rest of parallel bus (I-8xxx) modules for lack of hardware * GPIO reset for lack of relevance (watchdog reset is working) Signed-off-by: Sergei Ianovich CC: Daniel Mack CC: Ar

Re: [v4,09/21] rtc: support DS1302 RTC on ICP DAS LP-8x4x

2015-06-08 Thread Sergei Ianovich
Hi Alexandre, On Mon, 2015-06-08 at 14:07 +0200, Alexandre Belloni wrote: > Are you still interested in seeing that patch going upstream? Sure. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at

Re: [PATCH v4 00/21] ARM: support for ICP DAS LP-8x4x (with dts)

2014-04-17 Thread Sergei Ianovich
On Thu, 2014-04-17 at 12:38 +0200, Daniel Mack wrote: > I spent some hours on this topic again now, and rebased and tested my > tree to 3.15-rc1. Pushed it here: > > https://github.com/zonque/linux/tree/pxa-dma-3.15 Great. > There's some overlap to the patches you sent, which I'll comment on >

Re: [PATCH v4 00/21] ARM: support for ICP DAS LP-8x4x (with dts)

2014-04-16 Thread Sergei Ianovich
Daniel Mack wrote: >Hi, > >On 04/16/2014 07:13 PM, Sergei Ianovich wrote: >> We had an intensive discussion of the series in the beginning of >> December 2013 [1]. The discussion resulted in 3 versions of the >series >> in less than 3 weeks. Then there was a decision

Re: [PATCH v4 12/21] serial: support for 16550A serial ports on LP-8x4x

2014-04-16 Thread Sergei Ianovich
One Thousand Gnomes wrote: >On Wed, 16 Apr 2014 23:01:47 +0400 >Sergei Ianovich wrote: > >> One Thousand Gnomes wrote: >> >> + baud = uart_get_baud_rate(port, termios, old, >> >> + port->uartclk / 16 / 0x, >> &

Re: [PATCH v4 21/21] misc: support for I-8024 in LP-8x4x

2014-04-16 Thread Sergei Ianovich
One Thousand Gnomes wrote: >> I've closely examined a dozen or two of drivers, but of them was >close enough for I-8024 in terms of speed. Its channel takes 0.1 us to >set up from kernel. Real user space programs can setup all for channels >in 1 us with interface provided by this patch. That's sai

Re: [PATCH v4 13/21] misc: support for LP-8x4x custom parallel bus

2014-04-16 Thread Sergei Ianovich
One Thousand Gnomes wrote: >On Wed, 16 Apr 2014 21:17:18 +0400 >Sergei Ianovich wrote: > >> This patch implements probing for the bus and reporting the number >> of available expansion slots. > >This appears to be a bus not a misc device. I don't think it belongs

Re: [PATCH v4 21/21] misc: support for I-8024 in LP-8x4x

2014-04-16 Thread Sergei Ianovich
One Thousand Gnomes wrote: >On Wed, 16 Apr 2014 21:17:26 +0400 >Sergei Ianovich wrote: > >> Status of I-8042 4 analog output channels can be managed via >> sysfs. > >Surely this is an iio interface and should follow the same API as >everyone else ? Thanks fo

Re: [PATCH v4 12/21] serial: support for 16550A serial ports on LP-8x4x

2014-04-16 Thread Sergei Ianovich
One Thousand Gnomes wrote: >> +baud = uart_get_baud_rate(port, termios, old, >> + port->uartclk / 16 / 0x, >> + port->uartclk / 16); >> +switch (baud) { >> +case 2400: >> +len |= 1; >> +break; >> +

[PATCH v4 21/21] misc: support for I-8024 in LP-8x4x

2014-04-16 Thread Sergei Ianovich
Status of I-8042 4 analog output channels can be managed via sysfs. http://www.icpdas.com/root/product/solutions/remote_io/rs-485/i-8k_i-87k/i-8024w.html Signed-off-by: Sergei Ianovich --- v3..v4 * no changes v2..v3 * use usleep_range instead of custom nsleep * number change (16

[PATCH v4 16/21] misc: support for writing to LP-8x4x EEPROM

2014-04-16 Thread Sergei Ianovich
at24c128 write protection is implemented by a separate GPIO line. EEPROM driver doesn't provide this option, so we implement it in the board-specific device. Signed-off-by: Sergei Ianovich --- v3..v4 * move DTS binding to a different patch (8/21) v2..v3 * new patch .../devic

[PATCH v4 17/21] misc: support for serial slots in LP-8x4x

2014-04-16 Thread Sergei Ianovich
the modules. So the parallel bus needs to select which slot is connected. Signed-off-by: Sergei Ianovich --- v3..v4 * move DTS binding to a different patch (8/21) v2..v3 * no changes (except number 12/16 -> 17/21) v0..v2 * use device tree * use devm helpers where possi

[PATCH v4 19/21] misc: support for I-8041 in LP-8x4x

2014-04-16 Thread Sergei Ianovich
Status of I-8041 32 digital output channels can be managed via sysfs now. http://www.icpdas.com/products/Remote_IO/i-8ke/i-8041w.htm Signed-off-by: Sergei Ianovich --- v3..v4 v2..v3 v0..v2 * no changes (except number 14/16 -> 19/21) Documentation/misc-devices/lp8x4x_bus.txt |

[PATCH v4 18/21] misc: support for parallel slots in LP-8x4x

2014-04-16 Thread Sergei Ianovich
This patch enumerates parallel modules in expansion slots and exposes model numbers via sysfs. Signed-off-by: Sergei Ianovich --- v3..v4 * move DTS binding to a different patch (8/21) v2..v3 * no changes (except number 13/16 -> 18/21) v0..v2 * use device tree * use d

[PATCH v4 13/21] misc: support for LP-8x4x custom parallel bus

2014-04-16 Thread Sergei Ianovich
This patch implements probing for the bus and reporting the number of available expansion slots. Signed-off-by: Sergei Ianovich --- v3..v4 * move DTS binding to a different patch (8/21) v2..v3 * fixed goto after bus_register * number change (11/16 -> 13/21) v0..v2 *

[PATCH v4 15/21] misc: support for LP-8x4x DIP switch

2014-04-16 Thread Sergei Ianovich
Signed-off-by: Sergei Ianovich --- v3..v4 * move DTS binding to a different patch (8/21) v2..v3 * new patch .../devicetree/bindings/misc/lp8x4x-bus.txt| 2 ++ Documentation/misc-devices/lp8x4x_bus.txt | 3 +++ drivers/misc/lp8x4x_bus.c

[PATCH v4 20/21] misc: support for I-8042 in LP-8x4x

2014-04-16 Thread Sergei Ianovich
Status of I-8042 16 digital output channels can be managed via sysfs. Status of I-8042 16 digital input channels can be read via sysfs. http://www.icpdas.com/products/Remote_IO/i-8ke/i-8042w.htm Signed-off-by: Sergei Ianovich --- v3..v4 v2..v3 v0..v2 * no changes (except number 15

[PATCH v4 14/21] misc: support for LP-8x4x rotary switch

2014-04-16 Thread Sergei Ianovich
Signed-off-by: Sergei Ianovich --- v3..v4 * move DTS binding to a different patch (8/21) v2..v3 * new patch .../devicetree/bindings/misc/lp8x4x-bus.txt| 8 ++-- Documentation/misc-devices/lp8x4x_bus.txt | 3 ++ drivers/misc/lp8x4x_bus.c

[PATCH v4 12/21] serial: support for 16550A serial ports on LP-8x4x

2014-04-16 Thread Sergei Ianovich
/dev/null +++ b/drivers/tty/serial/8250/8250_lp8x4x.c @@ -0,0 +1,169 @@ +/* linux/drivers/tty/serial/8250/8250_lp8x4x.c + * + * Support for 16550A serial ports on ICP DAS LP-8x4x + * + * Copyright (C) 2013 Sergei Ianovich + * + * This program is free software; you can redistribute it and/or mo

[PATCH v4 11/21] ARM: pxa: support ICP DAS LP-8x4x FPGA irq

2014-04-16 Thread Sergei Ianovich
allow normal initialization of IRQ resources with DT. Signed-off-by: Sergei Ianovich Reviewed-by: Linus Walleij CC: Arnd Bergmann --- v3.2..v4 * move DTS binding to a different patch (8/21) v3.1..v3.2 fixes to apply Linus Walleij's "Reviewed-by": * add kerneldoc co

[PATCH v4 10/21] mtd: support BB SRAM on ICP DAS LP-8x4x

2014-04-16 Thread Sergei Ianovich
volatile process data like counter values and sensor statuses. Storing those data in flash or mmc card is not a viable solution. Signed-off-by: Sergei Ianovich Reviewed-by: Brian Norris --- v3..v4 for Brian Norris 'Reviewed-by' * add doc file for DT binding * move DTS bi

[PATCH v4 09/21] rtc: support DS1302 RTC on ICP DAS LP-8x4x

2014-04-16 Thread Sergei Ianovich
Signed-off-by: Sergei Ianovich --- v3..v4 * move DTS bindings to a different patch (8/21) v2..v3 * use usleep_range instead of custom nsleep * number change (07/16 -> 09/21) v0..v2 * use device tree * use devm helpers where possible .../devicetree/bindings/rtc/

[PATCH v4 07/21] ARM: dts: parse DMA config in pxamci

2014-04-16 Thread Sergei Ianovich
reverted. Signed-off-by: Sergei Ianovich CC: Daniel Mack CC: Haojian Zhuang CC: Arnd Bergmann --- v3..v4 * no changes v2..v3 * split into good (PATCH 07/21) and temporary (this one) parts v1..v2 * add binding for next-gen dma controller * use correct dma declararion * n

[PATCH v4 08/21] ARM: pxa27x: device tree support ICP DAS LP-8x4x

2014-04-16 Thread Sergei Ianovich
ect device tree, all of them can be booted using the same kernel. Signed-off-by: Sergei Ianovich CC: Daniel Mack CC: Arnd Bergmann --- v3..v4 * move all declarations to one commit so the first DTB file can be used to boot any later kernel as suggested by Arnd Bergmann, Heikki Kr

[PATCH v4 04/21] ARM: dts: pxa3xx: move declaration to header

2014-04-16 Thread Sergei Ianovich
This way it will be more difficult to change the declaration in one place, but not the other. In addition, the change allows to use the binding for pxa-gpio on other PXA CPUs. Signed-off-by: Sergei Ianovich CC: Daniel Mack CC: Haojian Zhuang CC: Arnd Bergmann --- v3..v4 v2..v3 * no

[PATCH v4 01/21] serial: rewrite pxa2xx-uart to use 8250_core

2014-04-16 Thread Sergei Ianovich
according to Marvel(R) PXA270M Processor Specification Update (April 19, 2010) is dropped. 8250_core reads from FIFO immediately after checking DR bit in LSR. Signed-off-by: Sergei Ianovich Reviewed-by: Heikki Krogerus Reviewed-by: James Cameron Acked-by: Greg Kroah-Hartman --- Resenging together with

[PATCH v4 05/21] ARM: dts: pxa27x: irq init using device tree

2014-04-16 Thread Sergei Ianovich
Signed-off-by: Sergei Ianovich CC: Daniel Mack CC: Haojian Zhuang CC: Arnd Bergmann --- v3..v4 v2..v3 * no changes v1..v2 * use of_have_populated_dt() instead of a static variable * drop #ifdef in header file * number changed from 8 to 5 (dropped patches) arch/arm/mach

[PATCH v4 06/21] ARM: dts: provide DMA config to pxamci on PXA27x

2014-04-16 Thread Sergei Ianovich
e existing driver cannot get DMA channel number from dmaengine API. The patch in the series will provide temporary workaround by manually parsing node attributes, until Daniel's series is ready to be merged. Signed-off-by: Sergei Ianovich CC: Daniel Mack CC: Haojian Zhuang CC: Arnd Bergmann

[PATCH v4 03/21] ARM: dts: fix pxa27x-gpio interrupts

2014-04-16 Thread Sergei Ianovich
Signed-off-by: Sergei Ianovich CC: Daniel Mack CC: Haojian Zhuang CC: Arnd Bergmann --- v3..v4 v2..v3 v1..v2 * no changes arch/arm/boot/dts/pxa27x.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/pxa27x.dtsi b/arch/arm/boot/dts/pxa27x.dtsi index

[PATCH v4 02/21] ARM: dts: pxa2xx fix compatible strings

2014-04-16 Thread Sergei Ianovich
Signed-off-by: Sergei Ianovich CC: Daniel Mack CC: Haojian Zhuang CC: Arnd Bergmann --- v3..v4 v2..v3 v1..v2 * no changes arch/arm/boot/dts/pxa2xx.dtsi | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/pxa2xx.dtsi b/arch/arm/boot/dts

[PATCH v4 00/21] ARM: support for ICP DAS LP-8x4x (with dts)

2014-04-16 Thread Sergei Ianovich
step. It would great if the decision to block could be reconsidered, and we could move forward. Best, Sergei Ianovich 1. http://linux-kernel.2935.n7.nabble.com/PATCH-00-11-ARM-support-for-ICP-DAS-LP-8x4x-td761919.html -- To unsubscribe from this list: send the line "unsubscribe linux-kern

Re: [PATCH v3 10/21] mtd: support BB SRAM on ICP DAS LP-8x4x

2014-04-15 Thread Sergei Ianovich
On Tue, 2014-04-15 at 22:04 -0700, Brian Norris wrote: > Hi Sergei, > > On Tue, Dec 17, 2013 at 11:37:40PM +0400, Sergei Ianovich wrote: > > This provides an MTD device driver for 512kB of battery backed up SRAM > > on ICPDAS LP-8X4X programmable automation controllers.

Re: [PATCH 01/11] resolve PXA<->8250 serial device address conflict

2014-01-28 Thread Sergei Ianovich
On Tue, 2014-01-28 at 15:14 +0100, Pavel Machek wrote: > Yes, please. I was hitting the same issue with Sharp Zaurus and bluetooth > CF card... Bluetooth card had 8250 inside... A better implementation is posted as v3 of the patch. http://linux-kernel.2935.n7.nabble.com/PATCH-00-11-ARM-support-fo

Re: [PATCH v2 00/16] ARM: support for ICP DAS LP-8x4x (with dts)

2014-01-20 Thread Sergei Ianovich
On Mon, 2014-01-20 at 17:20 +0100, Daniel Mack wrote: > On 01/20/2014 05:08 PM, Sergei Ianovich wrote: > > It's over a month now. Is anything wrong? > No, I'm busy, that's all. Thanks for reply. > That said, the current situation is > > a) we need someo

Re: [PATCH v2 00/16] ARM: support for ICP DAS LP-8x4x (with dts)

2014-01-20 Thread Sergei Ianovich
On Fri, 2014-01-10 at 03:12 +0400, Sergei Ianovich wrote: > On Thu, 2013-12-19 at 06:30 +0100, Arnd Bergmann wrote: > > This would work only if we can probe the devices behind the external > > bus controller before the controller itsef has been set up, since > > the initializa

Re: [PATCH v3 11/21] ARM: pxa: support ICP DAS LP-8x4x FPGA irq

2014-01-15 Thread Sergei Ianovich
On Wed, 2014-01-15 at 08:39 +0100, Linus Walleij wrote: > On Wed, Jan 8, 2014 at 8:01 PM, Sergei Ianovich wrote: > Hm I don't know why I was deluded into thinking this had something to > do with GPIO. I must have been soft in the head. Sorry about all those > comments ... It

[PATCH v3.2 11/21] ARM: pxa: support ICP DAS LP-8x4x FPGA irq

2014-01-15 Thread Sergei Ianovich
allow normal initialization of IRQ resources with DT. Signed-off-by: Sergei Ianovich Reviewed-by: Linus Walleij CC: Arnd Bergmann --- v3.1..v3.2 fixes to apply Linus Walleij's "Reviewed-by": * add kerneldoc comment for state container struct * rename irq ->

Re: [PATCH v2 00/16] ARM: support for ICP DAS LP-8x4x (with dts)

2014-01-09 Thread Sergei Ianovich
On Thu, 2013-12-19 at 06:30 +0100, Arnd Bergmann wrote: > This would work only if we can probe the devices behind the external > bus controller before the controller itsef has been set up, since > the initialization order can depend on a number of things but not > the bus hierarchy. It will also wo

[PATCH v3.1 11/21] ARM: pxa: support ICP DAS LP-8x4x FPGA irq

2014-01-09 Thread Sergei Ianovich
allow normal initialization of IRQ resources with DT. Signed-off-by: Sergei Ianovich CC: Arnd Bergmann CC: Linus Walleij --- v3..v3.1 fixes according to Linus Walleij review comments: * update commit message * use state container instead of global variables * get hardware irq nums

Re: [PATCH v3 11/21] ARM: pxa: support ICP DAS LP-8x4x FPGA irq

2014-01-08 Thread Sergei Ianovich
On Thu, 2014-01-02 at 13:32 +0100, Linus Walleij wrote: > On Tue, Dec 17, 2013 at 8:37 PM, Sergei Ianovich wrote: > Usually combined GPIO+IRQ controllers are put into drivers/gpio but > this is a bit special as it seems to handle also non-GPIO-related IRQs > so let's get some inp

Re: [PATCH v3 01/21 resend] serial: rewrite pxa2xx-uart to use 8250_core

2013-12-19 Thread Sergei Ianovich
On Thu, 2013-12-19 at 13:35 +0400, Sergei Ianovich wrote: > Hi Heikki, > > On Thu, 2013-12-19 at 10:51 +0200, Heikki Krogerus wrote: > > I noticed one more thing. I'm sorry about commenting this late. > > > > Since you set the type PORT_XSCALE, don's yo

Re: [PATCH v3 01/21 resend] serial: rewrite pxa2xx-uart to use 8250_core

2013-12-19 Thread Sergei Ianovich
Hi Heikki, On Thu, 2013-12-19 at 10:51 +0200, Heikki Krogerus wrote: > I noticed one more thing. I'm sorry about commenting this late. > > Since you set the type PORT_XSCALE, don's you want to use > UPF_FIXED_TYPE flag instead of the UPF_SKIP_TEST here? Otherwise the > type will just get overridd

Re: [PATCH v3 07/21] ARM: dts: parse DMA config in pxamci

2013-12-18 Thread Sergei Ianovich
Daniel, On Tue, 2013-12-17 at 23:37 +0400, Sergei Ianovich wrote: > The existing PXA MMC driver cannot get DMA channels in a proper > way from the respective device tree binding. > > This patch provides temporary workaround which allows using the > existing driver in DT machines

Re: [PATCH v2 00/16] ARM: support for ICP DAS LP-8x4x (with dts)

2013-12-18 Thread Sergei Ianovich
On Wed, 2013-12-18 at 22:10 +0100, Arnd Bergmann wrote: > On Wednesday 18 December 2013, Sergei Ianovich wrote: > > Could we postpone this until someone needs this functionality? > > We have to be sure that any device tree files you write now can remain > compatible with future

Re: [PATCH v2 00/16] ARM: support for ICP DAS LP-8x4x (with dts)

2013-12-18 Thread Sergei Ianovich
On Wed, 2013-12-18 at 21:50 +0100, Arnd Bergmann wrote: > > This is a platform-specific bus (PXA27x). Should it go into pxa27x.dtsi > > rather than machine dts? > > Yes, that was the idea. Great. > > There seems to be none at the moment. However, some machines need to > > setup these partitions

[PATCH v3 17/21] misc: support for serial slots in LP-8x4x

2013-12-17 Thread Sergei Ianovich
the modules. So the parallel bus needs to select which slot is connected. Signed-off-by: Sergei Ianovich --- v2..v3 * no changes (except number 12/16 -> 17/21) v0..v2 * use device tree * use devm helpers where possible .../devicetree/bindings/misc/lp8x4x-bus.txt|

[PATCH v3 05/21] ARM: dts: pxa27x: irq init using device tree

2013-12-17 Thread Sergei Ianovich
Signed-off-by: Sergei Ianovich CC: Daniel Mack CC: Arnd Bergmann --- v2..v3 * no changes v1..v2 * use of_have_populated_dt() instead of a static variable * drop #ifdef in header file * number changed from 8 to 5 (dropped patches) arch/arm/mach-pxa/include/mach/pxa27x.h | 1

[PATCH v3 04/21] ARM: dts: pxa3xx: move declaration to header

2013-12-17 Thread Sergei Ianovich
This way it will be more difficult to change the declaration in one place, but not the other. In addition, the change allows to use the binding for pxa-gpio on other PXA CPUs. Signed-off-by: Sergei Ianovich CC: Daniel Mack CC: Arnd Bergmann --- v2..v3 * no changes v1..v2 * drop

[PATCH v3 14/21] misc: support for LP-8x4x rotary switch

2013-12-17 Thread Sergei Ianovich
Reorder backplane resources by start address. Reorder backplane attributes alphabetically. Signed-off-by: Sergei Ianovich --- v2..v3 * new patch .../devicetree/bindings/misc/lp8x4x-bus.txt| 8 ++-- Documentation/misc-devices/lp8x4x_bus.txt | 3 ++ arch/arm/boot/dts

[PATCH v3 18/21] misc: support for parallel slots in LP-8x4x

2013-12-17 Thread Sergei Ianovich
This patch enumerates parallel modules in expansion slots and exposes model numbers via sysfs. Signed-off-by: Sergei Ianovich --- v2..v3 * no changes (except number 13/16 -> 18/21) v0..v2 * use device tree * use devm helpers where possible .../devicetree/bindings/misc/lp8

[PATCH v3 12/21] serial: support for 16550A serial ports on LP-8x4x

2013-12-17 Thread Sergei Ianovich
ta); + + return 0; +} + +static int lp8x4x_serial_remove(struct platform_device *pdev) +{ + struct lp8x4x_serial_data *data = platform_get_drvdata(pdev); + + serial8250_unregister_port(data->line); + + return 0; +} + +static struct platform_driver lp8x4x_serial_driver = { + .probe

[PATCH v3 19/21] misc: support for I-8041 in LP-8x4x

2013-12-17 Thread Sergei Ianovich
Status of I-8041 32 digital output channels can be managed via sysfs now. http://www.icpdas.com/products/Remote_IO/i-8ke/i-8041w.htm Signed-off-by: Sergei Ianovich --- v2..v3 v0..v2 * no changes (except number 14/16 -> 19/21) Documentation/misc-devices/lp8x4x_bus.txt | 4 ++ driv

  1   2   >