[PATCH] iio: core: Fix IIO_VAL_FRACTIONAL_LOG2 for negative values

2017-03-24 Thread Nikolaus Schulz
Fix formatting of negative values of type IIO_VAL_FRACTIONAL_LOG2 by switching from do_div(), which can't handle negative numbers, to div_s64_rem(). Also use shift_right for shifting, which is safe with negative values. Signed-off-by: Nikolaus Schulz <nikolaus.sch...@avionic-design.de> C

[PATCH] iio: core: Fix IIO_VAL_FRACTIONAL_LOG2 for negative values

2017-03-24 Thread Nikolaus Schulz
Fix formatting of negative values of type IIO_VAL_FRACTIONAL_LOG2 by switching from do_div(), which can't handle negative numbers, to div_s64_rem(). Also use shift_right for shifting, which is safe with negative values. Signed-off-by: Nikolaus Schulz Cc: sta...@vger.kernel.org --- drivers/iio

Re: [PATCH v3 1/2] iio: document ti-dac8554 devicetree bindings

2014-12-15 Thread Nikolaus Schulz
On Mon, Dec 15, 2014 at 01:02:48PM +, Mark Rutland wrote: > On Mon, Dec 15, 2014 at 11:39:56AM +0000, Nikolaus Schulz wrote: > > Signed-off-by: Nikolaus Schulz > > --- > > .../devicetree/bindings/iio/dac/ti-dac8554.txt | 22 > > ++ > &g

[PATCH v3 2/2] iio: add driver for the TI DAC8554

2014-12-15 Thread Nikolaus Schulz
date, which touches all DAC on the bus Signed-off-by: Nikolaus Schulz --- drivers/iio/dac/Kconfig | 11 ++ drivers/iio/dac/Makefile | 1 + drivers/iio/dac/ti-dac8554.c | 381 +++ 3 files changed, 393 insertions(+) create mode 100644 drivers/

[PATCH v3 1/2] iio: document ti-dac8554 devicetree bindings

2014-12-15 Thread Nikolaus Schulz
Signed-off-by: Nikolaus Schulz --- .../devicetree/bindings/iio/dac/ti-dac8554.txt | 22 ++ 1 file changed, 22 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/dac/ti-dac8554.txt diff --git a/Documentation/devicetree/bindings/iio/dac/ti-dac8554.txt

Re: [PATCH v2 2/2] iio: add driver for the TI DAC8554

2014-12-15 Thread Nikolaus Schulz
On Sat, Dec 13, 2014 at 12:29:57PM +0100, Lars-Peter Clausen wrote: > On 11/24/2014 08:50 PM, Nikolaus Schulz wrote: > [...] > >+const struct iio_chan_spec dac8554_channels[] = { > > static > > [...] > >+ret = of_property_read_u32(spi->dev.of_node, "

Re: [PATCH v2 2/2] iio: add driver for the TI DAC8554

2014-12-15 Thread Nikolaus Schulz
On Sat, Dec 13, 2014 at 12:18:50PM +0100, Hartmut Knaack wrote: > Nikolaus Schulz schrieb am 12.12.2014 um 16:58: > > On Sat, Dec 06, 2014 at 12:36:19PM +0100, Hartmut Knaack wrote: > >> Nikolaus Schulz schrieb am 24.11.2014 um 20:50: > >>> The TI DAC8554 is a

Re: [PATCH v2 2/2] iio: add driver for the TI DAC8554

2014-12-15 Thread Nikolaus Schulz
On Sat, Dec 13, 2014 at 12:18:50PM +0100, Hartmut Knaack wrote: Nikolaus Schulz schrieb am 12.12.2014 um 16:58: On Sat, Dec 06, 2014 at 12:36:19PM +0100, Hartmut Knaack wrote: Nikolaus Schulz schrieb am 24.11.2014 um 20:50: The TI DAC8554 is a quad-channel Digital-to-Analog Converter

Re: [PATCH v2 2/2] iio: add driver for the TI DAC8554

2014-12-15 Thread Nikolaus Schulz
On Sat, Dec 13, 2014 at 12:29:57PM +0100, Lars-Peter Clausen wrote: On 11/24/2014 08:50 PM, Nikolaus Schulz wrote: [...] +const struct iio_chan_spec dac8554_channels[] = { static [...] +ret = of_property_read_u32(spi-dev.of_node, address, addr); This should probably have vendor

[PATCH v3 1/2] iio: document ti-dac8554 devicetree bindings

2014-12-15 Thread Nikolaus Schulz
Signed-off-by: Nikolaus Schulz nikolaus.sch...@avionic-design.de --- .../devicetree/bindings/iio/dac/ti-dac8554.txt | 22 ++ 1 file changed, 22 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/dac/ti-dac8554.txt diff --git a/Documentation/devicetree

[PATCH v3 2/2] iio: add driver for the TI DAC8554

2014-12-15 Thread Nikolaus Schulz
-by: Nikolaus Schulz nikolaus.sch...@avionic-design.de --- drivers/iio/dac/Kconfig | 11 ++ drivers/iio/dac/Makefile | 1 + drivers/iio/dac/ti-dac8554.c | 381 +++ 3 files changed, 393 insertions(+) create mode 100644 drivers/iio/dac/ti-dac8554.c diff --git

Re: [PATCH v3 1/2] iio: document ti-dac8554 devicetree bindings

2014-12-15 Thread Nikolaus Schulz
On Mon, Dec 15, 2014 at 01:02:48PM +, Mark Rutland wrote: On Mon, Dec 15, 2014 at 11:39:56AM +, Nikolaus Schulz wrote: Signed-off-by: Nikolaus Schulz nikolaus.sch...@avionic-design.de --- .../devicetree/bindings/iio/dac/ti-dac8554.txt | 22 ++ 1 file

Re: [PATCH v2 2/2] iio: add driver for the TI DAC8554

2014-12-12 Thread Nikolaus Schulz
On Fri, Dec 12, 2014 at 11:57:08AM +, Jonathan Cameron wrote: > On 06/12/14 11:36, Hartmut Knaack wrote: > > Nikolaus Schulz schrieb am 24.11.2014 um 20:50: > >> The TI DAC8554 is a quad-channel Digital-to-Analog Converter with an SPI > >> interface. > >>

Re: [PATCH v2 2/2] iio: add driver for the TI DAC8554

2014-12-12 Thread Nikolaus Schulz
On Sat, Dec 06, 2014 at 12:36:19PM +0100, Hartmut Knaack wrote: > Nikolaus Schulz schrieb am 24.11.2014 um 20:50: > > The TI DAC8554 is a quad-channel Digital-to-Analog Converter with an SPI > > interface. > > > > Changes in v2: > > * Use DMA-safe buffer

Re: [PATCH v2 2/2] iio: add driver for the TI DAC8554

2014-12-12 Thread Nikolaus Schulz
On Sat, Dec 06, 2014 at 12:36:19PM +0100, Hartmut Knaack wrote: Nikolaus Schulz schrieb am 24.11.2014 um 20:50: The TI DAC8554 is a quad-channel Digital-to-Analog Converter with an SPI interface. Changes in v2: * Use DMA-safe buffer for SPI transfer * Normalize powerdown_mode name hi

Re: [PATCH v2 2/2] iio: add driver for the TI DAC8554

2014-12-12 Thread Nikolaus Schulz
On Fri, Dec 12, 2014 at 11:57:08AM +, Jonathan Cameron wrote: On 06/12/14 11:36, Hartmut Knaack wrote: Nikolaus Schulz schrieb am 24.11.2014 um 20:50: The TI DAC8554 is a quad-channel Digital-to-Analog Converter with an SPI interface. Changes in v2: * Use DMA-safe buffer for SPI

[PATCH v2 2/2] iio: add driver for the TI DAC8554

2014-11-24 Thread Nikolaus Schulz
powerdown broadcast update, which touches all DAC on the bus Signed-off-by: Nikolaus Schulz --- drivers/iio/dac/Kconfig | 10 ++ drivers/iio/dac/Makefile | 1 + drivers/iio/dac/ti-dac8554.c | 374 +++ 3 files changed, 385 insertions(+) create

[PATCH v2 1/2] iio: document ti-dac8554 devicetree bindings

2014-11-24 Thread Nikolaus Schulz
Signed-off-by: Nikolaus Schulz --- .../devicetree/bindings/iio/dac/ti-dac8554.txt | 22 ++ 1 file changed, 22 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/dac/ti-dac8554.txt diff --git a/Documentation/devicetree/bindings/iio/dac/ti-dac8554.txt

[PATCH v2 1/2] iio: document ti-dac8554 devicetree bindings

2014-11-24 Thread Nikolaus Schulz
Signed-off-by: Nikolaus Schulz nikolaus.sch...@avionic-design.de --- .../devicetree/bindings/iio/dac/ti-dac8554.txt | 22 ++ 1 file changed, 22 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/dac/ti-dac8554.txt diff --git a/Documentation/devicetree

[PATCH v2 2/2] iio: add driver for the TI DAC8554

2014-11-24 Thread Nikolaus Schulz
update, which touches all DAC on the bus Signed-off-by: Nikolaus Schulz nikolaus.sch...@avionic-design.de --- drivers/iio/dac/Kconfig | 10 ++ drivers/iio/dac/Makefile | 1 + drivers/iio/dac/ti-dac8554.c | 374 +++ 3 files changed, 385 insertions

[PATCH 2/2] iio: add driver for the TI DAC8554

2014-11-20 Thread Nikolaus Schulz
The TI DAC8554 is a quad-channel Digital-to-Analog Converter with an SPI interface. Signed-off-by: Nikolaus Schulz --- drivers/iio/dac/Kconfig | 10 ++ drivers/iio/dac/Makefile | 1 + drivers/iio/dac/ti-dac8554.c | 365 +++ 3 files changed

[PATCH 1/2] iio: document ti-dac8554 devicetree bindings

2014-11-20 Thread Nikolaus Schulz
Signed-off-by: Nikolaus Schulz --- .../devicetree/bindings/iio/dac/ti-dac8554.txt | 22 ++ 1 file changed, 22 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/dac/ti-dac8554.txt diff --git a/Documentation/devicetree/bindings/iio/dac/ti-dac8554.txt

[PATCH 1/2] iio: document ti-dac8554 devicetree bindings

2014-11-20 Thread Nikolaus Schulz
Signed-off-by: Nikolaus Schulz nikolaus.sch...@avionic-design.de --- .../devicetree/bindings/iio/dac/ti-dac8554.txt | 22 ++ 1 file changed, 22 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/dac/ti-dac8554.txt diff --git a/Documentation/devicetree

[PATCH 2/2] iio: add driver for the TI DAC8554

2014-11-20 Thread Nikolaus Schulz
The TI DAC8554 is a quad-channel Digital-to-Analog Converter with an SPI interface. Signed-off-by: Nikolaus Schulz nikolaus.sch...@avionic-design.de --- drivers/iio/dac/Kconfig | 10 ++ drivers/iio/dac/Makefile | 1 + drivers/iio/dac/ti-dac8554.c | 365

Re: [PATCH v5 12/14] clk: tegra: Add EMC clock driver

2014-11-19 Thread Nikolaus Schulz
On Tue, Nov 18, 2014 at 01:13:14PM +0100, Tomeu Vizoso wrote: > From: Mikko Perttunen > > The driver is currently only tested on Tegra124 Jetson TK1, but should > work with other Tegra124 boards, provided that correct EMC tables are > provided through the device tree. Older chip models have

Re: [PATCH v5 12/14] clk: tegra: Add EMC clock driver

2014-11-19 Thread Nikolaus Schulz
On Tue, Nov 18, 2014 at 01:13:14PM +0100, Tomeu Vizoso wrote: From: Mikko Perttunen mperttu...@nvidia.com The driver is currently only tested on Tegra124 Jetson TK1, but should work with other Tegra124 boards, provided that correct EMC tables are provided through the device tree. Older chip

Re: [PATCH v4 11/13] clk: tegra: Add EMC clock driver

2014-11-13 Thread Nikolaus Schulz
On Wed, Nov 12, 2014 at 08:56:34AM +0100, Tomeu Vizoso wrote: > From: Mikko Perttunen > > The driver is currently only tested on Tegra124 Jetson TK1, but should > work with other Tegra124 boards, provided that correct EMC tables are > provided through the device tree. Older chip models have

Re: [PATCH v4 11/13] clk: tegra: Add EMC clock driver

2014-11-13 Thread Nikolaus Schulz
On Wed, Nov 12, 2014 at 08:56:34AM +0100, Tomeu Vizoso wrote: From: Mikko Perttunen mperttu...@nvidia.com The driver is currently only tested on Tegra124 Jetson TK1, but should work with other Tegra124 boards, provided that correct EMC tables are provided through the device tree. Older chip

Re: [PATCH v3 08/13] ARM: tegra: Add EMC timings to Jetson TK1 device tree

2014-11-06 Thread Nikolaus Schulz
On Wed, Oct 29, 2014 at 05:22:26PM +0100, Tomeu Vizoso wrote: > From: Mikko Perttunen > > This adds a new file, tegra124-jetson-tk1-emc.dtsi that contains > valid timings for the EMC memory clock. The file is included to the > main Jetson TK1 device tree. > > Signed-off-by: Mikko Perttunen >

Re: [PATCH v3 08/13] ARM: tegra: Add EMC timings to Jetson TK1 device tree

2014-11-06 Thread Nikolaus Schulz
On Wed, Oct 29, 2014 at 05:22:26PM +0100, Tomeu Vizoso wrote: From: Mikko Perttunen mperttu...@nvidia.com This adds a new file, tegra124-jetson-tk1-emc.dtsi that contains valid timings for the EMC memory clock. The file is included to the main Jetson TK1 device tree. Signed-off-by: Mikko