mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-25 07:14:36 +08:00
4c336e4b15
This chip is/was also branded as a Winbond WPCT301. Originally written by Dan Morav <dmorav@nuvoton.com> and posted to LKML: https://lkml.org/lkml/2011/9/7/206 The original posting was not merged, I have taken it as a starting point, forward ported, tested and revised the driver: - Rework interrupt handling to work properly with level triggered interrupts. The old version just locked up. - Synchronize various items with Peter Huewe's Infineon driver: * Add durations/timeouts sysfs calls * Remove I2C device auto-detection * Don't fiddle with chip->release * Call tpm_dev_vendor_release in the probe error path * Use MODULE_DEVICE_TABLE for the I2C ids * Provide OF compatible strings for DT support * Use SIMPLE_DEV_PM_OPS * Use module_i2c_driver - checkpatch cleanups - Testing on ARM Kirkwood with GPIO interrupts, with this device tree: tpm@57 { compatible = "nuvoton,npct501"; reg = <0x57>; interrupt-parent = <&gpio1>; interrupts = <6 IRQ_TYPE_LEVEL_LOW>; }; Signed-off-by: Dan Morav <dmorav@nuvoton.com> [jgg: revised and tested] Signed-off-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com> [phuewe: minor whitespace changes, fixed module name in kconfig] Signed-off-by: Peter Huewe <peterhuewe@gmx.de> |
||
---|---|---|
.. | ||
brcm,bcm2835-i2c.txt | ||
i2c-arb-gpio-challenge.txt | ||
i2c-at91.txt | ||
i2c-cbus-gpio.txt | ||
i2c-davinci.txt | ||
i2c-designware.txt | ||
i2c-gpio.txt | ||
i2c-imx.txt | ||
i2c-mpc.txt | ||
i2c-mux-gpio.txt | ||
i2c-mux-pinctrl.txt | ||
i2c-mux.txt | ||
i2c-mv64xxx.txt | ||
i2c-mxs.txt | ||
i2c-nomadik.txt | ||
i2c-ocores.txt | ||
i2c-octeon.txt | ||
i2c-omap.txt | ||
i2c-pnx.txt | ||
i2c-pxa-pci-ce4100.txt | ||
i2c-pxa.txt | ||
i2c-s3c2410.txt | ||
i2c-sirf.txt | ||
i2c-st-ddci2c.txt | ||
i2c-versatile.txt | ||
i2c-vt8500.txt | ||
i2c-xiic.txt | ||
ina2xx.txt | ||
ina209.txt | ||
max6697.txt | ||
nvidia,tegra20-i2c.txt | ||
trivial-devices.txt |