spi: stm32: disable spi-slave property for stm32f4-f7
authorAlain Volmat <alain.volmat@foss.st.com>
Thu, 15 Jun 2023 07:58:14 +0000 (09:58 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 15 Jun 2023 11:09:33 +0000 (12:09 +0100)
STM32F4 and STM32F7 can't switch to spi device mode.
Forbid this property with compatible "st,stm32f4-spi".

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
Signed-off-by: Valentin Caron <valentin.caron@foss.st.com>
Link: https://lore.kernel.org/r/20230615075815.310261-4-valentin.caron@foss.st.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/devicetree/bindings/spi/st,stm32-spi.yaml

index 9ca1a84..f1c86e6 100644 (file)
@@ -27,6 +27,7 @@ allOf:
     then:
       properties:
         st,spi-midi-ns: false
+        spi-slave: false
 
 properties:
   compatible: