Commit Graph

1268781 Commits

Author SHA1 Message Date
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
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