Commit Graph

1272119 Commits

Author SHA1 Message Date
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
Liang Chen
7224760709 arm64: dts: rockchip: Add support for rk3576 test3 board
Signed-off-by: Liang Chen <cl@rock-chips.com>
Change-Id: Ide3f5cc427d5219412e9afa3183ad96872c4871a
2024-07-11 18:58:16 +08:00
LiuDiMing Lin
d78fdd700c arm64: dts: rockchip: rk3576-evb1-cam-dcphy0: remove incorrect reset-gpios
Change-Id: Ife2de9ba0d45faa1120847551fde820f17f4cc85
Signed-off-by: LiuDiMing Lin <fenrir.lin@rock-chips.com>
2024-07-11 16:28:15 +08:00
LiuDiMing Lin
0fd02a40a7 arm64: dts: rockchip: rk3576-evb1-cam-4x: ensure correct order of the four cameras
Change-Id: I2f2942ce386afddd8391e6fa689c5a6841a8c992
Signed-off-by: LiuDiMing Lin <fenrir.lin@rock-chips.com>
2024-07-11 16:27:02 +08:00
Guochun Huang
1f429c9dc1 dt-bindings: display: drm_mipi_dsi: Add _NO_ to MIPI_DSI_* flags disabling features
As described in:

commit 0f3b68b66a ("drm/dsi: Add _NO_ to MIPI_DSI_* flags disabling features")

Many of the DSI flags have names opposite to their actual effects,
e.g. MIPI_DSI_MODE_EOT_PACKET means that EoT packets will actually
be disabled. Fix this by including _NO_ in the flag names, e.g.
MIPI_DSI_MODE_NO_EOT_PACKET.

Change-Id: Ibf5faf52f95a1ab07c3ffb7848ff1be7071c458b
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
2024-07-11 16:22:56 +08:00
Jason Zhu
d5fc25e5c3 ASoC: rockchip: asrc: support rockchip asrc
Use Amixer or tinymixer to set tx & rx lrck and resample rate
firstly.

Example:
amixer -c 0 sset "ASRC0 RX LINK DAI Select" "SAI0"
amixer -c 0 sset "ASRC0 TX LINK DAI Select" "MEM"
arecord -D hw:0,1 --period-size=1024 --buffer-size=4096 -r
48000 -c 2 -f s16_le /mnt/r.wav

Change-Id: If33f120896f0e5599699ce3081bc7a874055fdb2
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
2024-07-10 20:14:16 +08:00
Jason Zhu
76925444bd arm64: configs: rockchip_linux_defconfig: enable CONFIG_SND_SOC_ROCKCHIP_ASRC
Change-Id: Ibd6091631da1cba254c571e59553b0f427d38637
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
2024-07-10 20:13:46 +08:00
Jason Zhu
f5409b59ef arm64: dts: rockchip: rk3576: add asrc node
Change-Id: Id122295e5acf838705ccdc87acd6249ef6af340a
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
2024-07-10 20:12:15 +08:00
Jason Zhu
d4a03cf620 ASoC: rockchip: multicodecs: support DPCM
Change-Id: I1e856b305bb949791962a1c157bae8981b2663f9
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
2024-07-10 20:10:58 +08:00
Zhibin Huang
b39062142f arm64: dts: rockchip: add kernel logo for rk3576-rk628 hdmi2gvi
Signed-off-by: Zhibin Huang <zhibin.huang@rock-chips.com>
Change-Id: Ia62e4741b0d1116bdc54969ef089ea73a40a6fd2
2024-07-10 15:31:07 +08:00
Sugar Zhang
9b72f7d254 ASoC: rockchip: i2s-tdm: Check stream is valid
Do nothing when stream is invalid, especially for
HDMI-TX-DLP with multi-dais situation.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Ieb056147875ca2707b85f8d9962a5593e66abb21
2024-07-10 15:00:24 +08:00
Sugar Zhang
602e6eab74 ASoC: rockchip: sai: Check stream is valid
Do nothing when stream is invalid, especially for
HDMI-TX-DLP with multi-dais situation.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I5b7387779c6fc166196fff1ef9ab35907b268021
2024-07-10 15:00:18 +08:00
Sugar Zhang
e22dfe2e09 ASoC: hdmi-codec: Add support for HDMI-TX DLP
Support for HDMI-TX Audio Digital Loopback.

e.g.

&hdmi {
	audio,digital-loopback;
};

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Id5b4490b8bd96559b49fb8225cf93feac7c3d5c2
2024-07-10 15:00:18 +08:00
Sugar Zhang
e06eeb1d57 ASoC: rockchip: Add debug for TRCM
Used for measure the time cost between dma guard and stream.

Change-Id: I626f6b892faa31fbf06e7b1100fdf0b0fa3347f7
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2024-07-10 15:00:02 +08:00