mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
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: 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>
This commit is contained in:
committed by
Geert Uytterhoeven
parent
2ef9e3ef3b
commit
695863408b
@@ -7,6 +7,9 @@
|
||||
*/
|
||||
|
||||
/dts-v1/;
|
||||
|
||||
#include <dt-bindings/media/video-interfaces.h>
|
||||
|
||||
#include "r8a7742-iwg21d-q7.dts"
|
||||
|
||||
/ {
|
||||
@@ -242,7 +245,7 @@
|
||||
vin0ep: endpoint {
|
||||
remote-endpoint = <&cam0ep>;
|
||||
bus-width = <8>;
|
||||
bus-type = <6>;
|
||||
bus-type = <MEDIA_BUS_TYPE_BT656>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -273,7 +276,7 @@
|
||||
vin1ep: endpoint {
|
||||
remote-endpoint = <&cam1ep>;
|
||||
bus-width = <8>;
|
||||
bus-type = <6>;
|
||||
bus-type = <MEDIA_BUS_TYPE_BT656>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -305,7 +308,7 @@
|
||||
remote-endpoint = <&cam2ep>;
|
||||
bus-width = <8>;
|
||||
data-shift = <8>;
|
||||
bus-type = <6>;
|
||||
bus-type = <MEDIA_BUS_TYPE_BT656>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -335,7 +338,7 @@
|
||||
vin3ep: endpoint {
|
||||
remote-endpoint = <&cam3ep>;
|
||||
bus-width = <8>;
|
||||
bus-type = <6>;
|
||||
bus-type = <MEDIA_BUS_TYPE_BT656>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -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>;
|
||||
};
|
||||
|
||||
@@ -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>;
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user