-
Notifications
You must be signed in to change notification settings - Fork 8.2k
stm32mp13: addition of i2c and ltdc support for the stm32mp135f-dk #89229
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
stm32mp13: addition of i2c and ltdc support for the stm32mp135f-dk #89229
Conversation
292b5cc to
24d40d5
Compare
|
The following west manifest projects have changed revision in this Pull Request:
✅ All manifest checks OK Note: This message is automatically posted and updated by the Manifest GitHub Action. |
|
a first west.yml update is done in order to be able to perform compile test. Such commit will have to be ignored in the final pull request. |
Update hal_stm32 revision to include the MP13 HAL update. Signed-off-by: Alain Volmat <[email protected]>
Addition of the DCMIPP and DDR modules. Signed-off-by: Alain Volmat <[email protected]>
Add code to handle stm32_clock_control_get_subsys_rate for all i2c instances from I2C1 to I2C5. Signed-off-by: Alain Volmat <[email protected]>
Replace the usage of __HAL_LTDC_RELOAD_CONFIG which is a legacy API with __HAL_LTDC_RELOAD_IMMEDIATE_CONFIG Signed-off-by: Alain Volmat <[email protected]>
Add description of all 5 instances (i2c1 to i2c5) available on the stm32mp13 soc. Signed-off-by: Alain Volmat <[email protected]>
24d40d5 to
8d45b87
Compare
|
Updated west.yml hal_stm32 revision now that hal_stm32 update is merged. |
arnopo
left a comment
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.
few comments, after that look good to me
The non-secure LTDC plane has its own register for clock gating hence add an entry to control this. Signed-off-by: Alain Volmat <[email protected]>
Add the node describing the LTDC available in the stm32mp135. Signed-off-by: Alain Volmat <[email protected]>
…board The stm32mp135f_dk board has 3 i2c instances enabled and feature a 480x272 panel controlled via the LTDC. Signed-off-by: Alain Volmat <[email protected]>
blue and red leds polarity is ACTIVE_LOW hence correct the DT to have them behave correctly. Signed-off-by: Alain Volmat <[email protected]>
The stm32mp135f_dk board embeds an I/O expander to get access to more I/O. Led 3 (green) and Led 4 (orange) are accessible via this I/O expander. Signed-off-by: Alain Volmat <[email protected]>
8d45b87 to
82b420d
Compare
This PR depends on the hal_stm32 PR
Update the STM32MP13XX to v1.2.0 tag + various fixes #277 in order to enable i2c and ltdc on the stm32mp13.
It first add new entries necessary to enable some new drivers from the HAL such as DCMIPP.
stm32 clock control updates for the i2c in order to be able to get enough information regarding clocking to properly configure the i2c IP of the MP13.
DT updates for stm32mp13 (i2c) and stm32mp135 (ltdc) in order to describe i2c and ltdc instances
Update of the stm32mp135f-dk dts file to enable instances available on that board.
The I/O expander available on the board (and controlled via i2c) is then added in order to gain access to further peripheral later on (for the time being only led 3 and led 4)