Skip to content

Conversation

@papadkostas
Copy link
Contributor

As LTDC is now working #43965 , I enabled support for F429.
I'm thinking of creating a 2 separate configuration files, one with graphic stuff enabled, and one without and also create a board/Kconfig file so that the options would be located within menuconfig in Board options section.
Later I'll push the driver for STMPE811 for the touch controller after this is ok.

gmarull
gmarull previously requested changes Apr 5, 2022
Copy link
Member

Choose a reason for hiding this comment

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

this commit 09f8518 is doing too many changes:

  • changing display to ili9341
  • changing clock speeds
  • changing pinctrl settings
    ...

please split into individual commits explaining the rationale of the change

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did so because all changes were made targeting the display support, except boosting clock speed.
Will do as requested.

Comment on lines 252 to 276
Copy link
Member

Choose a reason for hiding this comment

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

formatting looks wrong here.
for readability I'd avoid ifdeffing in between arguments.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should I just rewrite twice the if defined for both F4 and F7 targets?

Copy link
Member

Choose a reason for hiding this comment

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

This is not required. Alternatively, you can use a constant defined externally.
Anyway, I hope we'll be able to get rid of this part soon and use clock_control api to do this (see #42097)

Comment on lines 15 to 18
Copy link
Member

Choose a reason for hiding this comment

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

this is redundant

Copy link
Member

Choose a reason for hiding this comment

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

this and others: there's no need to re-define type. this file just changes defaults.

Comment on lines 25 to 15
Copy link
Member

Choose a reason for hiding this comment

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

this should not be needed. doesn't ltdc driver default to y if its DT node is okay?

Comment on lines 142 to 141
Copy link
Member

Choose a reason for hiding this comment

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

this should be updated in the commit that updates clock settings

Comment on lines 14 to 24
Copy link
Member

Choose a reason for hiding this comment

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

why is this needed? should again have its own commit

@papadkostas papadkostas force-pushed the stm32f429i_disc1-display branch from 70656c4 to 42d46ca Compare April 5, 2022 19:59
@papadkostas papadkostas requested a review from gmarull April 6, 2022 10:07
@papadkostas papadkostas force-pushed the stm32f429i_disc1-display branch 2 times, most recently from a26eb7d to 87ff3f4 Compare April 8, 2022 08:28
erwango
erwango previously approved these changes Apr 8, 2022
MaureenHelm
MaureenHelm previously approved these changes Apr 8, 2022
@MaureenHelm MaureenHelm dismissed gmarull’s stale review April 8, 2022 14:25

Requested changes were addressed

This enables the option through dts to drive the display
with RGB interface.

Signed-off-by: Konstantinos Papadopoulos <[email protected]>
Onboard display is actually an ILI9341. It is connected to SPI5 which
is shared with L3GD20. Max clock is set as described in BSP driver files
(stm32f429i_discovery.c@638). ILI9341 configuration updated to enable
RGB interface use.

Signed-off-by: Konstantinos Papadopoulos <[email protected]>
Enable LTDC interface to drive the ILI9341 in RGB mode.

Signed-off-by: Konstantinos Papadopoulos <[email protected]>
This commit fixes the clock control for LTDC peripheral

Signed-off-by: Konstantinos Papadopoulos <[email protected]>
LTDC clock on F4/F7 series, is generated from PLLSAI which yet is not
implemented into Zephyr.

Signed-off-by: Konstantinos Papadopoulos <[email protected]>
Added required config for the display operation and default display name
to "LTDC" for LVGL subsystem when the peripheral LTDC  is used.

Signed-off-by: Konstantinos Papadopoulos <[email protected]>
@MaureenHelm MaureenHelm dismissed stale reviews from erwango and themself via 34c6ea7 April 8, 2022 15:29
@MaureenHelm MaureenHelm force-pushed the stm32f429i_disc1-display branch from 629f151 to 34c6ea7 Compare April 8, 2022 15:29
@mbolivar-nordic mbolivar-nordic merged commit 6387e98 into zephyrproject-rtos:main Apr 8, 2022
@papadkostas papadkostas deleted the stm32f429i_disc1-display branch April 10, 2022 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants