Commit Graph

1079605 Commits

Author SHA1 Message Date
Huibin Hong
4cda6bf166 soc: rockchip: rk_fiq_debugger: fix interrupt fires forever
Fix bug that RX TIMEOUT interrupt fires forever.

Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
Change-Id: I98062debaf549ccbd8e3bda84a396e59588c8309
2023-03-28 10:05:40 +00:00
Cai YiWei
17e4013e9e media: rockchip: rename isp and ispp uapi head
Change-Id: I768baae0c406efc0bdc9b13dc2ac745f1365cf45
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2023-03-27 09:18:24 +08:00
Zefa Chen
fd32f0f8d6 media: rockchip: vicap: scale video capture follow main stream
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Ie1d052bae55027d42d8ecb5976c9dccddd1e784c
2023-03-27 09:13:05 +08:00
Damon Ding
10f9176932 arm64: dts: rockchip: rk3562: modify driver strength for bt1120 pins
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: I8ad40748f7fc2ecb2ee5cca795b41cdecb17816e
2023-03-27 09:09:08 +08:00
Sandy Huang
b9be1cc4a6 drm/rockchip: vop2: Don't dynamic turn on/off rk3588 PD_ESMART
Close dynamic turn on/off rk3588 PD_ESMART and keep esmart pd on when
enable display.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I154b96d1039dc42a773ec769c81aa054e9f9d79d
2023-03-27 09:06:23 +08:00
Zhang Yubing
2b7835ea77 drm/rockchip: dw-dp: fix dw_dp_bridge_mode_valid() return value type
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Change-Id: Id31da1890c26b5c76e955fe103b62966eec2c126
2023-03-27 09:03:47 +08:00
Jon Lin
014c17ee5f PCI: rockchip: dw: Using __u32 instead of u32
Change-Id: I58cbbb23c6cb74a073da130d70eeb5519b09e121
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-03-27 09:03:27 +08:00
Zefa Chen
73fe7e52d3 media: rockchip: vicap: fixes snprintf warning of mipi csi2 error
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Ie6aed0c88a4ac5d9c5750885ef70fb0b391aa552
2023-03-27 09:01:27 +08:00
Zefa Chen
ddc6266787 media: rockchip: vicap: fixes issue of tools video register
tools video only support chip higher than rk1808

Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Iec7bfa9e9faa0bf520443f7e259c0519496c7b0f
2023-03-27 09:01:27 +08:00
Cai YiWei
d6fb546c18 media: rockchip: isp: version v2.2.0
Change-Id: I58699277e15b23c7eb8d4730c8d043164fb4746b
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2023-03-23 18:41:04 +08:00
Cai YiWei
f035db5f70 media: rockchip: isp: fix read BP_WR_CTRL reg
Change-Id: I2d448dcd6db98dafeb00209cb9d876a5ee98c51c
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2023-03-23 18:41:04 +08:00
Yiqing Zeng
32c4d89494 ARM: dts: rockchip: rv1106-evb-cam: change os04a10 module name and lens name
Signed-off-by: Yiqing Zeng <zack.zeng@rock-chips.com>
Change-Id: I37f114e048f9e919f8fe02eee749124276e2b402
2023-03-23 17:32:00 +08:00
Shiqin Chen
50c6114437 arm64: configs: rk3588_edge: Enable CONFIG_SENSORS_PWM_FAN
Signed-off-by: Shiqin Chen <chensq@rock-chips.com>
Change-Id: I76ab7f583afe3f891d5680056b12bab24a6b0407
2023-03-23 09:51:24 +08:00
Zorro Liu
535756b972 backlight: pwm_bl: set bl brightness 0 when reboot quiescent
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
Change-Id: Idf24ba57198dfb404d36507e207069c542924eea
2023-03-23 09:29:01 +08:00
Zorro Liu
c9e25627a9 arm64: dts: rockchip: rk3588s: add reboot mode quiescent
Change-Id: I263760f6a4869210ec80eac4ae4437bb7762d625
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
2023-03-23 09:26:03 +08:00
Zorro Liu
e760c21d37 dt-bindings: soc: rockchip: add reboot mode quiescent
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
Change-Id: I249f7dc7b8f464e0f5dd69797124fba036126b55
2023-03-23 09:22:27 +08:00
Jianwei Fan
232b116165 media: i2c: imx577: fix gain step
Fixes: de9477630d ("media: i2c: imx577: add dgain control")
Change-Id: Ie78a4330a8c38f605db2b07bc867f20cb3a29bb1
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
2023-03-22 17:53:02 +08:00
Shawn Lin
48b91619b8 PCI: rockchip: dw: Double check LTSSM
We saw a link failure after linkup which should fail to probe the device
actually. That was misleading for PCIe stack to scan the device. Add a
double check for that. If that happened, just try to link until the
timeout happened.

[    2.373308] rk-pcie fe180000.pcie: PCIe Linking... LTSSM is 0x3
[    2.455521] rk-pcie fe180000.pcie: PCIe Link up, LTSSM is 0x2
[    2.455658] rk-pcie fe180000.pcie: PCI host bridge to bus 0003:30

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: I0f9bcbb42d77a80aa1cb533952427b71096240d6
2023-03-22 17:39:38 +08:00
Wu Liangqing
d031ad7267 arm64: dts: rockchip: adaptive rk3399-sapphire-excavator
Change-Id: I3e7b80091775414c1d51eda1cb14c50c0e930fc2
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
2023-03-22 17:39:19 +08:00
cww
379493488c ARM: dts: rockchip: add rv1106g-evb2-v10-dual-camera.dts
Signed-off-by: cww <cww@rock-chips.com>
Change-Id: I7be6cb6a8a4cfccbf24344239b224cb51cdf0bae
2023-03-22 16:29:25 +08:00
cww
959f662239 ARM: dts: rockchip: rv1106-thunder-boot: reserved_mem add rkisp1_thunderboot
Signed-off-by: cww <cww@rock-chips.com>
Change-Id: I5b9dc2321efbf5f851a8a5afeba0e4d63d1cc554
2023-03-22 16:28:44 +08:00
Jon Lin
69059cd5f5 drivers: rkflash: Fixes compiler warnings
drivers/rkflash/nandc.c:393:31: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
error, forbidden warning:nandc.c:393
                        } while ((fl_reg.V6.tr_rdy == 0));
                                  ~~~~~~~~~~~~~~~~~^~~~
drivers/rkflash/nandc.c:393:31: note: remove extraneous parentheses around the comparison to silence this warning
                        } while ((fl_reg.V6.tr_rdy == 0));
                                 ~                 ^   ~
drivers/rkflash/nandc.c:393:31: note: use '=' to turn this equality comparison into an assignment
                        } while ((fl_reg.V6.tr_rdy == 0));

Change-Id: Ib4c422216c61191b924163fedfe1b83f1fd297df
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-03-22 15:30:39 +08:00
Shiqin Chen
57061ad7b6 arm64: dts: rockchip: rk3588-toybrick-x0: Enable pwm fan
Signed-off-by: Shiqin Chen <chensq@rock-chips.com>
Change-Id: I537275a2d35fb28181a3f7512bc11ce01510112e
2023-03-22 14:54:41 +08:00
Algea Cao
15670ab702 drm/rockchip: dw_hdmi: Set default color base on previous color
Fixed color anomalies caused by plug when playing hdr videos.

Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: I487ba996add98e5d474149bae3552fe0e8371ff2
2023-03-22 09:21:03 +08:00
Huang zhibao
e81c289e86 arm64: dts: rockchip: rk3588-pcie-ep-demo: fix i2c port error
Signed-off-by: Huang zhibao <hzb@rock-chips.com>
Change-Id: I8a3761983488d29e01c4353894d99e0d746ec280
2023-03-21 18:03:28 +08:00
Guochun Huang
9cadc52d78 Revert "drm/rockchip: dsi2: set escape clk 10MHz default"
solve no response when read back from panel in video mode display

This reverts commit 28eb6929be.

Change-Id: Ic42637d7714169fafa22771185e11c2ddcfa5c95
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
2023-03-21 08:35:05 +00:00
Tao Huang
6811c647e8 dma-buf: destructor only with CONFIG_DMABUF_CACHE
Destructor is only used by dma-buf cache.
So replace CONFIG_NO_GKI with CONFIG_DMABUF_CACHE.

Fixes: 345084a2ed ("BACKPORT: ANDROID: GKI: dma-buf: Add support to set a destructor on a dma-buf")
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I08c1a10e8e74c37fbe9677115ca421425e4cdcd4
2023-03-21 15:22:57 +08:00
Jon Lin
a7c40cb119 PCI: rockchip: dw-dmatest: Suppport rc dma
1.Set rc dma as default
2.Changet to ep dma by sending command:
	echo 0 > ./sys/module/pcie_dw_dmatest/parameters/is_rc

Change-Id: I9b16c328c08f220772e487c7c796b8898d74ae10
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-03-21 14:29:01 +08:00
Jon Lin
7152ea12b2 PCI: rockchip: dw: Support ep information
1.Support ep information, including sending ep dma status to rc by using msi
2.Set ep drivers version 0x00000001
3.Support PCIE_DMA_RAISE_MSI_OBJ_IRQ_USER ioctl

Change-Id: I9c1530a1ce8289ce324b78a9dd5fa0cb6a5a1858
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-03-21 14:28:12 +08:00
Jon Lin
051e4d7cf0 PCI: rockchip: dw: Add the specification of ep information
Definition rockchip ep device information, like drivers version
and devices dma status. These information will be store in BAR0
in default.

Change-Id: I33dcc00e9923d10ad63d706ce16ba646f0049480
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-03-21 14:27:27 +08:00
Tao Huang
29686dd3c9 arm64: dts: rockchip: Fix Makefile sorting for rk3588-nvr-demo-v10-ipc-4x-linux
Fixes: b9ef4803ff ("arm64: dts: rockchip: add rk3588-nvr-demo-v10-ipc-4x-linux.dts")
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ice0e586660b696cb3757998d3b5513956d9b3812
2023-03-20 20:27:18 +08:00
Yandong Lin
d2fa6b5151 video: rockchip: mpp: fix bus err for px30 dec/enc
When encoding and decoding in parallel, iommu switch failed cause bus
err.
rk_iommu ff442800.iommu: BUS_ERROR occurred at 0x0000000000000000

Rootcause:
Get a invalid dte addr when px30_workaround_combo_init, because of iommu
not enable status.
solution:
read a valid dte addr when iommu enable status.

Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: I4b84c650a6e132928a6dc91a26985abd8c273cfe
2023-03-20 19:24:01 +08:00
David Wu
b3fc1c6b9b arm64: dts: rockchip: rk3568: Add stmmac uio nodes
Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: I6a7d4c1000b9ed604042b5dc5d32c9cddb4ad433
2023-03-20 18:40:56 +08:00
David Wu
e54a2f1ed1 net: ethernet: stmmac: Add uio support for stmmac
Currently only supports single channel, and the network card
name needs to be eth0 and eth1.

Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: I19975b10e2ed12931edc2e8bd50c003416a1109c
2023-03-20 18:40:56 +08:00
Wyon Bi
86250dffd6 mfd: max96745: Set I2C speed to Fast-mode
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: Ide9286e46ec3b1829a6c0346c7780f355d7e2281
2023-03-20 09:16:31 +00:00
Wyon Bi
e54650456a mfd: max96745: Reduce i2c operations
Fixes: 8346555424 ("mfd: max96745: Support i2c-mux-idle-disconnect property")
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: Ib6cc9b197561bf1326442cebbd9844af3853d06a
2023-03-20 09:16:31 +00:00
Rimon Xu
d011989675 arm64: dts: rockchip: rk3528-evb: enable rkvtunnel node
Signed-off-by: Rimon Xu <rimon.xu@rock-chips.com>
Change-Id: I6c2390645e6a9ea24941a2fab5b5f4910e7d4343
2023-03-20 10:35:10 +08:00
Rimon Xu
41542aacfe arm64: dts: rockchip: rk3528: Add video tunnel device
Signed-off-by: Rimon Xu <rimon.xu@rock-chips.com>
Change-Id: I2b6e5b09f5fcd4fcbb09fabf3a970515f270532d
2023-03-20 10:33:00 +08:00
Chen Shunqing
152a4c49b8 media: rockchip: hdmirx: fix error when cec message length is greater than 16
Change-Id: Iba31625a3178cd6beeca45058dd3cb6c99a896ca
Signed-off-by: Chen Shunqing <csq@rock-chips.com>
2023-03-20 10:25:17 +08:00
Sandy Huang
1ea14f41e6 drm/rockchip: vop3: rk3562: remove unused defined
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Ibe0b2e3ce9358c8509630aa00167264f675fa7c3
2023-03-20 10:22:00 +08:00
Algea Cao
d5f441d9a6 drm: bridge: dw-hdmi: Fix some TV display error when play hdr video in 4K25Hz
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: I93092d531435c47885e013c02e6655821370256a
2023-03-20 09:46:17 +08:00
Ding Wei
e949000501 video: rockchip: mpp: rkvdec2: Add hard-ccu mode
hard-ccu mode:
1. ccu hardware assign the tasks to each core.
2. if one core error, wait dule core idle, and reset dual core
   and ccu.
3. re-run tasks which have not finish.

Change-Id: I3476c0de21de89019ce924122a85ab4352faafd0
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
2023-03-17 19:02:04 +08:00
Yandong Lin
0eead2352f arm64: dts: rockchip: rkvdec add hw ccu mode for rk3588
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: I926f3afb22cce40ba4cd884ea4f96a2e2f420b66
2023-03-17 19:01:41 +08:00
Tao Huang
68c35de1b6 arm64: dts: rockchip: rk3528-evb1-ddr4-v10: Sort the nodes alphabetically
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ib883bfc269906460b1fa93112920cbeea4180ac2
2023-03-17 18:20:52 +08:00
Sandy Huang
6b3b4b544e drm/rockchip: vop3: remove vp1 supported from rk3562
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I334a2d693291c72143bd4cd2d8de38ddba1116f3
2023-03-17 18:20:35 +08:00
Yandong Lin
b278cacd80 video: rockchip: mpp: fix access null point in no mmu case
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: I02445a25b68b2ad8e80b46dc5ffc44ef422ab616
2023-03-17 16:59:42 +08:00
Yandong Lin
9aa8154c25 video: rockchip: mpp: fix some buf cache not sync issue
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: I3c41ca6e373480e3b2759154ca4445318c7365b6
2023-03-17 16:59:42 +08:00
Zefa Chen
43526c2435 media: rockchip: vicap: rk3588 add iclk_host and rst_host
if not control it together, may cause vicap do cru reset fail

Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Ie8cc81688ab3c0d1d91b8aa27992b028f8aee80c
2023-03-17 16:57:18 +08:00
Zefa Chen
aff37bd786 arm64: dts: rockchip: rk3588: modify vicap/csi2 clk/rst
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I7bac029766591565590e3ca98c7348f53d21b0c6
2023-03-17 16:57:18 +08:00
Zefa Chen
7201f0928f media: rockchip: vicap fixes error of overflow when stop stream
some sensor driver not support get vblank, may cause error state

Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I04b869026d262283e055c82b1e9d53233bab3b67
2023-03-17 16:57:18 +08:00