Hi guys,
I am working on DM-388 using IPNC_RDK_3.80.00
Actually I and my team have configured the Vout1 port for the camera sensor output.We have done all the related configurations and VENC settings.We are getting proper vout_clock,hsync and vsync.
The problem is that we are not getting data on GREEN lines but on RED and BLUE lines we are getting proper data.
Then I have checked the pin-mux settings and found that in kernel the GREEN lines are getting configured into gpio mode though we have done the correct pin-mux in devices.c file.In our reference board these lines are used as gpio but in our target board we are using these lines as camera out lines.
We have done all the pin-mux in arch/arm/mach-omap2/devices.c file.Please take a look at this
if (cpu_is_ti814x()) {
omap_mux_init_signal("vout1_clk", OMAP_MUX_MODE0 | TI814X_PULL_DIS);
omap_mux_init_signal("vout1_hsync", OMAP_MUX_MODE0 | TI814X_PULL_DIS);
omap_mux_init_signal("vout1_vsync", OMAP_MUX_MODE0 | TI814X_PULL_DIS);
omap_mux_init_signal("vout1_avid", OMAP_MUX_MODE0 | TI814X_PULL_DIS);
omap_mux_init_signal("vout1_fid", OMAP_MUX_MODE0 | TI814X_PULL_DIS);
omap_mux_init_signal("vout1_b_cb_c2", OMAP_MUX_MODE2 | TI814X_PULL_DIS);
omap_mux_init_signal("vout1_b_cb_c3", OMAP_MUX_MODE2 | TI814X_PULL_DIS);
omap_mux_init_signal("vout1_b_cb_c4", OMAP_MUX_MODE0 | TI814X_PULL_DIS);
omap_mux_init_signal("vout1_b_cb_c5", OMAP_MUX_MODE0 | TI814X_PULL_DIS);
omap_mux_init_signal("vout1_b_cb_c6", OMAP_MUX_MODE0 | TI814X_PULL_DIS);
omap_mux_init_signal("vout1_b_cb_c7", OMAP_MUX_MODE0 | TI814X_PULL_DIS);
omap_mux_init_signal("vout1_b_cb_c8", OMAP_MUX_MODE0 | TI814X_PULL_DIS);
omap_mux_init_signal("vout1_b_cb_c9", OMAP_MUX_MODE0 | TI814X_PULL_DIS);
omap_mux_init_signal("vout1_g_y_yc2", OMAP_MUX_MODE2 | TI814X_PULL_DIS);
omap_mux_init_signal("vout1_g_y_yc3", OMAP_MUX_MODE2 | TI814X_PULL_DIS);
omap_mux_init_signal("vout1_g_y_yc4", OMAP_MUX_MODE0 | TI814X_PULL_DIS);
omap_mux_init_signal("vout1_g_y_yc5", OMAP_MUX_MODE0 | TI814X_PULL_DIS);
omap_mux_init_signal("vout1_g_y_yc6", OMAP_MUX_MODE0 | TI814X_PULL_DIS);
omap_mux_init_signal("vout1_g_y_yc7", OMAP_MUX_MODE0 | TI814X_PULL_DIS);
omap_mux_init_signal("vout1_g_y_yc8", OMAP_MUX_MODE0 | TI814X_PULL_DIS);
omap_mux_init_signal("vout1_g_y_yc9", OMAP_MUX_MODE0 | TI814X_PULL_DIS);
omap_mux_init_signal("vout1_r_cr2", OMAP_MUX_MODE2 | TI814X_PULL_DIS);
omap_mux_init_signal("vout1_r_cr3", OMAP_MUX_MODE2 | TI814X_PULL_DIS);
omap_mux_init_signal("vout1_r_cr4", OMAP_MUX_MODE0 | TI814X_PULL_DIS);
omap_mux_init_signal("vout1_r_cr5", OMAP_MUX_MODE0 | TI814X_PULL_DIS);
omap_mux_init_signal("vout1_r_cr6", OMAP_MUX_MODE0 | TI814X_PULL_DIS);
omap_mux_init_signal("vout1_r_cr7", OMAP_MUX_MODE0 | TI814X_PULL_DIS);
omap_mux_init_signal("vout1_r_cr8", OMAP_MUX_MODE0 | TI814X_PULL_DIS);
}
Instead of doing this pin-mux in kernel, when we are reading the mode register of GREEN lines it is always showing gpio mode.All the pin-mux is done in this file only.We are even unable to write the mode registers manually in kernel.
We seached a lot to find from where these pins are getting configured into gpio mode but we are unable to find it.We tried devmem2 utility to write on mode registers but it is also not working.
So can you please tell us what are the expected places to find where these pins are getting configured into gpio mode or tell us some alternate ways to write the mode registers ?
Waiting for your reply
Regards,
Hardik