Skip to content

overlays: Add fbtft overlay #4677

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 7, 2021
Merged

overlays: Add fbtft overlay #4677

merged 1 commit into from
Nov 7, 2021

Conversation

notro
Copy link
Contributor

@notro notro commented Nov 5, 2021

Add an overlay that provides much of the functionality that fbtft_device did.

Follow up from #4659

Copy link
Contributor

@pelwell pelwell left a comment

Choose a reason for hiding this comment

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

Overall this looks great. Would you consider adding support for the other SPI interfaces as well? The spi<m>-<n> parameters (where one must be chosen) are now quite common - see the mcp2515 overlay for an example.

I only mention the tiny grammatical issue in the README because the rest is flawless.

This overlay seeks to replace the functionality provided by fbtft_device
which is now gone from the kernel.

Most displays from fbtft_device has been ported over.
Copy link
Contributor

Choose a reason for hiding this comment

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

"displays ... have been"

Example:
dtoverlay=fbtft,ili9341,bgr,reset_pin=23,dc_pin=24,led_pin=18,rotate=270

The following features of fbtft_device has not been ported over:
Copy link
Contributor

Choose a reason for hiding this comment

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

"features ... have not been"

dtoverlay=fbtft,ili9341,bgr,reset_pin=23,dc_pin=24,led_pin=18,rotate=270

The following features of fbtft_device has not been ported over:
- it's not possible to change the SPI bus number (spi0 is used)
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd like to make this statement false.

speed SPI bus speed in Hz (default 32000000)
cpha Shifted clock phase (CPHA) mode
cpol Inverse clock polarity (CPOL) mode
cs Chip Select {0, 1} (default 0)
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd like to see this replaced by spi<m>-<n> parameters (although it's good to see a lookup table being used in the implementation).

Add an overlay that provides much of the functionality that fbtft_device did.

Signed-off-by: Noralf Trønnes <[email protected]>
@notro
Copy link
Contributor Author

notro commented Nov 7, 2021

I've pushed a new version with the requested changes.

I've tried to avoid all the dormant spidev fragements that mcp2515 has, seems to be working.

@pelwell pelwell merged commit 6035381 into raspberrypi:rpi-5.10.y Nov 7, 2021
@pelwell
Copy link
Contributor

pelwell commented Nov 7, 2021

Thanks!

popcornmix added a commit to raspberrypi/firmware that referenced this pull request Nov 8, 2021
kernel: overlays: Add fbtft overlay
See: raspberrypi/linux#4677
popcornmix added a commit to raspberrypi/rpi-firmware that referenced this pull request Nov 8, 2021
kernel: overlays: Add fbtft overlay
See: raspberrypi/linux#4677
popcornmix added a commit to raspberrypi/firmware that referenced this pull request Nov 8, 2021
kernel: overlays: Add fbtft overlay
See: raspberrypi/linux#4677

firmware: hello_fft: Update outdated link to V3D spec
firmware: hello_fft: Remove unused function declaration
See: #1645
See: raspberrypi/userland#710
popcornmix added a commit to raspberrypi/rpi-firmware that referenced this pull request Nov 8, 2021
kernel: overlays: Add fbtft overlay
See: raspberrypi/linux#4677

firmware: hello_fft: Update outdated link to V3D spec
firmware: hello_fft: Remove unused function declaration
See: raspberrypi/firmware#1645
See: raspberrypi/userland#710
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