Commit Graph

1272132 Commits

Author SHA1 Message Date
Damon Ding
3e6bcbb063 drm/rockchip: rgb: add support for rk3506
It is needed to enable both dclk_bypass and data_bypass
in mcu mode.

Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: I019a2242a6566fa5cfad0d9b981f020dc755c241
2024-07-18 10:08:45 +08:00
Huibin Hong
5844aebe0f soc: rockchip: Adds CPU_RK3506 config
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
Change-Id: Ia4b66dabe6a582cf0a581a7d753d20381d571eca
2024-07-18 10:08:45 +08:00
Finley Xiao
b78cc5271c clk: rockchip: Add clock controller for the RK3506
Add the clock tree definition for the new RK3506 SoC.

Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Ib5e47bd03620cb7540fa827e29425c243f633a82
2024-07-18 10:08:45 +08:00
Finley Xiao
37685f392a clk: rockchip: add dt-binding header for rk3506
Add the dt-bindings header for the rk3506, that gets shared between
the clock controller and the clock references in the dts.
Add softreset ID for rk3506.

Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Id92261ad2a6cd68d192f2159f0f7f5edffa60a2d
2024-07-18 10:08:45 +08:00
Finley Xiao
898db17b55 dt-bindings: clock: add rk3506 cru bindings
Document the device tree bindings of the rockchip rk3506 SoC
clock and reset unit.

Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: If8c0e19fab9687d488ffce1607b8555f3e7cda35
2024-07-18 10:08:45 +08:00
Liang Chen
3226dac8ef clk: rockchip: clk-pvtpll: add support for rk3506
Signed-off-by: Liang Chen <cl@rock-chips.com>
Change-Id: Ie5f7e94a716ce2e2483cfd8f1604b6007c4d8c0d
2024-07-18 10:08:45 +08:00
Elaine Zhang
9ecb622e08 clk: rockchip: add support for pvtpll clk
add pvtpll_out internal clock setting.

Change-Id: I9d9273d0720166043b2f11e180715646be908d8f
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2024-07-18 10:08:45 +08:00
Damon Ding
d7d83d87f9 drm/bridge: Kconfig: DRM_SII0902X select HDMI if ROCKCHIP_MINI_KERNEL
Fixes: 7c7517b5c1 ("drm: Kconfig: CONFIG_DRM select CONFIG_HDMI if !ROCKCHIP_MINI_KERNEL")
Change-Id: I3146435048c242c053697e183fd4e3cf87d3592d
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2024-07-18 10:08:45 +08:00
XiaoDong Huang
f056cfd8cd firmware: rockchip_sip: support access mem_os_reg
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
Change-Id: Ic28ea22e37a03dcc4e930320ac59992affd5e765
2024-07-17 19:48:11 +08:00
Zefa Chen
14a361a75b media: rockchip: vicap fixes error of clean intr mask when stop stream
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I5678f52e8a527b38eaa96ad4ae35e94addee525d
2024-07-17 19:12:30 +08:00
Zefa Chen
27568f1756 media: rockchip: vicap fixes scale intr error
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Icd8f6dae6563c6ee7082e4ff158403faf80a37a0
2024-07-17 19:12:30 +08:00
Troy Lin
b21ab65f3a crypto: rockchip: Configure reserve block size based on CRYPTO version
CRYPTO_V2    : rk_hash_reserve_block = 128

CRYPTO_V3/V4 : rk_hash_reserve_block = 64

Signed-off-by: Troy Lin <troy.lin@rock-chips.com>
Change-Id: I2a22d6084cb0f111f54c73939180fa7bbed29ef0
2024-07-17 17:33:38 +08:00
Troy Lin
ec81e6557e crypto: rockchip: v2/v3: drop unused struct rk_ahash_expt_ctx
Signed-off-by: Troy Lin <troy.lin@rock-chips.com>
Change-Id: I5da997756902ba90da3393a085b08e2d903dc180
2024-07-17 17:33:38 +08:00
Xu Xuehui
74ec6378c5 rtc: s35390a: Correct RTC alarm behavior to maintain 32KHz output
When setting an RTC alarm, the S35390A_CMD_STATUS2 register will be
set again, which unintentionally disables the 32KHz output, this commit
adds the necessary configuration to set the S35390A_INT2_MODE_32K,
ensuring that the 32KHz output remains enabled at all times.

as a result of this change, the previous commit
7f151d9170 is no longer necessary.

Signed-off-by: Xu Xuehui <xxh@rock-chips.com>
Change-Id: I8607899676bd624e00032eeca1a21a0658f3b71a
2024-07-17 09:06:44 +08:00
Xu Xuehui
5b8d7ddc4d Revert "rtc: s35390a: set 32K register when resume"
This reverts commit 7f151d9170.

Signed-off-by: Xu Xuehui <xxh@rock-chips.com>
Change-Id: I4839139c400d73bcb1ecbed87604e7838bdd8173
2024-07-17 09:06:44 +08:00
Zhang Yubing
faf338e81a drm/rockchip: dw-dp: force-hpd get the connect status as connected
For force-hpd, It should be regard as always connected, so
it don't read the register to get the connect status.

Change-Id: I7082bb1ae56a640a43a800b9a934da7700e76de5
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2024-07-16 19:35:02 +08:00
Yu Qiaowei
aa2994fbdb video: rockchip: rga3: fix YUV-10bit offset calculation error
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I2a3719e396a129a8d805bd87f5b39365dbc34922
2024-07-16 16:25:19 +08:00
Sandy Huang
d126fcad4a drm/rockchip: vop2: move rk3588 pd control together
This is a merge error at following commit:

commit 32062f68cc ("drm/rockchip: vop2: update dsc pd status when show logo with dsc")

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I603abd28fb9e1ccdbb06fa1e25c3a64b35b8d293
2024-07-16 15:20:35 +08:00
Sandy Huang
40487a94b2 drm/rockchip: vop2: to access dsc register must after enable dsc pd and release reset
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I80d18b8f0b4dadc62c8304b5b62186691a684dd9
2024-07-16 15:20:35 +08:00
Sandy Huang
764ff0a4cb drm/rockchip: vop2: get power_ctrl default value and backup to regsbak
Read default register value and backup to regsbak must after pd power on, so we
can get correctly value, but the pd power on action depend on regsbak, so
we add extra regsbak for power_ctrl.

Fixes: 6282856b67 ("drm/rockchip: vop2: move power up plane pd before read regsbak")
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I465b0ec76d4e1233c40e79528ee42b5c5c2fb727
2024-07-16 15:20:35 +08:00
damon.ding
6e99cb3d84 phy/rockchip: samsung-hdptx: modify pe/vs/pll configs for R216/R243/R324/R432
According to the SI report, modify pe/vs configs of new
link rate R216/R243/R324/R432, which are configured to
nearby RBR/HBR/HBR2 configs in the past.

In addition, modify the pll configs to pass SSC test.

Change-Id: Ic10ea8289f47cfc93bd2c08231b76c68a6e4b4d2
Signed-off-by: damon.ding <damon.ding@rock-chips.com>
2024-07-16 15:17:51 +08:00
Binyuan Lan
a21414874a arm64: dts: rockchip: rk3576-tablet: add sleep property for es8388 pa control
fix es8388 pop issue

Signed-off-by: Binyuan Lan <lby@rock-chips.com>
Change-Id: I789da309197061e67bc9690654b76ad6fc043cf2
2024-07-16 15:13:57 +08:00
Wang Panzhenzhuan
71ea8ca835 media: i2c: gc05a2: add set flip & mirror support
note: gc05a2 flip & mirror use the same register;
but write value to the register not valid immediately,
so need record it in variable, to avoid being covered.

Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: Ice9c9fcefdbf9fa56a83f9b049e434cfe1c23bba
2024-07-16 15:01:50 +08:00
Sugar Zhang
ff72684051 ASoC: generic-dmaengine-pcm: Add support for dma chan request dynamically
Change-Id: I187b4292c75ed1195bded805e58c8346f9e4074c
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2024-07-16 15:01:50 +08:00
David Wu
94152e98c1 net: phy: motorcomm: Add YT8522 phy support
Change-Id: I29abc85c505df5d644b1a0ec0db64101e5f1631d
Signed-off-by: David Wu <david.wu@rock-chips.com>
2024-07-16 15:01:49 +08:00
Sugar Zhang
934e65c34a ASoC: es8323: Remove non-existent register 0x35
ES8323 0-0011: ASoC: error at soc_component_write_no_lock on
ES8323.0-0011 for register: [0x00000035] -5

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I798eaa00c3c95a85d18d04d55503c9acb40c5396
2024-07-16 15:01:49 +08:00
Sugar Zhang
24baa73137 ASoC: rockchip: multicodecs: Depends on INPUT and EXTCON
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I30140add50609cf745c09b5859702376d4f27408
2024-07-16 15:01:49 +08:00
Elaine Zhang
3b8c21b882 net: can: rockchip: rk3576: fix the rx_fifo_depth
Change-Id: I571a8abe5017354f6a6b041f5ae5b9912ce8b4db
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2024-07-15 17:37:04 +08:00
Huibin Hong
e000b868ad soc: rockchip: fiq debugger: alloc memory for fifo and tty_fifo
save about 130944 bytes image size.

Change-Id: Ie6683f01d6b0189018961236a4dce44e0c51a277
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
2024-07-15 17:36:47 +08:00
Damon Ding
e8d401ee32 pwm: rockchip-test: get counter result before disabled in pwm test demo
The counter result read after disabled may be inaccurate,
because the arbitration has been removed.

Change-Id: Id91069721ef5767d81bb8bced0ae429840711ad4
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2024-07-15 17:36:27 +08:00
Damon Ding
1479b8950e pwm: rockchip: not to switch pclk dynamically in count mode
According to IC design, it is not recommended to enable/disable
pclk in counter mode, because the pclk is used to sync counter
result.

Change-Id: Ibb44082ae1091d38a51f0d1f0c1879769109bc86
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2024-07-15 17:36:27 +08:00
Damon Ding
7ba66dbbff pwm: rockchip: make sure the dividend is u64 in frequency calculation
Change-Id: I207ceb42ab31d45c9bf2b72a54e94003ee508cf5
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2024-07-15 17:36:27 +08:00
Damon Ding
86d14071cc pwm: rockchip: read more regs for pwm v4 in rockchip_pwm_debugfs_show()
Change-Id: Ied865eee371e08b0b5895482f49d1da777828ac3
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2024-07-15 17:36:27 +08:00
Damon Ding
9e76349ea2 drm/bridge: sii902x: enable CLK_RATIO_2X for interlace modes
According to the datasheet, CLK_RATIO_2X should be enabled
for interlace modes otherwise the 720x480i60/720x576i60
modes may be mistaken for 360x480p60/360x576p60.

Change-Id: I7efa084b7d3a05bdafd0dc17264784db178d05c6
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2024-07-15 17:36:00 +08:00
Huibin Hong
d8983a4203 soc: rockchip: debug: fix compile error on arm
Change-Id: Ie00fddf20e0fff5e5d3bb6e96e9c3b6040d24165
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
2024-07-15 17:35:30 +08:00
Damon Ding
09f85f2be6 drm/rockchip: rgb: clear output_if of rockchip_crtc_state if crtc active change
Clear output_if of rockchip_crtc_state in rockchip_rgb_encoder_disable()
only if active_changed flag of drm_crtc_state is true,
otherwise the output_if related checks may be affected
in .atomic_enable() of crtc.

Change-Id: Id15873feebd420a77c8949ea6601b9f33c18188c
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2024-07-15 17:35:16 +08:00
Damon Ding
abe99ba212 drm/rockchip: rgb: fix the log in rockchip_rgb_encoder_mode_valid()
The logs about max clock check may be too frequent, so
replace DRM_DEV_ERROR() with DRM_DEBUG_DRIVER().

Change-Id: Ia5e4ad4a7dc00863e99d9b6cb92f3a812c1171e9
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2024-07-15 17:35:16 +08:00
Han Xu
91f060aa31 UPSTREAM: mtd: spinand: gigadevice: Fix the get ecc status issue
Some GigaDevice ecc_get_status functions use on-stack buffer for
spi_mem_op causes spi_mem_check_op failing, fix the issue by using
spinand scratchbuf.

Fixes: c40c7a990a ("mtd: spinand: Add support for GigaDevice GD5F1GQ4UExxG")
Change-Id: I061911754ab4a3d69bfa2ebbb17af8f14027e5cc
Signed-off-by: Han Xu <han.xu@nxp.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20231108150701.593912-1-han.xu@nxp.com
(cherry picked from commit 59950610c0c00c7a06d8a75d2ee5d73dba4274cf)
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-07-15 17:34:42 +08:00
Jon Lin
29f9d3fccb spi: spi-rockchip-sfc: Support SFC_VER_9
Change-Id: I44b99cae8bbe1d23a48a65b5435456a070e76fca
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-07-15 17:09:43 +08:00
Jon Lin
e815077db8 dt-bindings: spi: rockchip-sfc: Add rockchip,sclk-x2-bypass property
Change-Id: Ide075d15a32ad2e29bdfbd9c21c56a6853fdccb8
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-07-15 17:09:43 +08:00
Jon Lin
3576d58da0 spi: rockchip-sfc: Support sclk_x2_bypass
Change-Id: Ic5e19484afc9f98063e73d0da2bbf9f3cb595ea8
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-07-15 17:09:43 +08:00
Jon Lin
c333c5b65b dt-bindings: spi: rockchip-sfc: Add rockchip,fspi compatible
Change-Id: I61d4919ed3813579dfc3a6caac7ffdf64aa96098
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-07-15 17:09:43 +08:00
Jon Lin
f5566f8c7d spi: rockchip-sfc: Add rockchip,fspi compatible
Change-Id: I0ccccf4061465836837cfde78bf7e70d2da78ac6
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-07-15 17:09:43 +08:00
Weixin Zhou
05422d8837 input: sensors: hall: mh248: clean hall wakeup flag
when the kernel suspend abort with is_hall_wakeup true,
mh248 resume will use wrong state of is_hall_wakeup
to send powerkey event to wakeup screen.

Signed-off-by: Weixin Zhou <zwx@rock-chips.com>
Change-Id: Ifc8d83f49329631e9088fee9111b295c77e05a8a
2024-07-15 14:32:56 +08:00
Jianqun Xu
9d31e80fc1 arm64: dts: rockchip: rk3576-vehicle-evb: fix io conflict for SAI1
The SDI1/2/3 and SDO1/2/3 for SAI1 on RK3576 is iomux functions.

Change-Id: I2292e4c3b5c75044e343d19c3557724591365836
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2024-07-15 14:16:51 +08:00
Shunhua Lan
51a874510a arm64: dts: rockchip: rk3576-evb2: fix es8388 sound card config
Signed-off-by: Shunhua Lan <lsh@rock-chips.com>
Change-Id: Ifa2c450293722a800b9982c486b4c9e50ec0a72a
2024-07-12 17:00:54 +08:00
Jianwei Fan
620296edab media: i2c: ov16880: fix gain ctrl
in non-HDR mode, short gain and long gian need to be set the same
values.

Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: Idaa14c389a20b2518757303538dc19fb8154695d
2024-07-12 16:10:16 +08:00
Zheng zhiqi
7a5fd2ec18 arm64: dts: rockchip: rk3576-vehicle-evb: change rk3576 sai1 to master
Change rk3576 sai1 to master

Change-Id: Ibed393c0ba33967baece1f2841b59c147b977def
Signed-off-by: Zheng zhiqi <looper.zheng@rock-chips.com>
2024-07-12 11:01:32 +08:00
Tao Huang
0aabe51453 kbuild: xz_wrap: do not include include/config/auto.conf
Fix the following error:
./scripts/xz_wrap.sh: 315: include/config/auto.conf: Syntax error: "(" unexpected

Fixes: 83c382f436 ("FROMLIST: kbuild: Enable armthumb BCJ filter for Thumb-2 kernel")
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I780ac11132c7a42ad189fc9c955a94139a3d62aa
2024-07-11 19:33:12 +08:00
Tao Huang
416cd1ea3b fiq_debugger: arm: Fix compile error on !THREAD_INFO
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Id65e44276f7ee0ab0473274a2b739e0a6b453373
2024-07-11 19:17:54 +08:00