-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Conversation
There was a problem hiding this 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.
arch/arm/boot/dts/overlays/README
Outdated
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"displays ... have been"
arch/arm/boot/dts/overlays/README
Outdated
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: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"features ... have not been"
arch/arm/boot/dts/overlays/README
Outdated
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) |
There was a problem hiding this comment.
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.
arch/arm/boot/dts/overlays/README
Outdated
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) |
There was a problem hiding this comment.
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]>
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. |
Thanks! |
kernel: overlays: Add fbtft overlay See: raspberrypi/linux#4677
kernel: overlays: Add fbtft overlay See: raspberrypi/linux#4677
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
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
Add an overlay that provides much of the functionality that fbtft_device did.
Follow up from #4659