mfd: tqmx86: IO controller with i2c, wachdog and gpio
Subsystems (2)
PATCH v3 1/1 mfd: tqmx86: IO controller with i2c, wachdog and gpio
The QMX86 is a PLD present on some TQ-Systems ComExpress modules. It provides 1 or 2 I2C bus masters, 8 GPIOs and a watchdog timer. Add an MFD which will instantiate the individual drivers.
---
v2:
Drop setting i2c bus speed, which removes the build dependencies on the i2c ocores patches. This can be added back later.
v3
--
Fix indentation of help
Fix SPDX to match MODULE_LICENSE
Remove warranty text
Add my Copyright
Sort include files
Add _REG_ to register defines
Add #defines for all resources
Replace magic numbers with #defines
Rename pld_clock to pld_clock_rate
Remove wrapper around ioread8()/iowrite8() Scatter const keyword in a few places
Remove enum for cells
Implement lookup for board in tq_board_if Rename ioeic to io_ext_int_val to make is more readable Handle optional calls in a different way Better group code and structures
Kill all the sysfs attributes
Use devm_mfd_add_devices()
Don't exist silently for unknown board ID
Not addressed, waiting for answers:MODULE_PARM for GPIO interrupts
Not using regmap, intel IO not supported by regmap Setting GPIO irq on resource structure Global tqmx86_pdev
Jumping through hoops
--- drivers/mfd/Kconfig | 8 ++ drivers/mfd/Makefile | 1 + drivers/mfd/tqmx86.c | 303 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 312 insertions(+) create mode 100644 drivers/mfd/tqmx86.c
drivers/mfd/Kconfig +8 -0
@@ -1676,6 +1676,14 @@ config MFD_TC6393XB help Support for Toshiba Mobile IO Controller TC6393XB +config MFD_TQMX86 + tristate "TQ-Systems IO controller TQMX86" + select MFD_CORE + help + Say yes here to enable support for various functions of the + TQ-Systems IO controller and watchdog device, found on their + ComExpress CPU modules. + config MFD_VX855 tristate "VIA VX855/VX875 integrated south bridge" depends on PCI
drivers/mfd/Makefile +1 -0
@@ -36,6 +36,7 @@ obj-$(CONFIG_MFD_TC3589X) += tc3589x.o obj-$(CONFIG_MFD_T7L66XB) += t7l66xb.o tmio_core.o obj-$(CONFIG_MFD_TC6387XB) += tc6387xb.o tmio_core.o obj-$(CONFIG_MFD_TC6393XB) += tc6393xb.o tmio_core.o +obj-$(CONFIG_MFD_TQMX86) += tqmx86.o obj-$(CONFIG_MFD_ARIZONA) += arizona-core.o obj-$(CONFIG_MFD_ARIZONA) += arizona-irq.o
drivers/mfd/tqmx86.c new file +303 -0
303 lines not on this page · raw message
Signature · 1 line
2.20.1
Quoted 5 lines · Andrew Lunn
The QMX86 is a PLD present on some TQ-Systems ComExpress modules. It provides 1 or 2 I2C bus masters, 8 GPIOs and a watchdog timer. Add an MFD which will instantiate the individual drivers.
Signed-off-by Andrew Lunn <[email protected]>
Quoted 8 lines
---
v2:Drop setting i2c bus speed, which removes the build dependencies on the i2c ocores patches. This can be added back later.
v3
--
You're going to have to resend this.
Mailers tend to use '--\n' to signify the start of the mail signature (see mine as an example), so when someone (myself included) attempts to reply to the mail, it is likely that their mailer will chop everything from there down.
Please submit a [RESEND] with it removed.
Signature · 4 lines
Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
Quoted 16 lines · Lee Jones
Quoted 5 lines · Andrew Lunn
The QMX86 is a PLD present on some TQ-Systems ComExpress modules. It provides 1 or 2 I2C bus masters, 8 GPIOs and a watchdog timer. Add an MFD which will instantiate the individual drivers.
Signed-off-by Andrew Lunn <[email protected]>Quoted 8 lines
---
v2:Drop setting i2c bus speed, which removes the build dependencies on the i2c ocores patches. This can be added back later.
v3
--
Quoted 6 lines
You're going to have to resend this.
Mailers tend to use '--\n' to signify the start of the mail signature (see mine as an example), so when someone (myself included) attempts to reply to the mail, it is likely that their mailer will chop everything from there down.
Hi Lee
I posted a new version.
Your email indicates you are using Mutt:
Quoted 1 line
User-Agent: Mutt/1.9.4 (2018-02-28)
Which is also what i use. I've never had issues with signatures like this. I also cannot find any documentation as to how you configure mutt remove signatures. How are you doing it?
Thanks
Andrew
Quoted 28 lines · Andrew Lunn
Quoted 16 lines · Lee Jones
Quoted 5 lines · Andrew Lunn
The QMX86 is a PLD present on some TQ-Systems ComExpress modules. It provides 1 or 2 I2C bus masters, 8 GPIOs and a watchdog timer. Add an MFD which will instantiate the individual drivers.
Signed-off-by Andrew Lunn <[email protected]>Quoted 8 lines
---
v2:Drop setting i2c bus speed, which removes the build dependencies on the i2c ocores patches. This can be added back later.
v3
--Quoted 6 lines
You're going to have to resend this.
Mailers tend to use '--\n' to signify the start of the mail signature (see mine as an example), so when someone (myself included) attempts to reply to the mail, it is likely that their mailer will chop everything from there down.
Hi Lee
I posted a new version.
Quoted 7 lines
Your email indicates you are using Mutt:
Quoted 1 line
User-Agent: Mutt/1.9.4 (2018-02-28)
Which is also what i use. I've never had issues with signatures like this. I also cannot find any documentation as to how you configure mutt remove signatures. How are you doing it?
I think it's automatic. I certainly didn't set that up.
I see my signature was not included in your reply. Did you manually remove it? Try replying to your own mail. I should automatically cut.
Signature · 4 lines
Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
Quoted 6 lines
Quoted 6 lines
Hi Lee
I posted a new version.
Your email indicates you are using Mutt:
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
User-Agent: Mutt/1.9.4 (2018-02-28)
Which is also what i use. I've never had issues with signatures like this. I also cannot find any documentation as to how you configure mutt remove signatures. How are you doing it?
I think it's automatic. I certainly didn't set that up.
Interesting. My mutt installation does not do this. I trim emails manually to be netiquette compliant.
Quoted 1 line
Try replying to your own mail. I should automatically cut.
Replying to my patch works fine. It does not cut the patch.
This is a bug somewhere, since the marker i used is not a signature marker. It did not have the space on the end.
Anyway, getting the patch reviewed is more important to me than tracing down the bug...
Andrew
Quoted 17 lines · Andrew Lunn
Quoted 6 lines
Quoted 6 lines
Hi Lee
I posted a new version.
Your email indicates you are using Mutt:
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
User-Agent: Mutt/1.9.4 (2018-02-28)
Which is also what i use. I've never had issues with signatures like this. I also cannot find any documentation as to how you configure mutt remove signatures. How are you doing it?
I think it's automatic. I certainly didn't set that up.
Interesting. My mutt installation does not do this. I trim emails manually to be netiquette compliant.
Quoted 6 lines
Quoted 1 line
Try replying to your own mail. I should automatically cut.
Replying to my patch works fine. It does not cut the patch.
This is a bug somewhere, since the marker i used is not a signature marker. It did not have the space on the end.
Yes, you're correct, it should be "-- \n". Give me a sec ...
Ah, it's an Emacs Post-Mode thing:
;;; Revision 1.6.0 1999/03/04 18:04 Rob Reid
;;; Returned post-signature-pattern to using "--" instead of "-- " ;;; because some senders have broken MTAs (as Eric reminded me) and ;;; some users don't use procmail to compensate. This time all of the ;;; functions dealing with signatures have been smartened up to avoid ;;; false matches. Unfortunately that means they don't use ;;; post-signature-pattern in its raw form.
Quoted 2 lines
Anyway, getting the patch reviewed is more important to me than tracing down the bug...
Agreed.
Signature · 4 lines
Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog