Repository navigation
dtoverlays: Add overlay for cap1106 capacitive touch sensor - #4442
Mr-Bossman wants to merge 3 commits into
Conversation
pelwell
left a comment
There was a problem hiding this comment.
This is two PRs in one - the overlay PR belongs here, but the driver change should be sent to the Linux kernel devs.
The overlay looks largely OK, but it's lacking entries in the README and Makefile, and the driver is not enabled in our defconfigs so most people would be unable to make use of it.
|
|
||
| static const struct i2c_device_id cap11xx_i2c_ids[] = { | ||
| { "cap1106", CAP1106 }, | ||
| { "cap1106", CAP1206 }, |
| node = dev->of_node; | ||
|
|
||
| if (!of_property_read_u32(node, "microchip,sensor-gain", &gain32)) { | ||
| if (cap->product_id != 0x67) |
There was a problem hiding this comment.
This test would be better using either the index to the table (!= CAP1206) or by adding a flags field (!(cap->flags & FLAGS_SENSOR_GAIN)).
| cap1106_pins: cap1106_pins { | ||
| brcm,pins = <4>; | ||
| brcm,function = <0>; /* in */ | ||
| brcm,pull = <1>; /* none */ |
There was a problem hiding this comment.
This doesn't make sense. Your interrupts flags above are 2 (IRQ_TYPE_EDGE_FALLING), a pull of 1 means pull down (a falling-edge IRQ would normally require an pull up), and the comment says none.
There was a problem hiding this comment.
The overlay itself looks OK now, and the Makefile change. You're just missing a README entry - see #4444 for some guidance on that.
Before I merge this PR I'd also like a name and email address for the Signed-off-by: line in the commit message.
Can I assume that you would like CONFIG_KEYBOARD_CAP11XX adding to our standard configurations?
How exactly do I do this... I'm not used to using GitHub for PRs. Do I add it to the git-commit-log description like on u-boot and the kernel?
exactly.
will do! |
|
For the Signed-off-by, just write it in a comment and I can add it when merging, but normally it would be included at the end of your commit message. |
Signed-off-by: Jesse Taube <mr.bossman075@gmail.com>
See: #4442 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
The int_pin parameter wasn't documented and there were a few whitespace problems, but it's now in rpi-5.10.y along with a commit adding the required config setting. |
See: #4442 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
See: #4442 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
See: #4442 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
kernel: KMS and FKMS right/bottom margin fixes See: raspberrypi/linux#4451 kernel: overlays: Add overlay for Si446x Transceiver SPI See: raspberrypi/linux#4430 kernel: ARM: dts: bcm2711: fold in the correct interrupt kernel: dtoverlays: Add overlay for cap1106 capacitive touch sensor See: raspberrypi/linux#4442 firmware: arm_loader: Add rng-seed DT property See: #1595 firmware: isp: Set the YUV420/YVU420 format stride to 64 byte
kernel: KMS and FKMS right/bottom margin fixes See: raspberrypi/linux#4451 kernel: overlays: Add overlay for Si446x Transceiver SPI See: raspberrypi/linux#4430 kernel: ARM: dts: bcm2711: fold in the correct interrupt kernel: dtoverlays: Add overlay for cap1106 capacitive touch sensor See: raspberrypi/linux#4442 firmware: arm_loader: Add rng-seed DT property See: raspberrypi/firmware#1595 firmware: isp: Set the YUV420/YVU420 format stride to 64 byte
See: #4442 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
See: #4442 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
See: #4442 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
See: #4442 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
See: #4442 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
See: #4442 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
See: #4442 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
See: #4442 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
See: #4442 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
See: #4442 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
See: #4442 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
See: raspberrypi#4442 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
See: #4442 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
See: #4442 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
See: #4442 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
See: #4442 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
See: #4442 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
See: #4442 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
See: raspberrypi#4442 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
See: #4442 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Tested works on rpi3, alert pin being pin 4