Commit Graph

1276936 Commits

Author SHA1 Message Date
Cai YiWei
cb47ff8054 media: rockchip: isp: add sensor exposure for isp30 and isp39
Change-Id: I81f52e021b56fe6e325fea68e8aece0fad9aab3c
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2024-12-12 18:43:46 +08:00
Tao Huang
2e9b7c3310 Revert "phy/rockchip: Add support for INNOSILICON MIPI/LVDS/TTL Video Combo PHY"
This reverts commit 8c63ba97d0.
This driver is unused since linux 5.10, drop it.

Change-Id: I771562e11fafe79ea725741f4a53257c4b8b2445
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2024-12-12 18:38:50 +08:00
Tao Huang
aeb7e8d7bf Revert "rk3288:syb827:rename syb827 to syr82x for hardware modify"
This reverts commit f415a98e9f.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I2de938be384625256f7ebf5d90832b3d893ffd0b
2024-12-12 18:27:21 +08:00
Tao Huang
6deb8d8c14 clk: rockchip: Fix typos in Rockchip copyright notices
There are many cases in which the company name is misspelled.
The patch fixes these typos.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I5d658b8a60411257afa860c8e5679187ca94ece0
2024-12-12 14:19:07 +08:00
Jiang Yu
f0f6779501 arm64: dts: rockchip: rk3576-amp: Add some nodes and interrupt configurations for amp rpmsg
1.Add the node of reserved-memory in rk3576-evb1-v10-linux-amp.dts
2.Add reserved-memory node, rpmsg node and the interrupt route for
amp rpmsg in rk3576-amp.dtsi

Change-Id: I8268815c12f7f8fa7a3d5518c8208bbea087d7e7
Signed-off-by: Jiang Yu <yu.jiang@rock-chips.com>
2024-12-12 14:17:05 +08:00
Zefa Chen
09610469c5 media: rockchip: vicap support to get sensor effect exp info
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Iaa67bf235437e1a4e42bee87e78352496ba7f086
2024-12-12 14:09:32 +08:00
Zhen Chen
10f2e76f0c Mali: utgard: No to call dma_fence_signal(), when checking whether fence has been signaled
Modify the recently introduced calls to dma_fence_is_signaled() to exclude
the invocation of dma_fence_signal().
Before this change, running stress tests such as devicetest could result in
deadlock related to the aforementioned dma_fence_signal().

Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
Change-Id: Ibf6f86ae0474ed8fad94b5be58b0b79133755b47
2024-12-12 14:09:07 +08:00
Yu Qiaowei
fb2702ef30 video/rockchip: rga2: fix compile error on dma-buf-cache
Update driver version to 2.1.1

Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I84da3bbb395a98db52ef750e8c34692fec07c4a6
2024-12-12 10:51:48 +08:00
Damon Ding
07bc6420d1 pwm: rockchip: fix the comment for the tx_value of IR transmit function
Fixes: 9be1108fc5 ("pwm: rockchip: add support for IR NEC transmit")
Change-Id: I90ccf6131178d619ed4205886e28960a9a6c384b
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2024-12-12 10:40:22 +08:00
Tao Huang
9ea235c717 ARM: rv1126_defconfig: Enable CONFIG_LD_DEAD_CODE_DATA_ELIMINATION
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ied988470fac9baec372e886ffdf3f6f6785e3128
2024-12-12 10:34:19 +08:00
Tao Huang
f118ccc8a6 ARM: rv1126_defconfig: Disable CONFIG_IO_URING
IO_URING is not available on kernel 4.19.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Icd4321a29db8df0eb6ed8e46467895fd1007bf0d
2024-12-12 10:34:19 +08:00
Tao Huang
b91acc7d36 ARM: rv1126_defconfig: Enable CONFIG_MEDIA_SUPPORT_FILTER
+CONFIG_MEDIA_SUPPORT_FILTER=y
-CONFIG_MEDIA_SUBDRV_AUTOSELECT
+CONFIG_MEDIA_CAMERA_SUPPORT=y
+CONFIG_MEDIA_PLATFORM_SUPPORT=y

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I77013e146279065a28bc65e86219b0f432d59d7c
2024-12-12 10:34:19 +08:00
Tao Huang
5ee38611d5 ARM: rockchip_defconfig: update by savedefconfig
CONFIG_VIDEO_V4L2_SUBDEV_API is selected by VIDEO_ROCKCHIP_ISP.
CONFIG_DRM_FBDEV_EMULATION depends on CONFIG_FB.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I30793b126827d7343595d566b04fa550b3472344
2024-12-12 10:34:19 +08:00
Tao Huang
c8fb522b11 ARM: rv1126_defconfig: Disable ZSTD
-CONFIG_RD_ZSTD
-CONFIG_UBIFS_FS_ZSTD

ZSTD is not available on kernel 4.19.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I8df0d943702b857de830b385b80e9bd913c87251
2024-12-12 10:34:19 +08:00
Tao Huang
5ca096da96 ARM: rv1126_defconfig: Enable configs default y on 4.19
+CONFIG_THERMAL_DEFAULT_GOV_POWER_ALLOCATOR=y
+CONFIG_THERMAL_GOV_POWER_ALLOCATOR=y
+CONFIG_ROCKCHIP_IPA=y
+CONFIG_ROCKCHIP_DEBUG=y

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I74fcd332cde256c3400c2e056746ade59e6049d0
2024-12-12 10:34:19 +08:00
Tao Huang
fecb432466 ARM: rv1126_defconfig: Enable CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT
CONFIG_DEBUG_INFO is replaced by CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I52d8a8851f15c9669b204607d9ced61c4982bdf4
2024-12-12 10:34:19 +08:00
Tao Huang
1b069866b8 ARM: rv1126_defconfig: Remove unused configs
-CONFIG_INITRD_ASYNC=y
e7cb072eb9 ("init/initramfs.c: do unpacking asynchronously").
replaced by upstream implementation.

-CONFIG_ARM_CRYPTO=y
4a329fecc9 ("crypto: Kconfig - submenus for arm and arm64").

-CONFIG_ZSMALLOC=y
b3fbd58fcb ("mm: Kconfig: simplify zswap configuration").

-# CONFIG_NET_VENDOR_AURORA is not set
19038523a7 ("net: remove aurora nb8800 driver").

-CONFIG_ANDROID=y
1045a06724 ("remove CONFIG_ANDROID").

-# CONFIG_DEBUG_PREEMPT is not set
db4677b350 ("lib/Kconfig.debug: do not enable DEBUG_PREEMPT by default")

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I14c764a3c17371d5628c0352538ab836fb6877ae
2024-12-12 10:34:19 +08:00
Tao Huang
84991aefae ARM: rv1126_defconfig: reorder configs for kernel 6.1
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I7dfa1a208ecf2631c32c8da49c1fffef05e67b4d
2024-12-12 10:34:19 +08:00
Yu Qiaowei
05f238f4ca arm: rv1126_defconfig: Enable CONFIG_ROCKCHIP_MULTI_RGA
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: If0e03892c2c797860efd9f6eb0762c5fb8ec367d
2024-12-12 10:34:19 +08:00
Zhichao Guo
c41c2d2f8a ARM: configs: modify rv1126_defconfig to support partition
Signed-off-by: Zhichao Guo <zhichao.guo@rock-chips.com>
Change-Id: I59161ea392cfbd366cf5c649ee95419333964a50
2024-12-12 10:34:19 +08:00
Damon Ding
53973e8938 ARM: rv1126_defconfig: Enable CONFIG_DRM_PANEL_SIMPLE_OF_ONLY
Select DRM_PANEL_SIMPLE_OF_ONLY as default on RV1126 SoC, so as to
reduce memory usage.

make ARCH=arm rv1126_defconfig
make ARCH=arm rv1126-evb-ddr3-v13.img -j32

./ksize.sh  drivers/gpu/drm/

before ksize: 556038 Bytes
after  kszie: 517946 Bytes
save   about: 38092  Bytes

Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: I9584bd8de16ed0ef1c4a862e71a1eb725c0d2833
2024-12-12 10:34:19 +08:00
Weiwen Chen
87ac63e67b ARM: configs: rv1126_defconfig: enable CONFIG_SQUASHFS_ZLIB
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: I873b3bc752c373ec11ea9c6b2a2501843901529b
2024-12-12 10:34:19 +08:00
Steven Chen
be582aa2a2 ARM: configs: rv1126_defconfig: support squashfs on ubi
Signed-off-by: Steven Chen <cw@rock-chips.com>
Change-Id: I53fe0ad952474f65b54da8a677b6f4f09f643f31
2024-12-12 10:34:19 +08:00
Tao Huang
28fbc81949 drm/rockchip: logo: Fix typo in error message
Change-Id: I136d46293d1efc28472869da95a3aa42e69243b2
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2024-12-11 19:58:36 +08:00
Chaoyi Chen
dddd9eb669 drm/rockchip: vop2: Clear vcstate output_type when crtc disable
Output interface may be changed after CRTC disabled. Clear it to keep
the same state as first started up.

Change-Id: I78ccebc3e0bd9592c2f0a0cdb9d911f3d3477d9d
Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com>
2024-12-11 19:42:05 +08:00
David Wu
4526fb661c ARM: dts: rockchip: rk3506: Set mac_ptp_ref clocks rate 62.5M defaultly
Change-Id: I0e5429a627f0924d4fc5f8a49433c6385379fabc
Signed-off-by: David Wu <david.wu@rock-chips.com>
2024-12-11 19:41:23 +08:00
XiaoDong Huang
ff83459a05 firmware: rockchip_sip: allocate a separate stack for fiq-debugger callback
SP will point to a invalid addr at some time in kernel
such as checking stack overflow, and system will crash
if fiq-debugger trigger at this time. To solve it, we
allocate a separate stack for fiq-debugger, and point
SP at the stack before return to kernel.

Change-Id: I1175ba032292d072fe2e4ae828d28313646091a7
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
2024-12-11 11:34:51 +08:00
XiaoDong Huang
88e72f3cdf firmware: rockchip_sip: don't update fiq_target_cpu in sip_fiq_debugger_uart_irq_tf_init
To fix problem in redmine #297983, make some rules about fiq_target_cpu:
The default value of fiq_target_cpu is zero and
can only be updated in sip_fiq_debugger_switch_cpu
or sip_fiq_debugger_enable_fiq.

View redmine#297983 for details.

Change-Id: I947a73c3ffc0c818a611e108a343f05b8465645b
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
2024-12-11 11:34:51 +08:00
Ye Zhang
bcf7482769 pinctrl: rockchip: add debug information when switching pinctrl to gpio.
Signed-off-by: Ye Zhang <ye.zhang@rock-chips.com>
Change-Id: I0038f0e5c5d269605ebd1df366f34d97f3bebe2b
2024-12-11 10:54:01 +08:00
Zefa Chen
226865acf0 media: rockchip: isp: add RKISP_VICAP_CMD_SOF cmd
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I43c7dc062e3bd06223b31a2cd491f81f0507a3da
2024-12-11 10:47:15 +08:00
Zefa Chen
f879f90a4e include: rkcif-config: add commands to support get sensor exp
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Ifc1c31ccdd58aa708609c6b9d9c85de58214b8c7
2024-12-11 10:47:15 +08:00
Zefa Chen
bc4a1b6cd2 media: i2c: imx415 support get exp info from sensor register
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I9884c54416da62d6e26c93688deb16ca26df7938
2024-12-11 10:47:15 +08:00
Zefa Chen
c134a041bc include: rk-camera-module.h add cmd to get sensor exp and delay info
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Ibf6a9474c84be8aafa1fd146f1cc454de0358cd6
2024-12-11 10:47:15 +08:00
Damon Ding
3426f0677e ARM: dts: rockchip: rk3506g-iotest: add IR transmit mode for pwm test
Change-Id: I8579f6149adc184d66f5dbfaa83825bd2c283e01
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2024-12-11 09:24:08 +08:00
Damon Ding
9be1108fc5 pwm: rockchip: add support for IR NEC transmit
Using RK3506 pwm1 channel0 as an DT configuration example:

&pwm1_8ch_0 {
	status = "okay";
	pinctrl-names = "active";
	pinctrl-0 = <&rm_io12_pwm1_ch0>;
	assigned-clocks = <&cru CLK_PWM1>;
	assigned-clock-rates = <100000000>;

	rockchip,pwm-ir-transmit;
};

Change-Id: I5e7a7a0925d6cba674ff91b117025b41b5be0387
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2024-12-11 09:24:08 +08:00
Tao Huang
aa7e11e715 drm/bridge: synopsys: Fix typos in Rockchip copyright notices
There are many cases in which the company name is misspelled.
The patch fixes these typos.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I83c33605abda3f7dfc62b3f01c043dd3ca4895f9
2024-12-10 20:02:58 +08:00
Tao Huang
54c210d3bf driver: rknpu: Fix typos in Rockchip copyright notices
There are many cases in which the company name is misspelled.
The patch fixes these typos.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ic971af644eec5ab13ff462ec7f2f059f17fdfcff
2024-12-10 19:58:43 +08:00
Tao Huang
3996192d9c soc: rockchip: Fix typos in Rockchip copyright notices
There are many cases in which the company name is misspelled.
The patch fixes these typos.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I92c9da8fe9f643bacc33726c0e3e0e93f2e4b4d1
2024-12-10 19:54:44 +08:00
Tao Huang
95ae79d422 power: supply: Fix typos in Rockchip copyright notices
There are many cases in which the company name is misspelled.
The patch fixes these typos.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I57152618c5e6ebb0bc4a1594b63b6351163e3360
2024-12-10 19:37:07 +08:00
Tao Huang
086ad83b14 phy: rockchip: Fix typos in Rockchip copyright notices
There are many cases in which the company name is misspelled.
The patch fixes these typos.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I2a1040d8fde05f1a87bd3929d7b5b7944ccdc61e
2024-12-10 19:34:40 +08:00
Tao Huang
b8489f3a1e net: can: rockchip: Fix typos in Rockchip copyright notices
There are many cases in which the company name is misspelled.
The patch fixes these typos.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I6ea3c5eb92f7b9688a32613fe44ebbaa2b9d6c7e
2024-12-10 19:18:35 +08:00
Tao Huang
a4fe3c5d0c media: i2c: Fix typos in Rockchip copyright notices
There are many cases in which the company name is misspelled.
The patch fixes these typos.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ib19c001a065c04ab0143449fe11fe799b5f3871f
2024-12-10 19:13:21 +08:00
Tao Huang
ace5101f37 media: i2c: nvp6158: Fix typos in Rockchip copyright notices
There are many cases in which the company name is misspelled.
The patch fixes these typos.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I6e181552d8f5fc0112aa72bd190c95d1833d9231
2024-12-10 19:12:47 +08:00
Tao Huang
8fc12e8c3b media: i2c: it66353: Fix typos in Rockchip copyright notices
There are many cases in which the company name is misspelled.
The patch fixes these typos.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I3f75fafd3d2518db8a1984ba0714a79559a2cca5
2024-12-10 19:10:35 +08:00
Tao Huang
083c798353 drm/rockchip: Fix typos in Rockchip copyright notices
There are many cases in which the company name is misspelled.
The patch fixes these typos.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ie8854cc66c61c262c0500afd9f5cd45577a1aaff
2024-12-10 19:08:44 +08:00
Shawn Lin
5ef8309d89 PCI: rockchip: dw: Enable L0s capability
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: I53f82c357045f883ddb03e5645aca207f7a7fd92
2024-12-10 19:06:33 +08:00
Shawn Lin
e15097537d PCI: rockchip: dw: Move dw_pcie_dbi_ro_wr_en() forward
Need to set dbi writable in the front of rk_pcie_host_config(),
otherwise the test settings couldn't be applied.

Fixes: c54772e75b ("PCI: rockchip: dw: Reorder and document steps of rk_pcie_really_probe()")
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: Icb62ef01ab5c16b7a7dba9cb82c9b0cfae5c40d6
2024-12-10 19:06:33 +08:00
Shawn Lin
bd84eb0c8d PCI: dw: rockchip: Fix s2r failure
Before commit 7f84caccd0 ("PCI: dw: rockchip: Define IO and Host
initialization interfaces"), ret is getting from rk_pcie_disable_power()
which should never fail actually. Now the final ret is getting from
phy_validate() which could return -EOPNOTSUPP. But we didn't care about
it if phy_validate() isn't implemented. So we see:

[   13.573777] rk-pcie fe150000.pcie: PM: dpm_run_callback(): genpd_suspend_noirq+0x0/0x60 returns -95
[   13.573800] rk-pcie fe150000.pcie: PM: failed to suspend async: error -95

Fix it by return zero to restore the previous behaviour.

Fixes: 7f84caccd0 ("PCI: dw: rockchip: Define IO and Host initialization interfaces")
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: I0c7c858937272f2b09ba4ae79c0a68c7a633ced0
2024-12-10 19:06:33 +08:00
Sandy Huang
38c677dda2 ARM: dts: rockchip: add RK3528 evaluation board devicetree
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I7fb4fe6f558d15c2318d7c930991028d37dd6876
2024-12-10 18:06:34 +08:00
Xu Xuehui
9196ac28d6 arm64: rk3588_vehicle.config: enable RTC_DRV_S35390A
Signed-off-by: Xu Xuehui <xxh@rock-chips.com>
Change-Id: I4a2b93a7fcebdbaad8c6b056296caa7f6b004f8e
2024-12-10 14:57:16 +08:00