Commit Graph

1268799 Commits

Author SHA1 Message Date
Luo Wei
71aaf6009f arm64: dts: rockchip: rk3576-vehicle-evb: fix max96745 pwm problem
Signed-off-by: Luo Wei <lw@rock-chips.com>
Change-Id: Ia83c278c8e38f0cead5d31a0196ef0900b510b82
2024-04-02 10:29:33 +08:00
Luo Wei
3e52abf629 mfd: display-serdes: fix backlight null problem
Signed-off-by: Luo Wei <lw@rock-chips.com>
Change-Id: Ia2397e312d380c5d4fd207a72d34cf805e9da6e5
2024-04-02 09:11:02 +08:00
Yifeng Zhao
b80127f107 mmc: sdhci-of-dwcmshc: set RK_TAP_VALUE_SEL flag for rk3568 and rk3588
Set RK_TAP_VALUE_SEL flag to disabled dll auto update feature.

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: Id28b1800b8a4728c9919a75669b3f7e35ead18fd
2024-04-01 18:57:48 +08:00
Jianwei Fan
5229230d5c media: i2c: rk628: fix mipi dphy1 init by chip version
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: I1ecd099dde68b0caeaef9914a186660d5fa6e3f9
2024-04-01 18:47:35 +08:00
Weixin Zhou
750397f5bf arm64: dts: rockchip: rk3576-ebook: enable uboot charge
Signed-off-by: Weixin Zhou <zwx@rock-chips.com>
Change-Id: Idbc9c230c046807ebc0c88cc220e7e620ea68635
2024-04-01 17:38:07 +08:00
Sandy Huang
4796d94c3b drm/rockchip: vop2: enable vop urgency signal output for rk3576
The urgency signal can improve the performance of VOP accessing DDR, since VP0
support 4K120hz output, it usually needs high performance and bandwidth, so it's
enabled at RK3576 VP0.

RK3576 VP0 has 8 lines post linebuffer, when full post line buffer is less 4,
the urgency signal will be set to 1, when full post line buffer is over 6, the
urgency signal will be set to 0.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: If96a3bda6728b1faa36d03f0ae6f71b6a60558a3
2024-04-01 15:20:28 +08:00
Sandy Huang
84e4e6277c drm/rockchip: drv: remove unused rockchip_drm_get_dclk_by_width()
We can get the vp max dclk rate from vop reg data, so the function
rockchip_drm_get_dclk_by_width() is unused now.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I88ccb372cdd75db008bcf5ec7913924d046240b8
2024-04-01 15:18:51 +08:00
Sandy Huang
742e1e510b drm/rockchip: vop2: use pixel rate to verify vp performance
get vp max dclk rate from vop reg data is more correct, so we use it to
verify vp performance and report to userspace.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I1e590322829e551814ba84bf22d60a4e82b407d1
2024-04-01 15:18:40 +08:00
Sandy Huang
5a55616dcf drm/rockchip: vop2: add more debug info
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I668a943c07ffa424612259087faf38add1cd4e4e
2024-04-01 15:18:29 +08:00
Damon Ding
73ff3af384 arm64: dts: rockchip: rk3576: add second pd RK3576_PD_VO0 for vopl
The vopl is in RK3576_PD_VPU, but the 1to4 module is in
RK3576_PD_VO0.

Change-Id: Ided487b8a53f405a0172800fc1d3e1b4ab0283d6
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2024-04-01 14:20:40 +08:00
Damon Ding
7e45c8a92c drm/rockchip: vop: add multiple power domains support
For rk3576 vopl, the vopl is in RK3576_PD_VPU, but the
1to4 module, which helps to support eDP/HDMI/MIPI, is
in RK3576_PD_VO0.

Change-Id: I56e5f640c5fe94e6aa7cc4c7fb79df27e1410a00
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2024-04-01 14:20:40 +08:00
shengfei Xu
46bee21f7d regulator: rk806: Solve PWRCTL2/3 level inconsistency in the suspend/resume
Delete the code that forcibly modifies the PWRCTRL2 and PWRCTRL3 function.

Signed-off-by: shengfei Xu <xsf@rock-chips.com>
Change-Id: I25426e2a0d1794e1d52d87e8e157983b4e4b1021
2024-04-01 14:17:42 +08:00
shengfei Xu
205aaf1b9b regulator: rk806: Solve the initialization of non integer multiple step voltage
Resolve system error caused by the set voltage not being an integer
multiple of the uV_step.

Signed-off-by: shengfei Xu <xsf@rock-chips.com>
Change-Id: Icdae0985e0173289c66c1d6cc182da92508acd4c
2024-04-01 14:17:42 +08:00
shengfei Xu
3a4532abef power: supply: rockchip_charger_manager: supports JEITA profile
Supports JEITA profile when charging with the PD charger inserted.

Signed-off-by: shengfei Xu <xsf@rock-chips.com>
Change-Id: I02e417ae660f64f684ff03b429e44282c1911ab1
2024-04-01 14:17:42 +08:00
Wu Liangqing
a2a6ee5b39 arm64: dts: rockchip: rk3576-evb: enable i2c2
Change-Id: Ifad6f84e9114a476ed95c94989df377746401583
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
2024-04-01 09:35:14 +08:00
Sandy Huang
8a8629fbde ARM: dts: rockchip: rv1126: Fixes warning in unit address of drm-logo
/reserved-memory/drm-logo@00000000 refers to a node in the device tree.
The part after the @ symbol is the unit address, which should match the
physical or logical address of the device or memory region being
described.

The warning indicates that the unit name (in this case, 00000000) should
not have leading zeros. This is more about adhering to conventions and
ensuring compatibility and readability than about functional
correctness.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I5052698913a2ff8202dbc0f8c2144acd48cb4ac5
2024-04-01 09:21:01 +08:00
Sandy Huang
b5b88f4b97 ARM: dts: rockchip: Fixes warning in unit address of drm-logo
/reserved-memory/drm-logo@00000000 refers to a node in the device tree.
The part after the @ symbol is the unit address, which should match the
physical or logical address of the device or memory region being
described.

The warning indicates that the unit name (in this case, 00000000) should
not have leading zeros. This is more about adhering to conventions and
ensuring compatibility and readability than about functional
correctness.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I852aeecd22f5485790548a749f49bce4d1aa5ed9
2024-04-01 09:16:07 +08:00
Sandy Huang
7e2effdcac arm64: dts: rockchip: rk3562: Fixes warning in unit address of drm-logo
/reserved-memory/drm-logo@00000000 refers to a node in the device tree.
The part after the @ symbol is the unit address, which should match the
physical or logical address of the device or memory region being
described.

The warning indicates that the unit name (in this case, 00000000) should
not have leading zeros. This is more about adhering to conventions and
ensuring compatibility and readability than about functional
correctness.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I1dcb3212dcab9c7fb45caab428d5e25dd4860a45
2024-04-01 09:13:41 +08:00
Sandy Huang
1c670a89ed arm64: dts: rockchip: rk3328-evb: Fixes warning in unit address of drm-logo
/reserved-memory/drm-logo@00000000 refers to a node in the device tree.
The part after the @ symbol is the unit address, which should match the
physical or logical address of the device or memory region being
described.

The warning indicates that the unit name (in this case, 00000000) should
not have leading zeros. This is more about adhering to conventions and
ensuring compatibility and readability than about functional
correctness.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Ied5062144df7936cdd0a7476a62ccb03bfdcca0d
2024-04-01 09:13:18 +08:00
Sandy Huang
a0cb0a7dc8 arm64: dts: rockchip: rk3308: Fixes warning in unit address of drm-logo
/reserved-memory/drm-logo@00000000 refers to a node in the device tree.
The part after the @ symbol is the unit address, which should match the
physical or logical address of the device or memory region being
described.

The warning indicates that the unit name (in this case, 00000000) should
not have leading zeros. This is more about adhering to conventions and
ensuring compatibility and readability than about functional
correctness.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I947dc5b7e94bf1e1ba231eb6d6d6ef22390c5f62
2024-04-01 09:12:40 +08:00
Sandy Huang
2f8fbe0ac7 arm64: dts: rockchip: Fixes warning in unit address of drm-logo
/reserved-memory/drm-logo@00000000 refers to a node in the device tree.
The part after the @ symbol is the unit address, which should match the
physical or logical address of the device or memory region being
described.

The warning indicates that the unit name (in this case, 00000000) should
not have leading zeros. This is more about adhering to conventions and
ensuring compatibility and readability than about functional
correctness.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I0e3971d091e7935eab34db03ab55bbcf6dad1fb7
2024-04-01 09:11:51 +08:00
Damon Ding
2c7c07a288 arm64: dts: rockchip: rk3576-test1: add vopl mipi display dts
Change-Id: Ifb782a800b70a0c24ef00b66ca92f5bb080656b6
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2024-03-29 19:55:58 +08:00
Elaine Zhang
a84d45aa54 clk: rockchip: rk3576: remove CLK_IS_CRITICAL for lpll and bpll
litcore and bigcore use pvtpll, lpll and bpll if not used allow disabled.

Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: I1a625ccd2d9f299400ccaa518bb0496fdbf07f11
2024-03-29 19:48:54 +08:00
Jianwei Fan
6f07080e05 arm64: dts: rockchip: rk3576-evb1: add image reverse demo
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: I88a49c71a23304c590bb704ea60a1430e6d5d564
2024-03-29 19:23:51 +08:00
Jianwei Fan
8291933430 video: rockchip: vehicle: add rk3576 support image reverse
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: I5319bc7df0af265da1617b4df241d888f0bdedb5
2024-03-29 19:23:30 +08:00
Caesar Wang
db1b6ef571 arm64: dts: rockchip: Fixes warning in unit address of drm-logo for rk3576-android.dtsi
/reserved-memory/drm-logo@00000000 refers to a node in the device tree.
The part after the @ symbol is the unit address, which should match the
physical or logical address of the device or memory region being described.

The warning indicates that the unit name (in this case, 00000000) should
not have leading zeros. This is more about adhering to conventions and
ensuring compatibility and readability than about functional correctness.

Change-Id: Ifc2a7931c6a1dc43a390721a24250e9a80747cb4
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
2024-03-29 19:20:25 +08:00
Caesar Wang
84540c6335 arm64: dts: rockchip: Fixes warning in unit address of drm-logo for rk3576-linux.dtsi
/reserved-memory/drm-logo@00000000 refers to a node in the device tree.
The part after the @ symbol is the unit address, which should match the
physical or logical address of the device or memory region being described.

The warning indicates that the unit name (in this case, 00000000) should
not have leading zeros. This is more about adhering to conventions and
ensuring compatibility and readability than about functional correctness.

Change-Id: I85adad8caac6e2bfef0703640fecb6ff2c20b4f8
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
2024-03-29 19:20:25 +08:00
Luo Wei
8b65e45472 arm64: dts: rockchip: rk3588-vehicle-evb: close otg 5v
Signed-off-by: Luo Wei <lw@rock-chips.com>
Change-Id: I55630f9ac8fbca749504088af6752c02bc871788
2024-03-29 19:17:17 +08:00
Luo Wei
85067b3146 arm64: dts: rockchip: rk3576-vehicle-evb: update usb config
Signed-off-by: Luo Wei <lw@rock-chips.com>
Change-Id: I3bb671332ec636a75153018e5b7c356d58110db3
2024-03-29 19:16:43 +08:00
Luo Wei
50b575df6a arm64: dts: rockchip: rk3576-vehicle-evb: enable dsi route default
Signed-off-by: Luo Wei <lw@rock-chips.com>
Change-Id: If96be2015920cdac3d1fc78404e1ab027dc84164
2024-03-29 19:16:43 +08:00
Elaine Zhang
c3b2ae5f10 net: can: rockchip: Fixed compilation errors caused by kernel update
drivers/net/can/rockchip/rockchip_canfd:24:24: fatal error:
linux/can/led.h: No such file or directory

Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: I275af809bc9287ba2b5855164166aebcb348e259
2024-03-29 17:11:19 +08:00
Damon Ding
664c1ecc28 drm/rockchip: logo: add protect clocks for rk3576 vopl logo display
Change-Id: I12718cd9ac488f82fc4195c8ab3984caf4089740
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2024-03-29 16:29:58 +08:00
Elaine Zhang
3e366e3225 clk: rockchip: rk3576: remove all clk_extref_timeout_xxx
clk_extref_timeout_xxx is noc timeout function,
For debug the bus blocked, so use default status.

Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: I01a79f5fe834141cc066934e628f4375505fc707
2024-03-29 16:17:22 +08:00
Jason Zhu
c747ceb990 ASoC: codecs: rk_dsm: fix typo
There is no PWM function in DSM. Rename it as DSM.

Change-Id: I8d37a3b559c017d2f6dd6bdae9e70a77f0ea8038
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
2024-03-29 16:07:24 +08:00
Ding Wei
51020e2c46 arm64: dts: rockchip: rk3576: Add aclk_rkvdec_root_bak for rkvdec
aclk_rkvdec_root_bak only used by av1 decoder, while other formats
use aclk_rkvdec_root.

Change-Id: I106b61ff6125ea220231ea264cee43201afbbeaf
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
2024-03-29 15:23:52 +08:00
Elaine Zhang
3b55f28039 clk: rockchip: rk3576: export aclk_rkvdec_root_bak clk id
aclk_rkvdec_root and aclk_rkvdec_root_bak are automatically switched by
hardware to achieve high-performance.

Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: I49e20b86f93331b7c45054d0b42a71b897d391c4
2024-03-29 15:23:28 +08:00
Damon Ding
bbeca6dfc2 drm/rockchip: vop: use rockchip_drm_dclk_set_rate() for some special pll
In addition, fix the version check process to switch
for efficiency and readability.

Change-Id: I372e528f61403a72ea574de5aae28174ef3f95fa
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2024-03-29 14:44:36 +08:00
Sandy Huang
a24880f2a4 drm/rockchip: vop2: correctly config pld_ptr_range for rk3576
pld_ptr_range need config fb size to prevent afbc payload out of range
access.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I93392b065fd13bb3cd7e98c924317019b35a79ea
2024-03-29 14:30:37 +08:00
Elaine Zhang
ec2b60a5a5 clk: rockchip: rk3576: add protect clocks
Change-Id: I76e1197edc5f2e7582d28567e6a5927c9be5e0ab
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2024-03-29 14:23:22 +08:00
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