Skip to content

Conversation

@6by9
Copy link
Contributor

@6by9 6by9 commented Mar 12, 2024

The driver has been converted to use gpiod, which will normalise polarity based on DT.

The piscreen overlay (and others) incorrectly defines the pendown GPIO as being ACTIVE_HIGH (0), althought triggering on the high-low edge for pen down. It therefore tries reading the pen position when not being touched, and stops when it is touched.

Tested with piscreen and ads7846 overlays. Also fixed on others where the interrupt says high->low but the polarity was ACTIVE_HIGH.

raspberrypi/bookworm-feedback#88

The driver has been converted to use gpiod, which will normalise
polarity based on DT.

The piscreen overlay (and others) incorrectly defines the pendown
GPIO as being ACTIVE_HIGH (0), althought triggering on the high-low
edge for pen down. It therefore tries reading the pen position when
not being touched, and stops when it is touched.

Tested with piscreen and ads7846 overlays. Also fixed on others
where the interrupt says high->low but the polarity was ACTIVE_HIGH.

Signed-off-by: Dave Stevenson <[email protected]>
@6by9
Copy link
Contributor Author

6by9 commented Mar 14, 2024

(Pushed to the wrong branch. Now corrected again and rebased in the process).

@pelwell pelwell merged commit c895cec into raspberrypi:rpi-6.6.y Mar 14, 2024
popcornmix added a commit to raspberrypi/firmware that referenced this pull request Mar 19, 2024
See: raspberrypi/linux#6054

kernel: overlays: i2c-rtc: pcf8563 supports wakeup-source
See: raspberrypi/linux#6052

kernel: ARM: dts: bcm2712: Move /soc/sound to bcm2712-rpi
See: raspberrypi/linux#6051

kernel: I2C: Improve reliability at higher bus speeds
See: raspberrypi/linux#6050

kernel: dmaengine: dw-axi-dmac: Fix a non-atomic update
See: raspberrypi/linux#6044

kernel: dtoverlays: Add a disconnect_on_idle override to i2c-mux
See: raspberrypi/linux#6040

kernel: Add support for generic i2c-mux base-nr property
See: raspberrypi/linux#6038

kernel: dtoverlays: Fixup pendown gpio polarity for ads7846 users
See: raspberrypi/linux#6029
popcornmix added a commit to raspberrypi/rpi-firmware that referenced this pull request Mar 19, 2024
See: raspberrypi/linux#6054

kernel: overlays: i2c-rtc: pcf8563 supports wakeup-source
See: raspberrypi/linux#6052

kernel: ARM: dts: bcm2712: Move /soc/sound to bcm2712-rpi
See: raspberrypi/linux#6051

kernel: I2C: Improve reliability at higher bus speeds
See: raspberrypi/linux#6050

kernel: dmaengine: dw-axi-dmac: Fix a non-atomic update
See: raspberrypi/linux#6044

kernel: dtoverlays: Add a disconnect_on_idle override to i2c-mux
See: raspberrypi/linux#6040

kernel: Add support for generic i2c-mux base-nr property
See: raspberrypi/linux#6038

kernel: dtoverlays: Fixup pendown gpio polarity for ads7846 users
See: raspberrypi/linux#6029
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