[PATCH v3] Input: add bu21029 touch driver

2018-05-11 Thread Mark Jonas
From: Zhu Yi <yi.z...@cn.bosch.com> Add Rohm BU21029 resistive touch panel controller support with I2C interface. Signed-off-by: Zhu Yi <yi.z...@cn.bosch.com> Signed-off-by: Mark Jonas <mark.jo...@de.bosch.com> Reviewed-by: Heiko Schocher <h...@denx.de> Reviewed-by: Rob

[PATCH v4] Input: add bu21029 touch driver

2018-05-16 Thread Mark Jonas
From: Zhu Yi <yi.z...@cn.bosch.com> Add Rohm BU21029 resistive touch panel controller support with I2C interface. Signed-off-by: Zhu Yi <yi.z...@cn.bosch.com> Signed-off-by: Mark Jonas <mark.jo...@de.bosch.com> Reviewed-by: Heiko Schocher <h...@denx.de> Reviewed-by: Rob

[PATCH v5] Input: add bu21029 touch driver

2018-05-17 Thread Mark Jonas
From: Zhu Yi <yi.z...@cn.bosch.com> Add Rohm BU21029 resistive touch panel controller support with I2C interface. Signed-off-by: Zhu Yi <yi.z...@cn.bosch.com> Signed-off-by: Mark Jonas <mark.jo...@de.bosch.com> Reviewed-by: Heiko Schocher <h...@denx.de> Reviewed-by: Rob

[PATCH 2/5] spi: implement companion-spi driver

2018-06-05 Thread Mark Jonas
From: Zhu Yi The low level companion-spi driver encapsulates the communication details with the companion processor, and provides interface for the upper level drivers to access. Signed-off-by: Zhu Yi Signed-off-by: Mark Jonas --- drivers/spi/Kconfig |2 + drivers

[PATCH 1/5] can: enable multi-queue for SocketCAN devices

2018-06-05 Thread Mark Jonas
waiting for arbitration to make sensible use of multi-queues. Signed-off-by: Zhu Yi Signed-off-by: Mark Jonas Reviewed-by: Heiko Schocher --- drivers/net/can/dev.c | 8 +--- include/linux/can/dev.h | 7 ++- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/drivers/net

[PATCH] eeprom: at24: Fix unexpected timeout under high load

2018-08-04 Thread Mark Jonas
iteration. This makes sure that even if the timeout is reached, there is still one more chance to try the I2C transfer in case the EEPROM is ready. Signed-off-by: Wang Xin Signed-off-by: Mark Jonas --- drivers/misc/eeprom/at24.c | 26 +++--- 1 file changed, 19 insertions(+), 7

[PATCH v2] eeprom: at24: Fix unexpected timeout under high load

2018-08-16 Thread Mark Jonas
write operation and is ready again. - at24_loop_until_timeout() will detect timeout and won't try to write. Signed-off-by: Wang Xin Signed-off-by: Mark Jonas --- Changes in v2: - Remove loop macro - Accept superfluous sleep in case of timeout - Add concrete example to commit message

[PATCH] can: enable multi-queue for SocketCAN devices

2018-03-14 Thread Mark Jonas
rdware queues or are able to abort waiting for arbitration to make sensible use of multi-queues. Signed-off-by: Zhu Yi <yi.z...@cn.bosch.com> Signed-off-by: Mark Jonas <mark.jo...@de.bosch.com> Reviewed-by: Heiko Schocher <h...@denx.de> --- drivers/net/can/dev.c | 8 +--- inc

[PATCH v2] Input: add bu21029 touch driver

2018-04-16 Thread Mark Jonas
From: Zhu Yi <yi.z...@cn.bosch.com> Add Rohm BU21029 resistive touch panel controller support with I2C interface. Signed-off-by: Zhu Yi <yi.z...@cn.bosch.com> Signed-off-by: Mark Jonas <mark.jo...@de.bosch.com> Reviewed-by: Heiko Schocher <h...@denx.de> --- Changes in

[PATCH] Input: add bu21029 touch driver

2018-03-21 Thread Mark Jonas
From: Zhu Yi <yi.z...@cn.bosch.com> Add the ROHM BU21029 resistive touch panel controller support with i2c interface. Signed-off-by: Zhu Yi <yi.z...@cn.bosch.com> Signed-off-by: Mark Jonas <mark.jo...@de.bosch.com> Reviewed-by: Heiko Schocher <h...@denx.de> --- .../bi

[PATCH] can: enable multi-queue for SocketCAN devices

2018-03-14 Thread Mark Jonas
waiting for arbitration to make sensible use of multi-queues. Signed-off-by: Zhu Yi Signed-off-by: Mark Jonas Reviewed-by: Heiko Schocher --- drivers/net/can/dev.c | 8 +--- include/linux/can/dev.h | 7 ++- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/drivers/net

[PATCH] Input: add bu21029 touch driver

2018-03-21 Thread Mark Jonas
From: Zhu Yi Add the ROHM BU21029 resistive touch panel controller support with i2c interface. Signed-off-by: Zhu Yi Signed-off-by: Mark Jonas Reviewed-by: Heiko Schocher --- .../bindings/input/touchscreen/bu21029.txt | 30 ++ drivers/input/touchscreen/Kconfig

[PATCH v3] Input: add bu21029 touch driver

2018-05-11 Thread Mark Jonas
From: Zhu Yi Add Rohm BU21029 resistive touch panel controller support with I2C interface. Signed-off-by: Zhu Yi Signed-off-by: Mark Jonas Reviewed-by: Heiko Schocher Reviewed-by: Rob Herring --- Changes in v3: - reviewed by Rob Herring --- Changes in v2: - make ABS_PRESSURE

[PATCH v4] Input: add bu21029 touch driver

2018-05-16 Thread Mark Jonas
From: Zhu Yi Add Rohm BU21029 resistive touch panel controller support with I2C interface. Signed-off-by: Zhu Yi Signed-off-by: Mark Jonas Reviewed-by: Heiko Schocher Reviewed-by: Rob Herring --- Changes in v4: - remove potential kernel log spamming from irq handler - fix bug in endianess

[PATCH v5] Input: add bu21029 touch driver

2018-05-17 Thread Mark Jonas
From: Zhu Yi Add Rohm BU21029 resistive touch panel controller support with I2C interface. Signed-off-by: Zhu Yi Signed-off-by: Mark Jonas Reviewed-by: Heiko Schocher Reviewed-by: Rob Herring --- Changes in v5: - use usleep_range() and msleep() instead of atomic delays - drop #ifdef

[PATCH v2] Input: add bu21029 touch driver

2018-04-16 Thread Mark Jonas
From: Zhu Yi Add Rohm BU21029 resistive touch panel controller support with I2C interface. Signed-off-by: Zhu Yi Signed-off-by: Mark Jonas Reviewed-by: Heiko Schocher --- Changes in v2: - make ABS_PRESSURE proportionally rising with finger pressure - fix race between interrupt and timer

[PATCH 0/1] mfd: da9063: Support SMBus and I2C mode

2021-01-25 Thread Mark Jonas
On an NXP i.MX6 Solo processor we are running an application which makes use of real-time threads (SCHED_RR). In combination with a DA9063 we experienced (rare) random shut-downs and reboots. We found that the issue was caused by a combination of the (default) DA9063 SMBus mode and non-atomic I2C

Re: [PATCH 1/1] mfd: da9063: Support SMBus and I2C mode

2021-01-26 Thread Mark Jonas
mainline kernel. Though, we tested a (very similar) patch on our (close to mainline) Linux 4.14 and 5.4 vendor kernels. Cheers, Mark On Mon, Jan 25, 2021 at 2:16 PM Mark Jonas wrote: > > From: Hubert Streidl > > By default the PMIC DA9063 2-wire interface is SMBus compliant.

[PATCH 1/1] mfd: da9063: Support SMBus and I2C mode

2021-01-25 Thread Mark Jonas
as the default. Signed-off-by: Hubert Streidl Signed-off-by: Mark Jonas --- Documentation/devicetree/bindings/mfd/da9063.txt | 7 +++ drivers/mfd/da9063-core.c| 9 + drivers/mfd/da9063-i2c.c | 13 + include/linux/mfd/da9063/core.h

[PATCH] drm: imx: Move fbdev setup to before output polling

2020-11-17 Thread Mark Jonas
. This leads to a dark screen until a KMS application (or fbcon) sets the screen mode. This patch fixes the issue by moving the setup of generic fbdev before initializing and enabling output polling. Signed-off-by: Leo Ruan Signed-off-by: Mark Jonas --- drivers/gpu/drm/imx/imx-drm-core.c | 8

[PATCH 1/5] can: enable multi-queue for SocketCAN devices

2018-06-05 Thread Mark Jonas
waiting for arbitration to make sensible use of multi-queues. Signed-off-by: Zhu Yi Signed-off-by: Mark Jonas Reviewed-by: Heiko Schocher --- drivers/net/can/dev.c | 8 +--- include/linux/can/dev.h | 7 ++- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/drivers/net

[PATCH 2/5] spi: implement companion-spi driver

2018-06-05 Thread Mark Jonas
From: Zhu Yi The low level companion-spi driver encapsulates the communication details with the companion processor, and provides interface for the upper level drivers to access. Signed-off-by: Zhu Yi Signed-off-by: Mark Jonas --- drivers/spi/Kconfig |2 + drivers

[PATCH v2] eeprom: at24: Fix unexpected timeout under high load

2018-08-16 Thread Mark Jonas
write operation and is ready again. - at24_loop_until_timeout() will detect timeout and won't try to write. Signed-off-by: Wang Xin Signed-off-by: Mark Jonas --- Changes in v2: - Remove loop macro - Accept superfluous sleep in case of timeout - Add concrete example to commit message

[PATCH] eeprom: at24: Fix unexpected timeout under high load

2018-08-04 Thread Mark Jonas
iteration. This makes sure that even if the timeout is reached, there is still one more chance to try the I2C transfer in case the EEPROM is ready. Signed-off-by: Wang Xin Signed-off-by: Mark Jonas --- drivers/misc/eeprom/at24.c | 26 +++--- 1 file changed, 19 insertions(+), 7

[PATCH v4] mfd: da9063: Support SMBus and I2C mode

2021-02-08 Thread Mark Jonas
ch doesn't have I2C_FUNC_I2C set. Signed-off-by: Hubert Streidl Signed-off-by: Mark Jonas --- Changes in v4: - Remove logging of selected 2-wire bus mode. Changes in v3: - busmode now contains the correct bit DA9063_TWOWIRE_TO Changes in v2: - Implement proposal by Adam Thomson and Wo

[PATCH v2] mfd: da9063: Support SMBus and I2C mode

2021-02-04 Thread Mark Jonas
ch doesn't have I2C_FUNC_I2C set. Signed-off-by: Hubert Streidl Signed-off-by: Mark Jonas --- Changes in v2: - Implement proposal by Adam Thomson and Wolfram Sang to check for functionality I2C_FUNC_I2C instead of introducing a new DT property. drivers/mfd/da9063-i2c.c

[PATCH v6 1/1] mfd: da9063: Support SMBus and I2C mode

2021-03-16 Thread Mark Jonas
dl Signed-off-by: Mark Jonas --- Changes in v6: - Fixed checkpatch check 'unaligned broken line'. Changes in v5: - Restructured according to feedback by Lee Jones. Changes in v4: - Remove logging of selected 2-wire bus mode. Changes in v3: - busmode now contains the correct bit DA9063_

[PATCH v5] mfd: da9063: Support SMBus and I2C mode

2021-03-15 Thread Mark Jonas
dl Signed-off-by: Mark Jonas --- drivers/mfd/da9063-i2c.c | 10 ++ include/linux/mfd/da9063/registers.h | 3 +++ 2 files changed, 13 insertions(+) diff --git a/drivers/mfd/da9063-i2c.c b/drivers/mfd/da9063-i2c.c index 3781d0bb7786..e8a022e697c5 100644 --- a/drivers/mfd/da

Re: [PATCH v4] mfd: da9063: Support SMBus and I2C mode

2021-03-09 Thread Mark Jonas
nctionality is set. SMBus commands most probably are emulated > > in this case which is prone to the latency issue described above. > > > > This patch enables the I2C bus mode if I2C_FUNC_I2C is set or > > otherwise enables the SMBus mode for a native SMBus controller > > which do

[PATCH v3] mfd: da9063: Support SMBus and I2C mode

2021-02-05 Thread Mark Jonas
ch doesn't have I2C_FUNC_I2C set. Signed-off-by: Hubert Streidl Signed-off-by: Mark Jonas --- Changes in v3: - busmode now contains the correct bit DA9063_TWOWIRE_TO Changes in v2: - Implement proposal by Adam Thomson and Wolfram Sang to check for functionality I2C_FUNC_I2C instead of i