Commit Graph

1272110 Commits

Author SHA1 Message Date
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
Sugar Zhang
8b3a1e4cee ASoC: rockchip: i2s-tdm: Optimize WL for TDM mode
TDM mode use all FIFOs, the max burst is 16 word of DMAC,
so we used the max FIFO to cover DDR dmc windows.

4 FIFOs controller:

TDL:

16 word: WL = ((32 * 4) - 16) / 4 = 28

RDL:

16 word: WL = 16 / 4 = 4

Change-Id: Idd88e0615d7fd4ec8c36c72af1c0b1b2d716b43e
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2024-07-10 15:00:02 +08:00
Sugar Zhang
730ca484ba ASoC: rockchip: i2s_tdm: Fix params check for TDM mode
especially fixed for always-on TDM situation.

Change-Id: I2d544320028daa8ca7031f786beb8ba8880d06bb
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2024-07-10 15:00:02 +08:00
Zhibin Huang
7997753375 drm/rockchip: panel-notifier: avoid duplicate register notifier
If user mistakenly registers the notifier repeatedly, a panic occurs
at the following location:

pc : __list_add_valid+0x68/0xb8
lr : __list_add_valid+0x68/0xb8
sp : ffffffc00abe3a00
x29: ffffffc00abe3a00 x28: ffffff8003048020 x27: ffffff8003048028
x26: ffffff800324d3d0 x25: 0000000000000002 x24: 000000000000000a
x23: ffffffc00a663040 x22: ffffff80032da350 x21: ffffff8004930940
x20: ffffff80032da350 x19: ffffff80047be010 x18: ffffffc00aab1088
x17: 3035336164323330 x16: ffffffffffffffff x15: 0000000000000004
x14: ffffffc00a00d6e0 x13: 000000000000ffff x12: 0000000000000003
x11: 00000000fffeffff x10: c0000000fffeffff x9 : 55386e6b9a94b100
x8 : 55386e6b9a94b100 x7 : 205b5d3836393437 x6 : 382e33202020205b
x5 : ffffffc00a9e3617 x4 : ffffffc00abe3757 x3 : 0000000000000000
x2 : 0000000000000000 x1 : ffffffc00abe37c0 x0 : 0000000000000058
Call trace:
 __list_add_valid+0x68/0xb8
 devm_rockchip_panel_notifier_register+0x9c/0xfc
 panel_simple_probe+0x458/0x514
 panel_simple_platform_probe+0x88/0xc8
 platform_probe+0xa8/0xd0
 really_probe+0x174/0x350
 __driver_probe_device+0xa0/0x128
 driver_probe_device+0x44/0x210
 __device_attach_driver+0x12c/0x154
 bus_for_each_drv+0x84/0xd0
 __device_attach+0xf0/0x170
 device_initial_probe+0x14/0x20
 bus_probe_device+0x34/0x98
 deferred_probe_work_func+0x7c/0xd8
 process_one_work+0x1a8/0x3b8
 worker_thread+0x300/0x430
 kthread+0xec/0x1b8
 ret_from_fork+0x10/0x20

Type: Fix
Redmine ID: #494152
Associated modifications: N/A
Test: N/A

Signed-off-by: Zhibin Huang <zhibin.huang@rock-chips.com>
Change-Id: If2bb65ed80d79d9d930d8bf6e82c45a43fd123b1
2024-07-09 18:12:29 +08:00
Zhang Yubing
302af18f80 arm64: dts: rockchip: rk3576-evb1: add mux node for dp
Change-Id: I5896df25268af73003d4baf1ac400a06ca769bfa
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2024-07-09 16:39:12 +08:00
Zhang Yubing
68caa7651d arm64: dts: rockchip: rk3588-evb1: add mux node for dp
Change-Id: I23fd7869e6f1c8f23655fbb315a38c685962c909
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2024-07-09 16:39:11 +08:00
Zhang Yubing
9553deccf2 drm/rockchip: dw-dp: support get hpd status from Type-C interface
Change-Id: I92f30af67c9c5c1e8720d2cdd8a8e1e5c85618a7
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2024-07-09 16:39:11 +08:00
Zhang Yubing
09d452118b phy: rockchip: usbdp: support not trigger dp hpd
If a mux device in DPTX driver, usbdp phy should not trigger
dp hpd. DPTX driver will call phy_set_mode to transfer this
info.

Change-Id: I1d13858a9115a688bd9560eb41a2f86c76e73316
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2024-07-09 16:38:40 +08:00
Zhang Yubing
b41a87b16c drm/rockchip: dw-dp: support dynamic control power domain
Change-Id: I8692e967d2873a10385bec5d6998ad73cf8f4fa7
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2024-07-09 16:22:38 +08:00
Zhang Yubing
010bf50479 phy: rockchip: usbdp: don't access vo grf in phy power on
The power domain for vo grf may not enable when phy power
on. To access vo grf in other callback function to ensure
the power domain enable before access vo grf.

Change-Id: Iba5f8e6b62670bc01084616506ce146fb22d8e3c
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2024-07-09 16:05:11 +08:00