Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: display: st: add two new compatibles to LTDC device

The new STMicroelectronics SoC features a display controller similar to
the one used in previous SoCs. Because there is additional registers,
and different mandatory clocks it is incompatible with existing IPs. On
STM32MP251, the device only needs two clocks while on STM32MP255 it
needs four.

Add the new names to the list of compatible string and handle each
quirks accordingly.

Acked-by: Philippe Cornu <philippe.cornu@foss.st.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20250822-drm-misc-next-v5-1-9c825e28f733@foss.st.com
Signed-off-by: Raphael Gallais-Pou <raphael.gallais-pou@foss.st.com>

+50 -2
+50 -2
Documentation/devicetree/bindings/display/st,stm32-ltdc.yaml
··· 12 12 13 13 properties: 14 14 compatible: 15 - const: st,stm32-ltdc 15 + enum: 16 + - st,stm32-ltdc 17 + - st,stm32mp251-ltdc 18 + - st,stm32mp255-ltdc 16 19 17 20 reg: 18 21 maxItems: 1 ··· 27 24 minItems: 1 28 25 29 26 clocks: 30 - maxItems: 1 27 + minItems: 1 28 + maxItems: 4 31 29 32 30 clock-names: 33 31 items: 34 32 - const: lcd 33 + - const: bus 34 + - const: ref 35 + - const: lvds 36 + minItems: 1 35 37 36 38 resets: 37 39 maxItems: 1 ··· 58 50 - clock-names 59 51 - resets 60 52 - port 53 + 54 + allOf: 55 + - if: 56 + properties: 57 + compatible: 58 + contains: 59 + enum: 60 + - st,stm32-ltdc 61 + then: 62 + properties: 63 + clocks: 64 + maxItems: 1 65 + clock-names: 66 + maxItems: 1 67 + - if: 68 + properties: 69 + compatible: 70 + contains: 71 + enum: 72 + - st,stm32mp251-ltdc 73 + then: 74 + properties: 75 + clocks: 76 + minItems: 2 77 + maxItems: 2 78 + clock-names: 79 + minItems: 2 80 + maxItems: 2 81 + - if: 82 + properties: 83 + compatible: 84 + contains: 85 + enum: 86 + - st,stm32mp255-ltdc 87 + then: 88 + properties: 89 + clocks: 90 + minItems: 4 91 + clock-names: 92 + minItems: 4 61 93 62 94 additionalProperties: false 63 95