Commit 69586340 authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Geert Uytterhoeven
Browse files

ARM: dts: renesas: Use new media bus type macros



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: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: default avatarLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20220615221410.27459-6-laurent.pinchart@ideasonboard.com


Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
parent 2ef9e3ef
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -7,6 +7,9 @@
 */

/dts-v1/;

#include <dt-bindings/media/video-interfaces.h>

#include "r8a7742-iwg21d-q7.dts"

/ {
@@ -242,7 +245,7 @@ port {
		vin0ep: endpoint {
			remote-endpoint = <&cam0ep>;
			bus-width = <8>;
			bus-type = <6>;
			bus-type = <MEDIA_BUS_TYPE_BT656>;
		};
	};
};
@@ -273,7 +276,7 @@ port {
		vin1ep: endpoint {
			remote-endpoint = <&cam1ep>;
			bus-width = <8>;
			bus-type = <6>;
			bus-type = <MEDIA_BUS_TYPE_BT656>;
		};
	};
};
@@ -305,7 +308,7 @@ vin2ep: endpoint {
			remote-endpoint = <&cam2ep>;
			bus-width = <8>;
			data-shift = <8>;
			bus-type = <6>;
			bus-type = <MEDIA_BUS_TYPE_BT656>;
		};
	};
};
@@ -335,7 +338,7 @@ port {
		vin3ep: endpoint {
			remote-endpoint = <&cam3ep>;
			bus-width = <8>;
			bus-type = <6>;
			bus-type = <MEDIA_BUS_TYPE_BT656>;
		};
	};
};
+3 −1
Original line number Diff line number Diff line
@@ -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 @@ port {
			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>;
			};
+3 −1
Original line number Diff line number Diff line
@@ -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 @@ ov7725@21 {
		port {
			CAM_EP: endpoint {
				bus-width = <8>;
				bus-type = <6>;
				bus-type = <MEDIA_BUS_TYPE_BT656>;
				remote-endpoint = <&VIN_EP>;
			};
		};