Commit Graph

1268760 Commits

Author SHA1 Message Date
Elaine Zhang
46edc7c867 clk: rockchip: rk3576: add CLK_SET_RATE_NO_REPARENT for ebc
Change-Id: If6f10948f96156b9a26cb10c7bf8f7edac6038bb
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2024-03-29 14:23:22 +08:00
Shawn Lin
0948d9e34a scsi: ufs: rockchip: Add UFSHCD_CAP_CLK_SCALING support
Change-Id: Ib6e1ba78050ac8b9e0378daadb1adfe498cddfb1
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
2024-03-29 14:21:33 +08:00
Shawn Lin
cb8351ae3e arm64: dts: rockchip: rk3576: Add freq-table-hz for UFS
aclk_ufs_sys shows a significant IO improve by dd testing, nearly 10%, if
we improve it to 250MHz when scaling up in devfreq. And scaling it down to
50MHz when there is no transaction.

Change-Id: I02a07d6c429737fc6bdaf18572eee1b3095d4945
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
2024-03-29 14:21:33 +08:00
Sandy Huang
3c6c24f6c0 drm/rockchip: vop2: use VOP_MODULE_GET() instead of read register direct
Different platform register bit offset is different, so use VOP_MODULE_GET() to
get the wb_en and wb_wb_vp_id is more reasonable.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Ief2a9b93736589f41e5eb43c686114f4b13ace4a
2024-03-29 11:11:31 +08:00
Damon Ding
6f164a7839 drm/rockchip: vop2: add version check and comment for disabling the aclk pre auto gating
This is a workaround for RK3528/RK3562/RK3576:

The aclk pre auto gating function may disable the aclk
in some unexpected cases, which detected by hardware
automatically.

For example, if the above function is enabled, the post
scale function will be affected, resulting in abnormal
display.

Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: Ia646c77e8010d81d5da390264e61b50ae4898464
2024-03-29 10:17:54 +08:00
David Wu
72834b57d9 ethernet: stmmac: Release reset gpio desc for mdio reset
For some PHYs, it is necessary to reset the PHY after waking up from
sleep to ensure that it works properly.

Change-Id: I629c12096060c8b5ac1a33dfd5a90a85adddec44
Signed-off-by: David Wu <david.wu@rock-chips.com>
2024-03-29 10:10:47 +08:00
Wangqiang Guo
04f2f036ba input: sensor: fix icm42607 deep sleep auto-rotate fail.
Type: Fix
Redmine ID: #469056
Associated modifications: null.
Test: deep sleep then test Automatic turnover.

Change-Id: I5e45b0dd5724763d5b73d97b3556b53d27004f13
Signed-off-by: Wangqiang Guo <kay.guo@rock-chips.com>
2024-03-28 20:37:04 +08:00
Shunhua Lan
796a9926cc ASoC: rockchip: multicodecs: add hp and sp switch for user switch setting
Signed-off-by: Shunhua Lan <lsh@rock-chips.com>
Change-Id: I49503453158fca5568af5975ad42a20809d4bd1c
2024-03-28 20:36:29 +08:00
Xueman Ruan
21ed70dc68 video: rockchip: mpp: fix vdpp irq_status hack error
Fixes: 32f89579b8 ("video: rockchip: mpp: Add vdpp subdevice refer codes")
Change-Id: Ic2d3d2a80c2b6bcd3a302893b300cfc16d047a05
Signed-off-by: Xueman Ruan <xueman.ruan@rock-chips.com>
2024-03-28 20:30:38 +08:00
Ding Wei
f176950cef video: rockchip: mpp: Set clk_sel to clk_rkvdec_core for vdpu383
clk_sel:
    0-aclk_rkvdec_root_bak
    1-clk_rkvdec_core

Change-Id: I6f0e011587228c6a15fd67c895c4b76dbdad40ed
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
2024-03-28 20:28:46 +08:00
Xu Xuehui
b127652f30 net: phy: motorcomm: support YT8011 Automotive Gigabit Ethernet
Signed-off-by: Xu Xuehui <xxh@rock-chips.com>
Change-Id: I6ca777f3f3af4c778404e848755f8223aede14f8
2024-03-28 20:25:46 +08:00
Jianwei Fan
39afee029e media: i2c: rk628: enable CSI/DSI before enable HDMI video
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: I86f57202811a5616d774be5e67538adb34fdb5e2
2024-03-28 20:20:50 +08:00
Liang Chen
c48fad7057 arm64: dts: rockchip: rk3576-rk806: remove regulator-always-on for vdd_npu
Disable vdd_npu when npu is suspended to save power.

Signed-off-by: Liang Chen <cl@rock-chips.com>
Change-Id: I6459790d55969f2cb5083c39eaa671b2a87d21f9
2024-03-28 20:19:55 +08:00
Liang Chen
c5c580568d driver: rknpu: enable regulator when suspend
BL31 will check pd stats when suspend, if vdd_npu is disabled,
pd stats will be wrong and cause system reboot.

Signed-off-by: Liang Chen <cl@rock-chips.com>
Change-Id: I887da586b99ee1ee6b8e5b0c376e2aaf7a26093d
2024-03-28 20:19:55 +08:00
Lin Jianhua
7c82b0b5d7 arm64: dts: rockchip: enable vccio3 io-retention for rk3576 industry evb
Change-Id: Ie06221442700d718b4ed75cb0c04898b43a102df
Signed-off-by: Lin Jianhua <linjh@rock-chips.com>
2024-03-28 20:19:20 +08:00
Lin Jianhua
3133e46dda arm64: dts: rockchip: rk3576-industry-evb: uart1 support rs485 mode
Change-Id: Iba37469557ebaa7bdd3105ae203eb49914998892
Signed-off-by: Lin Jianhua <linjh@rock-chips.com>
2024-03-28 20:18:47 +08:00
Lin Jianhua
f9e4384b36 arm64: rockchip_linux_defconfig: enable can and canfd for rk3576
Change-Id: If1dfbe96a2c29b18d84172a2bb90e1fa51b8d788
Signed-off-by: Lin Jianhua <linjh@rock-chips.com>
2024-03-28 20:17:51 +08:00
Sugar Zhang
7fe38189aa arm64: dts: rockchip: rk3588: Add power-domain for MCLKOUT_I2Sx
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I5f9b38bc8a50915fc86b4969f231960614e017de
2024-03-28 20:01:07 +08:00
Zhang Yubing
1700ff17d4 drm/rockchip: dw-dp: fix no export symbols for GKI
In GKI, the drm_debugfs_remove_files can't be find in the
exported symbols list. Avoid call this function when build
modules for GKI.

Change-Id: If0921670931511f8a34adb5affbc6f5b9245732c
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2024-03-28 15:48:03 +08:00
Zhang Yubing
b7d13294d3 drm/rockchip: dw-dp: align hfp with 2 pixels
The DPTX controller limit the hfp aligned 2 pixels. if it not
aligned with 2 pixel. It may be not display normally.

Change-Id: I3b64182d2fa67285ba8192b588eb06545a9f2244
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2024-03-27 18:55:56 +08:00
Liang Chen
48987319f9 arm64: dts: rockchip: rk3576: add cpu idle-states
Signed-off-by: Liang Chen <cl@rock-chips.com>
Change-Id: Ia3094a7194abd12114db3ee81072ce9e099213f3
2024-03-27 17:41:09 +08:00
Xu Xuehui
bfa3a2200a arm64: dts: rockchip: rk3576-vehicle-evb: fix phydisb pinctrl for gmac0
Signed-off-by: Xu Xuehui <xxh@rock-chips.com>
Change-Id: Icaaaefcb55716ae1bf3c357ea4082f946d0fe982
2024-03-27 16:54:11 +08:00
Jianwei Fan
e99d0a6604 media: platform: vicap: fix vicap buf round when hdmi2csi for rk3588 and later
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: Ifcb644d93d3f3493b1f1df5afac23b9cbfb3b6db
2024-03-27 15:19:05 +08:00
Weixin Zhou
a00fe0ff5d arm64: dts: rockchip: rk3576-ebook: enable tsadc
Signed-off-by: Weixin Zhou <zwx@rock-chips.com>
Change-Id: Id4b5412047f1b93e4de17ad3fa669431262b8ad7
2024-03-27 11:35:07 +08:00
Jon Lin
3ba2953faa mtd: spinand: dosilicon: Support new device
DS35M4GB-IB, DS35Q4GB-IB, DS35Q12C-IB, DS35M12C-IB

Change-Id: I0c6f02b4391f058447d1ddaf4bce33b0e5442bf8
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-03-26 21:40:48 +08:00
Chaoyi Chen
002120b4c1 drm/rockchip: Add common interface for rockchip_drm_is_afbc/rfbc
rockchip_drm_is_abfc() / rockchip_drm_is_rfbc() is used to determine
if the frame buffer is in afbc or rfbc format. The same code can be
shared between different rockchip vop architectures.

Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com>
Change-Id: I7c409a09044aa54e0690eed29551a6b3416fb10c
2024-03-26 19:31:41 +08:00
Xu Xuehui
700dda3539 rtc: s35390a: enable 32K status register
Signed-off-by: Xu Xuehui <xxh@rock-chips.com>
Change-Id: Ie723fa0b3656d2862aba1e56b2fcfa4e77d6027e
2024-03-26 17:48:25 +08:00
Lin Jinhan
c58b0cefaa crypto: rockchip: skip hash/tag valid check for V4
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
Change-Id: I52fb9608dfa50b5049e14397e68e8e04edab3877
2024-03-26 17:45:30 +08:00
Wu Liangqing
75cfb32865 arm64: dts: rockchip: rk3576-tablet: set PWRON_ON_TIME 500ms
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
Change-Id: I975e622cb6ae0bbc0325367baeda65ceaf2990c7
2024-03-26 17:41:37 +08:00
Xu Xuehui
4f750b4572 arm64: rk3576_vehicle.config: enable RTC_DRV_S35390A
Signed-off-by: Xu Xuehui <xxh@rock-chips.com>
Change-Id: I8ca43e596a4d275c70d5f2ac59aabb80345d7355
2024-03-26 14:32:30 +08:00
Xu Xuehui
4bd2abe950 arm64: dts: rockchip: rk3576-vehicle-evb: enable uart5 for gnss
Signed-off-by: Xu Xuehui <xxh@rock-chips.com>
Change-Id: I248d3178444105a76c42230c536f3775819905ac
2024-03-26 14:32:30 +08:00
Ding Wei
ad38ebefe5 arm64: dts: rockchip: rk3576: Update the clk for the hevc_ca
For rk3576, the signoff clock of the hevc_ca is 1G.

Change-Id: Idba9fc08f6e24a26e20901c347fa3ac9f1054c4a
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
2024-03-26 14:25:57 +08:00
Ding Wei
b6a726b6ca video: rockchip: mpp: rkvdec2: init the value of max outstanding reads
tips: If not init, it can be any value, when power on.

Change-Id: I64569e0e24c61f718ecec6b8da0e695a7ed25195
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
2024-03-26 08:57:02 +08:00
Jianwei Fan
e6d387b501 iommu: rockchip: modify driver probe early when enable CONFIG_VIDEO_REVERSE_IMAGE
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: I0721c416eac6d83c61666e254df9a52ddc5d4739
2024-03-25 20:00:28 +08:00
Wang Panzhenzhuan
f2aca31d8b arm64: configs: add rockchip_vehicle_reverse.config for vehicle fast reverse
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: I375bddc26eb1bf273335af38f776d708239112c2
2024-03-25 17:15:17 +08:00
Zorro Liu
ca3525c441 input: sensors: hall: add ebc fb notify for mh248
Change-Id: Ibafbb35dfac4636a444fa8a0dfd679a052ef035a
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
2024-03-25 17:06:55 +08:00
Zorro Liu
2ef8801a98 soc: rockchip: rockchip_system_monitor: include linux/ebc.h
Change-Id: Iea8a4bb08acec0eb27446c4e645bcc6f9c4087d4
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
2024-03-25 17:06:39 +08:00
Zorro Liu
020b9ddb80 input: tp_suspend: include linux/ebc.h
Change-Id: Idb5b67c0300d504023383f654cb9b9404d306e92
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
2024-03-25 17:06:21 +08:00
Zorro Liu
97872f0a58 include: linux: add ebc.h
Change-Id: Id475a878e770f37f9110391d8864f8fcccbd3bfa
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
2024-03-25 17:01:34 +08:00
Zhang Yubing
32d4d06685 drm/rockchip: dw-dp: support dump dp mst info
Change-Id: I88d458a69c36af2db09c959c4dae42f8269e69fb
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2024-03-25 16:49:18 +08:00
Ye Zhang
a03a86ca9d FROMLIST: thermal: devfreq_cooling: Fix perf state when calculate dfc res_util
The issue occurs when the devfreq cooling device uses the EM power model
and the get_real_power() callback is provided by the driver.

The EM power table is sorted ascending,can't index the table by cooling
device state,so convert cooling state to performance state by
dfc->max_state - dfc->capped_state.

Fixes: 615510fe13 ("thermal: devfreq_cooling: remove old power model and use EM")
Cc: 5.11+ <stable@vger.kernel.org> # 5.11+
Signed-off-by: Ye Zhang <ye.zhang@rock-chips.com>
Reviewed-by: Dhruva Gole <d-gole@ti.com>
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
Link: https://lore.kernel.org/all/20240321102100.2401340-1-ye.zhang@rock-chips.com/
Change-Id: Id798d67d913c95b59095bc1d06497fb23d644637
2024-03-25 16:48:15 +08:00
shengfei Xu
8b2140d905 power: supply: rockchip_charger_manager: Update charging function
Add the following features:
1. Support DC detection
2. Support 4:1 mode charge pump charging
3. Support charging temperature control

Signed-off-by: shengfei Xu <xsf@rock-chips.com>
Change-Id: I9b2dc18fd59a6926f8a40bdf38a2e6aba3820cb9
2024-03-25 16:47:14 +08:00
Sugar Zhang
6d9f8e6931 arm64: dts: rockchip: rk3576: Add power-domain for MCLKOUT_SAIx
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I89a267cbc6d25415b4758f5a17d819983e2152c2
2024-03-25 14:33:26 +08:00
Yu Qiaowei
ba424a5b94 video: rockchip: rga3: get clk through dts
Update driver version to 1.3.3

Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I99175b79f4aa669c772b53c0c414122361173c2a
2024-03-25 14:15:28 +08:00
Yu Qiaowei
d3ef937537 video: rockchip: rga3: probe using dev_err/dev_info
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I6a62bd444ecf5e521d6dbce3c8a507e637770bb1
2024-03-25 14:15:15 +08:00
Yu Qiaowei
4f79b4e8d9 arm64: dts: rockchip: rk3576: modify compatible and clock-names of rga_node
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I3abad87dde92e05bf6d156f6b207b30e0ddd7a5a
2024-03-25 14:14:54 +08:00
Yu Qiaowei
6e39594c7b video: rockchip: rga3: fix for dts compatibility
Remove the expression core0/core1 in compatible of dts.

Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: Ia1a4c09d2f9194458bdc6a62d465bcaaf8c6076a
2024-03-25 14:14:44 +08:00
Yu Qiaowei
78f5fae279 video: rockchip: rga3: fixed crash caused by failure to get_clk
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: Ic6ead5efae8ca63e2e6960a7990a0d936b9d75a8
2024-03-25 14:14:44 +08:00
Felix Zeng
8c61367c57 driver: rknpu: Update rknpu driver, version: 0.9.6
* Add rknpu iommu domain switch support

Signed-off-by: Felix Zeng <felix.zeng@rock-chips.com>
Change-Id: Ifa756eee01d2d7002ca78a0e1f36ba92a01f4454
2024-03-22 19:39:41 +08:00
Zhang Yubing
21084cb7e0 drm/rockchip: dw-dp: get hdcp status when irq coming
The hdcp irq status need clear as soon as possible.

Change-Id: I17eda476d30fec6f57f53c1de25e8a0e7dc3f5b2
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2024-03-22 19:17:27 +08:00