Skip to content

mspi_nor wrongly uses (non existent) compatibles instead of dts properties to apply properties #93135

Open
@nordicjm

Description

@nordicjm

Describe the bug

mspi_nor is at odds with how other things work in zephyr e.g. spi_nor which uses dts properties to apply properties to drivers e.g. https://github.com/zephyrproject-rtos/zephyr/blob/main/dts/bindings/mtd/jedec%2Cspi-nor-common.yaml#L93 vs https://github.com/zephyrproject-rtos/zephyr/blob/main/drivers/flash/flash_mspi_nor_quirks.h#L16 it needs to be fixed to use dts properties not device compatibles that is wholly unextensive and wrong since the compatibles do not even exist. As an example, if the list gets to e.g. 30 quirks, how would someone apply a quirk for a new device they are using out of tree which needs one "quirk" from one device and one from another? Impossible, thus system is unfit for purpose.

Regression

  • This is a regression.

Steps to reproduce

No response

Relevant log output

Impact

Major – Severely degrades functionality; workaround is difficult or unavailable.

Environment

No response

Additional Context

No response

Metadata

Metadata

Assignees

Labels

area: MSPIbugThe issue is a bug, or the PR is fixing a bugpriority: lowLow impact/importance bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions