Skip to content

dtoverlays: Add overlay for cap1106 capacitive touch sensor - #4442

Closed
Mr-Bossman wants to merge 3 commits into
raspberrypi:rpi-5.10.yfrom
Mr-Bossman:rpi-5.10.y
Closed

Mr-Bossman wants to merge 3 commits into
raspberrypi:rpi-5.10.yfrom
Mr-Bossman:rpi-5.10.y

Conversation

@Mr-Bossman

Copy link
Copy Markdown
Contributor

Tested works on rpi3, alert pin being pin 4

@pelwell pelwell left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread drivers/input/keyboard/cap11xx.c Outdated

static const struct i2c_device_id cap11xx_i2c_ids[] = {
{ "cap1106", CAP1106 },
{ "cap1106", CAP1206 },

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"cap1206"?

Comment thread drivers/input/keyboard/cap11xx.c Outdated
node = dev->of_node;

if (!of_property_read_u32(node, "microchip,sensor-gain", &gain32)) {
if (cap->product_id != 0x67)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 */

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@Mr-Bossman
Mr-Bossman requested a review from pelwell July 9, 2021 15:44

@pelwell pelwell left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

@Mr-Bossman

Copy link
Copy Markdown
Contributor Author

Before I merge this PR I'd also like a name and email address for the Signed-off-by: line in the commit message.

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?

Can I assume that you would like CONFIG_KEYBOARD_CAP11XX adding to our standard configurations?

exactly.

The overlay itself looks OK now, and the Makefile change. You're just missing a README entry - see #4444 for some guidance on that.

will do!

@pelwell

pelwell commented Jul 9, 2021

Copy link
Copy Markdown
Contributor

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.

@Mr-Bossman
Mr-Bossman requested a review from pelwell July 9, 2021 23:15
pelwell added a commit that referenced this pull request Jul 10, 2021
See: #4442

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
@pelwell

pelwell commented Jul 10, 2021

Copy link
Copy Markdown
Contributor

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.

@pelwell pelwell closed this Jul 10, 2021
pelwell added a commit that referenced this pull request Jul 12, 2021
See: #4442

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
pelwell added a commit that referenced this pull request Jul 12, 2021
See: #4442

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
pelwell added a commit that referenced this pull request Jul 12, 2021
See: #4442

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix added a commit to raspberrypi/firmware that referenced this pull request Jul 14, 2021
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
popcornmix added a commit to Hexxeh/rpi-firmware that referenced this pull request Jul 14, 2021
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
popcornmix pushed a commit that referenced this pull request Jul 15, 2021
See: #4442

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix pushed a commit that referenced this pull request Jul 15, 2021
See: #4442

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix pushed a commit that referenced this pull request Jul 21, 2021
See: #4442

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix pushed a commit that referenced this pull request Jul 21, 2021
See: #4442

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix pushed a commit that referenced this pull request Jul 23, 2021
See: #4442

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix pushed a commit that referenced this pull request Jul 27, 2021
See: #4442

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix pushed a commit that referenced this pull request Jul 27, 2021
See: #4442

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix pushed a commit that referenced this pull request Jul 27, 2021
See: #4442

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
pelwell added a commit that referenced this pull request Jul 29, 2021
See: #4442

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix pushed a commit that referenced this pull request Aug 11, 2021
See: #4442

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix pushed a commit that referenced this pull request Aug 11, 2021
See: #4442

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Noltari pushed a commit to Noltari/rpi-linux that referenced this pull request Aug 20, 2021
See: raspberrypi#4442

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix pushed a commit that referenced this pull request Aug 21, 2021
See: #4442

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix pushed a commit that referenced this pull request Aug 21, 2021
See: #4442

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix pushed a commit that referenced this pull request Sep 8, 2021
See: #4442

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix pushed a commit that referenced this pull request Sep 8, 2021
See: #4442

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix pushed a commit that referenced this pull request Sep 15, 2021
See: #4442

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix pushed a commit that referenced this pull request Sep 15, 2021
See: #4442

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
mripard pushed a commit to mripard/rpi-linux that referenced this pull request Sep 16, 2021
See: raspberrypi#4442

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix pushed a commit that referenced this pull request Sep 30, 2021
See: #4442

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants