Commit Graph

1086720 Commits

Author SHA1 Message Date
Lin
967ccfd802 ARM: configs: rk3308_linux_aarch32_defconfig: sync from savedefconfig
Signed-off-by: Lin <linjh@rock-chips.com>
Change-Id: I064cef348b469db1e3327465b47d52ea6f56e59d
2023-12-08 17:25:17 +08:00
Chuanhu Sun
be425cca7a media: rockchip: vicap hw change suspend/resume early
Signed-off-by: Chuanhu Sun <aaron.sun@rock-chips.com>
Change-Id: Ic19a8f1540cd2af19f6f921c5cc8eba078ea50fb
2023-12-08 15:22:35 +08:00
William Wu
5525a9cc48 arm64: dts: rockchip: Remove unused quirk for usb dwc3 controller
This patch remove unused property "snps,xhci-trb-ent-quirk"
for rockchip platforms.

Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: I34212099c21764dfdd2e42d03f91dbf449e3b0c9
2023-12-08 14:33:13 +08:00
Tao Huang
36e9818809 Revert "arm64: dts: rockchip: add xhci trb ent quirk for rockchip SoCs"
This reverts commit fdc8aea2c0.

This patch remove unused property "snps,xhci-trb-ent-quirk"
for rockchip platforms.

Signed-off-by: William Wu <william.wu@rock-chips.com>
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I849019919feecd1a35a26e5d668e53a8d8bcae2e
2023-12-08 14:33:13 +08:00
William Wu
bda0d3d451 ARM: dts: rockchip: rv1126: Remove unused quirk for usb
This patch remove unused property "snps,xhci-trb-ent-quirk"
for rv1126 usb controller.

Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: Ic6a713261219cb75b7739f2db8ff5dddfafe67b1
2023-12-08 14:32:50 +08:00
Jon Lin
a34de85857 PCI: rockchip: dw: Remove useless apis
The PCIe dbi base is accessible in userspace by mmap, then the
elbi_data and bar0 physical address is visible from dbi base mmap
space.

Change-Id: I5abd5921d2c7fd361e098ded568a470ff1b67ad2
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-12-07 19:14:03 +08:00
Jon Lin
0350e3c5ed PCI: rockchip: dw: Fix resize bar capability for EP
Avoid RC attempting to modify EP bar strategy.

Change-Id: Icd8fefe9d6a09ad4a4845af83d6dd6b80c78d5bc
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-12-07 19:14:03 +08:00
Lin Jianhua
b202c1caa3 arm64: configs: add rockchip_linux_pcie_ep.config for some case use PCIe EP Card
Change-Id: Ia78d3e26ba1153b1fb0889dccb04c238534ff325
Signed-off-by: Lin Jianhua <linjh@rock-chips.com>
2023-12-07 19:11:36 +08:00
Lin Jianhua
520ae493e9 arm64: dts: rockchip: add PCIe EP Board for rk3568
Change-Id: Iabfd99bb6d6934255cc82cc773dc80ba822e415b
Signed-off-by: Lin Jianhua <linjh@rock-chips.com>
2023-12-07 19:11:36 +08:00
Cai YiWei
7f2e38980d media: rockchip: isp: version v2.4.0
Change-Id: If8379fbed725c542c0473fd0c6797effd896e03a
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2023-12-07 16:15:20 +08:00
LongChang Ma
fd1f21d6c1 media: i2c: techpoint: add tp9951 driver
Signed-off-by: LongChang Ma <chad.ma@rock-chips.com>
Change-Id: Ieee236964b12d2dc54c622641463e3bbd90c2ca6
2023-12-06 17:44:55 +08:00
LongChang Ma
3c7ecd8d14 media: i2c: sc3338 adapt sleep_wakeup
Signed-off-by: LongChang Ma <chad.ma@rock-chips.com>
Change-Id: I249b7a1a272aa1244b9fdd20b041d7b997bb6a27
2023-12-06 16:27:38 +08:00
Ziwei Lin
190f4223b2 media: i2c: sc200ai adapt sleep_wakeup
Signed-off-by: Ziwei Lin <ziwei.lin@rock-chips.com>
Change-Id: I169d77de24550bd6a79278447e9880b621f57ee2
2023-12-06 16:26:34 +08:00
Ziwei Lin
4f9bce36a0 media: i2c: add sleep-wakeup mod
Support for sensor sleep and wake up

Signed-off-by: Ziwei Lin <ziwei.lin@rock-chips.com>
Change-Id: I2eba13b88df6b9e1bf596c9c653784e77d470a9d
2023-12-06 16:26:34 +08:00
Zefa Chen
a0766acbeb media: rockchip: vicap: call sensor quick stream only rv1106 when resume
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Icbcc7926e1a6a0292adde809238b9e756df92b97
2023-12-06 15:50:45 +08:00
Jon Lin
b8c9f51590 spi: rockchip-test: Support config spi mode
Change-Id: If6f67ed93f3a2a06acb8e2da485616174720ebf0
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-12-06 15:40:49 +08:00
Zefa Chen
d2233bb509 media: rockchip: vicap add intr mask for bandwidth, and mask bandwidth err per second
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Ie07d0c4d25bfc962f25a0b4b38f36557814e4a62
2023-12-06 15:39:26 +08:00
Jkand Huang
1ccf851a69 ARM: configs: rv1106-wakeup.config: enable VIDEO_CAM_SLEEP_WAKEUP
Change-Id: I5c183863c466d07d311a313011f712c7fa0afbbc
Signed-off-by: Jkand Huang <jkand.huang@rock-chips.com>
2023-12-06 15:37:42 +08:00
Jkand Huang
2943841711 ARM: configs: rockchip: update rv1106-wakeup.config
1. disable CONFIG_RV1106_HPMCU_FAST_WAKEUP
2. enable CONFIG_RV1106_PMU_WAKEUP_TIMEOUT
3. buildin CONFIG_PHY_ROCKCHIP_CSI2_DPHY
4. buildin CONFIG_VIDEO_ROCKCHIP_CIF

Change-Id: Id67a2ce0fd9f7b241cb572d485fe5cc073bcceb5
Signed-off-by: Jkand Huang <jkand.huang@rock-chips.com>
2023-12-06 15:37:42 +08:00
Luo Wei
65d970d073 arm64: dts: rockchip: rk3588-vehicle-evb-v20: change to use mfd display
Signed-off-by: Luo Wei <lw@rock-chips.com>
Change-Id: Iaf385b286720c18c87a70acf6e280da80612172f
2023-12-06 15:36:56 +08:00
Jkand Huang
58c549de59 ARM: dts: rockchip: rv1106g-evb2-v12-wakeup remove rtt
Change-Id: Ib89f202b58cb365960e1e4960b7c08232cac8f5b
Signed-off-by: Jkand Huang <jkand.huang@rock-chips.com>
2023-12-06 15:35:22 +08:00
Sugar Zhang
618ce38798 arm64: dts: rockchip: rk3588: Add CLK_IGNORE_UNUSED for MCLKOUTx
This patch is used for compatible for old style mclk
reference which do not use the "mclkout_x".

Use property 'rockchip,clk-ignore-unused' instead the fixed one.

Suggest to drop this patch for totally new SDK or SoCs
in the future.

Ref: 1255f11b25 ("clk: rockchip: clk-out: Add CLK_IGNORE_UNUSED flag")

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Ifa5c0be7f2aad6fc6848b49f4612a160b04d7254
2023-12-05 19:17:13 +08:00
Sugar Zhang
5843feb890 clk: rockchip: clk-out: Add property for CLK_IGNORE_UNUSED
This patch is used for compatible for old style mclk
reference which do not use the "mclkout_x".

Use property 'rockchip,clk-ignore-unused' instead the fixed one.

Suggest to drop this patch for totally new SDK or SoCs
in the future.

Ref: 1255f11b25 ("clk: rockchip: clk-out: Add CLK_IGNORE_UNUSED flag")

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I72797d9fa3f8367c48808489e24f544c34acab39
2023-12-05 19:17:06 +08:00
XiaoDong Huang
424557b2d3 ARM: rockchip: rv1106: sleep: fix compile error
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
Change-Id: I93b9c1efe38a5fb3afb9446f154abc4bd94abafe
2023-12-05 18:26:26 +08:00
Zefa Chen
e9ceb67d33 media: rockchip: vicap: fixes error of quick stream for AOV without rtt mcu
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I502604dba7bb8c3c19e28f3b3e889ff3a72db071
2023-12-05 18:10:36 +08:00
Zefa Chen
089ceee21e media: rockchip: vicap change stream suspend/resume early
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I80eb4105d640b334126c74c48ad4edaf4cb40fb1
2023-12-05 18:10:17 +08:00
Zefa Chen
dc990ffab1 media: rockchip: vicap support resume mode of oneframe without rtt
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Ia3afbabcfcc6fdca263c8e41c9e2bf403a49ce42
2023-12-05 18:09:33 +08:00
Zefa Chen
e1ecd29fcc phy: rockchip: mipi csi2 dphy support set quick stream
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I1a36a5244cef005daddcd4d80fa8fe051061c7ca
2023-12-05 18:08:35 +08:00
Zefa Chen
b42660e87c phy: rockchip: csi2-dphy: fixes NULL of dphy node for dcphy
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Ibe326b1199d5e538f9a9c2ee7f079be210d0353a
2023-12-05 18:04:12 +08:00
Luo Wei
80ebdebca0 mfd: display-serdes: add split mode function support
Signed-off-by: Luo Wei <lw@rock-chips.com>
Change-Id: I70f1707c8625d8d693b1134d178c68fcdfbdf268
2023-12-05 17:22:19 +08:00
Finley Xiao
23cdd1ae0e dt-bindings: opp: Document rockchip opp bindings
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I0a60b7d43e5f34de402266859543400cd5d523ff
2023-12-05 16:48:30 +08:00
Finley Xiao
92f826364b arm64: dts: rockchip: rk3588: Change opp clock for gpu and npu opp table
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Ic2f585ecbfc0de4a11d20f14bbc6f0dd10f7b25d
2023-12-05 16:48:21 +08:00
Finley Xiao
7e80a3380a soc: rockchip: opp_select: Add support to parse rockchip,opp-clocks
The clocks property is used to get avs frequency and avs scale on some
platforms, add new property rockchip,opp-clocks for pvtpll and read
margin.

Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Ida795081e199b40a0bdfe3cb079ae8286d006057
2023-12-05 16:48:14 +08:00
Jacob Chen
80af59f8b8 video: rockchip: rve: update to 1.0.5
fix unexpected exit during execution of llp tasks, The 0th
bit of the work status register indicates whether the current
task in linked-list mode has successfully completed execution.
The 4th bit indicates all tasks has been processed done.

Change-Id: I099c55e2f00cc63e9f4ee0d3e2696ccec9a5ae9a
Signed-off-by: Jacob Chen <cc@rock-chips.com>
2023-12-05 16:13:27 +08:00
XiaoDong Huang
ad7b71f2e2 ARM: rockchip: rv1106: support CONFIG_RV1106_PMU_WAKEUP_TIMEOUT
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
Change-Id: I66859ef75a39e71de20a1efab5fc840bfa296346
2023-12-05 15:44:01 +08:00
Mingwei Yan
164aa84b56 media: rockchip: isp: fix is_on false cause pm isp die
rv1106 dual_sensor will call rkisp_hw_enum_isp_size,
if memset isp_size to 0 will cause is_on be false,
when isp pm,isp reg_save/reg_store can't be called

Signed-off-by: Mingwei Yan <mingwei.yan@rock-chips.com>
Change-Id: If91e3feaf113fe8ca3d22fca92c2800c99f5b55d
2023-12-05 15:14:10 +08:00
XiaoDong Huang
9e64835577 ARM: rockchip: rv1106: support PMIC_SLEEP over gpio0_a4
Change-Id: I14678dfe44ed893f4a2e42168eb2b869c622aa89
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
2023-12-05 14:51:58 +08:00
Wu Liangqing
6e8cfc3b55 arm64: dts: rockchip: rk3588-evb: enabled rkvtunnel
Change-Id: I942a6b44e9f8251666ea4ebf494800a6b09c94ab
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
2023-12-04 19:58:28 +08:00
Wu Liangqing
2f92fa5c05 arm64: dts: rockchip: rk3588: add rkvtunnel
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
Change-Id: I07acae6e2b5085986c4485f84c0103db92322c37
2023-12-04 19:57:47 +08:00
Wu Liangqing
f82ba785ed arm64: configs: rockchip: add CONFIG_ROCKCHIP_VIDEO_TUNNEL
Change-Id: I9216b9013aa6a2ac90e167daaed5318f5f1b6a54
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
2023-12-04 19:57:29 +08:00
Cai YiWei
e2935d993b media: rockchip: isp: add mode for rv1106 suspend without rtt
Change-Id: I878de96cac813ad6e31ad844b7fcd3c84ce0c5d6
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2023-12-04 15:56:18 +08:00
Finley Xiao
9758b645e0 soc: rockchip: opp_select: Fix getting wrong struct rockchip_clk_pll pointer
On RK3588, the clocks propety in gpu and npu opp table are not pll
clock, when call rockchip_pll_clk_rate_to_scale(), it will get a wrong
pointer from to_rockchip_clk_pll, the pll->rate_count may be a large
value, and do unnecessary for loops.

Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I1364e8a930cc8cd9e2cb9627709eea0ba198a566
2023-12-04 15:06:06 +08:00
Cai YiWei
718e3c0d99 media: rockchip: isp: more time to wait isp end
Change-Id: I8c08343a47e6b8467e90c4a7cd6a5e4d7c5bfbd4
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2023-12-04 09:38:07 +08:00
Dingxian Wen
6c39b12bf8 media: rockchip: hdmirx: Binding CPU compatible with CPU swap scenarios
Signed-off-by: Dingxian Wen <shawn.wen@rock-chips.com>
Change-Id: I80bc5c50ba7136752e266302cc78f76a3d22ba26
2023-12-01 18:37:08 +08:00
Wu Liangqing
00244fab41 arm64: dts: rockchip: rk3326-evb/px30-evb: changed esc and home key code
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
Change-Id: I0e60bf3f5bcd81600fd886f7e6c8ef786226e7a9
2023-11-30 12:48:03 +00:00
Damon Ding
5de0bccb0d drm/rockchip: vop2: fix the dclk log in vop2_crtc_atomic_enable()
Change-Id: I370d519aaed0cf96f852c7bec88399ab2a0e5a76
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2023-11-30 16:47:28 +08:00
William Wu
ce3e4b920b ARM: dts: rockchip: rv1106-uvc: disable usb2 phy suspend
This patch add property "rockchip,dis-u2-susphy" for
u2phy_otg to avoid the usb2 phy driver set the phy
enter suspend mode if the usb is in unconnected state.
It has no side effect for phy suspend in deep sleep.

For self power board, this patch is useful in hot
plug case, it can fix uvc unrecognized issue with
the following error log:

dwc3 ffb00000.usb: failed to enable ep0out

Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: Ic5ba708201050e12669f098c1b554eeb625b42a2
2023-11-30 15:30:34 +08:00
William Wu
a064f84622 ARM: dts: rockchip: set usb dr_mode to otg for rv1106 evb1 and evb2
Most of rv1106 evb1 and evb2 dts set the usbdrd_dwc3
dr_mode to peripheral, it aimed to avoid conflict when
set vbus-supply for otg host mode, likes rv1106g-evb2
v10, the USB_PWREN gpio is shared with usb vbus-supply
and emmc/spi, and set peripheral mode can also simplify
the usb controller initialization process.

However, peripheral mode causes two issues:

1. USB device can't be recognized in hot plug scenario.
   The dwc3 driver print err log:
   dwc3 ffb00000.usb: failed to enable ep0out

2. The dwc3 driver fails to stop controller in the
   function dwc3_gadget_run_stop() when do system reboot,
   and it will increase the reboot time because the stop
   timeout is set to usleep_range(1000, 2000) * 2000.

   If the CONFIG_HIGH_RES_TIMERS is disabled and the
   CONFIG_HZ_100 is enabled, the dwc3 stop timeout will
   take about 20 seconds.

The root cause of the two issues is that the usb2 phy
is set to suspend mode in phy driver if the usb in
unconnected state, and the usb controller internal
utmi clock provided by usb2 phy is also disabled.
If the dwc3 driver access the registers of the dwc3
controller while the usb2 phy in suspend mode, the
accessing operation is invalid.

This patch sets the dr_mode to otg, then the dwc3
driver will enable the pm runtime and avoid accessing
its registers while the usb2 phy in suspend mode.
In otg mode, the dwc3 uses the extcon notifier from
the usb2 phy to set peripheral or host mode.

Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: I0e77771c2ef62ee6b86c5d7d6444ea7539e51833
2023-11-30 15:30:34 +08:00
Felix Zeng
b83118aa35 driver: rknpu: Update rknpu driver, version: 0.9.3
* Add RK3583 NPU support
* Add kernel mapping control in RV1106
* Add hardware elapse time support
* Fix issue of double core execution in auto mode
* Fix multi-cores schedule issue due to task number incorrect sort

Signed-off-by: Felix Zeng <felix.zeng@rock-chips.com>
Change-Id: I861dd571e7229befe424842c06a5d249e34abf67
2023-11-30 15:29:55 +08:00
Elaine Zhang
f23554b1ad soc: rockchip: Add rockchip_disable_unused driver
Change-Id: I86f6fe8d45ea655910bfb9e96f887aa0cc30dd80
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2023-11-30 15:16:59 +08:00