[PATCH RESEND] drivers/Kconfig: remove duplicate entry for soc

2015-01-14 Thread poeschel
From: Lars Poeschel For some reason there was the same menu entry in menuconfig twice. This trivial patch leaves the one that is older as is and removes the other entry. Signed-off-by: Lars Poeschel --- Gentle ping on this one. It already got one ack from Borislav. drivers/Kconfig | 2 -- 1

[PATCH] watchdog: omap_wdt: implement get_timeleft

2015-06-17 Thread poeschel
From: Lars Poeschel The omap watchdog hardware is able to read the watchdog timer counter register. This implements this functionality in the omap_wdt driver, so one is can read the time until the watchdog will trigger the reset in seconds using WDIOC_GETTIMELEFT. Signed-off-by: Lars Poeschel

[PATCH] watchdog: docs: omap_wdt also understands nowayout

2015-06-17 Thread poeschel
From: Lars Poeschel The omap_wdt kernel driver also understands the nowayout module parameter. This updates the watchdog-parameters.txt to reflect this fact. Signed-off-by: Lars Poeschel --- Documentation/watchdog/watchdog-parameters.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a

[PATCH] watchdog: omap_wdt: start_enabled module parameter

2015-06-19 Thread poeschel
From: Lars Poeschel Add a start_enabled module parameter to the omap_wdt that starts the watchdog on module insertion. The default value is 0 which does not start the watchdog - which also does not change the behaviour if the parameter is not given. Signed-off-by: Lars Poeschel

[PATCH] drivers/Kconfig: remove duplicate entry for soc

2014-11-28 Thread poeschel
From: Lars Poeschel For some reason there was the same menu entry in menuconfig twice. This trivial patch leaves the one that is older as is and removes the other entry. Signed-off-by: Lars Poeschel --- drivers/Kconfig | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/Kconfig b

[PATCH] input: usbtouchscreen: Add new model from IRTOUCHSYSTEMS

2015-03-24 Thread poeschel
From: Lars Poeschel This adds support for another model of IRTOUCH SYSTEMS Co.,LtD infrared touchscreens. The USB vendorID/deviceID is 6615/0012. It is also sold under the label "Elektrosil". The datasheet states that coordinates for x and y are in the range from 0 to 32767. Signed-of

[PATCH v2] watchdog: omap_wdt: early_enable module parameter

2015-06-25 Thread poeschel
From: Lars Poeschel Add a early_enable module parameter to the omap_wdt that starts the watchdog on module insertion. The default value is 0 which does not start the watchdog - which also does not change the behavior if the parameter is not given. Signed-off-by: Lars Poeschel

[PATCH v3 00/32] Make charlcd device independent

2020-10-05 Thread poeschel
From: Lars Poeschel This tries to make charlcd device independent. At the moment hd44780 device specific code is contained deep in charlcd. This moves this out into a hd44780_common module, where the two hd44780 drivers we have at the moment (hd44780 and panel) can use this from. The goal is

[PATCH v3 28/32] auxdisplay: charlcd: replace last device specific stuff

2020-10-05 Thread poeschel
From: Lars Poeschel These are the last bits left in charlcd.c that are device specific and they are removed now. In detail this is: * bwidth, which is the width of the display buffer per line. This is replaced by width of the display. * hwidth, which is the size of the display buffer as a

[PATCH v3 08/32] auxdisplay: hd44780_common_print

2020-10-05 Thread poeschel
From: Lars Poeschel We create a hd44780_common_print function. It is derived from the original charlcd_print. charlcd_print becomes a device independent print function, that then only calles via it's ops function pointers, into the print function offered by drivers. Reported-by: kernel

[PATCH v3 06/32] auxdisplay: Move write_cmd pointers to hd44780 drivers

2020-10-05 Thread poeschel
From: Lars Poeschel The write_cmd function is used to send commands to hd44780 displays. The individual hd44780 drivers then implement their appropriate way of doing this with their supported displays. So we move this pointer so hd44780_common. Reviewed-by: Willy Tarreau Signed-off-by: Lars

[PATCH v3 07/32] auxdisplay: Move addr out of charlcd_priv

2020-10-05 Thread poeschel
From: Lars Poeschel Move out the struct addr from struct charlcd_priv into the less private struct charlcd. This member is used to pass position information. The individual drivers need to be able to read this information, so we move this out of charlcd_priv to charlcd structure. Reviewed-by

[PATCH v3 10/32] auxdisplay: add home to charlcd_ops

2020-10-05 Thread poeschel
From: Lars Poeschel This adds a home function to the charlcd_ops struct and offer an implementation for hd44780_common. This implementation is used by our two hd44780 drivers. This is to make charlcd device independent. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- drivers

[PATCH v3 30/32] auxdisplay: charlcd: Do not print chars at end of line

2020-10-05 Thread poeschel
From: Lars Poeschel Skip printing characters at the end of a display line. This fits to the behaviour we already had, that the cursor is nailed to last position of a line. This might slightly change behaviour. On hd44780 displays with one or two lines the previous implementation did still write

[PATCH v3 29/32] auxdisplay: Change gotoxy calling interface

2020-10-05 Thread poeschel
From: Lars Poeschel Change the calling interface for gotoxy from supplying the x and y coordinates in the charlcd struct to explicitly supplying x and y in the function arguments. This is more intuitive and allows for moving the cursor to positions independent from the position saved in the

[PATCH v3 09/32] auxdisplay: provide hd44780_common_gotoxy

2020-10-05 Thread poeschel
From: Lars Poeschel Provide a hd44780_common_gotoxy function and a pointer in the ops for charlcd to use to move the cursor. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- drivers/auxdisplay/charlcd.c| 38 + drivers/auxdisplay/charlcd.h

[PATCH v3 31/32] auxdisplay: lcd2s DT binding doc

2020-10-05 Thread poeschel
From: Lars Poeschel Add a binding doc for the modtronix lcd2s auxdisplay driver. It also adds modtronix to the list of known vendor-prefixes. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- Changes in v3: - Fixed make dt_binding_doc errors Changes in v2: - Adopted yaml based file

[PATCH v3 01/32] auxdisplay: Use an enum for charlcd backlight on/off ops

2020-10-05 Thread poeschel
From: Lars Poeschel We use an enum for calling the functions in charlcd, that turn the backlight on or off. This enum is generic and can be used for other charlcd turn of / turn off operations as well. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- drivers/auxdisplay/charlcd.c

[PATCH v3 11/32] auxdisplay: Move clear_display to hd44780_common

2020-10-05 Thread poeschel
From: Lars Poeschel This moves the clear_display function from charlcd to hd44780_common. This is one more step to make charlcd independent from device specific code. The two hd44780 drivers use the new function from hd44780_common and charlcd calls this function through its function pointer in

[PATCH v3 02/32] auxdisplay: Introduce hd44780_common.[ch]

2020-10-05 Thread poeschel
From: Lars Poeschel There is some hd44780 specific code in charlcd and this code is used by multiple drivers. To make charlcd independent from this device specific code this has to be moved to a place where the multiple drivers can share their common code. This common place is now introduced as

[PATCH v3 15/32] auxdisplay: implement hd44780_common_shift_cursor

2020-10-05 Thread poeschel
From: Lars Poeschel Implement a hd44780_common_shift_cursor function for drivers to use and make charlcd use this function through ops function pointer. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- drivers/auxdisplay/charlcd.c| 33 - drivers

[PATCH v3 32/32] auxdisplay: add a driver for lcd2s character display

2020-10-05 Thread poeschel
From: Lars Poeschel This driver allows to use a lcd2s 20x4 character display from modtronix engineering as an auxdisplay charlcd device. Signed-off-by: Lars Poeschel --- drivers/auxdisplay/Kconfig | 11 + drivers/auxdisplay/Makefile | 1 + drivers/auxdisplay/lcd2s.c | 409

[PATCH v3 25/32] auxdisplay: Call charlcd_backlight in place

2020-10-05 Thread poeschel
From: Lars Poeschel This moves the call to charlcd_backlight from the end of the switch into the actual case statement that originates the change of the backlight. This is more consistent to what is now found in this switch. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- drivers

[PATCH v3 24/32] auxdisplay: Move char redefine code to hd44780_common

2020-10-05 Thread poeschel
From: Lars Poeschel Take the code to redefine characters out of charlcd and move it to hd44780_common, as this is hd44780 specific. There is now a function hd44780_common_redefine_char that drivers use and charlcd calls it through its ops function pointer. Reviewed-by: Willy Tarreau Signed-off

[PATCH v3 05/32] auxdisplay: Move write_data pointer to hd44780_common

2020-10-05 Thread poeschel
From: Lars Poeschel This moves the write_data function pointer from struct charlcd_ops to struct hd44780_common. This is the function that actually writes the character to the display. This hd44780 hardware specific function is used by two drivers at the moment. Reviewed-by: Willy Tarreau

[PATCH v3 27/32] auxdisplay: hd44780: Remove clear_fast

2020-10-05 Thread poeschel
From: Lars Poeschel We remove the hd44780_clear_fast (display) clear implementation. With the new timeout the normal clear_display is reasonably fast. So there is no need for a clear_fast anymore. Link: https://lore.kernel.org/lkml/20200922092121.gg16...@1wt.eu/ Signed-off-by: Lars Poeschel

[PATCH v3 22/32] auxdisplay: Implement hd44780_common_lines

2020-10-05 Thread poeschel
From: Lars Poeschel This implements hd44780_common_lines to switch the display between one and two lines mode. The hd44780 drivers use this function by adding it to their ops structure and charlcd now calls through its ops function pointer. Reviewed-by: Willy Tarreau Signed-off-by: Lars

[PATCH v3 23/32] auxdisplay: Remove unnecessary hd44780 from charlcd

2020-10-05 Thread poeschel
From: Lars Poeschel The last two commits made another chunk of hd44780 code unnecessary which we remove here. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- drivers/auxdisplay/charlcd.c | 17 + 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/drivers

[PATCH v3 26/32] auxdisplay: hd44780_common: Reduce clear_display timeout

2020-10-05 Thread poeschel
From: Lars Poeschel Digging in the hd44780 datasheet revealed that the timeout needed after clearing the whole display is only 1,64ms not 15ms. So we can reduce that timeout. Link: https://lore.kernel.org/lkml/20200922092121.gg16...@1wt.eu/ Link: https://www.crystalfontz.com/controllers/Hitachi

[PATCH v3 20/32] auxdisplay: cleanup unnecessary hd44780 code in charlcd

2020-10-05 Thread poeschel
From: Lars Poeschel This cleans up now unnecessary hd44780 specific code from charlcd. We obsoleted this with the last three patches. So another chunk of hd44780 code can be dropped. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- drivers/auxdisplay/charlcd.c | 17

[PATCH v3 21/32] auxdisplay: Implement hd44780_common_fontsize

2020-10-05 Thread poeschel
From: Lars Poeschel This implements hd44780_common_fontsize to switch between two fontsizes. The hd44780 drivers can just set this function to their ops structure and charlcd uses it through this ops function pointer. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- drivers

[PATCH v3 19/32] auxdisplay: Implement hd44780_common_blink

2020-10-05 Thread poeschel
From: Lars Poeschel Implement a hd44780_common_blink function to turn on or off the blinking of the cursor. The hd44780 drivers just use this function and charlcd calls it through its ops function pointer. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- drivers/auxdisplay

[PATCH v3 16/32] auxdisplay: Implement hd44780_common_display_shift

2020-10-05 Thread poeschel
From: Lars Poeschel Implement a hd44780_common_display_shift function for hd44780 drivers to use. charlcd uses this through its ops function pointer. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- drivers/auxdisplay/charlcd.c| 10 ++ drivers/auxdisplay/charlcd.h

[PATCH v3 17/32] auxdisplay: Implement a hd44780_common_display

2020-10-05 Thread poeschel
From: Lars Poeschel Implement a hd44780_common_display function to turn the whole display on or off. The hd44780 drivers can use this and charlcd uses this through its ops function pointer. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- drivers/auxdisplay/charlcd.c| 6

[PATCH v3 18/32] auxdisplay: Implement hd44780_common_cursor

2020-10-05 Thread poeschel
From: Lars Poeschel Implement a hd44780_common_cursor function to turn the cursor on and off. The hd44780 drivers can use this function and charlcd calls it through its ops function pointer. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- drivers/auxdisplay/charlcd.c| 6

[PATCH v3 04/32] auxdisplay: Move ifwidth to struct hd44780_common

2020-10-05 Thread poeschel
From: Lars Poeschel Move struct charlcd member ifwidth to our new struct hd44780_common. ifwidth is hd44780 device specific and is used by two drivers at the moment, so we move it to a common place, where both can use this. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- drivers

[PATCH v3 14/32] auxdisplay: Move init_display to hd44780_common

2020-10-05 Thread poeschel
From: Lars Poeschel The init_display function is moved over to hd44780_common. charlcd uses it via it's ops function pointer and drivers initialize the ops with the common hd44780_common_init_display function. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- drivers/auxdi

[PATCH v3 13/32] auxdisplay: Make use of enum for backlight on / off

2020-10-05 Thread poeschel
From: Lars Poeschel To turn the backlight on or off use our new enum CHARLCD_ON / CHARLCD_OFF. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- drivers/auxdisplay/charlcd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/auxdisplay/charlcd.c b

[PATCH v3 12/32] auxdisplay: make charlcd_backlight visible to hd44780_common

2020-10-05 Thread poeschel
From: Lars Poeschel hd44780_common wants to use the charlcd_backlight function, so make it visible. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- drivers/auxdisplay/charlcd.c | 3 ++- drivers/auxdisplay/charlcd.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff

[PATCH v3 03/32] auxdisplay: Move hwidth and bwidth to struct hd44780_common

2020-10-05 Thread poeschel
From: Lars Poeschel hwidth is for the hardware buffer size and bwidth is for the buffer width of one single line. This is specific to the hd44780 displays and so it is moved out from charlcd to struct hd44780_common. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- drivers

[PATCH v4 11/32] auxdisplay: Move clear_display to hd44780_common

2020-10-05 Thread poeschel
From: Lars Poeschel This moves the clear_display function from charlcd to hd44780_common. This is one more step to make charlcd independent from device specific code. The two hd44780 drivers use the new function from hd44780_common and charlcd calls this function through its function pointer in

[PATCH v4 10/32] auxdisplay: add home to charlcd_ops

2020-10-05 Thread poeschel
From: Lars Poeschel This adds a home function to the charlcd_ops struct and offer an implementation for hd44780_common. This implementation is used by our two hd44780 drivers. This is to make charlcd device independent. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- drivers

[PATCH v4 00/32] Make charlcd device independent

2020-10-05 Thread poeschel
From: Lars Poeschel This tries to make charlcd device independent. At the moment hd44780 device specific code is contained deep in charlcd. This moves this out into a hd44780_common module, where the two hd44780 drivers we have at the moment (hd44780 and panel) can use this from. The goal is

[PATCH v4 12/32] auxdisplay: make charlcd_backlight visible to hd44780_common

2020-10-05 Thread poeschel
From: Lars Poeschel hd44780_common wants to use the charlcd_backlight function, so make it visible. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- drivers/auxdisplay/charlcd.c | 3 ++- drivers/auxdisplay/charlcd.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff

[PATCH v4 09/32] auxdisplay: provide hd44780_common_gotoxy

2020-10-05 Thread poeschel
From: Lars Poeschel Provide a hd44780_common_gotoxy function and a pointer in the ops for charlcd to use to move the cursor. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- drivers/auxdisplay/charlcd.c| 38 + drivers/auxdisplay/charlcd.h

[PATCH v4 04/32] auxdisplay: Move ifwidth to struct hd44780_common

2020-10-05 Thread poeschel
From: Lars Poeschel Move struct charlcd member ifwidth to our new struct hd44780_common. ifwidth is hd44780 device specific and is used by two drivers at the moment, so we move it to a common place, where both can use this. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- drivers

[PATCH v4 05/32] auxdisplay: Move write_data pointer to hd44780_common

2020-10-05 Thread poeschel
From: Lars Poeschel This moves the write_data function pointer from struct charlcd_ops to struct hd44780_common. This is the function that actually writes the character to the display. This hd44780 hardware specific function is used by two drivers at the moment. Reviewed-by: Willy Tarreau

[PATCH v4 08/32] auxdisplay: hd44780_common_print

2020-10-05 Thread poeschel
From: Lars Poeschel We create a hd44780_common_print function. It is derived from the original charlcd_print. charlcd_print becomes a device independent print function, that then only calles via it's ops function pointers, into the print function offered by drivers. Reported-by: kernel

[PATCH v4 02/32] auxdisplay: Introduce hd44780_common.[ch]

2020-10-05 Thread poeschel
From: Lars Poeschel There is some hd44780 specific code in charlcd and this code is used by multiple drivers. To make charlcd independent from this device specific code this has to be moved to a place where the multiple drivers can share their common code. This common place is now introduced as

[PATCH v4 03/32] auxdisplay: Move hwidth and bwidth to struct hd44780_common

2020-10-05 Thread poeschel
From: Lars Poeschel hwidth is for the hardware buffer size and bwidth is for the buffer width of one single line. This is specific to the hd44780 displays and so it is moved out from charlcd to struct hd44780_common. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- drivers

[PATCH v4 01/32] auxdisplay: Use an enum for charlcd backlight on/off ops

2020-10-05 Thread poeschel
From: Lars Poeschel We use an enum for calling the functions in charlcd, that turn the backlight on or off. This enum is generic and can be used for other charlcd turn of / turn off operations as well. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- drivers/auxdisplay/charlcd.c

[PATCH v4 06/32] auxdisplay: Move write_cmd pointers to hd44780 drivers

2020-10-05 Thread poeschel
From: Lars Poeschel The write_cmd function is used to send commands to hd44780 displays. The individual hd44780 drivers then implement their appropriate way of doing this with their supported displays. So we move this pointer so hd44780_common. Reviewed-by: Willy Tarreau Signed-off-by: Lars

[PATCH v4 07/32] auxdisplay: Move addr out of charlcd_priv

2020-10-05 Thread poeschel
From: Lars Poeschel Move out the struct addr from struct charlcd_priv into the less private struct charlcd. This member is used to pass position information. The individual drivers need to be able to read this information, so we move this out of charlcd_priv to charlcd structure. Reviewed-by

[PATCH v4 20/32] auxdisplay: cleanup unnecessary hd44780 code in charlcd

2020-10-05 Thread poeschel
From: Lars Poeschel This cleans up now unnecessary hd44780 specific code from charlcd. We obsoleted this with the last three patches. So another chunk of hd44780 code can be dropped. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- drivers/auxdisplay/charlcd.c | 17

[PATCH v4 19/32] auxdisplay: Implement hd44780_common_blink

2020-10-05 Thread poeschel
From: Lars Poeschel Implement a hd44780_common_blink function to turn on or off the blinking of the cursor. The hd44780 drivers just use this function and charlcd calls it through its ops function pointer. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- drivers/auxdisplay

[PATCH v4 22/32] auxdisplay: Implement hd44780_common_lines

2020-10-05 Thread poeschel
From: Lars Poeschel This implements hd44780_common_lines to switch the display between one and two lines mode. The hd44780 drivers use this function by adding it to their ops structure and charlcd now calls through its ops function pointer. Reviewed-by: Willy Tarreau Signed-off-by: Lars

[PATCH v4 14/32] auxdisplay: Move init_display to hd44780_common

2020-10-05 Thread poeschel
From: Lars Poeschel The init_display function is moved over to hd44780_common. charlcd uses it via it's ops function pointer and drivers initialize the ops with the common hd44780_common_init_display function. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- drivers/auxdi

[PATCH v4 21/32] auxdisplay: Implement hd44780_common_fontsize

2020-10-05 Thread poeschel
From: Lars Poeschel This implements hd44780_common_fontsize to switch between two fontsizes. The hd44780 drivers can just set this function to their ops structure and charlcd uses it through this ops function pointer. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- drivers

[PATCH v4 31/32] auxdisplay: lcd2s DT binding doc

2020-10-05 Thread poeschel
From: Lars Poeschel Add a binding doc for the modtronix lcd2s auxdisplay driver. It also adds modtronix to the list of known vendor-prefixes. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- Changes in v3: - Fixed make dt_binding_doc errors Changes in v2: - Adopted yaml based file

[PATCH v4 17/32] auxdisplay: Implement a hd44780_common_display

2020-10-05 Thread poeschel
From: Lars Poeschel Implement a hd44780_common_display function to turn the whole display on or off. The hd44780 drivers can use this and charlcd uses this through its ops function pointer. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- drivers/auxdisplay/charlcd.c| 6

[PATCH v4 16/32] auxdisplay: Implement hd44780_common_display_shift

2020-10-05 Thread poeschel
From: Lars Poeschel Implement a hd44780_common_display_shift function for hd44780 drivers to use. charlcd uses this through its ops function pointer. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- drivers/auxdisplay/charlcd.c| 10 ++ drivers/auxdisplay/charlcd.h

[PATCH v4 32/32] auxdisplay: add a driver for lcd2s character display

2020-10-05 Thread poeschel
From: Lars Poeschel This driver allows to use a lcd2s 20x4 character display from Modtronix engineering as an auxdisplay charlcd device. Signed-off-by: Lars Poeschel --- Changes in v4: - modtronix -> Modtronix - Kconfig: remove "default n" --- drivers/auxdisplay/Kconfig |

[PATCH v4 29/32] auxdisplay: Change gotoxy calling interface

2020-10-05 Thread poeschel
From: Lars Poeschel Change the calling interface for gotoxy from supplying the x and y coordinates in the charlcd struct to explicitly supplying x and y in the function arguments. This is more intuitive and allows for moving the cursor to positions independent from the position saved in the

[PATCH v4 18/32] auxdisplay: Implement hd44780_common_cursor

2020-10-05 Thread poeschel
From: Lars Poeschel Implement a hd44780_common_cursor function to turn the cursor on and off. The hd44780 drivers can use this function and charlcd calls it through its ops function pointer. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- drivers/auxdisplay/charlcd.c| 6

[PATCH v4 27/32] auxdisplay: hd44780: Remove clear_fast

2020-10-05 Thread poeschel
From: Lars Poeschel We remove the hd44780_clear_fast (display) clear implementation. With the new timeout the normal clear_display is reasonably fast. So there is no need for a clear_fast anymore. Link: https://lore.kernel.org/lkml/20200922092121.gg16...@1wt.eu/ Signed-off-by: Lars Poeschel

[PATCH v4 25/32] auxdisplay: Call charlcd_backlight in place

2020-10-05 Thread poeschel
From: Lars Poeschel This moves the call to charlcd_backlight from the end of the switch into the actual case statement that originates the change of the backlight. This is more consistent to what is now found in this switch. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- drivers

[PATCH v4 23/32] auxdisplay: Remove unnecessary hd44780 from charlcd

2020-10-05 Thread poeschel
From: Lars Poeschel The last two commits made another chunk of hd44780 code unnecessary which we remove here. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- drivers/auxdisplay/charlcd.c | 17 + 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/drivers

[PATCH v4 30/32] auxdisplay: charlcd: Do not print chars at end of line

2020-10-05 Thread poeschel
From: Lars Poeschel Skip printing characters at the end of a display line. This fits to the behaviour we already had, that the cursor is nailed to last position of a line. This might slightly change behaviour. On hd44780 displays with one or two lines the previous implementation did still write

[PATCH v4 28/32] auxdisplay: charlcd: replace last device specific stuff

2020-10-05 Thread poeschel
From: Lars Poeschel These are the last bits left in charlcd.c that are device specific and they are removed now. In detail this is: * bwidth, which is the width of the display buffer per line. This is replaced by width of the display. * hwidth, which is the size of the display buffer as a

[PATCH v4 24/32] auxdisplay: Move char redefine code to hd44780_common

2020-10-05 Thread poeschel
From: Lars Poeschel Take the code to redefine characters out of charlcd and move it to hd44780_common, as this is hd44780 specific. There is now a function hd44780_common_redefine_char that drivers use and charlcd calls it through its ops function pointer. Reviewed-by: Willy Tarreau Signed-off

[PATCH v4 26/32] auxdisplay: hd44780_common: Reduce clear_display timeout

2020-10-05 Thread poeschel
From: Lars Poeschel Digging in the hd44780 datasheet revealed that the timeout needed after clearing the whole display is only 1,64ms not 15ms. So we can reduce that timeout. Link: https://lore.kernel.org/lkml/20200922092121.gg16...@1wt.eu/ Link: https://www.crystalfontz.com/controllers/Hitachi

[PATCH v4 13/32] auxdisplay: Make use of enum for backlight on / off

2020-10-05 Thread poeschel
From: Lars Poeschel To turn the backlight on or off use our new enum CHARLCD_ON / CHARLCD_OFF. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- drivers/auxdisplay/charlcd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/auxdisplay/charlcd.c b

[PATCH v4 15/32] auxdisplay: implement hd44780_common_shift_cursor

2020-10-05 Thread poeschel
From: Lars Poeschel Implement a hd44780_common_shift_cursor function for drivers to use and make charlcd use this function through ops function pointer. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- drivers/auxdisplay/charlcd.c| 33 - drivers

[PATCH 1/2] pwm: sysfs: Set class on pwm devices

2020-10-02 Thread poeschel
From: Lars Poeschel This adds a class to exported pwm devices. Exporting a pwm through sysfs did not yield udev events. The dev_uevent_filter function does filter-out devices without a bus or class. This was already addressed in commit commit 7e5d1fd75c3d ("pwm: Set class for exported cha

[PATCH 2/2] Documentation: Reflect the changes to pwm sysfs

2020-10-02 Thread poeschel
From: Lars Poeschel This is an update to the documentation to reflect the change to pwm sysfs. /sys/class/pwm/pwmchipN/pwmX style exports are marked as deprecated. They are still available as symlinks to the new interface. New exports are available as /sys/class/pwm/pwm-N-X Cc: Greg Kroah

[PATCH] driver core: Remove double assignment

2020-09-29 Thread poeschel
From: Lars Poeschel This removes an assignment in device_add. It assigned the parent kobject to the kobject of the new device. This is not necessary, because the call to kobject_add a few lines later also does this same assignment. Signed-off-by: Lars Poeschel --- drivers/base/core.c | 4

[PATCH] pwm: sysfs: Set class on pwm devices

2020-09-29 Thread poeschel
From: Lars Poeschel This adds a class to exported pwm devices. Exporting a pwm through sysfs did not yield udev events. The dev_uevent_filter function does filter-out devices without a bus or class. This was already addressed in commit commit 7e5d1fd75c3d ("pwm: Set class for exported cha

[PATCH] Documentation: iio: fix a typo

2020-09-04 Thread poeschel
From: Lars Poeschel Rename function name to the actual name referenced in struct iio_sw_trigger_ops. Signed-off-by: Lars Poeschel --- Documentation/iio/iio_configfs.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/iio/iio_configfs.rst b/Documentation/iio

[PATCH v5 01/25] auxdisplay: Use an enum for charlcd backlight on/off ops

2020-10-29 Thread poeschel
From: Lars Poeschel We use an enum for calling the functions in charlcd, that turn the backlight on or off. This enum is generic and can be used for other charlcd turn on / turn off operations as well. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- Changes in v5: - Fix a commit

[PATCH 00/25] Make charlcd device independent

2020-10-29 Thread poeschel
From: Lars Poeschel This tries to make charlcd device independent. At the moment hd44780 device specific code is contained deep in charlcd. This moves this out into a hd44780_common module, where the two hd44780 drivers we have at the moment (hd44780 and panel) can use this from. The goal is

[PATCH v5 02/25] auxdisplay: Introduce hd44780_common.[ch]

2020-10-29 Thread poeschel
From: Lars Poeschel There is some hd44780 specific code in charlcd and this code is used by multiple drivers. To make charlcd independent from this device specific code this has to be moved to a place where the multiple drivers can share their common code. This common place is now introduced as

[PATCH v5 11/25] auxdisplay: Move clear_display to hd44780_common

2020-10-29 Thread poeschel
From: Lars Poeschel This moves the clear_display function from charlcd to hd44780_common. This is one more step to make charlcd independent from device specific code. The two hd44780 drivers use the new function from hd44780_common and charlcd calls this function through its function pointer in

[PATCH v5 12/25] auxdisplay: make charlcd_backlight visible to hd44780_common

2020-10-29 Thread poeschel
From: Lars Poeschel hd44780_common wants to use the charlcd_backlight function, so make it visible. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- drivers/auxdisplay/charlcd.c | 3 ++- drivers/auxdisplay/charlcd.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff

[PATCH v5 22/25] auxdisplay: Change gotoxy calling interface

2020-10-29 Thread poeschel
From: Lars Poeschel Change the calling interface for gotoxy from supplying the x and y coordinates in the charlcd struct to explicitly supplying x and y in the function arguments. This is more intuitive and allows for moving the cursor to positions independent from the position saved in the

[PATCH v5 21/25] auxdisplay: charlcd: replace last device specific stuff

2020-10-29 Thread poeschel
From: Lars Poeschel These are the last bits left in charlcd.c that are device specific and they are removed now. In detail this is: * bwidth, which is the width of the display buffer per line. This is replaced by width of the display. * hwidth, which is the size of the display buffer as a

[PATCH v5 23/25] auxdisplay: charlcd: Do not print chars at end of line

2020-10-29 Thread poeschel
From: Lars Poeschel Skip printing characters at the end of a display line. This fits to the behaviour we already had, that the cursor is nailed to last position of a line. This might slightly change behaviour. On hd44780 displays with one or two lines the previous implementation did still write

[PATCH v5 07/25] auxdisplay: Move addr out of charlcd_priv

2020-10-29 Thread poeschel
From: Lars Poeschel Move out the struct addr from struct charlcd_priv into the less private struct charlcd. This member is used to pass position information. The individual drivers need to be able to read this information, so we move this out of charlcd_priv to charlcd structure. Reviewed-by

[PATCH v5 20/25] auxdisplay: hd44780: Remove clear_fast

2020-10-29 Thread poeschel
From: Lars Poeschel We remove the hd44780_clear_fast (display) clear implementation. With the new timeout the normal clear_display is reasonably fast. So there is no need for a clear_fast anymore. Link: https://lore.kernel.org/lkml/20200922092121.gg16...@1wt.eu/ Signed-off-by: Lars Poeschel

[PATCH v5 04/25] auxdisplay: Move ifwidth to struct hd44780_common

2020-10-29 Thread poeschel
From: Lars Poeschel Move struct charlcd member ifwidth to our new struct hd44780_common. ifwidth is hd44780 device specific and is used by two drivers at the moment, so we move it to a common place, where both can use this. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- drivers

[PATCH v5 16/25] auxdisplay: cleanup unnecessary hd44780 code in charlcd

2020-10-29 Thread poeschel
From: Lars Poeschel This cleans up now unnecessary hd44780 specific code from charlcd. We obsoleted this with the last patch. So another chunk of hd44780 specific code can be dropped from charlcd. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- Changes in v5: - combined two

[PATCH v5 19/25] auxdisplay: hd44780_common: Reduce clear_display timeout

2020-10-29 Thread poeschel
From: Lars Poeschel Digging in the hd44780 datasheet revealed that the timeout needed after clearing the whole display is only 1,64ms not 15ms. So we can reduce that timeout. Link: https://lore.kernel.org/lkml/20200922092121.gg16...@1wt.eu/ Link: https://www.crystalfontz.com/controllers/Hitachi

[PATCH v5 18/25] auxdisplay: Call charlcd_backlight in place

2020-10-29 Thread poeschel
From: Lars Poeschel This moves the call to charlcd_backlight from the end of the switch into the actual case statement that originates the change of the backlight. This is more consistent to what is now found in this switch. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- drivers

[PATCH v5 17/25] auxdisplay: Move char redefine code to hd44780_common

2020-10-29 Thread poeschel
From: Lars Poeschel Take the code to redefine characters out of charlcd and move it to hd44780_common, as this is hd44780 specific. There is now a function hd44780_common_redefine_char that drivers use and charlcd calls it through its ops function pointer. Reviewed-by: Willy Tarreau Signed-off

[PATCH v5 05/25] auxdisplay: Move write_data pointer to hd44780_common

2020-10-29 Thread poeschel
From: Lars Poeschel This moves the write_data function pointer from struct charlcd_ops to struct hd44780_common. This is the function that actually writes the character to the display. This hd44780 hardware specific function is used by two drivers at the moment. Reviewed-by: Willy Tarreau

[PATCH v5 13/25] auxdisplay: Make use of enum for backlight on / off

2020-10-29 Thread poeschel
From: Lars Poeschel To turn the backlight on or off use our new enum CHARLCD_ON / CHARLCD_OFF. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- drivers/auxdisplay/charlcd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/auxdisplay/charlcd.c b

[PATCH v5 15/25] auxdisplay: implement various hd44780_common_ functions

2020-10-29 Thread poeschel
From: Lars Poeschel This implements various hd44780_common_ functions for hd44780 compatible display drivers to use. charlcd then calls these functions through its ops function pointer. The functions namely are: - hd44780_common_shift_cursor - hd44780_common_display_shift

[PATCH v5 08/25] auxdisplay: hd44780_common_print

2020-10-29 Thread poeschel
From: Lars Poeschel We create a hd44780_common_print function. It is derived from the original charlcd_print. charlcd_print becomes a device independent print function, that then only calls via its ops function pointers, into the print function offered by drivers. Reported-by: kernel test robot

[PATCH v5 03/25] auxdisplay: Move hwidth and bwidth to struct hd44780_common

2020-10-29 Thread poeschel
From: Lars Poeschel hwidth is for the hardware buffer size and bwidth is for the buffer width of one single line. This is specific to the hd44780 displays and so it is moved out from charlcd to struct hd44780_common. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- drivers

[PATCH v5 14/25] auxdisplay: Move init_display to hd44780_common

2020-10-29 Thread poeschel
From: Lars Poeschel The init_display function is moved over to hd44780_common. charlcd uses it via its ops function pointer and drivers initialize the ops with the common hd44780_common_init_display function. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- Changes in v5: - Fix

[PATCH v5 10/25] auxdisplay: add home to charlcd_ops

2020-10-29 Thread poeschel
From: Lars Poeschel This adds a home function to the charlcd_ops struct and offer an implementation for hd44780_common. This implementation is used by our two hd44780 drivers. This is to make charlcd device independent. Reviewed-by: Willy Tarreau Signed-off-by: Lars Poeschel --- drivers

  1   2   3   4   >