ARM: dts: stm32: Use new media bus type macros
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Wed, 15 Jun 2022 22:14:10 +0000 (01:14 +0300)
committerAlexandre Torgue <alexandre.torgue@foss.st.com>
Tue, 17 Jan 2023 13:52:51 +0000 (14:52 +0100)
Now that a header exists with macros for the media interface bus-type
values, replace hardcoding numerical constants with the corresponding
macros in the DT sources.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>
arch/arm/boot/dts/stm32429i-eval.dts
arch/arm/boot/dts/stm32mp157c-ev1.dts

index 3de0e9d..576235e 100644 (file)
@@ -50,6 +50,7 @@
 #include "stm32f429-pinctrl.dtsi"
 #include <dt-bindings/input/input.h>
 #include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/media/video-interfaces.h>
 
 / {
        model = "STMicroelectronics STM32429i-EVAL board";
        port {
                dcmi_0: endpoint {
                        remote-endpoint = <&ov2640_0>;
-                       bus-type = <5>;
+                       bus-type = <MEDIA_BUS_TYPE_PARALLEL>;
                        bus-width = <8>;
                        hsync-active = <0>;
                        vsync-active = <0>;
index a665189..542226c 100644 (file)
@@ -8,6 +8,7 @@
 #include "stm32mp157c-ed1.dts"
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/media/video-interfaces.h>
 
 / {
        model = "STMicroelectronics STM32MP157C eval daughter on eval mother";
@@ -90,7 +91,7 @@
        port {
                dcmi_0: endpoint {
                        remote-endpoint = <&ov5640_0>;
-                       bus-type = <5>;
+                       bus-type = <MEDIA_BUS_TYPE_PARALLEL>;
                        bus-width = <8>;
                        hsync-active = <0>;
                        vsync-active = <0>;