Commit c4cfd47e authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Mauro Carvalho Chehab

media: dt-bindings: Use new video interface bus type macros in examples

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 binding examples.
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent f7eeb008
...@@ -104,6 +104,7 @@ additionalProperties: false ...@@ -104,6 +104,7 @@ additionalProperties: false
examples: examples:
- | - |
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/media/video-interfaces.h>
i2c2 { i2c2 {
#address-cells = <1>; #address-cells = <1>;
...@@ -124,7 +125,7 @@ examples: ...@@ -124,7 +125,7 @@ examples:
remote-endpoint = <&csi2a_ep>; remote-endpoint = <&csi2a_ep>;
link-frequencies = /bits/ 64 <199200000 210000000 link-frequencies = /bits/ 64 <199200000 210000000
499200000>; 499200000>;
bus-type = <4>; bus-type = <MEDIA_BUS_TYPE_CSI2_DPHY>;
}; };
}; };
}; };
......
...@@ -105,6 +105,7 @@ additionalProperties: false ...@@ -105,6 +105,7 @@ additionalProperties: false
examples: examples:
- | - |
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/media/video-interfaces.h>
i2c0 { i2c0 {
#address-cells = <1>; #address-cells = <1>;
...@@ -118,7 +119,7 @@ examples: ...@@ -118,7 +119,7 @@ examples:
port { port {
ov772x_0: endpoint { ov772x_0: endpoint {
bus-type = <5>; bus-type = <MEDIA_BUS_TYPE_PARALLEL>;
vsync-active = <0>; vsync-active = <0>;
hsync-active = <0>; hsync-active = <0>;
pclk-sample = <0>; pclk-sample = <0>;
......
...@@ -68,6 +68,7 @@ additionalProperties: false ...@@ -68,6 +68,7 @@ additionalProperties: false
examples: examples:
- | - |
#include <dt-bindings/clock/marvell,mmp2.h> #include <dt-bindings/clock/marvell,mmp2.h>
#include <dt-bindings/media/video-interfaces.h>
#include <dt-bindings/power/marvell,mmp2.h> #include <dt-bindings/power/marvell,mmp2.h>
camera@d420a000 { camera@d420a000 {
...@@ -83,7 +84,7 @@ examples: ...@@ -83,7 +84,7 @@ examples:
port { port {
camera0_0: endpoint { camera0_0: endpoint {
remote-endpoint = <&ov7670_0>; remote-endpoint = <&ov7670_0>;
bus-type = <5>; /* Parallel */ bus-type = <MEDIA_BUS_TYPE_PARALLEL>;
hsync-active = <1>; /* Active high */ hsync-active = <1>; /* Active high */
vsync-active = <1>; /* Active high */ vsync-active = <1>; /* Active high */
pclk-sample = <0>; /* Falling */ pclk-sample = <0>; /* Falling */
......
...@@ -106,6 +106,7 @@ examples: ...@@ -106,6 +106,7 @@ examples:
#include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/at91.h> #include <dt-bindings/clock/at91.h>
#include <dt-bindings/interrupt-controller/irq.h> #include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/media/video-interfaces.h>
xisc: xisc@e1408000 { xisc: xisc@e1408000 {
compatible = "microchip,sama7g5-isc"; compatible = "microchip,sama7g5-isc";
...@@ -118,7 +119,7 @@ examples: ...@@ -118,7 +119,7 @@ examples:
port { port {
xisc_in: endpoint { xisc_in: endpoint {
bus-type = <5>; /* Parallel */ bus-type = <MEDIA_BUS_TYPE_PARALLEL>;
remote-endpoint = <&csi2dc_out>; remote-endpoint = <&csi2dc_out>;
hsync-active = <1>; hsync-active = <1>;
vsync-active = <1>; vsync-active = <1>;
......
...@@ -90,7 +90,9 @@ examples: ...@@ -90,7 +90,9 @@ examples:
- | - |
#include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/stm32mp1-clks.h> #include <dt-bindings/clock/stm32mp1-clks.h>
#include <dt-bindings/media/video-interfaces.h>
#include <dt-bindings/reset/stm32mp1-resets.h> #include <dt-bindings/reset/stm32mp1-resets.h>
dcmi: dcmi@4c006000 { dcmi: dcmi@4c006000 {
compatible = "st,stm32-dcmi"; compatible = "st,stm32-dcmi";
reg = <0x4c006000 0x400>; reg = <0x4c006000 0x400>;
...@@ -104,7 +106,7 @@ examples: ...@@ -104,7 +106,7 @@ examples:
port { port {
dcmi_0: endpoint { dcmi_0: endpoint {
remote-endpoint = <&ov5640_0>; remote-endpoint = <&ov5640_0>;
bus-type = <5>; bus-type = <MEDIA_BUS_TYPE_PARALLEL>;
bus-width = <8>; bus-width = <8>;
hsync-active = <0>; hsync-active = <0>;
vsync-active = <0>; vsync-active = <0>;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment