-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
shields: display: Add Waveshare Pico OLED 1.3 #62708
Conversation
}; | ||
}; | ||
|
||
&i2c1 { |
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 connector provided, but I guess in specific case of Raspberry Pico (oine single board reference), it is fine. @jfischer-no thoughts ?
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 is pico_spi.
https://github.com/zephyrproject-rtos/zephyr/blob/8e7c7c62b15cbc09633e48f95eec6aa9150a4791/boards/arm/rpi_pico/rpi_pico-common.dtsi#L151C1-L151C20
I think it make sense to add pico_i2c.
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.
It makes sense.
For consistency reasons, I added aliases as pico_spi0, pico_spi1, pico_i2c0, and pico_i2c1.
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 think we should better group shields by the controller/device it configures. Can it be part of the ssd1306 shield since it already supports multiple controllers from that family?
5a96bbb
to
ed156ea
Compare
Add aliases for spi0 as pico_spi0 and also as each for spi1, i2c0, and i2c1. spi0 alias is already exists as pico_spi, it rename. Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
Renamed pico_spi to pico_spi0. Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
Added Waveshare 1.3inch OLED module for RaspberryPi Pico. Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
ed156ea
to
4c382cf
Compare
There is rpi_pico specific problem. The i2c/spi pins are not fixed. If it puts this shield configuration into boards/shields/ssd1306, I think it is good to create the shield configuration separately. |
How? |
I want to use this shield by only adding the For that, rpi_pico needs to configure i2c-pins with pinctrl. I worry that if this PR's changes move into |
shield/foobar/boards/rpi_pico.overlay applies only to rpi_pico board, "something bad" is not to be expected. We should not have multiple shield directories with identical Kconfig.shield and similar descriptions about display controller used. |
I agree that your suggestion works correctly for this shield. For example, in the case the new shield is
In this case, it uses the same rpi_pico.overlay by both shields. Nothing like this is currently on the market, but I think it is a possibility that should be considered. |
Because you configure 4c382cf#diff-868357f0097b87fbdf4a9cada9cbd5b33dfe302b591a24be6197c29625a640f2 for this shield but not at the board level. And whatever you do, it may conflict with any other shield using the same i2c interface. |
Yes, it is. rpi_pico has no standard or typical configuration for pins. So, it should not define the default by system. In my understanding, Zephyr defines the default with only the minimum required. This is following the habit. So, I put the settings into the shield. It's understandable that there is a possibility of collision, but isn't it too unfriendly to the user to have a mismatch happen in the simple case of using a single shield? |
This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time. |
Added Waveshare 1.3inch OLED module for RaspberryPi Pico.