]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/kernel-video.git/commitdiff
arm: dts: dra7-evm/dra72-evm: added vin/gpio support for TVP5158
authorRakesh Movva <r-movva@ti.com>
Fri, 7 Aug 2015 06:22:03 +0000 (01:22 -0500)
committerPraneeth Bajjuri <praneeth@ti.com>
Mon, 10 Aug 2015 19:29:41 +0000 (14:29 -0500)
added vin instances and gpio support for dra7-evm and dra72-evm
device tree files. also added a new pcf8575(on jamr3 board) device
node under i2c4 which is needed to control the tvp5158 chip.

Change-Id: I2f4d731c024697d00edf6cb508b79550a5c97888
Signed-off-by: Rakesh Movva <r-movva@ti.com>
arch/arm/boot/dts/dra7-evm.dts
arch/arm/boot/dts/dra72-evm.dts
arch/arm/boot/dts/dra7xx-jamr3.dtsi

index f5dfbae615fafcb38ff3c7c3d1e80f4dda2995ae..54c116c519166e4f97824c14bffc5edc383d8b6e 100644 (file)
@@ -1082,7 +1082,7 @@ i2c_p3_exp: &i2c2 {
        status = "okay";
 };
 
-&vin1a {
+video_in: &vin1a {
        endpoint@0 {
                slave-mode;
                remote-endpoint = <&onboardLI>;
@@ -1090,3 +1090,8 @@ i2c_p3_exp: &i2c2 {
 };
 
 #include "dra7xx-jamr3.dtsi"
+
+&tvp_5158{
+       mux-gpios = <&pcf_hdmi 3 GPIO_ACTIVE_HIGH>,     /*CAM_FPD_MUX_S0*/
+                       <&pcf_jamr3_21 8 GPIO_ACTIVE_LOW>;      /*SEL_TVP_FPD*/
+};
index 8805d8cd913b18e08cb95e3d607dced8cf8225ef..0572ccf9acefc70fa83cca6a284b3deec221d88e 100644 (file)
@@ -1198,7 +1198,7 @@ i2c_p3_exp: &i2c5 {
        status = "okay";
 };
 
-&vin2a {
+video_in: &vin2a {
        endpoint@0 {
                slave-mode;
                remote-endpoint = <&onboardLI>;
@@ -1214,3 +1214,9 @@ i2c_p3_exp: &i2c5 {
         pinctrl-names = "default";
         pinctrl-0 = <&radio_pins>;
 };
+
+&tvp_5158{
+       mux-gpios = <&pcf_hdmi 2 GPIO_ACTIVE_LOW>,      /*VIN2_S0*/
+                       <&pcf_jamr3_21 8 GPIO_ACTIVE_LOW>,      /*SEL_TVP_FPD*/
+                       <&pcf_hdmi 6 GPIO_ACTIVE_HIGH>; /*VIN2_S2*/
+};
index b147be067b9db6f726995e543f7378d80d49b229..b8d742a31bb63fa7e3fd3d97349977dabcc039e5 100644 (file)
 &i2c4 {
        status = "okay";
        clock-frequency = <400000>;
+
+       pcf_jamr3_21: pcf8575@21 {
+               compatible = "nxp,pcf8575";
+               reg = <0x21>;
+               gpio-controller;
+               #gpio-cells = <2>;
+       };
 };
 
 &mcasp2 {
                DVDD-supply = <&aic_dvdd>;
        };
 
-       tvp5158@58 {
+       tvp_5158: tvp5158@58 {
                compatible= "ti,tvp5158";
                reg = <0x58>;
 
-               gpios = <&pcf_hdmi 3 0>,
-                               <&pcf_gpio_21 8 0>;
                port {
                        tvp_decoder: endpoint@0 {
                                /* No properties for BT656 */
        };
 };
 
-&vin1a {
+&video_in {
        endpoint {
                slave-mode;
                remote-endpoint = <&tvp_decoder>;