Commit Graph

1285850 Commits

Author SHA1 Message Date
Leo Sun
61bed7a074 ARM: dts: rockchip: update include path for rv1126b-evb2-v12-aov-dual-cam
Change-Id: I9c205e3c63f815ee5a6e41b373aec6e4d0c3cf4a
Signed-off-by: Leo Sun <leo.sun@rock-chips.com>
2025-09-15 08:42:44 +00:00
Leo Sun
337ff49046 arm64: dts: rockchip: rename rv1126b-evb2-v10-aov-dual-cam to rv1126b-evb2-v12-aov-dual-cam-spi-nor
- Deleted the &rockchip_suspend node and all suspend-related GPIO/IO
configurations to clean up the device tree.

- Simplified and consolidated the include statements to only reference
rv1126b-evb2-v10.dts.

Change-Id: Ic0e0afdb58ae6868896fca6544939396d04cd9f7
Signed-off-by: Leo Sun <leo.sun@rock-chips.com>
2025-09-15 08:41:56 +00:00
Leo Sun
da04991f0d arm64: dts: rockchip: add rv1126b-evb2-v12-aov-dual-cam dts
Change-Id: Idf88ab120300911200567a13ead80a9c38658fce
Signed-off-by: Leo Sun <leo.sun@rock-chips.com>
2025-09-15 08:40:59 +00:00
Haoran Han
0db4dfdeff media: i2c: max96756: Remove inappropriate function additions in kernel 5.10 version
Change-Id: I48d18c8ed6833a86798f8e647fb5da735f3b18e0
Signed-off-by: Haoran Han <haoran.han@rock-chips.com>
2025-09-12 11:30:47 +00:00
Sugar Zhang
640c4f6115 ASoC: rockchip: spdif: Add support for non-pcm switch
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Iff38282013c02ba312ff5f8093fd762c358bdc37
2025-09-12 11:13:01 +00:00
Liang Chen
9cb4d07e13 arm64: dts: rockchip: rk3568j: add overdrive opps for cpu/npu/gpu
Disable overdrive opps by default, and enable them in board dts if
use overdrive mode.

Change-Id: I6db9bd54b727aa3723a2cf46e1b5bd40bdeca0d9
Signed-off-by: Liang Chen <cl@rock-chips.com>
2025-09-12 18:59:13 +08:00
Zhang Yubing
87332bdb1a drm/rockchip: dp_aux_client: remove unused debugfs.h
Change-Id: I17898572d9782e5043fa00a74ab96723b50ad5c0
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2025-09-12 10:55:24 +00:00
Frank Wang
f5281345b1 phy: rockchip: inno-usb2: Fix the controller's failure to set host mode
In USB Type-A ports with non-permanent VBUS power, switching mode from
device to host via debugfs API would cause the controller to briefly
enter host then revert to device. This happens because PHY sends an
extcon message while EXTCON_USB_HOST remains false, so set
EXTCON_USB_HOST to true during the mode-setting process to fix it.

Serial logs show the following when debug is enabled in the PHY driver:

[  110.130678s][  T197]Workqueue: events rockchip_usb2phy_otg_sm_work
[  110.130682s][  T197]Call trace:
[  110.130688s][  T197] dump_backtrace+0x0/0x1dc
[  110.130693s][  T197] show_stack+0x18/0x24
[  110.130698s][  T197] dump_stack_lvl+0xe4/0x12c
[  110.130701s][  T197] dump_stack+0x18/0x3c
[  110.130705s][  T197] rockchip_usb2phy_otg_sm_work+0x40/0x5ec
[  110.130709s][  T197] process_one_work+0x22c/0x510
[  110.130712s][  T197] worker_thread+0x280/0x4ec
[  110.130716s][  T197] kthread+0x138/0x200
[  110.130720s][  T197] ret_from_fork+0x10/0x18
[  110.130727s][  T197]phy phy-fd5d0000.syscon:usb2-phy@0.0: b_peripheral otg sm work
[  110.130731s][  T197]phy phy-fd5d0000.syscon:usb2-phy@0.0: usb otg host connect
[  110.130736s][  T197]phy phy-fd5d0000.syscon:usb2-phy@0.0: extcon set cable(7) as 0
[  110.130817s][  T197]phy phy-fd5d0000.syscon:usb2-phy@0.0: extcon set cable(1) as 0
[  110.130834s][  T197]CPU: 6 PID: 197 Comm: kworker/6:3 VIP: 00 Tainted: G        W         5.10.226 #1
[  110.130837s][  T197]Hardware name: CDC710_SOCA_VA_BOM9_M_001_FACTORY (DT)
[  110.130841s][  T197]Workqueue: events rockchip_usb2phy_otg_sm_work
[  110.130845s][  T197]Call trace:
[  110.130848s][  T197] dump_backtrace+0x0/0x1dc
[  110.130853s][  T197] show_stack+0x18/0x24
[  110.130856s][  T197] dump_stack_lvl+0xe4/0x12c
[  110.130859s][  T197] dump_stack+0x18/0x3c
[  110.130864s][  T197] dwc3_set_mode+0x20/0x7c
[  110.130869s][  T197] dwc3_drd_notifier+0x68/0x7c
[  110.130873s][  T197] raw_notifier_call_chain+0x40/0x6c
[  110.130878s][  T197] extcon_sync+0x124/0x2e0
[  110.130882s][  T197] rockchip_usb2phy_otg_sm_work+0x480/0x5ec
[  110.130886s][  T197] process_one_work+0x22c/0x510
[  110.130889s][  T197] worker_thread+0x280/0x4ec
[  110.130893s][  T197] kthread+0x138/0x200
[  110.130896s][  T197] ret_from_fork+0x10/0x18
[  110.130920s][  T197]CPU: 6 PID: 197 Comm: kworker/6:3 VIP: 00 Tainted: G        W         5.10.226 #1
[  110.130923s][  T197]Hardware name: CDC710_SOCA_VA_BOM9_M_001_FACTORY (DT)
[  110.130926s][  T197]Workqueue: events_freezable __dwc3_set_mode
[  110.130930s][  T197]Call trace:
[  110.130934s][  T197] dump_backtrace+0x0/0x1dc
[  110.130938s][  T197] show_stack+0x18/0x24
[  110.130941s][  T197] dump_stack_lvl+0xe4/0x12c
[  110.130944s][  T197] dump_stack+0x18/0x3c
[  110.130947s][  T197] __dwc3_set_mode+0x2c/0xb54
[  110.130951s][  T197] process_one_work+0x22c/0x510
[  110.130954s][  T197] worker_thread+0x280/0x4ec
[  110.130958s][  T197] kthread+0x138/0x200
[  110.130962s][  T197] ret_from_fork+0x10/0x18
[  110.130971s][  T197]dwc->desired_role_sw_mode = 0
[  110.130974s][  T197]dwc->current_role_sw_mode = 1
[  110.131024s][  T197]xhci-hcd xhci-hcd.10.auto: remove, state 4
[  110.131028s][  T197]xhci-hcd xhci-hcd.10.auto: roothub graceful disconnect
[  110.131035s][  T197]usb usb4: USB disconnect, device number 1

Change-Id: I7b0a2f8161eb52fd145f145f398586526ab1006b
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
2025-09-12 18:07:40 +08:00
Chaoyi Chen
fd6109c5f8 drm/rockchip: vop2: Change gt2/gt4 scale rate for rk3576 cluster win
When using the ZME algorithm for scaling, the scaling config needs to
be adjusted to ensure performance:

If plane height >= half of display height:
- Use gt4 when down-scaling ratio > 8×
- Use gt2 when down-scaling ratio > 4×

Otherwise:
- Use gt4 when down-scaling ratio > 6×
- Use gt2 when down-scaling ratio > 3×

Change-Id: I50ce653134dc697d64134ce7aa8f98a2d0e8262b
Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com>
2025-09-12 08:34:42 +00:00
Xiao Yao
0aa0a5e9dc arm64: dts: rockchip: rv1126b-evb1: enable rtc-32k for sdiowifi
Signed-off-by: Xiao Yao <xiaoyao@rock-chips.com>
Change-Id: Ib10fc729d13f63929d266f33087d6f8e48b0ecd0
2025-09-12 02:09:38 +00:00
Zhong Shengquan
89360f8db2 ASoC: rockchip: spdifrx: fix issue where reset causes underrun in app
When sample rate changes, a reset operation is performed, and another
reset occurs after debouncing. This results in less data being read
by upper layer, thus triggering an underrun condition.

Therefore, remove reset operation in rk_spdifrx_trigger. Meanwhile,
when sample rate changes, ​​disable dma enable​​, and after debouncing
completes, notify upper layer via stop_xrun to restart​​, then ​​enable
dma to resume data transfer. ​​

Change-Id: Ie112ed83018722d069bd85d181f609c4bf865027
Signed-off-by: Zhong Shengquan <shengquan.zhong@rock-chips.com>
2025-09-12 01:34:41 +00:00
Zhong Shengquan
eae70e5ad3 ASoC: rockchip: spdifrx: Update the dynamic detection feature
Add a debounce timer to prevent continuous reporting of SYNC/NSYNC
information during plug-in and unplug operations.

Add the capability to detect non-linear pcm data and sample bit width,
then notify the application layer of the results.

Add a fifo timer to detect real-time data inflow in the rx fifo,
supporting glitch-free sampling rate transitions.

Add a configuration option for the always-on clock feature.

Change-Id: Ifb7bd55e9eefb6e07d00e16de12abff43d7e4d4e
Signed-off-by: Zhong Shengquan <shengquan.zhong@rock-chips.com>
2025-09-12 01:34:41 +00:00
Zhong Shengquan
bb3fd4709b ASoC: rockchip: spdifrx: Add sample rate estimation feature
Obtain the transmitter's sample rate through channel status bits,
and use the CDRST register and MCLK to estimate the sample rate.

Notify sync and sample rate information through controls.The control
names are "RK SPDIFRX SYNC STATUS" and "RK SPDIFRX SAMPLE RATE". The
application layer needs to monitor the controls and read the control
values to obtain the information.

For the sync control, 0 indicates an unlocked state, and 1 indicates
a locked state. The sample rate control has two values, the first
represents the sample rate obtained from the channel status, and the
second represents the estimated sample rate.

Change-Id: Ie3b4f009c55d326c4517996efa46e6e2e31c7d65
Signed-off-by: Zhong Shengquan <shengquan.zhong@rock-chips.com>
2025-09-12 01:34:41 +00:00
Zou Dengming
d4f0968254 ASoC: rockchip: spdifrx: support 32bit
Change-Id: I51fcef56456449c7e98a68b3aaa37823c8016ff3
Signed-off-by: Zou Dengming <marsow.zou@rock-chips.com>
2025-09-12 01:34:41 +00:00
Liang Chen
25910335e7 arm64: dts: rockchip: rv1126bj: add opp-table for cpu/npu
Change-Id: I88861dc0c8a223026b9b480a5219c903c0044db4
Signed-off-by: Liang Chen <cl@rock-chips.com>
2025-09-12 01:20:33 +00:00
Liang Chen
7c05575673 clk: rockchip: clk-pvtpll: rv1126bj: add pvtpll table for cpu/npu
Change-Id: I958a938f919e7ccb3f01ccef331dff5325d26e9f
Signed-off-by: Liang Chen <cl@rock-chips.com>
2025-09-12 01:19:41 +00:00
Elaine Zhang
1a0a9f9451 clk: rockchip: rv1126b: fix aclk_core use div2
Change-Id: If920a41b4663a46ad6bd83c9c0fb07adb4972e74
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2025-09-12 01:18:41 +00:00
Zitong Cai
904956c341 mfd: display-serdes: Add max96789_select split mode link lock judgment
Change-Id: I423c76f6371592d40b0b1d4cb9710d5a256fe3a6
Signed-off-by: Zitong Cai <zitong.cai@rock-chips.com>
2025-09-11 12:50:16 +00:00
Xing Zheng
2f434f8f1f ASoC: codecs: rk730: Reduce the log output level to debug
Change-Id: Idc8e09773100b9c1265ed4befd98b163fc854c3c
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2025-09-11 12:40:16 +00:00
Xing Zheng
b6672f6a2f ARM: dts: rockchip: rk3506g-evb1-v10: add rk730 for evb1
And avoid to compiling error:
rk3502g-evb1-v10.dtb:
ERROR (phandle_references): /rk730-sound: Reference to non-existent node or label "sai_dais"

Change-Id: I9ad829c7bc32cc6922ade9a3e3a66cdfa7d4e7fa
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2025-09-11 12:39:42 +00:00
Weiwen Chen
9207016bfb arm64: config: rv1126b: Add rv1126b-recovery.config
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: I7cbd1c80607f79df3f1ed532c286b1baf904d397
2025-09-11 12:22:02 +00:00
Weiwen Chen
9ce1447420 arm64: config: rv1126b: disable unused RK_HEADSET and RK817
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: I23e19f14597246d7f3f5916853ffb692b4d728c9
2025-09-11 12:22:02 +00:00
Zhang Yubing
d0e8f174dd phy: rockchip: usbdp: use correct flag to init phy mode
If the rockchip,dp-lane-mux property is config in dts, it mean
DP function is used, but the USB function may not be used. It
may be cause cmn ana lcpll lock timeout when initialize phy but
USB function is not used. So just init the phy mode with USB
function when u3-port node is enabled.

If the rockchip,dp-lane-mux property is not in dts, it mean
USB function is used, but the DP function is depend on DP Alt
mode support by sink. If not sink device is disconnected and
force to access DPTX controller register after initialize phy,
The DP function should config, if not config the DPTX controller
register can't be access. So if dp-port node is enabled, init
the phy mode with DP function.

Change-Id: I8aa7ab41d962a50dcdf6dffcf27070a6c6112efe
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2025-09-11 12:17:31 +00:00
Tao Huang
b6e19cb5c8 ASoC: es7243e: Don't strip remove function when driver is builtin
Fixes W=1 modpost warning:
WARNING: modpost: sound/soc/codecs/es7243e.o: section mismatch in reference:
es7243e_i2c_driver (section: .data) -> es7243e_i2c_remove (section: .exit.text)

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I5ce3f1f539e8f3e73277db40d97223bbaf38424a
2025-09-11 18:39:16 +08:00
Zhang Yubing
ac8bace64e drm/rockchip: drv: include debugfs.h in rockchip_drm_drv.h
Move debugfs.h in the rockchip drm driver common header file.

Fixes: baa928edb1 ("drm/rockchip: dw-dp: add a debugfs directory")

Change-Id: Iba14580e612723ff7ebf6e8348c5c519a8356f0e
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2025-09-11 03:19:17 +00:00
Simon Xue
6c6aae8599 dma-buf: rk_heaps: rename heap module targets to rk-dma-heap-{cma,system}
Change-Id: I1e28155be30ea722fe1939763d128d132a678494
Signed-off-by: Simon Xue <xxm@rock-chips.com>
2025-09-11 03:18:33 +00:00
Haoran Han
0d393aedbc arm64: dts: rockchip: rk3588-vehicle-evb-v23: Modify the master of i2c-7 and the lock pin of max96756
Change-Id: I97bc8a465250464274b1b7b812f9bdcb12c1238e
Signed-off-by: Haoran Han <haoran.han@rock-chips.com>
2025-09-11 01:55:23 +00:00
Haoran Han
9904b5853f arm64: configs: rk3588_vehicle.config: add CONFIG_VIDEO_MAX96756=y
Change-Id: I82957e89d550c0fbb1606c27c1f37434cb1850a8
Signed-off-by: Haoran Han <haoran.han@rock-chips.com>
2025-09-11 01:54:05 +00:00
Xing Zheng
b69407b9ad arm64: dts: rockchip: rv1126b-evb: enable both acodec_pmu and acodec for 4ch capture by default
For example:
amixer sset 'ACodec_LP PGA Gain' 20
amixer sset 'ACodec PGA Gain' 20
arecord -Dhw:0,0 -c 4 -fs16_le -r 16000 /tmp/record.wav -vv

Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Change-Id: I48f15036233286da78d3322a39723e4031b99e54
2025-09-11 01:53:15 +00:00
Haoran Han
df9a97d980 media: i2c: max96756: Compatible with kernel-6.1 version
Change-Id: I28736b16eab72c9fb85914a12190f1d21d2d173c
Signed-off-by: Haoran Han <haoran.han@rock-chips.com>
2025-09-11 01:47:31 +00:00
Tao Huang
a665085775 video: rockchip: rga3: Explicitly include vmalloc.h
Fixes: 6e89da27be ("video: rockchip: rga3: use dma_map_sg instead of dma_map_resouce")
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ic3dbdb03e0de19b6360f44a9e7a821b4ceb62d28
2025-09-11 01:38:46 +00:00
Zitong Cai
3042fbdfcf mfd: display-serdes: Fix system crash caused by serdes_init_seq being a null pointer
When the serdes-init-sequence is not configured, serdes_init_seq is
a null pointer. However, some serdes initializations do not require
the serdes_init_seq configuration, so the driver needs to execute
normally even when the serdes-init-sequence is not configured.

Change-Id: Id01f0921c9050db5c20f6ad075ddd47891f68bcb
Signed-off-by: Zitong Cai <zitong.cai@rock-chips.com>
2025-09-10 11:58:27 +00:00
Tao Huang
ea16ecc60e media: i2c: 0x03c10: Make generate_byte_stream() static
Fixes: 865a3ad68d ("media: i2c: 0x03c10 support check register setting crc")
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Iae9bdb29d396db6ae265cc0da080f0e825038493
2025-09-10 18:34:14 +08:00
Yifeng Zhao
17901d5a27 mmc: sdhci-of-dwcmshc: optimize the random write performance when CMDQ is enabled
Some EMMC devices only have one hardware queue, and CMD13 can only
query one slot at a time to transmit data, which cannot be processed
in parallel. The CMD13 query interval can be modified to increase
query frequency and improve random write performance.

Change-Id: I5f8cfd9d62228e62fd0ad71d7b69698d80b21f80
Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
2025-09-10 06:22:10 +00:00
Damon Ding
69c6e6af9d drm/bridge: analogix_dp: Fix to use &drm_display_mode.clock to check bandwidth
For split mode, we will update the &drm_display_mode in
&drm_connector_helper_funcs.get_modes() earlier. However, as for
non-split mode, the &drm_display_mode->crtc_clock may be 0, which
make the bandwidth check always pass. It should be reasonable to
use &drm_display_mode.crtc instead of &drm_display_mode.crtc_clock
for bandwidth check.

Fixes: b935b0aa0c ("drm/rockchip: analogix_dp: use mode crtc_* timing for hardware config")
Change-Id: Iee9681e15eeeb765957dbd127cbca19d4be405c8
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2025-09-09 11:37:44 +00:00
Zhang Yubing
e7fa9af804 drm/rockchip: dw-dp: add a dp_status node dump more info
Add a dp_status node to dump more debug info, include
hpd status, link status, video status, msa status, sdp
status.

Change-Id: I130f08238396bb891f2fab2bbdf76b33858ef8c2
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2025-09-09 11:37:07 +00:00
Zhang Yubing
baa928edb1 drm/rockchip: dw-dp: add a debugfs directory
The DPTX may be not create a drm connector, or it will create
more than 1 drm connector when work in MST mode. So it's better
to create a debugfs directory for the DPTX driver. A drm
encoder is necessary for DPTX driver and the drm connector is
optional, So the debug node add when drm encoder late register
state.

Change-Id: I7515872aebc0101611a9afa393765a8bd478699d
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2025-09-09 11:35:47 +00:00
Zhang Yubing
3b68d42dda drm/rockchip: dw-dp: print debug log use drm_dbg_dp
Replace the dev_dbg with drm_dbg_dp, it will dump the debug log
more easily. Just adjust the drm debug log level, set the bit[9]
as follow:
echo 0x100 > /sys/module/drm/parameters/debug

Change-Id: I3b522d542f043a79fab652d017dfb7e11f67fb74
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2025-09-09 11:25:21 +00:00
Wei Dun
3795c31e57 media: rockchip: vpss: add RKVPSS_CMD_BUF_DEL_BY_FILE cmd
Change-Id: I4c80133b75459c419f6572384be2fca9cdec978f
Signed-off-by: Wei Dun <willam.wei@rock-chips.com>
2025-09-09 10:43:19 +00:00
Jon Lin
25f97ec5e6 misc: rockchip: pcie-rkep: Fix rkep memory free apis error
1.Missing size, cannot match when releasing;
2.Missing valid virtual address, cannot successfully release.

Fixes: 8633bf3947 ("misc: rockchip: pcie-rkep: Support continuous buffer")
Change-Id: I6682f63b8c17b9f005d5eb2bc2d29f0a4962a0e5
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2025-09-09 08:46:54 +00:00
Wu Liangqing
ff4be6b36f arm64: dts: rockchip: rk3588-evb7-lp4: change the UART port of Bluetooth to ttys9
Change-Id: I88567ba63904f6b01ad381e652e2d8febfcf533f
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
2025-09-09 06:12:34 +00:00
Zhang Yubing
8cb70d4022 drm/rockchip: dw-dp: don't send sdp when disable video stream
When the display mode change from HDR to SDR but the vsc sdp and
hdr infoframe still send after exit HDR mode, the picture quality
will be abnormal. It need disable sdp when disable video stream.

Fixes: 0ac9316547 ("Revert "drm/rockchip: dw-dp: reset dp controller status"")

Change-Id: I060e8d8e6c9765b71831d08060a1d3ed097bbefa
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2025-09-09 06:11:20 +00:00
Jon Lin
9e1626c671 arm64: rockchip_linux_defconfig: Enable CONFIG_PCIE_FUNC_RKEP as module
Change-Id: I3caa91b36b759a460a2dd76998b35bf5c4e7e688
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2025-09-09 06:10:56 +00:00
Chaoyi Chen
83596577da drm/rockchip: vop2: Clear WB_COMPLETE_INTR when vop power on
When vop power on, the WB_COMPLETE_INTR is active. Clear it before
use writeback. Otherwise the interrupt will be triggered immediately
after being enabled.

Change-Id: If54ca15597b8cfcf644a2bfb1ce127fd5d8c3caf
Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com>
2025-09-08 07:51:36 +00:00
Zefa Chen
80e98b2188 media: rockchip: vicap fixes error of output format when restart dma capture
Change-Id: I53406d0f1ead4cff4c9dff8a779a942a549eb775
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
2025-09-05 06:23:43 +00:00
Zhang Yubing
a1d4071c51 drm/rockchip: dw-dp: support SDP bank regs as readable
Support SDP bank regs as readable for debug scenario

Change-Id: I831454e9f5de2f5f7438576b530eb30e8a83b657
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2025-09-05 03:13:10 +00:00
William Wu
3754e108b2 FROMLIST: usb: gadget: configfs: Correctly set use_os_string at bind
Once the use_os_string flag is set to true for some functions
(e.g. adb/mtp) which need to response the OS string, and then
if we re-bind the ConfigFS gadget to use the other functions
(e.g. hid) which should not to response the OS string, however,
because the use_os_string flag is still true, so the usb gadget
response the OS string descriptor incorrectly, this can cause
the USB device to be unrecognizable on the Windows system.

An example of this as follows:

echo 1 > os_desc/use
ln -s functions/ffs.adb configs/b.1/function0
start adbd
echo "<udc device>" > UDC   #succeed

stop adbd
rm configs/b.1/function0
echo 0 > os_desc/use
ln -s functions/hid.gs0 configs/b.1/function0
echo "<udc device>" > UDC  #fail to connect on Windows

This patch sets the use_os_string flag to false at bind if
the functions not support OS Descriptors.

Fixes: 87213d388e ("usb: gadget: configfs: OS String support")
Link: https://patchwork.kernel.org/project/linux-usb/patch/1755833769-25434-1-git-send-email-william.wu@rock-chips.com/
Change-Id: I79fce9ad19b5ceaf5ded84894d6b509a3d0c75f4
Signed-off-by: William Wu <william.wu@rock-chips.com>
2025-09-05 02:10:29 +00:00
Shengfei Xu
11dd45bfb8 arm64: dts: rockchip: rk3588-evb10: Add ina226 node
Change-Id: I488fa4acf81885118e54e03cd720f15f34247c8b
Signed-off-by: Shengfei Xu <xsf@rock-chips.com>
2025-09-05 09:38:00 +08:00
Shengfei Xu
8f37891624 arm64: configs: rockchip_linux_defconfig enable CONFIG_SENSORS_INA2XX
The main function is to obtain voltage and current, currently used for
testing the input voltage and input current of the RK1820 small board on
the RK3588 to determine the current load.

Change-Id: Ibfe1babfa0a6fba11008a3b19d3c09e354b4674a
Signed-off-by: Shengfei Xu <xsf@rock-chips.com>
2025-09-04 20:15:55 +08:00
Caesar Wang
ff98cc67d0 arm64/configs: rockchip_linux_defconfig: enable CONFIG_HWSPINLOCK_ROCKCHIP
Change-Id: I81f75a71d612d8c94e8a7950db616a80ea5e2ae8
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
2025-09-04 11:34:54 +08:00