Commit Graph

1279970 Commits

Author SHA1 Message Date
Tao Huang
e11ddc23bb ASoC: rockchip: rockchip_max98090: Fix typo in Rockchip copyright notice
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I25fe4a425e3f188af34c62daf7fc0c62941b2f2a
2025-01-21 11:10:19 +08:00
Tao Huang
f6db379094 ASoC: rockchip: rockchip_rt5645: Fix typo in Rockchip copyright notice
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ic237c7b1fa97a4e8ae244abfc997c18f38be2a6d
2025-01-21 11:09:57 +08:00
Tao Huang
5590fba8e0 ASoC: rockchip: spdif: Fix typo in Rockchip copyright notice
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ia45da7f0a1da4c91e471bdd8bcb6932edfc1ef44
2025-01-21 11:09:05 +08:00
Tao Huang
ef353b603d mm: cma_debug_bitmap_hex: Fix typo in Rockchip copyright notice
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I8f8754dbb3aeff24fb35a616629bbb89f48fd9a8
2025-01-21 11:05:10 +08:00
Tao Huang
819625f764 rk: mkkrnlimg: Fix typo in Rockchip copyright notice
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I26f965746bf16f8c429a39cdaa94f4e1df7be5db
2025-01-21 11:05:10 +08:00
Tao Huang
12cbd8db22 tools: testing: selftests: rkpinctrl: Fix typo in Rockchip copyright notice
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ie8d419ab8a770b5dabda7538c8f8725d7a650522
2025-01-21 11:05:10 +08:00
Tao Huang
d56da1e9df phy: rockchip: inno-video: Fix typo in Rockchip copyright notice
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Icba2c9e138ff449ac97e8b7a358513aed5a76690
2025-01-21 10:54:47 +08:00
Tao Huang
f3bd9974c1 net: rfkill: Fix typos in Rockchip copyright notices
There are many cases in which the company name is misspelled.
The patch fixes these typos.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I1b354ef90bd36bf277e87d965b45d3d42c77d05e
2025-01-21 10:54:47 +08:00
Tao Huang
7210458427 rtc: rk630: Fix typo in Rockchip copyright notice
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I6a2b409cd432ba493bea69e760acfa39783ad670
2025-01-21 10:54:47 +08:00
Tao Huang
e51e8b7ffa rtc: rockchip: Fix typo in Rockchip copyright notice
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I56a77a9b972b3701c833c76babc554ee792d1f2f
2025-01-21 10:54:47 +08:00
Tao Huang
66ba7d48d8 soc: rockchip: power-domain: Fix typo in Rockchip copyright notice
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I3dce33c4e226d68bdf0566d63dcfd008c238c5e4
2025-01-21 10:54:47 +08:00
Tao Huang
9d7e3d15b9 rpmsg: rockchip: Fix typos in Rockchip copyright notices
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I998b95a178aae548cf627e094bf8baa52249c9b3
2025-01-21 10:54:47 +08:00
Tao Huang
847bf612e0 scsi: ufs: rockchip: Fix typos in Rockchip copyright notices
There are many cases in which the company name is misspelled.
The patch fixes these typos.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ibdb599ef5f0f66cc0d910ddeca873d41e46ed3bc
2025-01-21 10:43:06 +08:00
Zhibin Huang
093fb7f0ce misc: rk628: Fix probability of WARNING when sleeping
The warning log is as follows:

[ 2548.269614][ T7373] workqueue: WQ_MEM_RECLAIM rk628-monitor-wq:rk628_display_work is flushing !WQ_MEM_RECLAIM events:rk628_hdmirx_delayed_work_audio
[ 2548.269661][ T7373] WARNING: CPU: 3 PID: 7373 at kernel/workqueue.c:2652 check_flush_dependency+0x11c/0x124
[ 2548.269696][ T7373] Modules linked in: wlan_mt7663_usb rtl8367vb btmtk_usb_unify
[ 2548.269727][ T7373] CPU: 3 PID: 7373 Comm: kworker/u16:4 Not tainted 6.1.75 #3
[ 2548.269741][ T7373] Hardware name: LANGO RK3576 V10 Board (DT)
[ 2548.269754][ T7373] Workqueue: rk628-monitor-wq rk628_display_work
[ 2548.269768][ T7373] pstate: 604000c5 (nZCv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[ 2548.269783][ T7373] pc : check_flush_dependency+0x11c/0x124
[ 2548.269796][ T7373] lr : check_flush_dependency+0x11c/0x124
[ 2548.269808][ T7373] sp : ffffffc0134dbbb0
[ 2548.269816][ T7373] x29: ffffffc0134dbbb0 x28: ffffff80c2a31108 x27: ffffffc008079110
[ 2548.269831][ T7373] x26: ffffffc0134dbc98 x25: ffffff8093d0c9c0 x24: ffffff8092141e80
[ 2548.269847][ T7373] x23: ffffff81f6d88d00 x22: ffffff8092141e80 x21: ffffff807cc366c0
[ 2548.269861][ T7373] x20: ffffff80c0008600 x19: ffffffc008a036ec x18: ffffffc00f3e3050
[ 2548.269876][ T7373] x17: 0000000000000069 x16: ffffffffffffffff x15: 0000000000000004
[ 2548.269891][ T7373] x14: ffffffc009fdd720 x13: 0000000000000a9e x12: 0000000000000003
[ 2548.269906][ T7373] x11: 0000000000000000 x10: 0000000000000027 x9 : 7313130eec8ea700
[ 2548.269920][ T7373] x8 : 7313130eec8ea700 x7 : 7f7f7f7f7f7f7f7f x6 : fefefefeff6e6863
[ 2548.269934][ T7373] x5 : 000000000000001c x4 : 0000000000000018 x3 : 0000000000000000
[ 2548.269948][ T7373] x2 : 0000000000000000 x1 : ffffffc0134db950 x0 : 0000000000000080
[ 2548.269964][ T7373] Call trace:
[ 2548.269973][ T7373]  check_flush_dependency+0x11c/0x124
[ 2548.269987][ T7373]  __flush_work+0xc8/0x2ac
[ 2548.270000][ T7373]  __cancel_work_timer+0x128/0x1c8
[ 2548.270012][ T7373]  cancel_delayed_work_sync+0x14/0x24
[ 2548.270025][ T7373]  rk628_hdmirx_disable+0x40/0xc0
[ 2548.270038][ T7373]  rk628_display_disable+0x54/0xbc
[ 2548.270048][ T7373]  rk628_display_work+0x7c/0xd8
[ 2548.270057][ T7373]  process_one_work+0x1a8/0x3b8
[ 2548.270071][ T7373]  worker_thread+0x25c/0x430
[ 2548.270083][ T7373]  kthread+0xec/0x1b8
[ 2548.270101][ T7373]  ret_from_fork+0x10/0x20
[ 2548.270116][ T7373]
...

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

Signed-off-by: Zhibin Huang <zhibin.huang@rock-chips.com>
Change-Id: I2d3a3be7e4696ccb2773e66d11e25ce49191e952
2025-01-21 02:40:32 +00:00
Damon Ding
52f4ac49f4 misc: rk628: add support for pwm
In addition, add pwm debugfs file to dump regs:

cat /sys/kernel/debug/rk628/2-0050/pwm_regs

Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: I80ae8e40562d7593f1a2183ea73e29de798495f4
2025-01-21 02:08:38 +00:00
Zhibin Huang
95a90239c1 misc: rk628: combtxphy: enabling ssc is required for frac_div
Type: Fix
Redmine ID: #525257
Associated modifications: N/A
Test: N/A

Signed-off-by: Zhibin Huang <zhibin.huang@rock-chips.com>
Change-Id: Ic107c98c9b9a587699b352358715dfed59e97085
2025-01-20 09:42:11 +00:00
Miquel Raynal
6f42afbf70 UPSTREAM: mtd: Clean refcounting with MTD_PARTITIONED_MASTER
The logic is way too convoluted, let's clean the kref_get/put section to
clarify what this block does when using CONFIG_MTD_PARTITIONED_MASTER:
- Iterate through all the parent mtd devices
- Grab a reference over them all but the master
- Only grab the master whith CONFIG_MTD_PARTITIONED_MASTER
Same logic must apply in the put path, otherwise it would be broken.

Cc: Tomas Winkler <tomas.winkler@intel.com>
Cc: Alexander Usyskin <alexander.usyskin@intel.com>
Cc: Zhang Xiaoxu <zhangxiaoxu5@huawei.com>
Fixes: 19bfa9ebeb ("mtd: use refcount to prevent corruption")
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Tested-by: Alexander Usyskin <alexander.usyskin@intel.com>
Link: https://lore.kernel.org/linux-mtd/20230731090903.770277-1-miquel.raynal@bootlin.com
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
(cherry picked from commit 264725e35f)
Change-Id: Iff8dd692dda07361a1c4bc9db73908dfd8256419
2025-01-20 09:04:43 +00:00
Alexander Usyskin
6c3662a2c5 UPSTREAM: mtd: call external _get and _put in right order
MTD provider provides mtd_info object to mtd subsystem.
With kref patch the mtd_info object can be alive after
provider released mtd device.
Fix calling order in _get and _put functions to allow
mtd provider to safely alloc and release mtd object.

Execute:
1) call external _get
2) get_module
3) add internal kref
in the get function and opposite order in the put one.

The _put_device callback should be the last in put
as the master struct memory may be freed in this callback.

Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20230620131905.648089-3-alexander.usyskin@intel.com
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
(cherry picked from commit 79c4a56250)
Change-Id: I12b1b5f3ac0bcc432cee429c5c56a057e0a2e589
2025-01-20 09:04:43 +00:00
Alexander Usyskin
1cc0c0baa3 UPSTREAM: mtd: fix use-after-free in mtd release
I case of partition device_unregister() in mtd_device_release()
calls mtd_release() which frees mtd_info structure for partition.
All code after device_unregister in mtd_device_release thus
uses already freed memory.

Move part of code to mtd_release() and restict mtd->dev cleanup
to non-partion object.
For partition object such cleanup have no sense as partition
mtd_info is removed.

Cc: Miquel Raynal <miquel.raynal@bootlin.com>
Cc: Zhang Xiaoxu <zhangxiaoxu5@huawei.com>
Fixes: 19bfa9ebeb ("mtd: use refcount to prevent corruption")
Reviewed-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20230731115836.542747-1-alexander.usyskin@intel.com
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
(cherry picked from commit e9714c22c1)
Change-Id: Ie124021921b2f5efcb131b5c4860e19efaf5228a
2025-01-20 09:04:43 +00:00
Tomas Winkler
b088c5c203 UPSTREAM: mtd: use refcount to prevent corruption
When underlying device is removed mtd core will crash
in case user space is holding open handle.
Need to use proper refcounting so device is release
only when has no users.

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20230620131905.648089-2-alexander.usyskin@intel.com
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
(cherry picked from commit 19bfa9ebeb)
Change-Id: I95b670fa24e6411867cfa517560802e58a183ef8
2025-01-20 09:04:43 +00:00
Zhibin Huang
e18437f0e8 misc: rk628: bt1120: modify bt1120 decoder dclk delay
Modify bt1120 decoder dclk delay to improve compatibility
with SI tested configurations, refer to redmine #525199
for specific details.

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

Signed-off-by: Zhibin Huang <zhibin.huang@rock-chips.com>
Change-Id: I1a288f9d56667899537b650d2a36dcc298095a6a
2025-01-20 07:55:36 +00:00
Damon Ding
0e51e09b71 drm/bridge: analogix_dp: modify the log related to the check of hpd status
The disconnected status is not actually a failure, so it is more
reasonable to remove 'failed' and use dev_dbg() instead of dev_err().

Change-Id: I6c2fea479b45e6c61ce460d364efe8f3053465e2
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2025-01-20 06:13:39 +00:00
Damon Ding
61fc6ee91f ARM: dts: rockchip: rk3506g-iotest: add wave clk_pwm_rc mode for pwm test
Change-Id: I20a2719e79fc978e42d42d119de0429f5bcc6458
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2025-01-20 11:22:23 +08:00
Damon Ding
7fe6e5c902 pwm: rockchip-test: set the default configurations for clk_src and mem_clk_src
In addition, adjust the initialization order of struct
rockchip_pwm_wave_config members to correspond with their
declaration order within the struct.

Change-Id: I869f1a670f23f726b2fd983af364d3bdd6a9f321
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2025-01-20 11:17:19 +08:00
Jon Lin
ef369922f4 spi: rockchip_slave: Remove redundant dma_map behavior
The driver itself has implemented DMA buffer, and does not require
the map/unmap behavior of the spi framework.

Change-Id: I00abd65233bf5b3112337c8da623bc8afe586bb6
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2025-01-20 02:40:50 +00:00
Damon Ding
a16c42163b pwm: rockchip: use existing enum definitions for width_mode and updata_mode settings
Change-Id: I3a1957e96b3f695849e6afffd3348a4a80635ad9
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2025-01-20 02:39:57 +00:00
Damon Ding
a3b5a02391 pwm: rockchip: add support to select clk_src and mem_clk_src for wave generator mode
In wave generator mode, the clk_src is used as dclk to generate the
wave, and the mem_clk_src is used to write/read the wave table.

Change-Id: I7d1948a5bb11715ac632c424ef01d6022d15899b
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2025-01-20 02:39:57 +00:00
Joseph Chen
c790e2f91a regulator: rk801: Fix ramp_delay value error
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Id35502968d0c3bf2b9a15b1008c2bc47e3ba8bcb
2025-01-20 02:31:42 +00:00
Elaine Zhang
9f8868d7b3 arm64: dts: rockchip: rk3576: remove dma for can
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: I4bb0152a2742fa9ca7cc2d7330f4f4200d4672e6
2025-01-17 04:32:00 +00:00
Jianwei Fan
8da0472f8c arm64: dts: rockchip: rk3588-vehicle-evb: image reverse move xvclk to sensor
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: I54a50c63fa1c3ef062eaba6098d7fe2e4a310698
2025-01-17 04:29:54 +00:00
Jianwei Fan
4a555cd7f1 arm64: dts: rockchip: rk3576-evb1: image reverse move xvclk to sensor node
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: Id6873da7d8da262ff138beb560eb608c2c6baf0a
2025-01-17 12:28:50 +08:00
Jianwei Fan
76f1a34c4e video: rockchip: vehicle: move xvclk ctrl to generic sensor
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: If2b0e2e9ace5ef1835807471d8488e05cd2b8652
2025-01-17 11:50:44 +08:00
Jon Lin
af9ab5cb58 mtd: spi-nor: xmc: Support XM25QU256C
Change-Id: I2ad00d784627f2ca69c6bec46d97ab1415facc42
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2025-01-17 00:09:54 +08:00
Jon Lin
ba3c36d8c2 mtd: spinand: UNIM: Support new device UM19A0XISW
UM19A0HISW, UM19A0LISW.

Change-Id: I29baad2badf95ce2bd6daeb8819e99efb7e1d3fd
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2025-01-16 23:53:43 +08:00
Jon Lin
e625024f13 mtd: spinand: xtx: Support new devices
XT26G12DWSIGA, XT26Q12DWSIGA, XT26G11DWSIGA, XT26Q14DWSIGA.

Change-Id: I733172ed78a95f4d2129c98c9d2c6b92525bde4c
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2025-01-16 23:53:43 +08:00
William Wu
b58bf56d91 arm64: dts: rockchip: rk3576s: Delete u2phy1 node
Change-Id: Ifb7c3f22c4caa75093daab77347e907b15870095
Signed-off-by: William Wu <william.wu@rock-chips.com>
2025-01-16 11:37:10 +00:00
William Wu
6dc017e3b3 arm64: dts: rockchip: rk3576s-evb: Remove u2phy1
Change-Id: If003ebf9d2a28709416686f8454db81f4e5a5106
Signed-off-by: William Wu <william.wu@rock-chips.com>
2025-01-16 11:37:10 +00:00
Damon Ding
40da609ada pwm: rockchip: disable unused interrupt function for wave generator
In order to avoid unnecessary interrupt handing behaviors, disable the
interrupt for the wave generator.

Change-Id: Ib397c9814775ca968b77c435db57a5b1ed5df7c6
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2025-01-16 11:36:36 +00:00
Damon Ding
dfaa59878d pwm: rockchip: fix the scaler calculation in &rockchip_pwm_funcs.set_wave()
If the pc->clk_rate is the same as config->clk_rate, the scaler should
be set to 0. However, using the previous calculation method, the result
would incorrectly be 1.

Fixes: 1504b8ffcf ("pwm: rockchip: add dclk scale config for wave generator mode")
Change-Id: I876f7f530ab841b485b8d7f139adcf825955a160
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2025-01-16 11:36:36 +00:00
Damon Ding
b125e2d8c7 pwm: rockchip: add mask check for 'v' in macro HIWORD_UPDATE(v, l, h)
Change-Id: Iaeb5f6f070914f208fe30929a638a92145a5164c
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2025-01-16 11:36:36 +00:00
Liang Chen
6757ebf6a8 clk: rockchip: clk-pvtpll: calibrate pvtpll init frequency for rv1103b
Change-Id: Ic15b4645a2c4caadce9b870bd2d8a7960688b66d
Signed-off-by: Liang Chen <cl@rock-chips.com>
2025-01-16 11:34:29 +00:00
Liang Chen
14752da8e7 clk: rockchip: clk-pvtpll: update pvtpll config for rv1103b
Change-Id: Ie4512b8dad3279eed059f4bd5bbfe5c450d00351
Signed-off-by: Liang Chen <cl@rock-chips.com>
2025-01-16 11:34:29 +00:00
Liang Chen
5bb84d62da clk: rockchip: add enc/isp pvtpll clk for rv1103b
Signed-off-by: Liang Chen <cl@rock-chips.com>
Change-Id: If2d8e1674e4eb1a9ac0c771561187a0177289572
2025-01-16 11:34:29 +00:00
Yandong Lin
6c47657a38 video: rockchip: mpp: Fix missing enable_irq in timeout work
Fixes: 4938e4ee1b ("video: rockchip: mpp: optimize the schedule of enc/dec")
Change-Id: I0942d94ba92b972e557301d83d1e7962a1b8ea13
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
2025-01-16 08:39:40 +00:00
Caesar Wang
bd9c642504 arm64: dts: rockchip: add rk3576s-evb1-v10-linux.dts
Change-Id: I63f1308a6b2011607f672f15718453d65fed74bf
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
2025-01-15 19:11:16 +08:00
Damon Ding
31af9d4fe5 drm/bridge: analogix_dp: use existing drm dp helper function to check enhanced frame support
The analogix_dp_is_enhanced_mode_available() can be replaced by drm
helper function drm_dp_enhanced_frame_cap().

Change-Id: I18d6faba78c92832d0087b42139e73c9190cbfd3
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2025-01-15 11:10:19 +00:00
Zefa Chen
da102a3eee media: i2c: add imx386 driver
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I8527b68f9c95774c487e28921608619a02cf135e
2025-01-15 11:09:40 +00:00
Zitong Cai
67e0f227ef arm64: dts: rockchip: rk3588-vehicle-serdes-mfd-display-maxim.dtsi: Fix the configuration error of transparent ID
Change-Id: I2a56ab4c996519bb7d32ceb6e1dbc746feb1dbb9
Signed-off-by: Zitong Cai <zitong.cai@rock-chips.com>
2025-01-15 11:07:19 +00:00
Zitong Cai
4add0132d7 arm64: dts: rockchip: add dtsi for nca9539 io expander on rk3588 vehicle EVBV23
Change-Id: Ib6d1b8ffc61cef383bce235dca2320170309ce8a
Signed-off-by: Zitong Cai <zitong.cai@rock-chips.com>
2025-01-15 11:07:07 +00:00
Simon Xue
808c54ab7b iio: adc: rockchip_saradc: avoid ack pending irq when initialization
To prevent responding to pending interrupts during initialization.
Soft reset must precede interrupt registration.

Change-Id: I265c52fd509cb0935ca218ed43bbee84e7881d94
Signed-off-by: Simon Xue <xxm@rock-chips.com>
2025-01-15 11:05:29 +00:00