Skip to content

Conversation

@zejiang0jason
Copy link
Contributor

Enable lvgl for frdm-mcxn947

Copy link
Contributor

Choose a reason for hiding this comment

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

As is tradition when NXP comes up with a new display format, we need to determine if this is at all a standard pinout- my guess is no, since I've only seen the pinout used by this display on NXP- supplied displays like the LCD PAR. If so, we should name the shield identifiers appropriately- perhaps nxp_touch_panel_mipi_dbi_i2c? I don't want to use the name nxp_touch_panel_parallel_i2c, because we also have i2c connectors for parallel RGB displays on the RT10xx EVKs. I'm open to other suggestions for this name though.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @danieldegrasse , will update. About the name nxp_touch_panel_mipi_dbi_i2c, my only question is, the i2c is not related to mipi_dbi, should we still include mipi_dbi in the name? thanks.

Copy link
Contributor

Choose a reason for hiding this comment

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

I guess my reasoning is that we already use parallel for something else in NXP's display shield names (parallel RGB), so I'm not sure what to name these identifiers. I suggested mipi_dbi_i2c because to me it represents the interface type this connector is designed around (MIPI DBI 8080/6800 mode) and the fact this is an I2C sideband touch controller line on that connector. We could also call this nxp_8080_i2c_touch_panel or something similar- I just want to avoid ambiguity between this and other display interfaces with a I2C connection included

Copy link
Contributor

Choose a reason for hiding this comment

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

We should not put this in a board overlay- instead, we should use a gpio nexus node, with a compatible appropriate for the connector we are describing (perhaps nxp_mipi_dbi_gpio?). For an example, see here: #72174

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @danieldegrasse , I guess I should add a yaml for LCD-PAR-S035 connecter (including both the 8080 pin and I2C pin), is my understanding right?
Another question is, this LCD-PAR-S035 connecter is not a standard connecter, the name nxp_mipi_dbi_gpio might be too generic, is there some suggestion for the naming? thanks.

Copy link
Contributor

Choose a reason for hiding this comment

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

The YAML only needs to define the GPIO pins not used directly by a peripheral- typically interrupt/reset pins are needed there. We do need a YAML for the LCD-PAR connector though. Not sure how best to name this- do we expect the LCD_PAR to be the only NXP display that uses this connector?

@zejiang0jason zejiang0jason force-pushed the feature/frdm_mcxn947_lvgl branch from 9dead17 to bda3b2d Compare July 9, 2024 14:11
@zephyrbot zephyrbot added platform: NXP Drivers NXP Semiconductors, drivers area: Devicetree Binding PR modifies or adds a Device Tree binding labels Jul 9, 2024
@zephyrbot zephyrbot requested review from galak and manuargue July 9, 2024 14:11
@zejiang0jason
Copy link
Contributor Author

hello @danieldegrasse , the code is updated following the comments, please help review, thanks.

@dleach02
Copy link
Member

dleach02 commented Jul 9, 2024

Please address the compliance issue

 - Currently this interface is used by panel LCD-PAR-S035

Signed-off-by: Jason Yu <[email protected]>
 - Add touch info in dts
 - Add LVGL configuration

Signed-off-by: Jason Yu <[email protected]>
 - Enable the touch panel of lcd_par_s035

Signed-off-by: Jason Yu <[email protected]>
@zejiang0jason zejiang0jason force-pushed the feature/frdm_mcxn947_lvgl branch from bda3b2d to a0b48f1 Compare July 10, 2024 01:33
@carlescufi carlescufi merged commit aa8c0f0 into zephyrproject-rtos:main Aug 9, 2024
@zejiang0jason zejiang0jason deleted the feature/frdm_mcxn947_lvgl branch September 12, 2024 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Devicetree Binding PR modifies or adds a Device Tree binding area: Shields Shields (add-on boards) platform: NXP Drivers NXP Semiconductors, drivers platform: NXP NXP

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants