OSDN Git Service

ARM: dts: renesas: Use new media bus type macros
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Wed, 15 Jun 2022 22:14:09 +0000 (01:14 +0300)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 23 Jan 2023 08:40:58 +0000 (09:40 +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>
Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20220615221410.27459-6-laurent.pinchart@ideasonboard.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
arch/arm/boot/dts/r8a7742-iwg21d-q7-dbcm-ca.dts
arch/arm/boot/dts/r8a7742-iwg21d-q7-dbcm-ov5640-single.dtsi
arch/arm/boot/dts/r8a7742-iwg21d-q7-dbcm-ov7725-single.dtsi

index 4e58c54..33ac4bd 100644 (file)
@@ -7,6 +7,9 @@
  */
 
 /dts-v1/;
+
+#include <dt-bindings/media/video-interfaces.h>
+
 #include "r8a7742-iwg21d-q7.dts"
 
 / {
                vin0ep: endpoint {
                        remote-endpoint = <&cam0ep>;
                        bus-width = <8>;
-                       bus-type = <6>;
+                       bus-type = <MEDIA_BUS_TYPE_BT656>;
                };
        };
 };
                vin1ep: endpoint {
                        remote-endpoint = <&cam1ep>;
                        bus-width = <8>;
-                       bus-type = <6>;
+                       bus-type = <MEDIA_BUS_TYPE_BT656>;
                };
        };
 };
                        remote-endpoint = <&cam2ep>;
                        bus-width = <8>;
                        data-shift = <8>;
-                       bus-type = <6>;
+                       bus-type = <MEDIA_BUS_TYPE_BT656>;
                };
        };
 };
                vin3ep: endpoint {
                        remote-endpoint = <&cam3ep>;
                        bus-width = <8>;
-                       bus-type = <6>;
+                       bus-type = <MEDIA_BUS_TYPE_BT656>;
                };
        };
 };
index 40cef0b..c73160d 100644 (file)
@@ -7,6 +7,8 @@
  * Copyright (C) 2020 Renesas Electronics Corp.
  */
 
+#include <dt-bindings/media/video-interfaces.h>
+
 #define CAM_ENABLED    1
 
 &CAM_PARENT_I2C {
@@ -26,7 +28,7 @@
                        CAM_EP: endpoint {
                                bus-width = <8>;
                                data-shift = <2>;
-                               bus-type = <6>;
+                               bus-type = <MEDIA_BUS_TYPE_BT656>;
                                pclk-sample = <1>;
                                remote-endpoint = <&VIN_EP>;
                        };
index f5e77f0..a7f5cfe 100644 (file)
@@ -7,6 +7,8 @@
  * Copyright (C) 2020 Renesas Electronics Corp.
  */
 
+#include <dt-bindings/media/video-interfaces.h>
+
 #define CAM_ENABLED    1
 
 &CAM_PARENT_I2C {
@@ -21,7 +23,7 @@
                port {
                        CAM_EP: endpoint {
                                bus-width = <8>;
-                               bus-type = <6>;
+                               bus-type = <MEDIA_BUS_TYPE_BT656>;
                                remote-endpoint = <&VIN_EP>;
                        };
                };