-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Add support for the Waveshare ESP32-S3-Touch-LCD1.28 board #67311
Add support for the Waveshare ESP32-S3-Touch-LCD1.28 board #67311
Conversation
2cd93a6
to
0d93a65
Compare
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.
cool board
boards/xtensa/waveshare_esp32s3_touch_lcd/waveshare_esp32s3_touch_lcd-pinctrl.dtsi
Outdated
Show resolved
Hide resolved
boards/xtensa/waveshare_esp32s3_touch_lcd/waveshare_esp32s3_touch_lcd-pinctrl.dtsi
Outdated
Show resolved
Hide resolved
boards/xtensa/waveshare_esp32s3_touch_lcd/waveshare_esp32s3_touch_lcd.dts
Outdated
Show resolved
Hide resolved
boards/xtensa/waveshare_esp32s3_touch_lcd/waveshare_esp32s3_touch_lcd_defconfig
Outdated
Show resolved
Hide resolved
boards/xtensa/waveshare_esp32s3_touch_lcd/waveshare_esp32s3_touch_lcd.dts
Outdated
Show resolved
Hide resolved
5128043
to
2b24650
Compare
@joelguittet one more thing, you named the board |
It might make sense to keep the generic folder name though so that it can become the home for |
They really don't have much in common https://files.waveshare.com/wiki/ESP32-S3-Touch-LCD-1.28/ESP32-S3-Touch-LCD-1.28-Sch.pdf https://files.waveshare.com/wiki/ESP32-S3-Touch-LCD-4.3/ESP32-S3-Touch-LCD-4.3-Sch.pdf, normally the board directory is for different revisions or variation with common pinout or stuff like that, but these are really two different boards, they barely use the same chip (one uses a module). |
Ah! Sorry then :) Product naming is always funny. There I was, thinking only display size would be different based on the names 😅 |
Good point, yes I just checked too and they are very different. Will rename this one now. |
bd14ef5
to
751fbcf
Compare
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.
looks good, guess we have to wait on the display pr
samples/drivers/adc/boards/waveshare_esp32s3_touch_lcd_1_28.overlay
Outdated
Show resolved
Hide resolved
751fbcf
to
90c647c
Compare
@@ -0,0 +1 @@ | |||
CONFIG_MAIN_STACK_SIZE=4096 |
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.
Ohh, our minimal LVGL sample is not minimal anymore? What is the display resolution? Would you need same one-line-overlay for another LVGL sample?
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.
No the default stack size is not enough. Display is 240x240. I have seen at least one other board with the 4096 stack size.
What do you mean by one line overlay for another lvgl sample ?
90c647c
to
d613574
Compare
@sylvioalves true! I was waiting other esp32 board to be migrated to have an example and the common soc files I need here. It's now updated here! The board
The board |
cbb48bb
to
ad44654
Compare
This needs to be targeted to |
@joelguittet you can change the base of the existing PR, just click edit on the top and the base should become a dropbox and you can pick main there |
@nordicjm @fabiobaltieri are you sure of your request ? If I target main then the PR will show all the commits of the collab hwm branch..... And if my PR is merged then it will merge everything in main including all the collab hwm commits. Note : I will fix the doc issue reported by the pipeline asap of course. |
You need to rebase it properly so that your changes apply to main, not the collab-hwm branch, so this PR needs to contain just your commits that would clearly apply. collab-hwm was merged weeks ago |
yeah well if you don't change the base it's going to be merged on the branch which is certainly not what you want either :-) after you change the base the PR may become a giant mess, then you can fix it up locally and force push it again, all normal |
Oh my bad 😞 seems I m tired, just realized the collab hwm branch feature have merged to main branch too... |
ad44654
to
7cc6fc2
Compare
7cc6fc2
to
765fd96
Compare
Updated :) |
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.
Comments are optional
scratch_partition: partition@210000 { | ||
label = "image-scratch"; | ||
reg = <0x00210000 0x00040000>; | ||
}; |
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.
Would remove and give to slots instead since swap using scratch is not recommended
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.
Agree but it's retrieved from the esp32s3_devkitm board from Espressif. I guess it's better to keep consistency across similar boards?
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.
@nordicjm what is your opinion?
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.
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.
@sylvioalves ? Your opinion about this ? What should be the default in zephyr for this kind of board ?
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.
@nordicjm hey since we are on the topic I'll add a question: do you think it would make sense to have few templates for in-tree board partitions maps? We have a lot of boards based on esp32, nrf52840 etc... and the flash partitioning is pretty much always the same, maybe we can have some dtsi and #include
it in the board file? As much as I dislike mid-structure includes, it may be better than repeating this to infinity.
scratch_partition: partition@210000 { | ||
label = "image-scratch"; | ||
reg = <0x00210000 0x00040000>; | ||
}; |
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.
as above
@nordicjm gentle ping for the above question, thanks! |
765fd96
to
3e30de3
Compare
Add support for the Waveshare ESP32-S3-Touch-LCD-1.28 board, including support the LCD and touchscreen controllers. Tested with samples already available. Signed-off-by: Joel Guittet <[email protected]>
Add configuration for the Waveshare ESP32-S3-Touch-LCD-1.28 board. Signed-off-by: Joel Guittet <[email protected]>
Add configuration for the Waveshare ESP32-S3-Touch-LCD-1.28 board. Signed-off-by: Joel Guittet <[email protected]>
3e30de3
to
36850dc
Compare
Thanks for the reviews here ! 🎉 |
The purpose of this Pull Request is to add support for the Waveshare ESP32-S3-Touch-LCD1.28 board.