From: Gerhard Engleder <gerhard@engleder-embedded.com>
To: linux-i2c@vger.kernel.org
Cc: andi.shyti@kernel.org, arnd@arndb.de, gregkh@linuxfoundation.org,
Gerhard Engleder <gerhard@engleder-embedded.com>
Subject: [PATCH v3 0/2] I2C controller support for KEBA PLCs
Date: Wed, 10 Jul 2024 19:57:00 +0200 [thread overview]
Message-ID: <20240710175702.22344-1-gerhard@engleder-embedded.com> (raw)
KEBA PLCs use a PCIe FPGA to implement several functions in a common
way. This is a first step to include basic support for this FPGA.
Under drivers/misc the cp500 PCI driver is added. This drivers creates
auxiliary devices for every function inside the FPGA. As a first step it
only creates auxiliary devices for the I2C controllers.
The I2C controller driver is added under drivers/i2c/busses like all the
other I2C controller drivers.
This patches enable access to the EEPROMs and to the hardware monitoring
chip of KEBA PLCs.
v3:
- first patch is already merged to char-misc-next by Greg KH
- add AUXILIARY_BUS Kconfig dependency
- don't declare int i within for loop (Andi Shyti)
- enable I2C controller as late as possible (Andi Shyti)
- use devm_i2c_add_adapter (Andi Shyti)
- add KI2C_CONTROL_DISABLE (Andi Shyti)
v2:
- use aux bus (Greg KH)
- add Documentation/ABI/ entry for version and keep_cfg sysfs files (Greg KH)
- use sysfs_emit (Greg KH)
- add some information about I2C controller in commit message (Andi Shyti)
- remove old copyright line (Andi Shyti)
- sort header alphabetically (Andi Shyti)
- rework register defines as suggested (Andi Shyti)
- fix block comment style multiple times (Andi Shyti)
- add comment that IN_USE bit is a semaphore (Andi Shyti)
- add comment that IN_USE bit polling sleeps (Andi Shyti)
- addr as first argument of ki2c_wait_for_bit() (Andi Shyti)
- avoid compact style for register flag check (Andi Shyti)
- move bus reset dev_err's to reset implementation (Andi Shyti)
- use dev_err_probe() (Andi Shyti)
- fix 'ki2c_devtype defined but not used' (kernel test robot)
- fix 'WARNING comparing pointer to 0', twice (kernel test robot)
- fix 'Using plain integer as NULL pointer' (kernel test robot)
- fix 'symbol cp035_devices was not declared. Should it be static?', 3 times (kernel test robot)
Gerhard Engleder (2):
misc: keba: Add basic KEBA CP500 system FPGA support
i2c: keba: Add KEBA I2C controller support
.../ABI/stable/sysfs-driver-misc-cp500 | 25 +
drivers/i2c/busses/Kconfig | 11 +
drivers/i2c/busses/Makefile | 1 +
drivers/i2c/busses/i2c-keba.c | 593 ++++++++++++++++++
drivers/misc/Kconfig | 1 +
drivers/misc/Makefile | 1 +
drivers/misc/keba/Kconfig | 12 +
drivers/misc/keba/Makefile | 3 +
drivers/misc/keba/cp500.c | 458 ++++++++++++++
include/linux/misc/keba.h | 25 +
10 files changed, 1130 insertions(+)
create mode 100644 Documentation/ABI/stable/sysfs-driver-misc-cp500
create mode 100644 drivers/i2c/busses/i2c-keba.c
create mode 100644 drivers/misc/keba/Kconfig
create mode 100644 drivers/misc/keba/Makefile
create mode 100644 drivers/misc/keba/cp500.c
create mode 100644 include/linux/misc/keba.h
--
2.39.2
next reply other threads:[~2024-07-10 17:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-10 17:57 Gerhard Engleder [this message]
2024-07-10 17:57 ` [PATCH v3 1/2] misc: keba: Add basic KEBA CP500 system FPGA support Gerhard Engleder
2024-08-13 9:39 ` Greg KH
2024-08-13 20:00 ` Gerhard Engleder
2024-07-10 17:57 ` [PATCH v3 2/2] i2c: keba: Add KEBA I2C controller support Gerhard Engleder
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240710175702.22344-1-gerhard@engleder-embedded.com \
--to=gerhard@engleder-embedded.com \
--cc=andi.shyti@kernel.org \
--cc=arnd@arndb.de \
--cc=gregkh@linuxfoundation.org \
--cc=linux-i2c@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox