Commit Graph

1080556 Commits

Author SHA1 Message Date
Wangqiang Guo
ca9f8fb207 media: rockchip: hdmirx: enhance compatibility and stability.
1.Add the judgment of signal loss when use g_dv_timing.
2.Wait for the signal to stabilize before get resolution.

Change-Id: I4cef1bd8a67f38dd531d24ccbb23d960bb82abae
Signed-off-by: Wangqiang Guo <kay.guo@rock-chips.com>
2023-09-14 12:20:33 +00:00
Chaoyi Chen
9a72b81321 arm64: dts: rockchip: add rk3567 evb2 dual lvds devicetree
Add support for dual lvds with hdmi output

Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com>
Change-Id: I6e3c07be15886ebf1daf9b22b72659c21a21f0dd
2023-09-14 19:16:20 +08:00
Chaoyi Chen
b521fcc24c arm64: dts: rockchip: add rk3567 evb2 dual channel lvds devicetree
Add support for dual channel lvds with hdmi output

Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com>
Change-Id: I782edeaf7ad9bb057d3911453d039fbacc14ee13
2023-09-14 19:16:20 +08:00
Chaoyi Chen
e2fee1b431 arm64: dts: rockchip: add dual lvds support for rk3567/rk3568
Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com>
Change-Id: Iec5a26477bcc482969e25908c5667a5ee80a37dc
2023-09-14 19:16:20 +08:00
Chaoyi Chen
e86a496684 drm/rockchip: lvds: add dual lvds left right mode support
The lvds two channel can work independent, each lvds channel can
connector a single channel lvds panel, so add left and right pixels mode
support.

Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com>
Change-Id: I7fde54880d97269123688a3246a6db7005ddf254
2023-09-14 19:13:00 +08:00
Chaoyi Chen
ce438ac73d drm/rockchip: lvds: add support lvds1 for rk3567
Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com>
Change-Id: I788e9d755d95d986fda1c8ddbb8914912a5404a7
2023-09-14 19:12:46 +08:00
Chaoyi Chen
09f9141073 drm/rockchip: vop2: update for dual lvds
Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com>
Change-Id: Icec9c9c4fac5c014561dc26be72e62bb88a2f249
2023-09-14 19:12:28 +08:00
Sandy Huang
2e409456c1 drm/rockchip: add dynamic debug for vop
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I50858d1c6d1e344ab2e7fbc85e5474a130f6fc6f
2023-09-14 19:08:58 +08:00
Zefa Chen
adf004e7c8 media: rockchip: vicap fixes issue of hdr raw capture
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Icdd4cf79ea8c239df3d3e45b1572a4d59f4f7950
2023-09-14 19:03:23 +08:00
Lin Jinhan
46a5b521e8 media: i2c: sc1346: fix fps error
vts_def should be 0x02ee instead of 0x0708.

Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
Change-Id: Ie9d7af19d3e24b03f46e8dae3828ab7ae585c208
2023-09-14 15:26:29 +08:00
Lin Jianhua
dfb70de74a ARM: configs: add rk3308-aarch32-ia.config for intelligent home appliances in RK3308 soc
Change-Id: I7f2dd58dfbced8fecd848feabfb83ac2a395723d
Signed-off-by: Lin Jianhua <linjh@rock-chips.com>
2023-09-14 15:01:19 +08:00
Liang Chen
0e92799361 arm64: dts: rockchip: add RK3567 evaluation board devicetree
Change-Id: Ic72b187bf502d860fbcd7d8ce541d17d69efd210
Signed-off-by: Liang Chen <cl@rock-chips.com>
2023-09-14 14:43:31 +08:00
Liang Chen
67b1dc75df Revert "arm64: dts: rockchip: rk3568-evb: add can nodes"
This reverts commit b4f60fb98b.

Change-Id: I03e7683e8dd949f474e248ec1cac8cd60d58d37f
Signed-off-by: Liang Chen <cl@rock-chips.com>
2023-09-14 14:42:38 +08:00
Liang Chen
59adf53367 arm64: dts: rockchip: add core dtsi for RK3567 Soc
Change-Id: I8af6a967f6c38abdeb6ae26280423fc594d08b3b
Signed-off-by: Liang Chen <cl@rock-chips.com>
2023-09-14 14:31:59 +08:00
Liang Chen
cdb78165b4 cpufreq: dt-platdev: Add rk3567 project into blacklist
Change-Id: If131de3b46ab70d45cbf6b1031f3d05072c6d157
Signed-off-by: Liang Chen <cl@rock-chips.com>
2023-09-14 14:21:30 +08:00
Liang Chen
a6393efbeb soc: rockchip: cpuinfo: Add support for rk3567
Change-Id: I8db6a404e0c784cb797c4e5a7849ae73089726af
Signed-off-by: Liang Chen <cl@rock-chips.com>
2023-09-14 14:20:32 +08:00
Yu Qiaowei
ce094aa86b video: rockchip: rga3: changing to close acquire_fence_fd in user-space
Since GKI disables closing fd in the kernel, the acquire fence fd should be
closed in user-space.

Update driver version to 1.3.0

Change-Id: I9bf85d6a39b3564332fc00dc9fce01678dc1ce3b
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
2023-09-13 18:16:22 +08:00
Yu Qiaowei
9e5cbd33fc video: rockchip: rga3: add check_csc
Change-Id: I178d07038e233b9cf8943f57660e61bf7e64bcd2
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
2023-09-13 18:16:22 +08:00
Yu Qiaowei
4beff868e2 video: rockchip: rga3: add full_csc clip config
Change-Id: I197b68977ab7be01837967b2b85596e897cd4d99
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
2023-09-13 18:16:22 +08:00
Yu Qiaowei
de4171ded6 video: rockchip: rga3: add full_csc enable
Change-Id: Ie0374d89676ef828bd1980fc9524f58cba2bfd15
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
2023-09-13 18:16:22 +08:00
Yu Qiaowei
7291693b01 video: rockchip: rga3: compatible with legacy global alpha config
Change-Id: I8dcccad5638f1fa7f16dcd9945562596cae047bc
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
2023-09-13 18:16:22 +08:00
Yu Qiaowei
9550ca04e8 video: rockchip: rga3: replace magic numbers with enum
Change-Id: I3b46be2e17e07e165bb0ef4c7603038defefea88
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
2023-09-13 18:16:22 +08:00
Yu Qiaowei
9312cd2335 video: rockchip: rga3: support fg/bg global alpha
Change-Id: I64d2446d494e179e9e2024c14bc768c2ed0dca47
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
2023-09-13 18:16:22 +08:00
Luo Wei
563845b474 mfd: display-serdes: add serdes display driver support base on mfd arch
* i2c register initialization with dts sequence from serdes chip vendor.
* pinctrl and gpio interface to operate the different serdes chips.
* bridge interface to transmit data for different ser chips.
* panel interface to drive lcds for different des chips.
* one ser chip to connect two des chips in order to costdown.
* support different serdes display chip such as maxim, rohm and rockchip.

Signed-off-by: Luo Wei <lw@rock-chips.com>
Change-Id: Ic8f3558b8ea8ee3d5297bdf2551308e82925304a
2023-09-13 15:19:23 +08:00
Jianwei Zheng
22d153d2eb phy: rockchip-inno-usb2: fix USB OTG not working in HOST mode for RK3328
On current code, We check the iddig status to make sure that the id
status is indeed in low level, and then send HOST notification and
power on phy based on this state. But On some Rockchip platforms like
RK3328, the ID Detector pin is not cited, the default state of ID pin
is floating, so the iddig status is always 1 which means in device mode.

To resolve this problem, We need to further check whether usb2phy_reg
structure of utmi_iddig has been initialized or not. If not, We can't
use the iddig status as a judgment condition.

Signed-off-by: Jianwei Zheng <jianwei.zheng@rock-chips.com>
Change-Id: Ia16365d79015b81fa8aff2fd7a1c61256b38aa3d
2023-09-12 17:24:35 +08:00
Algea Cao
1e49b6a722 arm64: dts: rockchip: rk3528: Remove ddc gpio control during hotplug
The ddc control is designed to be compatible with the leakage
problem of a Konka TV. However, in actual use, it will lead
to the phenomenon of abnormally low hpd in many TVS.

Fixes: 836989af54a6 ("arm64: dts: rockchip: rk3528: Add hdmi ddc io idle state")
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: Ia5c3fe53a702d5b209d5170d0aceb5a559d40e39
2023-09-12 15:08:13 +08:00
Shunhua Lan
75810f87c9 media: i2c: it6616: create hdmirx_class devices
Signed-off-by: Shunhua Lan <lsh@rock-chips.com>
Change-Id: I9e2cf3c8330504124931f79d111bfa3fb54462db
2023-09-12 14:32:10 +08:00
Shunhua Lan
6e85806bc9 media: i2c: lt6911uxc: create hdmirx_class devices
Signed-off-by: Shunhua Lan <lsh@rock-chips.com>
Change-Id: I61c840d812b88554aa154bfc7c1435e1345d287e
2023-09-12 14:32:10 +08:00
Shunhua Lan
d40268f32a media: i2c: rk628: add hdmirx device attribute
Signed-off-by: Shunhua Lan <lsh@rock-chips.com>
Change-Id: If4a57926e6aaf85e9c636bf5af481249ef4720fa
2023-09-12 14:32:10 +08:00
Shunhua Lan
2f31555896 media: rockchip: hdmirx: do not create hdmirx_class
Signed-off-by: Shunhua Lan <lsh@rock-chips.com>
Change-Id: I9f0cee966c89c0251ff1b1faa65208681329f014
2023-09-12 14:32:10 +08:00
Shunhua Lan
3b5e5eae97 media: rockchip: hdmirx: create hdmirx class
There will be many hdmirx devices in Rockchip SOCs
Here create a hdmirx class for those hdmirx devices

Signed-off-by: Shunhua Lan <lsh@rock-chips.com>
Change-Id: Id47af8a01b94c37e2bc40c5671f64cf9f3deebee
2023-09-12 14:32:10 +08:00
Xu Xuehui
5f0df65cbb arm64: dts: rockchip: rk3588-vehicle-evb enable uart7 for GNSS
Change-Id: I110f2bb428f349c5555de6df0e39a17acd8dbea4
Signed-off-by: Xu Xuehui <xxh@rock-chips.com>
2023-09-12 10:42:49 +08:00
Li Hangyu
768fa27106 ARM: dts: rv1106g-trailcam: Add Tracking camera configuration
Change-Id: I0ea587ca2abe5ffa4baf20f295e38632332d5bea
Signed-off-by: Li Hangyu <hangyu.li@rock-chips.com>
2023-09-12 10:12:11 +08:00
Cai YiWei
443f730910 media: rockchip: isp: version v2.3.0
Change-Id: Ib8bf141ca7deba063b00c97618ad9384427c4b35
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2023-09-12 10:01:27 +08:00
Li Hangyu
6487813a9b ARM: configs: rv1106-trailcam: Tracking camera configuration
Update by:

make ARCH=arm rv1106_defconfig rv1106-tb.config
cp .config rv1106.config
make ARCH=arm rv1106_defconfig rv1106-tb.config rv1106-trailcam.config
make ARCH=arm menuconfig
./scripts/diffconfig -m rv1106.config .config > arch/arm/configs/rv1106-trailcam.config

Change-Id: I9909876862cac0e819640d5c9627b39b4712740f
Signed-off-by: Li Hangyu <hangyu.li@rock-chips.com>
2023-09-12 09:46:16 +08:00
William Wu
b5b456cf9a usb: dwc3: rockchip-inno: add Kconfig and Makefile
Change-Id: I123cea9cd3535b7fe112bc36767377ba796e036c
Signed-off-by: William Wu <william.wu@rock-chips.com>
Signed-off-by: Jianwei Zheng <jianwei.zheng@rock-chips.com>
2023-09-09 09:45:15 +08:00
Algea Cao
2ceea71ac3 drm: bridge: dw-hdmi: Don't print hdr error log when switch resolution
RK3288 isn't support hdr, there is not need to print an error
log when switch resolution.

Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: I28c0abcbb421c1c868302f960591e56c015dc77d
2023-09-08 17:08:03 +08:00
Algea Cao
78ece52290 drm/rockchip: dw_hdmi: Fix *ERROR* Unknown property [PROP:157:allm_enable]
After the property is set, 0 should be returned;

Change-Id: I0908356164942e0a3fb48f0db3675a859d8a69f2
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2023-09-08 16:55:44 +08:00
Algea Cao
cb7ae97935 ARM: dts: rockchip: rk3288-evb-rk808-linux: Fix hdmi switch resolution error
When hdmi is bound to vopb and vopl at the same time,
the resolution that hdmi does not support is not filtered properly.
When the resolution is set, the drm will return an error, resulting
in a failure to switch the resolution.

Change-Id: Ie2d1723a35ba92414edd472bd3cc92aab84b4ec2
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2023-09-08 16:55:26 +08:00
Andy Yan
95f83adcf6 mfd: Add rockchip rkx110/x120 serdes support
support display topologys as follow:
1 video source input, 1 channel, 1 lane, 1 remote, 1 video output:
+-------+          +---------+            +---------+         +--------+
|       | disp in  |         |   cable0   |         | disp out|        |
|  soc  |--------->|  RK110  +----------->|  RK120  +-------->| screen |
|       |          |         |            |         |         |        |
+-------+          +---------+            +---------+         +--------+

1 video source input, 1 channel, 2 lane, 1 remote, 1 video output:
+-------+          +---------+   cable0   +---------+         +--------+
|       | disp in  |         +----------->|         | disp out|        |
|  soc  |--------->|  RK110  |   cable1   |  RK120  +-------->| screen |
|       |          |         +----------->|         |         |        |
+-------+          +---------+            +---------+         +--------+

1 video source input, 2 channel, 2 lane, 2 remote, 2 video output:
                                          +---------+         +--------+
                                  cable0  |         |disp0 out|        |
                                 +------->|  RK120  +-------->| screen |
                                 |        |         |         |        |
+-------+          +---------+   |        +---------+         +--------+
|       | disp in  |         +---+
|  soc  |--------->|  RK110  |
|       |          |         +---+
+-------+          +---------+   |        +---------+         +--------+
                                 |cable1  |         |disp1 out|        |
                                 +------->|  RK120  +-------->| screen |
                                          |         |         |        |
                                          +---------+         +--------+

1 video source input, 2 channel, 1 lane, 1 remote, 2 video output:
                                                              +--------+
                                                     lvds0_tx |        |
                                                         +--->| screen |
+-------+          +---------+            +---------+    |    |        |
|       | disp in  |         |   cable0   |         |----+    +--------+
|  soc  |--------->|  RK110  +----------->|  RK120  |
|       |          |         |            |         |----+    +--------+
+-------+          +---------+            +---------+    |    |        |
                                                         +--->| screen |
                                                     lvds1_tx |        |
                                                              +--------+

2 video source input, 2 channel, 1 lane, 1 remote, 2 video output:
                                                              +--------+
                                                     lvds0_tx |        |
                                                         +--->| screen |
+-------+ disp0_rx +---------+            +---------+    |    |        |
|       |--------->|         |   cable0   |         |----+    +--------+
|  soc  | disp1_rx |  RK110  +----------->|  RK120  |
|       |--------->|         |            |         |----+    +--------+
+-------+          +---------+            +---------+    |    |        |
                                                         +--->| screen |
                                                     lvds1_tx |        |
                                                              +--------+

2 video source input, 2 channel, 2 lane, 1 remote, 2 video output:
                                                              +--------+
                                                     lvds0_tx |        |
                                                         +--->| screen |
+-------+ disp0_rx +---------+   cable0   +---------+    |    |        |
|       |--------->|         +----------->|         |----+    +--------+
|  soc  | disp1_rx |  RK110  |   cable1   |  RK120  |
|       |--------->|         +----------->|         |----+    +--------+
+-------+          +---------+            +---------+    |    |        |
                                                         +--->| screen |
                                                     lvds1_tx |        |
                                                              +--------+

2 video source input, 2 channel, 2 lane, 2 remote, 2 video output:
                                          +---------+         +--------+
                                  cable0  |         |disp0 out|        |
                                 +------->|  RK120  +-------->| screen |
                                 |        |         |         |        |
+-------+ disp0_rx +---------+   |        +---------+         +--------+
|       |--------->|         +---+
|  soc  | disp1_rx |  RK110  |
|       |--------->|         +---+
+-------+          +---------+   |        +---------+         +--------+
                                 |cable1  |         |disp1 out|        |
                                 +------->|  RK120  +-------->| screen |
                                          |         |         |        |
                                          +---------+         +--------+

Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Signed-off-by: Steven Liu <steven.liu@rock-chips.com>
Change-Id: Ifbf44ff7d5dcab668b50cf101d8dbff10dc71467
2023-09-08 16:17:18 +08:00
Guochun Huang
6904d47493 arm64: dts: rockchip: add rk3568m serdes evb support
Change-Id: Ia9e6580fa591076741f9e33ff2142df71f503b89
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2023-09-08 16:13:28 +08:00
Caesar Wang
997dc09f43 arm64/configs: rockchip_linux_defconfig: enable CONFIG_MFD_RKX110_X120
Change-Id: I46b6b7c4941b9809c267f6efc4a504bc62ddea33
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
2023-09-08 16:13:28 +08:00
Guochun Huang
86a4b8b789 arm64: configs: rockchip_defconfig: enable CONFIG_MFD_RKX110_X120
enable the rkx110/rkx120 serdes driver use on rk3568m-serdes-evb

Change-Id: I5f7f8df6a4b9e4c7d95916b22e7db846d4bd0bc1
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
2023-09-08 16:13:28 +08:00
Zhang Yubing
933f963be6 dt-bindings: mfd: add rkx110_x120 document
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: I3bc8ec325b05b743ddc73e2f7a2786c3836dfce0
2023-09-08 16:13:28 +08:00
Binyuan Lan
51da9567aa ASoC: rockchip: rk817-codec: always enable mclk
Change-Id: Id2a87aaf665c8f1030b425e7e7fa4727401ac70b
Signed-off-by: Binyuan Lan <lby@rock-chips.com>
2023-09-08 16:00:43 +08:00
Steven Liu
02e897ae7c arm64: dts: rockchip: rk3562-amp: support ap core for amp
Signed-off-by: Steven Liu <steven.liu@rock-chips.com>
Change-Id: I5b70c643884ff236ab27a918d03fc278b9b1b377
2023-09-08 11:00:26 +08:00
Zhihuan He
7921dda22e arm64: configs: rockchip_linux_defconfig: enable rockchip edac
The EDAC depends on RAS config

Signed-off-by: Zhihuan He <huan.he@rock-chips.com>
Change-Id: Ie3c9b6150e792cb1bca395f630bf35da82168f2b
2023-09-08 10:45:05 +08:00
Zhihuan He
5350178c98 arm64: configs: rockchip_defconfig: enable rockchip edac
The EDAC depends on RAS config

Signed-off-by: Zhihuan He <huan.he@rock-chips.com>
Change-Id: Ib2b6fa9fa6f631a3d1e49af4ce96000a3bcaad79
2023-09-08 10:45:05 +08:00
Zhihuan He
fbd623f51a arm64: dts: rockchip: rk3568: add edac device
Signed-off-by: Zhihuan He <huan.he@rock-chips.com>
Change-Id: If8f65c9a15ebd89b46e480f9f7517c62d4921e3b
2023-09-08 10:45:05 +08:00
Zhihuan He
abd61db9d6 edac: rockchip: add edac driver
Signed-off-by: Zhihuan He <huan.he@rock-chips.com>
Change-Id: I56a568718e47f86f7f152ec38f66e0ccbe99c6c1
2023-09-08 10:45:05 +08:00