[PATCH v3 0/5] Congatec Board Controller drivers

Thomas Richard posted 5 patches 1 month, 3 weeks ago
MAINTAINERS                   |   9 +
drivers/gpio/Kconfig          |  10 +
drivers/gpio/Makefile         |   1 +
drivers/gpio/gpio-cgbc.c      | 196 ++++++++++++++++++++
drivers/i2c/busses/Kconfig    |  10 +
drivers/i2c/busses/Makefile   |   1 +
drivers/i2c/busses/i2c-cgbc.c | 406 +++++++++++++++++++++++++++++++++++++++++
drivers/mfd/Kconfig           |  12 ++
drivers/mfd/Makefile          |   1 +
drivers/mfd/cgbc-core.c       | 411 ++++++++++++++++++++++++++++++++++++++++++
drivers/watchdog/Kconfig      |  10 +
drivers/watchdog/Makefile     |   1 +
drivers/watchdog/cgbc_wdt.c   | 211 ++++++++++++++++++++++
include/linux/mfd/cgbc.h      |  44 +++++
14 files changed, 1323 insertions(+)
[PATCH v3 0/5] Congatec Board Controller drivers
Posted by Thomas Richard 1 month, 3 weeks ago
This is the third iteration of the Congatec Board Controller series.

There are only few changes for the GPIO driver (commit message, Kconfig,
remove useless cast). 
I also rebased the series on Linux v6.12-rc1.

Best Regards,

Thomas

Signed-off-by: Thomas Richard <thomas.richard@bootlin.com>
---
Changes in v3:
- Rebased on Linux v6.12-rc1.
- gpio: improve commit message.
- gpio: in Kconfig move driver definition in the MFD GPIO drivers submenu.
- gpio: remove useless cast.
- gpio: take Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
- i2c: take Acked-by: Andi Shyti <andi.shyti@kernel.org> 
- watchdog: take Acked-by: Guenter Roeck <linux@roeck-us.net> 
- Link to v2: https://lore.kernel.org/r/20240503-congatec-board-controller-v2-0-681511a01c8f@bootlin.com

Changes in v2:
- mfd: use platform_device_register_simple(), so struct cgbc_platform_data
  and cgbc_create_platform_device() were removed.
- mfd: rename cgbc_detect_device() to cgbc_wait_device().
- mfd: remove the useless abstracted function cgbc_command().
- mfd: set the release session message as warning instead of error.
- mfd: minor fixes (sort includes, add comments, fix some alignments and
  nit ...).
- gpio: use scoped_guard() and guard().
- gpio: use devm_mutex_init().
- i2c: unset the I2C_FUNC_SMBUS_QUICK flag as smbus quick accesses are not
  supported by the controller.
- i2c: rephrase comment for read_maxtime_us.
- i2c: set the invalid frequency message as an info (previously a warning).
- i2c: other minor fixes (sort includes, fix name of i2c_state enum).
- watchdog: add missing includes.
- watchdog: remove warning for the pretimeout.
- watchdog: remove timeout_action and pretimeout_action (ACTION_RESET and
  ACTION_SMI are directly used in cgbc_wdt_start()).
- watchdog: set max_timeout and min_timeout.
- watchdog: use watchdog_init_timeout() to set the timeout.
- Link to v1: https://lore.kernel.org/r/20240503-congatec-board-controller-v1-0-fec5236270e7@bootlin.com

---
Thomas Richard (5):
      mfd: add Congatec Board Controller mfd driver
      gpio: Congatec Board Controller gpio driver
      i2c: Congatec Board Controller i2c bus driver
      watchdog: Congatec Board Controller watchdog timer driver
      MAINTAINERS: Add entry for Congatec Board Controller

 MAINTAINERS                   |   9 +
 drivers/gpio/Kconfig          |  10 +
 drivers/gpio/Makefile         |   1 +
 drivers/gpio/gpio-cgbc.c      | 196 ++++++++++++++++++++
 drivers/i2c/busses/Kconfig    |  10 +
 drivers/i2c/busses/Makefile   |   1 +
 drivers/i2c/busses/i2c-cgbc.c | 406 +++++++++++++++++++++++++++++++++++++++++
 drivers/mfd/Kconfig           |  12 ++
 drivers/mfd/Makefile          |   1 +
 drivers/mfd/cgbc-core.c       | 411 ++++++++++++++++++++++++++++++++++++++++++
 drivers/watchdog/Kconfig      |  10 +
 drivers/watchdog/Makefile     |   1 +
 drivers/watchdog/cgbc_wdt.c   | 211 ++++++++++++++++++++++
 include/linux/mfd/cgbc.h      |  44 +++++
 14 files changed, 1323 insertions(+)
---
base-commit: 81178bc5d0ffdf50522adabda7a66093a56149ce
change-id: 20240503-congatec-board-controller-82c6b84cd4ea

Best regards,
-- 
Thomas Richard <thomas.richard@bootlin.com>
Re: [PATCH v3 0/5] Congatec Board Controller drivers
Posted by Lee Jones 1 month, 2 weeks ago
On Tue, 01 Oct 2024 13:53:26 +0200, Thomas Richard wrote:
> This is the third iteration of the Congatec Board Controller series.
> 
> There are only few changes for the GPIO driver (commit message, Kconfig,
> remove useless cast).
> I also rebased the series on Linux v6.12-rc1.
> 
> Best Regards,
> 
> [...]

Applied, thanks!

[1/5] mfd: add Congatec Board Controller mfd driver
      commit: 6f1067cfbee72b04fc42234f7f1588f838cec0b6
[2/5] gpio: Congatec Board Controller gpio driver
      commit: 4342bf63b64b09561f4ad1537de2e1a971cfb197
[3/5] i2c: Congatec Board Controller i2c bus driver
      commit: 6894f640b8f3f48700ccc828419ba60704f5a405
[4/5] watchdog: Congatec Board Controller watchdog timer driver
      commit: 6f264047869e9683520ff8f7c235c07c1ca989d6
[5/5] MAINTAINERS: Add entry for Congatec Board Controller
      commit: 590bcce85e014a2e16afe910bc6a20b4c1b2b374

--
Lee Jones [李琼斯]

Re: [PATCH v3 0/5] Congatec Board Controller drivers
Posted by Lee Jones 1 month, 2 weeks ago
On Wed, 09 Oct 2024, Lee Jones wrote:

> On Tue, 01 Oct 2024 13:53:26 +0200, Thomas Richard wrote:
> > This is the third iteration of the Congatec Board Controller series.
> > 
> > There are only few changes for the GPIO driver (commit message, Kconfig,
> > remove useless cast).
> > I also rebased the series on Linux v6.12-rc1.
> > 
> > Best Regards,
> > 
> > [...]
> 
> Applied, thanks!
> 
> [1/5] mfd: add Congatec Board Controller mfd driver
>       commit: 6f1067cfbee72b04fc42234f7f1588f838cec0b6
> [2/5] gpio: Congatec Board Controller gpio driver
>       commit: 4342bf63b64b09561f4ad1537de2e1a971cfb197
> [3/5] i2c: Congatec Board Controller i2c bus driver
>       commit: 6894f640b8f3f48700ccc828419ba60704f5a405
> [4/5] watchdog: Congatec Board Controller watchdog timer driver
>       commit: 6f264047869e9683520ff8f7c235c07c1ca989d6
> [5/5] MAINTAINERS: Add entry for Congatec Board Controller
>       commit: 590bcce85e014a2e16afe910bc6a20b4c1b2b374

Sent for build testing.  Will follow-up with an PR once complete.

Note to self: ib-mfd-gpio-i2c-watchdog-6.13

-- 
Lee Jones [李琼斯]
[GIT PULL] Immutable branch between MFD, GPIO, I2C and Watchdog due for the v6.13 merge window
Posted by Lee Jones 1 month, 2 weeks ago
Enjoy!

The following changes since commit 9852d85ec9d492ebef56dc5f229416c925758edc:

  Linux 6.12-rc1 (2024-09-29 15:06:19 -0700)

are available in the Git repository at:

  ssh://git@gitolite.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git tags/ib-mfd-gpio-i2c-watchdog-v6.13

for you to fetch changes up to 590bcce85e014a2e16afe910bc6a20b4c1b2b374:

  MAINTAINERS: Add entry for Congatec Board Controller (2024-10-09 16:32:13 +0100)

----------------------------------------------------------------
Immutable branch between MFD, GPIO, I2C and Watchdog due for the v6.13 merge window

----------------------------------------------------------------
Thomas Richard (5):
      mfd: Add Congatec Board Controller driver
      gpio: Congatec Board Controller gpio driver
      i2c: Congatec Board Controller i2c bus driver
      watchdog: Congatec Board Controller watchdog timer driver
      MAINTAINERS: Add entry for Congatec Board Controller

 MAINTAINERS                   |   9 +
 drivers/gpio/Kconfig          |  10 +
 drivers/gpio/Makefile         |   1 +
 drivers/gpio/gpio-cgbc.c      | 196 ++++++++++++++++++++
 drivers/i2c/busses/Kconfig    |  10 +
 drivers/i2c/busses/Makefile   |   1 +
 drivers/i2c/busses/i2c-cgbc.c | 406 +++++++++++++++++++++++++++++++++++++++++
 drivers/mfd/Kconfig           |  12 ++
 drivers/mfd/Makefile          |   1 +
 drivers/mfd/cgbc-core.c       | 411 ++++++++++++++++++++++++++++++++++++++++++
 drivers/watchdog/Kconfig      |  10 +
 drivers/watchdog/Makefile     |   1 +
 drivers/watchdog/cgbc_wdt.c   | 211 ++++++++++++++++++++++
 include/linux/mfd/cgbc.h      |  44 +++++
 14 files changed, 1323 insertions(+)
 create mode 100644 drivers/gpio/gpio-cgbc.c
 create mode 100644 drivers/i2c/busses/i2c-cgbc.c
 create mode 100644 drivers/mfd/cgbc-core.c
 create mode 100644 drivers/watchdog/cgbc_wdt.c
 create mode 100644 include/linux/mfd/cgbc.h

-- 
Lee Jones [李琼斯]