1.enable the rk628 misc driver use on rk3568-evb-rk628
2.disable the rk628 drm driver
Change-Id: I0fbeb1e56915cf25a0db460c76378a5ccf628518
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
1. change the "bt1120_dual_edge" property from macro definition to
parsing in dts
2. "bt1120_dual_edge" and "vccio_rgb" are unique to rk628 rgb, so put
them in the rk628_rgb structure.
3. dts property related to rk628 rgb are parsed in rk628_rgb_parse
function, including those related to rgb in/out and bt1120 in/out.
Type: Fix
Redmine ID: N/A
Associated modifications: N/A
Test: N/A
Signed-off-by: Zhibin Huang <zhibin.huang@rock-chips.com>
Change-Id: I1bd7edb9dd28a13cd298142e067e851ef98f83c5
rk628->fb_nb.notifier_call helper will be called multi times in
Multi-display suspend/resume scenario, process fb_event with
FB_BLANK_UNBLANK/FB_BLANK_POWERDOWN only once.
Type: Fix
Redmine ID: #462145
Associated modifications: gerrit links
Test: pass
Change-Id: Id323a392b28892c8440c813571a7808bb6e860ed
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
In previous versions, the bus-format of lvds could be set with prop
"vesa_24", "jeida_24", etc.
In order to maintain consistency with the panel node, this patch adds
support to for set bus-format via the `MEDIA_FORMAT` number macro.
rk628-lvds {
/* Equivalent to
bus-format = "vesa_24";
*/
bus-format = <MEDIA_BUS_FMT_RGB888_1X7X4_SPWG>;
};
Change-Id: I3a8e51c58cfb52ff6b03917d9b33e96fa419bea1
Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com>
This can avoid display splash screen before gvi locked.
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Id32d637cd4af8c33f9629abd7c788db6b7e13df9
This patch adds support for register debugfs nodes to allow access to
the registers without modifying the regmap subsystem configuration.
An example output is as follows:
$ ls /d/rk628/2-0050/registers
adapter combtxphy csi dsi1 gpio0 gpio2 grf hdmi
combrxphy cru dsi0 efuse gpio1 gpio3 gvi hdmirx
dump register:
$ cat cru
write to register:
$ echo addr val > cru
Additionally, incorrect GVI regmap_range was fixed.
Because `GVI_COLOR_BAR_VTIMING1` is already defined as `GVI_BASE + 0x7C`
Change-Id: I3f19d02b5119958fe2dafd04dff5efcc4d28d6d0
Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com>
Try to disable and enable GVI and TX phy when GVI lock failed.
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I190ed60884850946091185c89e54a7bb551eb03d
Assume that Fout is the output pixel clock frequency
and Fin is the input pixel clock frequency:
dsp_in_vtotal * dsp_in_htotal * (1 / Fin) = dsp_out_vtotal * dsp_out_htotal * (1 / Fout)
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: I77055cdf47f49de5ae7b5eb94b257e07171dd347
1.If phy lock failed, rk628d combrxphy may retry multiple times.
2.YUV420 hdmirx frequency needs to be divided by 2.
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: I10dfaa8530f97fe564ce45a96d81e5702b211bd8
This patch Modify TX common output voltage to
meet LVDS standard requirements.
Change-Id: I78275ad02b556c80d23dc20b915603a3e2295289
Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com>
Enable normal color bar
echo 1 > /sys/kernel/debug/rk628/2-0050/hdmitx_color_ba
Enable special color bar
echo 2 > /sys/kernel/debug/rk628/2-0050/hdmitx_color_bar
Enable black color bar
echo 3 > /sys/kernel/debug/rk628/2-0050/hdmitx_color_bar
Disable color bar
echo 0 > /sys/kernel/debug/rk628/2-0050/hdmitx_color_bar
Change-Id: Ie2a17a43bc2bb112d8a9653e87a86cb2c80bb67a
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
RGB/BT1120 RX parse resolution information
can be show by the command follow:
cat /sys/kernel/debug/rk628/2-0050/rgb_resolution
1920x1080 pclk:148500000
Change-Id: Ie411db65e09c539fe733ae431c32e5ee402636a7
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
Enable color bar
echo 1 > /sys/kernel/debug/rk628/2-0050/gvi_color_bar
Disable color bar
echo 0 > /sys/kernel/debug/rk628/2-0050/gvi_color_bar
Change-Id: Ieb12d4160a90f27f505aa9c537b9005e35aa7c41
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
Enable horizontal color bar
echo 1 > /sys/kernel/debug/rk628/2-0050/scaler_color_bar
Enable vertical color bar
echo 2 > /sys/kernel/debug/rk628/2-0050/scaler_color_bar
Disable color bar
echo 0 > /sys/kernel/debug/rk628/2-0050/scaler_color_bar
Change-Id: Ic47d7edf27f174b16ea1c2841cbf7b9df8c63546
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>