]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ARM: dts: lager: Add entries for VIN HDMI input support
authorWilliam Towle <william.towle@codethink.co.uk>
Tue, 18 Oct 2016 15:01:33 +0000 (17:01 +0200)
committerSimon Horman <horms+renesas@verge.net.au>
Fri, 4 Nov 2016 09:36:27 +0000 (10:36 +0100)
Add DT entries for vin0, vin0_pins, and adv7612.

Sets the 'default-input' property for ADV7612, enabling image and video
capture without the need to have userspace specifying routing.

Signed-off-by: William Towle <william.towle@codethink.co.uk>
Signed-off-by: Rob Taylor <rob.taylor@codethink.co.uk>
[uli: added interrupt, renamed endpoint, merged default-input]
Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/boot/dts/r8a7790-lager.dts

index 52b56fcaddf2a06d06c81ad15d0f292bddce1e52..434268262d88267c54596ceaef4a4a2ef50a3cac 100644 (file)
                };
        };
 
+       hdmi-in {
+               compatible = "hdmi-connector";
+               type = "a";
+
+               port {
+                       hdmi_con_in: endpoint {
+                               remote-endpoint = <&adv7612_in>;
+                       };
+               };
+       };
+
        hdmi-out {
                compatible = "hdmi-connector";
                type = "a";
 
                port {
-                       hdmi_con: endpoint {
+                       hdmi_con_out: endpoint {
                                remote-endpoint = <&adv7511_out>;
                        };
                };
                function = "usb2";
        };
 
+       vin0_pins: vin0 {
+               groups = "vin0_data24", "vin0_sync", "vin0_clkenb", "vin0_clk";
+               function = "vin0";
+       };
+
        vin1_pins: vin1 {
                groups = "vin1_data8", "vin1_clk";
                function = "vin1";
                        port@1 {
                                reg = <1>;
                                adv7511_out: endpoint {
-                                       remote-endpoint = <&hdmi_con>;
+                                       remote-endpoint = <&hdmi_con_out>;
+                               };
+                       };
+               };
+       };
+
+       hdmi-in@4c {
+               compatible = "adi,adv7612";
+               reg = <0x4c>;
+               interrupt-parent = <&gpio1>;
+               interrupts = <20 IRQ_TYPE_LEVEL_LOW>;
+               default-input = <0>;
+
+               ports {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
+                       port@0 {
+                               reg = <0>;
+                               adv7612_in: endpoint {
+                                       remote-endpoint = <&hdmi_con_in>;
+                               };
+                       };
+
+                       port@2 {
+                               reg = <2>;
+                               adv7612_out: endpoint {
+                                       remote-endpoint = <&vin0ep2>;
                                };
                        };
                };
        status = "okay";
 };
 
+/* HDMI video input */
+&vin0 {
+       pinctrl-0 = <&vin0_pins>;
+       pinctrl-names = "default";
+
+       status = "okay";
+
+       port {
+               vin0ep2: endpoint {
+                       remote-endpoint = <&adv7612_out>;
+                       bus-width = <24>;
+                       hsync-active = <0>;
+                       vsync-active = <0>;
+                       pclk-sample = <1>;
+                       data-active = <1>;
+               };
+       };
+};
+
 /* composite video input */
 &vin1 {
        pinctrl-0 = <&vin1_pins>;