Guochun Huang
8531dbdb73
misc: rk628: cancel delayed_work_audio in hdmirx suspend
...
Change-Id: I03593dba070f0167e3412e6e80ac7abe2a8e2240
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com >
2024-01-19 10:11:19 +08:00
Chaoyi Chen
f6920cb1ef
misc: rk628: add register debugfs node
...
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 >
2024-01-19 10:11:19 +08:00
Zhibin Huang
c1973e4a06
misc: rk628: dsi: optimize HS signal
...
Signed-off-by: Zhibin Huang <zhibin.huang@rock-chips.com >
Change-Id: I66b395fac4da5469ac88430d9063a1c9c2d90dec
2024-01-19 10:11:19 +08:00
Guochun Huang
1677e33dc9
misc: rk628: reduce power consumption optimization
...
Change-Id: Iacc7e206d5b05b2c0ae2bd33ecb70d991739db95
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com >
2024-01-19 10:11:19 +08:00
Sandy Huang
7b983b2ecf
misc: rk628: gvi: check gvi state when enable
...
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
2024-01-19 10:11:19 +08:00
Algea Cao
8676e40d7f
misc: rk628: post_process: Support csc matrix
...
Signed-off-by: Algea Cao <algea.cao@rock-chips.com >
Change-Id: Icaef18f17bf35c4aff99489a0479f520bbc89a9b
2024-01-19 10:11:19 +08:00
Zhibin Huang
aafe1548f1
misc: rk628: fix the problem of finding child nodes
...
Signed-off-by: Zhibin Huang <zhibin.huang@rock-chips.com >
Change-Id: Ic7f58324415b0db7bc3953d09fddb8b3bcc95e99
2024-01-19 10:11:19 +08:00
Algea Cao
278b6977e2
misc: rk628: post_process: Fix scaler timing calcalculation error
...
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
2024-01-19 10:11:19 +08:00
Algea Cao
066a4c46ac
misc: rk628: gvi: Fix GVI frequency division calculation error
...
Signed-off-by: Algea Cao <algea.cao@rock-chips.com >
Change-Id: I2bb0b29ab1cc34c1b7bb1accadf799fc2a0517de
2024-01-19 10:11:19 +08:00
Algea Cao
5e1e1727d0
misc: rk628: hdmirx: Fix rk628d combrxphy can't lock.
...
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
2024-01-19 10:11:19 +08:00
Shunhua Lan
5a3f5bc278
misc: rk628: enable rk628 hdmirx audio
...
Signed-off-by: Shunhua Lan <lsh@rock-chips.com >
Change-Id: Ifd5fc3d15399b8eeca616c4f64b34956727bcd06
2024-01-19 10:11:19 +08:00
Shunhua Lan
0e43d25527
misc: rk628: cru: fix postdiv calc
...
Signed-off-by: Shunhua Lan <lsh@rock-chips.com >
Change-Id: Ib9ee62f80c09428f33994b9cdf79972ee0e0927b
2024-01-19 10:11:19 +08:00
Chaoyi Chen
ab740d1249
misc: rk628: combtxphy: Modify to meet LVDS standard requirement
...
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 >
2024-01-19 10:11:19 +08:00
Shunhua Lan
457130662d
misc: rk628: add apll regmap_range
...
Signed-off-by: Shunhua Lan <lsh@rock-chips.com >
Change-Id: Ib5ef51265385d1e3f741d66a89b34255b013c23d
2024-01-19 10:11:19 +08:00
Shunhua Lan
cf0b23abaf
misc: rk628: cru: add sclk_hdmirx_aud api config
...
Signed-off-by: Shunhua Lan <lsh@rock-chips.com >
Change-Id: I7ec66204a4e2e4724b644f796ce7f4ee4f26b23e
2024-01-19 10:11:19 +08:00
Algea Cao
a7d429b725
misc: rk628: cru: Add rk628f APLL
...
Signed-off-by: Algea Cao <algea.cao@rock-chips.com >
Change-Id: Ib7237bfbd83012fa0d1d5290bc69e59beaf0f04c
2024-01-19 10:11:19 +08:00
Guochun Huang
a582b21754
misc: rk628: hdmitx: add color_bar debugfs node
...
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 >
2024-01-19 10:11:18 +08:00
Guochun Huang
2d89162015
misc: rk628: rgb rx: add debugfs node for parse resolution
...
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 >
2024-01-19 10:11:18 +08:00
Guochun Huang
9fe9c3f878
misc: rk628: gvi: add color_bar debugfs node
...
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 >
2024-01-19 10:11:18 +08:00
Guochun Huang
92f7012d3c
misc: rk628: post_process: add scaler color_bar debugfs node
...
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 >
2024-01-19 10:11:18 +08:00
Guochun Huang
f459a547f8
misc: rk628: dsi: add color bar debugfs node
...
enable dsi color bar
echo 1 > /sys/kernel/debug/rk628/2-0050/dsi_color_bar
disable dsi color bar
echo 0 > /sys/kernel/debug/rk628/2-0050/dsi_color_bar
Change-Id: Ib3eabeab685ab0f2ab9c5bcef8034117d7b513a7
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com >
2024-01-19 10:11:18 +08:00
Algea Cao
a5f5b21bec
misc: rk628: hdmirx: Support rk628f hdmirx
...
Signed-off-by: Algea Cao <algea.cao@rock-chips.com >
Change-Id: Ib397faca675031b104bba77b598504ad3d16aa5f
2024-01-19 10:11:18 +08:00
Zhibin Huang
435983a791
misc: rk628: dsi: cmd_size is limited to 2048 in command mode
...
Signed-off-by: Zhibin Huang <zhibin.huang@rock-chips.com >
Change-Id: I62a0808cb31860b4713079069b974c0fe4fd3b57
2024-01-19 10:11:18 +08:00
Zhibin Huang
e92dac8dbe
misc: rk628: dsi: added support for non-continuous clocks
...
Signed-off-by: Zhibin Huang <zhibin.huang@rock-chips.com >
Change-Id: Ib8ccb97375e56ab3ae98491797f5a7b93f47226f
2024-01-19 10:11:18 +08:00
Sandy Huang
86141e171e
misc: rk628: gvi: add color depth config
...
Signed-off-by: Sandy Huang <hjc@rock-chips.com >
Change-Id: I0faab0e23cb8b22cd5c31a4bf60a1571acae0818
2024-01-19 10:11:18 +08:00
Zhibin Huang
d9ae4cc5e6
misc: rk628: dsi: specify the rate per line of dsi
...
Signed-off-by: Zhibin Huang <zhibin.huang@rock-chips.com >
Change-Id: I475909661de3827b8e8ea6c7c36ee0c39726be53
2024-01-19 10:11:18 +08:00
Guochun Huang
b55b68026c
misc: rk628: bt1120 rx: configure bt1120 timing
...
Change-Id: Id0997a79c3c6132e2e6c5f456e733b982e72d177
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com >
2024-01-19 10:11:18 +08:00
Sandy Huang
9b99adc51a
misc: rk628: gvi: enable 8 pixel align for gvi compatibility
...
Signed-off-by: Sandy Huang <hjc@rock-chips.com >
Change-Id: I86422a7bfe5fc2165cd04003665c6b76af21338b
2024-01-19 10:11:18 +08:00
Sandy Huang
7199ce284d
misc: rk628: gvi: add timing offset for gvi two section mode
...
Signed-off-by: Sandy Huang <hjc@rock-chips.com >
Change-Id: I51c618cdb15fadb89bba3a04f233b37f254101c0
2024-01-19 10:11:18 +08:00
Weixin Zhou
efb812d4a7
misc: rk628: Add efuse driver
...
Signed-off-by: Weixin Zhou <zwx@rock-chips.com >
Change-Id: Icba495ce256d62a1e94dd4168b19d4d303160a23
2024-01-19 10:11:18 +08:00
Guochun Huang
8b6abe2beb
misc: rk628: check display route after get version info
...
Change-Id: I397c835c249223ca1f9e071bafa9377a2b0cfa71
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com >
2024-01-19 10:11:18 +08:00
Guochun Huang
c69c5cf7f1
misc: rk628: hdmitx: compatible with rk628f
...
Change-Id: I9db10ee75e1bf099d39c3926f7cd66c0bb4e3b84
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com >
2024-01-19 10:11:18 +08:00
Guochun Huang
9ee4c002c1
misc: rk628: dsi: select phy which share by dsi and csi as dsi phy
...
Change-Id: If44f15cd23d16bd017a4740dadbf4bdc12ea20a2
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com >
2024-01-19 10:11:18 +08:00
Guochun Huang
5723ff1f5e
misc: rk628: hdmitx: disable/enable display when system suspend/resume
...
Change-Id: I7cbd1bfeff186d3333473f3944ae1d15f78ae31d
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com >
2024-01-19 10:11:17 +08:00
Guochun Huang
673444991a
misc: rk628: display: compatible with rk628f
...
Change-Id: I51e0ea03baa92e5e7083779b7a59fbe81d104ec5
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com >
2024-01-19 10:11:17 +08:00
Algea Cao
c046c02467
misc: rk628: Supports different versions of the rk628
...
Signed-off-by: Algea Cao <algea.cao@rock-chips.com >
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com >
Change-Id: I7f5102a81648abbacfbd90caf3e186649e219d2b
2024-01-19 10:11:17 +08:00
Guochun Huang
bc81dfef6e
misc: rk628: enable/disable display by fb .notifier_call helper
...
Change-Id: I485d374d1441f6e04a9adc20f4d5fab77782059e
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com >
2024-01-19 10:11:17 +08:00
Guochun Huang
8856e9b434
misc: rk628: rgb/bt1120: optimize drivers details
...
Change-Id: I277649833b4394f7f8437b7453df441f3e067a45
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com >
2024-01-19 10:11:17 +08:00
Guochun Huang
97776a2a9f
misc: rk628: panel: make power on/off sequence delay can be configured
...
Change-Id: Iacfee7fc1c734a98727e34108bf6da8515f91499
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com >
2024-01-19 10:11:17 +08:00
Jianwei Fan
b21f534802
arm64: dts: rockchip: rk3588-evb7-rk628: add rk628 config for evb7
...
Change-Id: Ibf63df6826ee0a3affbb1e139c568de3d2708aef
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com >
2024-01-19 09:55:12 +08:00
Chen Shunqing
83e4ca2355
arm64: dts: rockchip: rk3588-evb1-lp4-v10-rk628-hdmi2csi: set i2c rate to 400k for rk628f
...
Change-Id: Ib1b7c6fc3ddc95180bbf0eaa73c280993ae2eebd
Signed-off-by: Chen Shunqing <csq@rock-chips.com >
2024-01-19 09:55:12 +08:00
Jianwei Fan
c278e3df44
arm64: dts: rockchip: rk3588-evb1: modify rk628 config adapt to rk628f
...
Change-Id: I052b6a08f441f876235b8f8fd2b202c698b562a5
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com >
2024-01-19 09:55:12 +08:00
Guochun Huang
abc2b514b2
arm64: dts: rockchip: rk3568-evb-rk628: add more hdmi in route
...
1. hdmi2dsi(1080x1920)
2. hdmi2dsi-dual(1440x2560)
3. hdmi2lvds(800x1280)
4. hdmi2lvds-dual(1920x1080)
Change-Id: Ie69541841a90c66806ba532c1b2254d3046e0369
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com >
2024-01-19 09:55:12 +08:00
Jianwei Fan
442fb91b48
arm64: dts: rockchip: add rk3568-evb-rk628-hdmi2bt1120 config
...
Change-Id: Iee766114453976b2bc71687ae884b977a228e3a8
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com >
2024-01-19 09:55:12 +08:00
Guochun Huang
4aa2482688
arm64: dts: rockchip: add support rk3568-evb-rk628-ddr4-v10 board
...
The PWM on the RK3568 with RK628 board has a hardware inverting
circuit to improve drive strength.
Therefore, software needs to change the PWM polarity to get
the desired PWM output.
Change-Id: I3a87d6aa16c4e09780a566117e4864d8d235038e
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com >
Signed-off-by: Algea Cao <algea.cao@rock-chips.com >
Signed-off-by: Shunhua Lan <lsh@rock-chips.com >
Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com >
2024-01-19 09:51:47 +08:00
Algea Cao
3710e830ff
drm/bridge: dw-hdmi-qp: Support hdmi force output
...
Support hdmi output specific resolution and color format
regardless of whether hdmi is connected.
Signed-off-by: Algea Cao <algea.cao@rock-chips.com >
Change-Id: I3f18aeb04427846e06b6a4397a4c6df77bbbcab2
2024-01-19 09:43:56 +08:00
Algea Cao
6ea5afc91a
dt-bindings: display: rockchip: dw_hdmi-rockchip: Add force output property
...
Signed-off-by: Algea Cao <algea.cao@rock-chips.com >
Change-Id: I3218c9f827712540fbb5daac59d660aaebc453b4
2024-01-19 09:43:56 +08:00
Algea Cao
9a139f8771
drm/bridge: synopsys: Support hdmi force output
...
Support hdmi output specific resolution and color format
regardless of whether hdmi is connected.
Signed-off-by: Algea Cao <algea.cao@rock-chips.com >
Change-Id: I228a74d128aa818166f589798897729473d97610
2024-01-19 09:43:56 +08:00
Guochun Huang
334c7192e6
drm/rockchip: drv: display logo when specify force output mode
...
resolve the following error when displaying the boot logo.
rockchip-drm display-subsystem: bound fe0a0000.hdmi (ops dw_hdmi_rockchip_ops)
rockchip-drm display-subsystem: connector[HDMI-A-1] can't found any match mode
[drm] HDMI-A-1 support modes:
[drm] "1280x720": 60 74250 1280 1390 1430 1650 720 725 730 750 0x8 0x5
[drm] "4096x2160": 60 556744 4096 4104 4136 4176 2160 2208 2216 2222 0x40 0x9
[drm] "4096x2160": 60 556188 4096 4104 4136 4176 2160 2208 2216 2222 0x40 0x9
[drm] "2560x1600": 60 348500 2560 2752 3032 3504 1600 1603 1609 1658 0x40 0x6
[drm] "2560x1600": 60 268500 2560 2608 2640 2720 1600 1603 1609 1646 0x40 0x9
[drm] "1920x1440": 60 234000 1920 2048 2256 2600 1440 1441 1444 1500 0x40 0x6
[drm] "1856x1392": 60 218250 1856 1952 2176 2528 1392 1393 1396 1439 0x40 0x6
...
[drm] "640x480": 60 25175 640 656 752 800 480 490 492 525 0x40 0xa
[drm] uboot set mode: h/v display[1080,1920] h/v sync_end[1180,1940] vfresh[57], flags[0x5], aspect_ratio[0]
rockchip-vop2 fe040000.vop: [drm:vop2_crtc_atomic_disable] Crtc atomic disable vp0
rockchip-drm display-subsystem: can't not find any logo display
Change-Id: Ia32189311d87f5d5ab5f7fdc5c14d5e2ddf24d8d
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com >
2024-01-19 09:43:56 +08:00
Cai Wenzhong
1eef5bddea
arm64: dts: rockchip: rk3588-vehicle-maxim-cameras-s66.dtsi: camera module and lens name using default
...
Signed-off-by: Cai Wenzhong <cwz@rock-chips.com >
Change-Id: If0d997d4f37fb0c39da7179073527dc3a363d73e
2024-01-18 15:48:17 +08:00