[PATCH 0/5] ARM: dts: at91: nattis: some cleanup

2018-08-28 Thread Peter Rosin
Hi! Now that some other patches [1][2] have finally landed in -next, I feel that it is time for this cleanup series that I have been hoarding for a while waiting on those (weak) dependencies. Cheers, Peter [1] https://lkml.org/lkml/2018/8/24/187 [2] https://lkml.org/lkml/2018/8/25/64 Peter

[PATCH 1/5] ARM: dts: at91: nattis: set the PRLUD and HIPOW signals low

2018-08-28 Thread Peter Rosin
AT91_PINCTRL_OUTPUT_VAL(0) without AT91_PINCTRL_OUTPUT is a no-op, so make sure the pins really output a zero. Fixes: 0e4323899973 ("ARM: dts: at91: add devicetree for the Axentia Nattis with Natte power") Signed-off-by: Peter Rosin --- arch/arm/boot/dts/at91-nattis-2-natte-2.dts | 6

[PATCH 2/5] ARM: dts: at91: nattis: make the SD-card slot work

2018-08-28 Thread Peter Rosin
The cd-gpios signal is assumed active-low by the driver, and the cd-inverted property is needed if it is, in fact, active-high. Fix this oversight. Fixes: 0e4323899973 ("ARM: dts: at91: add devicetree for the Axentia Nattis with Natte power") Signed-off-by: Peter Rosin --- arch/ar

[PATCH 5/5] ARM: dts: at91: nattis: describe the lvds panel

2018-08-28 Thread Peter Rosin
Make the DT usable with the panel-lvds driver. Signed-off-by: Peter Rosin --- arch/arm/boot/dts/at91-nattis-2-natte-2.dts | 22 +- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/at91-nattis-2-natte-2.dts b/arch/arm/boot/dts/at91-nattis-2

[PATCH 3/5] ARM: dts: at91: nattis: state the actual lvds-encoder chip

2018-08-28 Thread Peter Rosin
Just to be explicit. Signed-off-by: Peter Rosin --- arch/arm/boot/dts/at91-nattis-2-natte-2.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/at91-nattis-2-natte-2.dts b/arch/arm/boot/dts/at91-nattis-2-natte-2.dts index 4308a07b792e..fbc796125c56 100644

Re: [PATCH v4 4/4] i2c: Add multi-instantiate pseudo driver

2018-08-08 Thread Peter Rosin
On 2018-08-08 11:08, Andy Shevchenko wrote: > On Wed, Aug 8, 2018 at 11:30 AM, Hans de Goede wrote: >> On systems with ACPI instantiated i2c-clients, normally there is 1 fw_node >> per i2c-device and that fw-node contains 1 I2cSerialBus resource for that 1 >> i2c-device. >> >> But in some rare cas

Re: [PATCH v4 4/4] i2c: Add multi-instantiate pseudo driver

2018-08-08 Thread Peter Rosin
On 2018-08-08 12:01, Andy Shevchenko wrote: > On Wed, Aug 8, 2018 at 12:47 PM, Peter Rosin wrote: >> On 2018-08-08 11:08, Andy Shevchenko wrote: >>> On Wed, Aug 8, 2018 at 11:30 AM, Hans de Goede wrote: > >>>> + /* Count number of clients to insta

Re: [RFC RFT PATCH v4 1/4] gpiolib: Pass bitmaps, not integer arrays, to get/set array

2018-08-20 Thread Peter Rosin
On 2018-08-21 01:43, Janusz Krzysztofik wrote: > Most users of get/set array functions iterate consecutive bits of data, > usually a single integer, while or processing array of results obtained > from or building an array of values to be passed to those functions. > Save time wasted on those itera

[PATCH v2 0/2] drm/atmel-hlcdc: revise selection of pixel-clock frequency divider

2018-08-24 Thread Peter Rosin
r symmetry - reformatted comments a little bit - spelling/grammar fixes Peter Rosin (2): drm/atmel-hlcdc: prefer a higher rate clock as pixel-clock base drm/atmel-hlcdc: allow selecting a higher pixel-clock than requested drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c | 30 +++

[PATCH v2 1/2] drm/atmel-hlcdc: prefer a higher rate clock as pixel-clock base

2018-08-24 Thread Peter Rosin
base, the divider instead ends up as 5 yielding a pixel-clock of 52.8Mhz, which is a definite improvement. While at it, clamp the divider so that it does not overflow in case it gets big. Signed-off-by: Peter Rosin --- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c | 18 +++--- 1 file

Re: [tip:locking/urgent] i2c/mux, locking/core: Annotate the nested rt_mutex usage

2018-07-30 Thread Peter Rosin
On 2018-07-25 16:19, tip-bot for Peter Rosin wrote: > Commit-ID: 7b94ea50514d1a0dc94f02723b603c27bc0ea597 > Gitweb: > https://git.kernel.org/tip/7b94ea50514d1a0dc94f02723b603c27bc0ea597 > Author: Peter Rosin > AuthorDate: Fri, 20 Jul 2018 10:39:14 +0200 > Commi

Re: [PATCH v4 5/6] i2c: Add Actions Semiconductor Owl family S900 I2C driver

2018-07-18 Thread Peter Rosin
adap->timeout); > + > + spin_lock_irqsave(&i2c_dev->lock, flags); > + if (time_left == 0) { > + dev_err(&adap->dev, "Transaction timed out"); > + /* Send stop condition and release the bus */ > + owl_i2c_up

Re: [PATCH V3 2/2] mux: adgs1408: new driver for Analog Devices ADGS1408/1409 mux …

2018-07-19 Thread Peter Rosin
On 2018-07-19 15:43, Mircea Caprioru wrote: > This patch adds basic support for Analog Device ADGS1408/09 SPI mux > controller. > > The device is probed and set to a disabled state. It uses the new mux > controller framework. > > Signed-off-by: Mircea Caprioru > --- > Changelog V2 -> V3 > - remo

Re: [PATCH v5 5/6] i2c: Add Actions Semiconductor Owl family S900 I2C driver

2018-07-19 Thread Peter Rosin
On 2018-07-19 19:44, Manivannan Sadhasivam wrote: > Add Actions Semiconductor Owl family S900 I2C driver. > > Signed-off-by: Manivannan Sadhasivam > Acked-by: Peter Rosin Ooops, now I noticed some missing newlines in your dbg_* prints. That may produce garbled output, which is

[PATCH v4 0/2] Fix lockdep warning with nested instances of i2c-mux

2018-07-20 Thread Peter Rosin
m. Cheers, Peter Peter Rosin (2): rtmutex: allow specifying a subclass for nested locking i2c: mux: annotate the nested rt_mutex usage drivers/i2c/i2c-core-base.c | 2 +- drivers/i2c/i2c-mux.c | 4 ++-- include/linux/rtmutex.h | 7 +++ kernel/locking/rtmutex

[PATCH v4 1/2] rtmutex: allow specifying a subclass for nested locking

2018-07-20 Thread Peter Rosin
Needed for annotating rt_mutex locks. Tested-by: John Sperbeck Signed-off-by: Peter Rosin --- include/linux/rtmutex.h | 7 +++ kernel/locking/rtmutex.c | 29 + 2 files changed, 32 insertions(+), 4 deletions(-) diff --git a/include/linux/rtmutex.h b/include

[PATCH v4 2/2] i2c: mux: annotate the nested rt_mutex usage

2018-07-20 Thread Peter Rosin
Sperbeck Signed-off-by: Peter Rosin --- drivers/i2c/i2c-core-base.c | 2 +- drivers/i2c/i2c-mux.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/i2c/i2c-core-base.c b/drivers/i2c/i2c-core-base.c index f5ec6ec6776f..1157a64c7be3 100644 --- a/drivers/i2c/i2c-core

Re: [PATCH v6 00/10] Add the I3C subsystem

2018-07-20 Thread Peter Rosin
On 2018-07-20 10:52, Arnd Bergmann wrote: > On Thu, Jul 19, 2018 at 5:29 PM, Boris Brezillon > wrote: > >> - the bus element is a separate object and is not implicitly described >> by the master (as done in I2C). The reason is that I want to be able >> to handle multiple master connected to t

Re: [PATCH V4 2/2] mux: adgs1408: new driver for Analog Devices ADGS1408/1409 mux …

2018-07-20 Thread Peter Rosin
On 2018-07-20 10:11, Mircea Caprioru wrote: > This patch adds basic support for Analog Device ADGS1408/09 SPI mux > controller. > > The device is probed and set to a disabled state. It uses the new mux > controller framework. > > Signed-off-by: Mircea Caprioru > --- > Changelog V3 -> V4 > - name

Re: [PATCH v6 5/6] i2c: Add Actions Semiconductor Owl family S900 I2C driver

2018-07-22 Thread Peter Rosin
On 2018-07-23 05:40, Manivannan Sadhasivam wrote: > + /* Handle the remaining bytes which were not sent */ > + while (!(readl(i2c_dev->base + OWL_I2C_REG_FIFOSTAT) & > +OWL_I2C_FIFOSTAT_TFF) && i2c_dev->msg_ptr < msg->len) { You moved the OWL_ line to th

Re: [PATCH v6 5/6] i2c: Add Actions Semiconductor Owl family S900 I2C driver

2018-07-23 Thread Peter Rosin
On 2018-07-23 09:24, Andy Shevchenko wrote: > On Mon, Jul 23, 2018 at 9:12 AM, Peter Rosin wrote: >> On 2018-07-23 05:40, Manivannan Sadhasivam wrote: >>> + /* Handle the remaining bytes which were not sent */ >>> + while (!(readl(i2c_dev-&

[PATCH v5 1/2] dt-bindings: mux: add adi,adgs1408

2018-08-01 Thread Peter Rosin
controller] Signed-off-by: Peter Rosin --- .../devicetree/bindings/mux/adi,adgs1408.txt | 48 ++ MAINTAINERS| 6 +++ 2 files changed, 54 insertions(+) create mode 100644 Documentation/devicetree/bindings/mux/adi,adgs1408.txt diff

[PATCH v5 2/2] mux: adgs1408: new driver for Analog Devices ADGS1408/1409 mux

2018-08-01 Thread Peter Rosin
From: Mircea Caprioru This patch adds basic support for Analog Device ADGS1408/09 SPI mux controller. The device is probed and set to a disabled state. It uses the new mux controller framework. Signed-off-by: Mircea Caprioru Signed-off-by: Peter Rosin --- drivers/mux/Kconfig| 10

[PATCH v5 0/2] mux: new driver for ADGS1408/1409

2018-08-01 Thread Peter Rosin
Hi Greg, Here's a new mux driver for v4.19-rc1. It's been in -next for a couple of days, and the risk is low since it is a completely new driver with no strange entanglements. And it's tiny. There was a report from -next about a trivial conflict in MAINTAINERS, but I guess that's more or less sta

Re: [PATCH v4 01/10] i3c: Add core I3C infrastructure

2018-07-12 Thread Peter Rosin
On 2018-07-12 10:08, Arnd Bergmann wrote: > On Thu, Jul 12, 2018 at 6:41 AM, Peter Rosin wrote: >> On 2018-07-11 19:12, Boris Brezillon wrote: >>> On Wed, 11 Jul 2018 17:39:56 +0200 Arnd Bergmann wrote: >>> >>> That's exactly the sort of discussion I

Re: [PATCH 1/2] mux:adgs1408/1409: New driver for Analog Devices ADGS1408/1409 mux …

2018-07-14 Thread Peter Rosin
Hi! Thanks for your patches! Please add a space after "mux:" in the subject. And the second part should generally be the driver name and the text should not start with a capital letter. So, I'd like the subject to be: [...] mux: adgs1408: new driver for Analog Devices ADGS1408/1409 mux On 2018-

Re: [PATCH 1/2] mux:adgs1408/1409: New driver for Analog Devices ADGS1408/1409 mux …

2018-07-14 Thread Peter Rosin
On 2018-07-14 16:02, Lars-Peter Clausen wrote: > On 07/14/2018 02:04 PM, Peter Rosin wrote: > [...] >>> +static int adgs140x_spi_reg_write(struct spi_device *spi, >>> + u8 reg_addr, u8 reg_data) >>> +{ >>> + u8 tx_

Re: [PATCH] ARM: dts: use a correct at24 fallback for at91-nattis-2-natte-2

2018-01-24 Thread Peter Rosin
Hi Bartosz, On 2018-01-24 22:34, Bartosz Golaszewski wrote: > We now require all at24 users to use the "atmel," fallback in > device tree for different manufacturers. I think my patch [3/4] from about a week ago was just a tiny bit better. https://lkml.org/lkml/2018/1/16/609 Can we please pick t

[PATCH] i2c: mux: only print failure message on error

2017-05-14 Thread Peter Rosin
As is, a failure message is printed unconditionally, which is confusing. And noisy. Fixes: 8d4d159f25a7 ("i2c: mux: provide more info on failure in i2c_mux_add_adapter") Signed-off-by: Peter Rosin --- drivers/i2c/i2c-mux.c | 24 ++-- 1 file changed, 14 inserti

[PATCH v15 01/13] devres: trivial whitespace fix

2017-05-14 Thread Peter Rosin
From: Peter Rosin Everything else is indented with two spaces, so fix the odd one out. Acked-by: Jonathan Cameron Signed-off-by: Peter Rosin --- Documentation/driver-model/devres.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/driver-model/devres.txt b

[PATCH v15 00/13] mux controller abstraction and iio/i2c muxes

2017-05-14 Thread Peter Rosin
From: Peter Rosin Hi Greg, Philipp found problems in v14 with using a mutex for locking that was the outcome of the review for v13, so I'm now using a semaphore instead of the rwsem that was in v13. That at least got rid of the scary call to downgrade_write. However, I'm still unsure

[PATCH v15 10/13] dt-bindings: mux-adg792a: document devicetree bindings for ADG792A/G mux

2017-05-14 Thread Peter Rosin
From: Peter Rosin Analog Devices ADG792A/G is a triple 4:1 mux. Acked-by: Jonathan Cameron Reviewed-by: Rob Herring Signed-off-by: Peter Rosin --- .../devicetree/bindings/mux/adi,adg792a.txt| 75 ++ 1 file changed, 75 insertions(+) create mode 100644

[PATCH v15 08/13] dt-bindings: i2c: i2c-mux: document general purpose i2c-mux bindings

2017-05-14 Thread Peter Rosin
From: Peter Rosin Describe how a general purpose multiplexer controller is used to mux an i2c bus. Acked-by: Jonathan Cameron Reviewed-by: Rob Herring Signed-off-by: Peter Rosin --- .../devicetree/bindings/i2c/i2c-mux-gpmux.txt | 99 ++ 1 file changed, 99 insertions

[PATCH v15 12/13] dt-bindings: add mmio-based syscon mux controller DT bindings

2017-05-14 Thread Peter Rosin
From: Philipp Zabel This adds device tree binding documentation for mmio-based syscon multiplexers controlled by a bitfields in a syscon register range. Signed-off-by: Philipp Zabel Acked-by: Rob Herring Signed-off-by: Peter Rosin --- Documentation/devicetree/bindings/mux/mmio-mux.txt | 60

[PATCH v15 02/13] dt-bindings: document devicetree bindings for mux-controllers and gpio-mux

2017-05-14 Thread Peter Rosin
From: Peter Rosin Allow specifying that a single multiplexer controller can be used to control several parallel multiplexers, thus enabling sharing of the multiplexer controller by different consumers. Add a binding for a first mux controller in the form of a GPIO based mux controller. Acked

[PATCH v15 07/13] iio: multiplexer: new iio category and iio-mux driver

2017-05-14 Thread Peter Rosin
From: Peter Rosin When a multiplexer changes how an iio device behaves (for example by feeding different signals to an ADC), this driver can be used to create one virtual iio channel for each multiplexer state. Depends on the generic multiplexer subsystem. Cache any ext_info values from the

[PATCH v15 13/13] mux: mmio-based syscon mux controller

2017-05-14 Thread Peter Rosin
From: Philipp Zabel This adds a driver for mmio-based syscon multiplexers controlled by bitfields in a syscon register range. Signed-off-by: Philipp Zabel Signed-off-by: Peter Rosin --- drivers/mux/Kconfig| 13 + drivers/mux/Makefile | 1 + drivers/mux/mux-mmio.c | 141

[PATCH v15 05/13] iio: inkern: api for manipulating ext_info of iio channels

2017-05-14 Thread Peter Rosin
From: Peter Rosin Extend the inkern api with functions for reading and writing ext_info of iio channels. Acked-by: Jonathan Cameron Signed-off-by: Peter Rosin --- drivers/iio/inkern.c | 60 include/linux/iio/consumer.h | 37

[PATCH v15 09/13] i2c: i2c-mux-gpmux: new driver

2017-05-14 Thread Peter Rosin
From: Peter Rosin This is a general purpose i2c mux that uses a multiplexer controlled by the multiplexer subsystem to do the muxing. The user can select if the mux is to be mux-locked and parent-locked as described in Documentation/i2c/i2c-topology. Acked-by: Jonathan Cameron Acked-by

[PATCH v15 06/13] dt-bindings: iio: io-channel-mux: document io-channel-mux bindings

2017-05-14 Thread Peter Rosin
From: Peter Rosin Describe how a multiplexer can be used to select which signal is fed to an io-channel. Acked-by: Jonathan Cameron Acked-by: Rob Herring Signed-off-by: Peter Rosin --- .../bindings/iio/multiplexer/io-channel-mux.txt| 39 ++ MAINTAINERS

[PATCH v15 11/13] mux: adg792a: add mux controller driver for ADG792A/G

2017-05-14 Thread Peter Rosin
From: Peter Rosin Analog Devices ADG792A/G is a triple 4:1 mux. Reviewed-by: Jonathan Cameron Signed-off-by: Peter Rosin --- drivers/mux/Kconfig | 12 drivers/mux/Makefile | 1 + drivers/mux/mux-adg792a.c | 157 ++ 3 files

[PATCH v15 03/13] mux: minimal mux subsystem

2017-05-14 Thread Peter Rosin
From: Peter Rosin Add a new minimalistic subsystem that handles multiplexer controllers. When multiplexers are used in various places in the kernel, and the same multiplexer controller can be used for several independent things, there should be one place to implement support for said multiplexer

[PATCH v15 04/13] mux: gpio: add mux controller driver for gpio based multiplexers

2017-05-14 Thread Peter Rosin
From: Peter Rosin The driver builds a single multiplexer controller using a number of gpio pins. For N pins, there will be 2^N possible multiplexer states. The GPIO pins can be connected (by the hardware) to several multiplexers, which in that case will be operated in parallel. Reviewed-by

Re: [PATCH] i2c: mux: only print failure message on error

2017-05-14 Thread Peter Rosin
On 2017-05-15 06:53, Leon Romanovsky wrote: > On Sun, May 14, 2017 at 06:41:13PM +0200, Peter Rosin wrote: >> As is, a failure message is printed unconditionally, which is confusing. >> And noisy. >> >> Fixes: 8d4d159f25a7 ("i2c: mux: provide more info on fa

[PATCH v2] i2c: mux: only print failure message on error

2017-05-15 Thread Peter Rosin
As is, a failure message is printed unconditionally, which is confusing. And noisy. Fixes: 8d4d159f25a7 ("i2c: mux: provide more info on failure in i2c_mux_add_adapter") Signed-off-by: Peter Rosin --- drivers/i2c/i2c-mux.c | 26 -- 1 file changed, 16 inserti

Re: [RFC PATCH 0/2] check I2C device id for pca984x chips

2018-02-01 Thread Peter Rosin
On 2018-01-29 18:38, Adrian Fiergolski wrote: >>> On 22.01.2018 at 12:36, Peter Rosin wrote: >>>> This series tries to check the I2C device id, but instead of open >>>> coding the check in the pca954x driver, I have a new function in >>>> the core doing

[RFC PATCH 2/2] i2c: mux: pca954x: verify the device id of the pca984x chips

2018-01-22 Thread Peter Rosin
Make sure to not disallow the chips on adapters that are not capable of reading the device id. Signed-off-by: Peter Rosin --- drivers/i2c/muxes/i2c-mux-pca954x.c | 43 + 1 file changed, 43 insertions(+) diff --git a/drivers/i2c/muxes/i2c-mux-pca954x.c b

[RFC PATCH 0/2] check I2C device id for pca984x chips

2018-01-22 Thread Peter Rosin
chips. Also, I'm not sure if I should list all manufacturers that I know about in the header, or if I should settle for the one that is actually used and leave the others to be added by whomever needs them... Cheers, peda Peter Rosin (2): i2c: add i2c_get_device_id() to get the standar

[RFC PATCH 1/2] i2c: add i2c_get_device_id() to get the standard i2c device id

2018-01-22 Thread Peter Rosin
Can be used during probe to double check that the probed device is what is expected. Loosely based on code from Adrian Fiergolski . Signed-off-by: Peter Rosin --- drivers/i2c/i2c-core-base.c | 33 + include/linux/i2c.h | 30

Re: [RFC PATCH 0/2] check I2C device id for pca984x chips

2018-01-27 Thread Peter Rosin
I don't know for certain... > Next week I will try to align only me i2c subdirectory with upstream. > Provided it compiles, I will > try then to apply and confirm your patches. I'm looking forward to feedback, thanks! Cheers, Peter > Regards, > Adrian > > On 22.01.

[REGRESSION] mux/gpio.c is not able to get any gpio pins

2018-01-16 Thread Peter Rosin
Hi! I have found that the drivers/mux/gpio.c driver fails to get the required gpio pins when I test with next-20180116. The driver calls devm_gpiod_get_array() during probe and that request returns -EPROBE_DEFER in three probes long after the pinctrl driver has been registered (verified with a fe

Re: [PATCH 1/3] ARM: dts: at91: nattis: use up-to-date mtd partitions

2018-01-16 Thread Peter Rosin
On 2018-01-16 17:30, Alexandre Belloni wrote: > Hi, > > On 16/01/2018 at 17:08:33 +0100, Peter Rosin wrote: >> The nattis currently relies on the cmdline to correctly configure the >> MTD partition table, and the one given in the device tree is simply >> ignored. Wh

Re: [REGRESSION] mux/gpio.c is not able to get any gpio pins

2018-01-16 Thread Peter Rosin
On 2018-01-17 00:18, Linus Walleij wrote: > On Tue, Jan 16, 2018 at 10:47 PM, Peter Rosin wrote: > >> diff between the two: >> >> --- bootlog.good2018-01-16 22:39:29.196022434 +0100 >> +++ bootlog.bad 2018-01-16 22:39:51.474264534 +0100 >> @@

Re: [REGRESSION] linux-next panics when trying to mount root

2018-01-17 Thread Peter Rosin
On 2018-01-17 09:27, Rafał Miłecki wrote: > On 2018-01-16 14:28, Peter Rosin wrote: >> When trying next-20180116 I get the following panic during boot: >> >> Linux version 4.15.0-rc8-next-20180116 (peda@orc) (gcc version 4.9.2 >> 20140811 (prerelease) (crosstool-N

Re: [REGRESSION] mux/gpio.c is not able to get any gpio pins

2018-01-17 Thread Peter Rosin
On 2018-01-17 10:35, Linus Walleij wrote: > On Wed, Jan 17, 2018 at 12:57 AM, Peter Rosin wrote: >> On 2018-01-17 00:18, Linus Walleij wrote: > >>> I think gpiod_set_transitory() calls chip->set_config(chip, gpio, packed); >>> which calls gpio

[PATCH 0/3] pinctrl: sx150x: fixes for the probe

2018-01-17 Thread Peter Rosin
Hi! This series mainly fixes the gpio interaction, as discussed in [1]. However, patch 1/3 addresses a problem that was not mentioned there. It should probably be sent to stable... Cheers, Peter [1] https://lkml.org/lkml/2018/1/16/952 Peter Rosin (3): pinctrl: sx150x: unregister the pinctrl

[PATCH 2/3] pinctrl: sx150x: register pinctrl before adding the gpiochip

2018-01-17 Thread Peter Rosin
Various gpiolib activity depend on the pinctrl to be up and kicking. Therefore, register the pinctrl before adding a gpiochip. Suggested-by: Linus Walleij Signed-off-by: Peter Rosin --- drivers/pinctrl/pinctrl-sx150x.c | 35 +-- 1 file changed, 21 insertions

[PATCH 3/3] pinctrl: sx150x: add a static gpio/pinctrl pin range mapping

2018-01-17 Thread Peter Rosin
Without such a range, gpiolib fails with -EPROBE_DEFER, pending the addition of the range. So, without a range, gpiolib will keep deferring indefinitely. Fixes: e10f72bf4b3e ("gpio: gpiolib: Generalise state persistence beyond sleep") Suggested-by: Linus Walleij Signed-off-by: P

[PATCH 1/3] pinctrl: sx150x: unregister the pinctrl on release

2018-01-17 Thread Peter Rosin
There is no matching call to pinctrl_unregister, so switch to the managed devm_pinctrl_register to clean up properly when done. Fixes: 9e80f9064e73 ("pinctrl: Add SX150X GPIO Extender Pinctrl Driver") Signed-off-by: Peter Rosin --- drivers/pinctrl/pinctrl-sx150x.c | 2 +- 1 file

Re: [PATCH 3/3] pinctrl: sx150x: add a static gpio/pinctrl pin range mapping

2018-01-17 Thread Peter Rosin
On 2018-01-17 16:05, Andrew Jeffery wrote: > On Wed, 2018-01-17 at 14:34 +0100, Peter Rosin wrote: >> Without such a range, gpiolib fails with -EPROBE_DEFER, pending the >> addition of the range. So, without a range, gpiolib will keep >> deferring indefinitely. >> &g

Re: [PATCH 3/3] pinctrl: sx150x: add a static gpio/pinctrl pin range mapping

2018-01-18 Thread Peter Rosin
On 2018-01-18 08:58, Linus Walleij wrote: > On Wed, Jan 17, 2018 at 2:34 PM, Peter Rosin wrote: > >> Without such a range, gpiolib fails with -EPROBE_DEFER, pending the >> addition of the range. So, without a range, gpiolib will keep >> deferring indefinitely. >>

[PATCH v2 2/3] ARM: dts: at91: nattis: add lvds-encoder

2018-01-18 Thread Peter Rosin
The lvds encoder chip was omitted by oversight. Add it. Fixes: 0e4323899973 ("ARM: dts: at91: add devicetree for the Axentia Nattis with Natte power") Signed-off-by: Peter Rosin --- arch/arm/boot/dts/at91-nattis-2-natte-2.dts | 31 ++--- 1 file changed, 28

[PATCH v2 3/3] ARM: dts: at91: tse850: make the sound dai cell count explicit

2018-01-18 Thread Peter Rosin
The node is referred to as a DAI from the sound node and should therefore have a #sound-dai-cells property. Fixes: 21dd0ece34c2 ("ARM: dts: at91: add devicetree for the Axentia TSE-850") Signed-off-by: Peter Rosin --- arch/arm/boot/dts/at91-tse850-3.dts | 1 + 1 file changed, 1

[PATCH v2 0/3] Device tree fixes for Axentia TSE-850 and Nattis

2018-01-18 Thread Peter Rosin
uld be 504MB, as the flash is 512MB total. Sorry for the noise. Cheers, Peter Peter Rosin (3): ARM: dts: at91: nattis: use up-to-date mtd partitions ARM: dts: at91: nattis: add lvds-encoder ARM: dts: at91: tse850: make the sound dai cell count explicit arch/arm/boot/dts/at91-natti

[PATCH v2 1/3] ARM: dts: at91: nattis: use up-to-date mtd partitions

2018-01-18 Thread Peter Rosin
partition table to match what is expected (i.e. what is normally provided on the cmdline). In particular, the rootfs partition should be mtd6. Fixes: 0e4323899973 ("ARM: dts: at91: add devicetree for the Axentia Nattis with Natte power") Signed-off-by: Peter Rosin --- arch/arm/boo

[RESEND PATCH] mux: core: fix double get_device()

2018-01-08 Thread Peter Rosin
From: Hans de Goede class_find_device already does a get_device on the returned device. So the device returned by of_find_mux_chip_by_node is already referenced and we should not reference it again (and unref it on error). Signed-off-by: Hans de Goede Signed-off-by: Peter Rosin --- drivers

[RESEND PATCH] mux: add SPDX identifiers to all mux source files

2018-01-08 Thread Peter Rosin
: Peter Rosin --- drivers/mux/Kconfig | 1 + drivers/mux/Makefile | 1 + drivers/mux/adg792a.c| 5 + drivers/mux/core.c | 5 + drivers/mux/gpio.c | 5 + drivers/mux/mmio.c | 5 + include/linux/mux/consumer.h | 5 + include

Re: [PATCH] drm/stm: ltdc: add clut mode support

2018-01-09 Thread Peter Rosin
On 2018-01-09 12:28, Philippe CORNU wrote: > Hi all, > > Do you think the patch is "acceptable" or should I change it somehow? > Any opinion is welcomed : ) Maybe you should try Daniel Vetter? He was very helpful (thanks) when I worked on the clut changes... Cheers, Peter

[REGRESSION] linux-next panics when trying to mount root

2018-01-16 Thread Peter Rosin
Hi! When trying next-20180116 I get the following panic during boot: Linux version 4.15.0-rc8-next-20180116 (peda@orc) (gcc version 4.9.2 20140811 (prerelease) (crosstool-NG linaro-1.13.1-4.9-2014.08 - Linaro GCC 4.9-2014.08)) #208 Tue Jan 16 14:23:44 CET 2018 CPU: ARMv7 Processor [410fc051] re

Re: [REGRESSION] linux-next panics when trying to mount root

2018-01-16 Thread Peter Rosin
On 2018-01-16 14:36, Boris Brezillon wrote: > Hi Peter, > > On Tue, 16 Jan 2018 14:28:38 +0100 > Peter Rosin wrote: > >> Hi! >> >> When trying next-20180116 I get the following panic during boot: >> >> Linux version 4.15.0-rc8-next-20180116 (peda@orc

Re: [REGRESSION] linux-next panics when trying to mount root

2018-01-16 Thread Peter Rosin
On 2018-01-16 15:21, Boris Brezillon wrote: > On Tue, 16 Jan 2018 14:56:52 +0100 > Peter Rosin wrote: > >> Hmmm, I guess the question is if the command line should override the >> device tree or not? > > Yep, that's the problem. Now the core parses the compatibl

[PATCH 1/4] dt-bindings: at24: sort manufacturers alphabetically

2018-01-16 Thread Peter Rosin
Makes them easier to find. Signed-off-by: Peter Rosin --- Documentation/devicetree/bindings/eeprom/at24.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/eeprom/at24.txt b/Documentation/devicetree/bindings/eeprom/at24.txt index

[PATCH 4/4] ARM: dts: at91: tse850: use the correct compatible for the eeprom

2018-01-16 Thread Peter Rosin
The used part does contain an eeprom compatible with an Atmel 24c02 chip and it is from NXP, but it is not called 24c02. It's actually a se97b chip. Adjust the compatible accordingly. Fixes: 21dd0ece34c2 ("ARM: dts: at91: add devicetree for the Axentia TSE-850") Signed-off-

[PATCH 3/4] ARM: dts: at91: nattis: use the correct compatible for the eeprom

2018-01-16 Thread Peter Rosin
) Signed-off-by: Peter Rosin --- arch/arm/boot/dts/at91-nattis-2-natte-2.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/at91-nattis-2-natte-2.dts b/arch/arm/boot/dts/at91-nattis-2-natte-2.dts index 3ea1d26e1c68..c457eff25911 100644 --- a/arch/arm/boot/dt

[PATCH 2/4] dt-bindings: at24: add compatible for nxp,se97b

2018-01-16 Thread Peter Rosin
The datasheet talks about the chip being an spd, but the chip is writable so atmel,24c02 is more appropriate as fallback. Signed-off-by: Peter Rosin --- Documentation/devicetree/bindings/eeprom/at24.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/eeprom

[PATCH 0/3] Device tree fixes for Axentia TSE-850 and Nattis

2018-01-16 Thread Peter Rosin
Hi! Here's a series that is of the "documentation" kind. It fixes things that don't really need fixing, but the fixes are correct none-the-less and should prevent possible confusion. Cheers, Peter Peter Rosin (3): ARM: dts: at91: nattis: use up-to-date mtd partitions AR

[PATCH 0/4] use correct compatibles for the nxp,se97b chips

2018-01-16 Thread Peter Rosin
atmel,24c02" This series takes care of that, and throws in a sorting patch while at it. Cheers, Peter Peter Rosin (4): dt-bindings: at24: sort manufacturers alphabetically dt-bindings: at24: add compatible for nxp,se97b ARM: dts: at91: nattis: use the correct compatible for the eeprom A

[PATCH 2/3] ARM: dts: at91: nattis: add lvds-encoder

2018-01-16 Thread Peter Rosin
The lvds encoder chip was omitted by oversight. Add it. Fixes: 0e4323899973 ("ARM: dts: at91: add devicetree for the Axentia Nattis with Natte power") Signed-off-by: Peter Rosin --- arch/arm/boot/dts/at91-nattis-2-natte-2.dts | 31 ++--- 1 file changed, 28

[PATCH 3/3] ARM: dts: at91: tse850: make the sound dai cell count explicit

2018-01-16 Thread Peter Rosin
The node is referred to as a DAI from the sound node and should therefore have a #sound-dai-cells property. Fixes: 21dd0ece34c2 ("ARM: dts: at91: add devicetree for the Axentia TSE-850") Signed-off-by: Peter Rosin --- arch/arm/boot/dts/at91-tse850-3.dts | 1 + 1 file changed, 1

[PATCH 1/3] ARM: dts: at91: nattis: use up-to-date mtd partitions

2018-01-16 Thread Peter Rosin
partition table to match what is expected (i.e. what is normally provided on the cmdline). In particular, the rootfs partition should be mtd6. Fixes: 0e4323899973 ("ARM: dts: at91: add devicetree for the Axentia Nattis with Natte power") Signed-off-by: Peter Rosin --- arch/arm/boo

Re: [PATCH v2 0/2] check I2C device id for pca984x chips

2018-03-09 Thread Peter Rosin
On 2018-03-05 21:58, Peter Rosin wrote: > Hi! > > This series tries to check the I2C device id, but instead of open > coding the check in the pca954x driver, I have a new function in > the core doing the work. > > Changes since v1: > - Added Tested-by tag from Adrian &

Re: [PATCH 2/2] iio: potentiometer: mcp4018: driver for Microchip digital potentiometers

2018-03-12 Thread Peter Rosin
On 2018-03-10 17:15, Jonathan Cameron wrote: > On Thu, 8 Mar 2018 20:58:30 +0100 > Peter Rosin wrote: > >> Add support for Microchip digital potentiometers and rheostats >> MCP4017, MCP4018, MCP4019 >> >> They all have one wiper with 128 steps a

Re: [RFC PATCH 2/2] i2c: mux: pca954x: verify the device id of the pca984x chips

2018-03-05 Thread Peter Rosin
On 2018-03-05 16:53, Wolfram Sang wrote: > >> @@ -97,59 +98,83 @@ static const struct chip_desc chips[] = { >> .nchans = 2, >> .enable = 0x4, >> .muxtype = pca954x_ismux, >> +.id = { .manufacturer_id = I2C_DEVICE_ID_NONE }, > > Can't we just leav

Re: [RFC PATCH 1/2] i2c: add i2c_get_device_id() to get the standard i2c device id

2018-03-05 Thread Peter Rosin
On 2018-03-05 16:51, Wolfram Sang wrote: > On Mon, Jan 22, 2018 at 12:36:56PM +0100, Peter Rosin wrote: >> Can be used during probe to double check that the probed device is >> what is expected. >> >> Loosely based on code from Adrian Fiergolski . >> >> Sign

[PATCH v2 0/2] check I2C device id for pca984x chips

2018-03-05 Thread Peter Rosin
the i2c_smbus_xfer call Wolfram: I'll send a pull with the first patch in a few days, to allow for a second round of feedback now that the RFC marker is gone. Cheers, peda Peter Rosin (2): i2c: add i2c_get_device_id() to get the standard i2c device id i2c: mux: pca954x: verify the device i

[PATCH v2 2/2] i2c: mux: pca954x: verify the device id of the pca984x chips

2018-03-05 Thread Peter Rosin
Make sure to not disallow the chips on adapters that are not capable of reading the device id, but also make sure to check the device id before writing to the chip. Tested-by: Adrian Fiergolski Signed-off-by: Peter Rosin --- drivers/i2c/muxes/i2c-mux-pca954x.c | 55

[PATCH v2 1/2] i2c: add i2c_get_device_id() to get the standard i2c device id

2018-03-05 Thread Peter Rosin
Can be used during probe to double check that the probed device is what is expected. Loosely based on code from Adrian Fiergolski . Tested-by: Adrian Fiergolski Reviewed-by: Wolfram Sang Signed-off-by: Peter Rosin --- drivers/i2c/i2c-core-base.c | 33

Re: [RFC PATCH 2/3] drm: bridge: panel: allow override of the bus format

2018-03-25 Thread Peter Rosin
Hi Laurent, Thanks for the feedback! On 2018-03-20 14:56, Laurent Pinchart wrote: > Hi Peter, > > Thank you for the patch. > > On Sunday, 18 March 2018 00:15:24 EET Peter Rosin wrote: >> Useful if the bridge does some kind of conversion of the bus format. >> &g

[PATCH] drm/atmel-hlcdc: add command line option to specify preferred depth

2018-03-26 Thread Peter Rosin
ed fbdev frame-buffer that can be reused over and over. But to do that I need to tell the driver that 16-bpp is the preferred depth. Add a module parameter to do just that. Signed-off-by: Peter Rosin --- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c | 18 +- 1 file changed, 17 in

[PATCH v2 0/5] allow override of bus format in bridges

2018-03-26 Thread Peter Rosin
ode. This is cleaner but requires changes to all display controller drivers wishing to participate. - Add patch to adjust the atmel-hlcdc driver according to the above. - Hook the new info into the bridge local to the lvds-encoder instead of messing about with new interfaces for the panel-br

[PATCH v2 1/5] dt-bindings: display: bridge: lvds-transmitter: add ti,ds90c185

2018-03-26 Thread Peter Rosin
Start list of actual chips compatible with "lvds-encoder". Signed-off-by: Peter Rosin --- .../devicetree/bindings/display/bridge/lvds-transmitter.txt | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/display/b

[PATCH v2 2/5] drm: bridge: add API to query the expected input formats of bridges

2018-03-26 Thread Peter Rosin
Bridges may affect the required bus output format of the encoder, in which case it may be wrong to use the output format of the panel or connector as is. Add infrastructure to address this problem. Signed-off-by: Peter Rosin --- drivers/gpu/drm/drm_bridge.c | 32

[PATCH v2 4/5] drm: bridge: lvds-encoder: allow specifying the input bus format

2018-03-26 Thread Peter Rosin
If the bridge changes the bus format, allow this to be described in the bridge, instead of providing false information about the bus format of the connector or panel. Signed-off-by: Peter Rosin --- .../bindings/display/bridge/lvds-transmitter.txt | 6 ++ drivers/gpu/drm/bridge/lvds

[PATCH v2 5/5] drm/atmel-hlcdc: take bridges into account when selecting output format

2018-03-26 Thread Peter Rosin
Bridges may affect the required bus output format of the encoder, in which case it may be wrong to use the output format of the panel or connector as is. So, examine if any of the intermediate bridges needs specific bus formats (if there are intermediate bridges). Signed-off-by: Peter Rosin

[PATCH v2 3/5] drm: of: add display bus-format parser

2018-03-26 Thread Peter Rosin
Add a common API to parse display bus format strings into fourcc codes. Signed-off-by: Peter Rosin --- .../devicetree/bindings/display/bus-format.txt | 35 + drivers/gpu/drm/drm_of.c | 59 ++ include/drm/drm_of.h

Re: [PATCH 3/3] iio: wrapper: unit-converter: new driver

2018-03-27 Thread Peter Rosin
On 2018-03-24 15:03, Jonathan Cameron wrote: > On Mon, 19 Mar 2018 18:02:46 +0100 > Peter Rosin wrote: > >> If an ADC channel measures the midpoint of a voltage divider, the >> interesting voltage is often the voltage over the full resistance. >> E.g. if the full vol

Re: [PATCH 2/3] dt-bindings: iio: wrapper: add io-channel-unit-converter

2018-03-27 Thread Peter Rosin
On 2018-03-27 00:23, Rob Herring wrote: > On Mon, Mar 19, 2018 at 06:02:45PM +0100, Peter Rosin wrote: >> Allow linear scaling and modification of the type of an io-channel. >> >> When an ADC channel measures the midpoint of a voltage divider, the >> interesting voltag

Re: [PATCH v2 2/5] drm: bridge: add API to query the expected input formats of bridges

2018-03-27 Thread Peter Rosin
Hi Jacopo, Thanks for the feedback! On 2018-03-27 11:47, jacopo mondi wrote: > Hi Peter, >thanks for the patches > > On Mon, Mar 26, 2018 at 11:24:44PM +0200, Peter Rosin wrote: >> Bridges may affect the required bus output format of the encoder, in >> which case it

Re: [PATCH v2 4/5] drm: bridge: lvds-encoder: allow specifying the input bus format

2018-03-27 Thread Peter Rosin
Hi Jacopo, Thanks for you feedback! On 2018-03-27 12:27, jacopo mondi wrote: > Hi Peter, Laurent, >thanks for the patches, > > On Mon, Mar 26, 2018 at 11:24:46PM +0200, Peter Rosin wrote: >> If the bridge changes the bus format, allow this to be described in >>

Re: [PATCH v2 2/5] drm: bridge: add API to query the expected input formats of bridges

2018-03-27 Thread Peter Rosin
On 2018-03-27 11:47, jacopo mondi wrote: >> + * RETURNS: >> + * The number of bus input formats the bridge accepts. Zero means that >> + * the chain of bridges are not converting the bus format and that the >> + * format of the drm_connector should be used. > > How do we get to the connector forma

<    1   2   3   4   5   6   7   8   9   10   >