OSDN Git Service

ARM: dts: imx6dl-prtvt7: Add missing tvp5150 video decoder node
authorRobin van der Gracht <robin@protonic.nl>
Fri, 11 Feb 2022 13:30:32 +0000 (14:30 +0100)
committerShawn Guo <shawnguo@kernel.org>
Sun, 13 Feb 2022 05:18:55 +0000 (13:18 +0800)
Add missing tvp5150 video decoder node to make composite video input
work.

Signed-off-by: Robin van der Gracht <robin@protonic.nl>
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6dl-prtvt7.dts

index be7c4cb..baaa6ff 100644 (file)
@@ -6,6 +6,7 @@
 /dts-v1/;
 #include "imx6dl.dtsi"
 #include "imx6qdl-prti6q.dtsi"
+#include <dt-bindings/display/sdtv-standards.h>
 #include <dt-bindings/input/input.h>
 #include <dt-bindings/leds/common.h>
 #include <dt-bindings/sound/fsl-imx-audmux.h>
                };
        };
 
+       connector {
+               compatible = "composite-video-connector";
+               label = "Composite0";
+               sdtv-standards = <SDTV_STD_PAL_B>;
+
+               port {
+                       comp0_out: endpoint {
+                               remote-endpoint = <&tvp5150_comp0_in>;
+                       };
+               };
+       };
+
        reg_bl_12v0: regulator-bl-12v0 {
                compatible = "regulator-fixed";
                pinctrl-names = "default";
                VDDIO-supply = <&reg_3v3>;
                VDDD-supply = <&reg_1v8>;
        };
+
+       video@5c {
+               compatible = "ti,tvp5150";
+               reg = <0x5c>;
+
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               port@0 {
+                       reg = <0>;
+
+                       tvp5150_comp0_in: endpoint {
+                               remote-endpoint = <&comp0_out>;
+                       };
+               };
+
+               /* Output port 2 is video output pad */
+               port@2 {
+                       reg = <2>;
+
+                       tvp5151_to_ipu1_csi0_mux: endpoint {
+                               remote-endpoint = <&ipu1_csi0_mux_from_parallel_sensor>;
+                       };
+               };
+       };
 };
 
 &i2c3 {
        remote-endpoint = <&display_in>;
 };
 
+&ipu1_csi0_mux_from_parallel_sensor {
+       remote-endpoint = <&tvp5151_to_ipu1_csi0_mux>;
+};
+
 &pwm1 {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_pwm1>;