Commit Graph

1231428 Commits

Author SHA1 Message Date
Nell
dd4630946d k1:remoteproc: modify the core code to support VIRTIO_F_ACCESS_PLATFORM
feature

when enable this feature, the AP & rcpu will using dma_addr to share
memroy

Change-Id: I0c2427abf3c455fcbdc78a51788287f8198eae55
Signed-off-by: Nell <xianbin.zhu@spacemit.com>
2025-07-03 15:16:27 +08:00
Junzhong Pan
b14d273869 dtsi: k1-x: use RESET_COMBO_PHY for combphy
Change-Id: Ifd12910bbff95c7df4ce8824b9ec59bde9e45497
Signed-off-by: Junzhong Pan <junzhong.pan@spacemit.com>
2025-07-03 10:29:16 +08:00
Junzhong Pan
defacd6ae1 reset: spacemit-k1x: add RESET_COMBO_PHY reset signal
USB3 and PCIE0 of k1x shares a combo phy. BIT(8) of APMU register
APMU_PCIE_CLK_RES_CTRL_0 is designed for USB3 to reset the combo phy
without resetting the PCIE0.

Change-Id: I1935d228b1c4c8d81fd280a8dc245806539d7104
Signed-off-by: Junzhong Pan <junzhong.pan@spacemit.com>
2025-07-03 10:28:53 +08:00
zhenglilang
8be331c040 k1:display: enable lcd hxdm101 for ZT_RVOH007
Change-Id: I7e1923c38e93062f7684c33688cebd42f5b9bc0e
2025-07-03 10:26:55 +08:00
yanhaodong
ad75b543a7 ZT_RVOH007:k1/dts: add k1-x_ZT_RVOH007.dts
Change-Id: If022c3a99761442dfc947962631e658df9c22c2e
Signed-off-by: yanhaodong <haodong.yan@spacemit.com>
2025-07-03 10:25:45 +08:00
zhenglilang
4f44e051e2 k1:display: ignore HPD IRQ if HDMI suspended
Change-Id: I1b73861871b1b641378c942c2a385a35151b68cc
2025-07-02 19:55:04 +08:00
zengyu
82d6e838de k1: ethercat: fix incorrect error path in emac_probe
Change-Id: I33da6d78004f62e8607050fe19d5f6c461afc84a
2025-07-01 10:27:38 +08:00
zengyu
125f711256 k1: ethercat: native driver optimization
Reused SKBs in the RX path to avoid frequent allocation and free.
In a 24-hour test running the same demo, max execution time jitter was
reduced by 18.1%, lowering the risk of synchronization failure.

Change-Id: I23bc1c0c56677dd233548cc183e8e5f1497ddefa
2025-07-01 10:27:13 +08:00
zhenglilang
aa9769f6b2 k1:display: add lcd hxdm101
Change-Id: I94ca7b9d75bb6ddeadead4a028c1f1e3286563ac
2025-07-01 10:25:57 +08:00
wanlong
bf34673bce wireless: rtl8852bs: fix oops in rtw_phl_cmd_scan_request() during
suspend

Unable to handle kernel NULL pointer dereference at virtual address 0000000000000169
Oops [#1]
Modules linked in: algif_hash
 algif_skcipher af_alg 8852bs binfmt_misc sch_fq_codel ip_tables autofs4
CPU: 5 PID: 1001 Comm: fsm_thread Tainted: G        W          6.6.63 #20250623142956
Hardware name: spacemit k1-x deb1 board (DT)
epc : rtw_phl_cmd_scan_request+0x24/0x98c [8852bs]
 ra : rtw_sitesurvey_cmd+0x3e8/0x67a [8852bs]
epc : ffffffff0237dc42 ra : ffffffff022fa748 sp : ffffffc80939ba00
 gp : ffffffff820fac50 tp : ffffffd905ff8c80 t0 : ffffffc80939baa8
 t1 : 0000000000000001 t2 : 4f525245203a5754 s0 : ffffffc80939bae0
 s1 : ffffffc80926e18c a0 : ffffffc80063d000 a1 : ffffffd904328000
 a2 : 0000000000000010 a3 : 0000000000006312 a4 : 0000000000000000
 a5 : 0000000000000000 a6 : 0000000000000000 a7 : ffffffff8213c7b8
 s2 : ffffffc80926d048 s3 : ffffffd904328000 s4 : ffffffff026b8c08
 s5 : ffffffd907830000 s6 : 0000000000000000 s7 : 0000000000000070
 s8 : 0000000000000001 s9 : ffffffff026b7fd8 s10: ffffffd907837a78
 s11: ffffffd92c6dfe00 t3 : ffffffff82112ba7 t4 : ffffffff82112ba7
 t5 : ffffffff82112ba8 t6 : ffffffd9078300aa
status: 0000000200000120 badaddr: 0000000000000169 cause: 000000000000000d
[<ffffffff0237dc42>] rtw_phl_cmd_scan_request+0x24/0x98c [8852bs]
[<ffffffff022fa748>] rtw_sitesurvey_cmd+0x3e8/0x67a [8852bs]
[<ffffffff0227ba34>] rrm_sitesurvey.constprop.0.isra.0+0xd2/0x19e [8852bs]
[<ffffffff0227f760>] rrm_do_meas_st_hdl+0x10a/0x30c [8852bs]
[<ffffffff0227875c>] fsm_state_run.isra.0+0x66/0x128 [8852bs]
[<ffffffff022794ee>] fsm_state_goto+0x50/0x13c [8852bs]
[<ffffffff0227f482>] rrm_idle_st_hdl+0x2e2/0x356 [8852bs]
[<ffffffff0227875c>] fsm_state_run.isra.0+0x66/0x128 [8852bs]
[<ffffffff02278b9c>] fsm_thread_share+0x37e/0x478 [8852bs]
[<ffffffff8003ea76>] kthread+0xda/0xf6
[<ffffffff80fde1ce>] ret_from_fork+0xe/0x18
Code: f556 1180 b703 1c05 ba17 0033 0a13 fd2a 2783 000a (4703) 1697

Change-Id: I0ae3eca28216f31824767ff4ba6eacc637be1537
Signed-off-by: wanlong <long.wan@spacemit.com>
2025-07-01 10:21:44 +08:00
goumin
9cc34aec3f Led:Change led mode to heartbeat for k1-x_MUSE-Pi-Pro.
Change-Id: I10d3ba181ba41693a192690e0fa5889b099d9eb9
2025-07-01 10:20:44 +08:00
yanhaodong
fc2b447e45 k1: uart: fix DCTS state read turn
The func updates DCTS state in do-while.The last value of status
must be 0 so the func will return.We fix it.

Change-Id: Ie799c277cb46b6f8c6dda96c19181ed9ea66b617
Signed-off-by: yanhaodong <haodong.yan@spacemit.com>
2025-06-25 15:50:23 +08:00
lijuan
7be6c98c18 rt-patch: update rt patch for patch apply err
Change-Id: Ifc579d85350d10f13a5ee4386526156b364c5707
Signed-off-by: lijuan <juan.li@spacemit.com>
2025-06-19 15:38:21 +08:00
fafbb64cf1 riscv: dts: spacemit: fix overlapping space for imggpu
The GPU device tree node is currently declared with a overlarged size
that overlaps with Ethernet.

Fix this by setting the size to the base address of Ethernet minus by
the base address of GPU.

Signed-off-by: Icenowy Zheng <uwu@icenowy.me>
2025-06-18 21:28:16 +08:00
wanlong
92524acb4d wireless: rtl8852bs: fix out of bounds access in atomic_inc()
BUG: KASAN: global-out-of-bounds in rtw_hal_update_sta_entry+0x49c/0x7a6 [8852bs]
Write of size 4 at addr ffffffff0465af00 by task disp_eng_share_/1174

CPU: 0 PID: 1174 Comm: disp_eng_share_ Tainted: G        W          6.6.63 #20250613114718
Hardware name: spacemit k1-x deb1 board (DT)
Call Trace:
[<ffffffff80009290>] dump_backtrace+0x1c/0x24
[<ffffffff81ab253e>] show_stack+0x2c/0x38
[<ffffffff81adea4c>] dump_stack_lvl+0x3c/0x54
[<ffffffff81ab64fc>] print_report+0x1a2/0x4b8
[<ffffffff8035448c>] kasan_report+0xac/0x134
[<ffffffff80355988>] kasan_check_range+0xc0/0x148
[<ffffffff80356310>] __kasan_check_write+0x14/0x1c
[<ffffffff03f5d9e8>] rtw_hal_update_sta_entry+0x49c/0x7a6 [8852bs]
[<ffffffff03e7d2cc>] phl_update_media_status+0x186/0x72c [8852bs]
[<ffffffff03e7d9e6>] rtw_phl_cmd_update_media_status+0x126/0x192 [8852bs]
[<ffffffff03e32404>] rtw_hw_connected+0xfe/0x7c2 [8852bs]
[<ffffffff03db57fe>] rtw_set_hw_after_join+0x148/0x276 [8852bs]
[<ffffffff03d9018a>] _connect_msg_hdlr+0x31e/0x1170 [8852bs]
[<ffffffff03ef3bf8>] cur_req_hdl+0x86/0x96 [8852bs]
[<ffffffff03ef49b4>] msg_dispatch+0x506/0x64e [8852bs]
[<ffffffff03efa75c>] dispr_thread_loop_hdl+0x2f8/0x496 [8852bs]
[<ffffffff03efa90a>] dispr_share_thread_loop_hdl+0x10/0x18 [8852bs]
[<ffffffff03eeec54>] share_thread_hdl+0xd2/0x2c2 [8852bs]
[<ffffffff80067cbe>] kthread+0x198/0x1c6
[<ffffffff81af007e>] ret_from_fork+0xe/0x18

Change-Id: Ia80447adcd58d39115f4d4c20da22658788f6e1e
Signed-off-by: wanlong <long.wan@spacemit.com>
2025-06-18 14:53:25 +08:00
liweizhi
dc78cc2ee8 scripts/package/mkdebian
linux-image-6.6.63 depends on bianbu-esos (= 0.0.9)
linux-tools-6.6.63 depends on libnuma-dev, libbabeltrace1, libpfm4, libtraceevent1

Change-Id: Id0b785a38f25151af4156dacb3bb923e6b83047e
2025-06-17 20:11:24 +08:00
zengyu
99f7e093c3 k1: InnoBoard-Pi: Add wol support
Replace the generic PHY driver with Motorcomm's dedicated driver in dts
to provide Wake-on-LAN functionality

Change-Id: Ic35df0873110c4d82280aeff35a9bffb74744393
2025-06-16 09:59:01 +08:00
zengyu
19f53ef5df k1_defconfig: Enable MOTORCOMM PHY driver
Enable the dedicated driver for Motorcomm PHYs in defconfig.
It provides better support than the generic PHY driver on platforms using this PHY.

Change-Id: I3ef20dde8289ac68a9fceb912c4d98553eb86791
2025-06-16 09:58:41 +08:00
wanlong
8382a743ef k1: FusionOne: update sdio tx delaycode according to cpufreq
Change-Id: I0f95a8a521f72ba92c6e2b613b52093bfe25eae6
Signed-off-by: wanlong <long.wan@spacemit.com>
2025-06-16 09:51:42 +08:00
wanlong
f7811e295c wireless: rtl8852bs: fix out of bounds access in rtw_wnm_update_reassoc_req_ie()
BUG: KASAN: slab-out-of-bounds in _rtw_memcpy+0x14/0x1c [8852bs]
Read of size 233 at addr ffffffd9120efc22 by task ksoftirqd/7/51

CPU: 7 PID: 51 Comm: ksoftirqd/7 Not tainted 6.6.63 #20250612155409
Hardware name: spacemit k1-x deb1 board (DT)
Call Trace:
[<ffffffff80009290>] dump_backtrace+0x1c/0x24
[<ffffffff81ab253e>] show_stack+0x2c/0x38
[<ffffffff81adea4c>] dump_stack_lvl+0x3c/0x54
[<ffffffff81ab64fc>] print_report+0x1a2/0x4b8
[<ffffffff8035448c>] kasan_report+0xac/0x134
[<ffffffff80355988>] kasan_check_range+0xc0/0x148
[<ffffffff803563ec>] __asan_memcpy+0x24/0x64
[<ffffffff03d04d12>] _rtw_memcpy+0x14/0x1c [8852bs]
[<ffffffff03e565ac>] rtw_wnm_update_reassoc_req_ie+0xe0/0x122 [8852bs]
[<ffffffff03daa3de>] _issue_assocreq+0x2cc/0x2ce [8852bs]
[<ffffffff03daf63e>] start_clnt_assoc+0x80/0xce [8852bs]
[<ffffffff03daf8ee>] OnAuthClient+0x262/0x534 [8852bs]
[<ffffffff03d9f32a>] _mgt_dispatcher+0x112/0x1be [8852bs]
[<ffffffff03da1b40>] mgt_dispatcher+0x1fc/0x316 [8852bs]
[<ffffffff03df12a8>] validate_recv_mgnt_frame+0x276/0x7c6 [8852bs]
[<ffffffff03df2aba>] validate_recv_frame+0x234/0x700 [8852bs]
[<ffffffff03df449a>] rtw_core_rx_process+0x3a6/0x4e8 [8852bs]
[<ffffffff03e6be48>] phl_event_indicator+0xea/0x1ae [8852bs]
[<ffffffff03e5f544>] rtw_taskletw_hdl+0x2e/0x3a [8852bs]
[<ffffffff80037c9e>] tasklet_action_common.isra.0+0x180/0x4de
[<ffffffff80038090>] tasklet_hi_action+0x44/0x50
[<ffffffff80037120>] handle_softirqs+0x236/0x544
[<ffffffff80037498>] run_ksoftirqd+0x6a/0x8c
[<ffffffff8006f062>] smpboot_thread_fn+0x246/0x446
[<ffffffff80067cbe>] kthread+0x198/0x1c6
[<ffffffff81af007e>] ret_from_fork+0xe/0x18

Change-Id: I6b2ab4398a5d2727adf2b93681b861353ed99f95
Signed-off-by: wanlong <long.wan@spacemit.com>
2025-06-16 09:51:13 +08:00
weijinmei
7a14302ad5 defconfig: enable codec es8375
Change-Id: Id7bfe15c5b54f3f406ed8d8435418aecb8570693
2025-06-16 09:11:14 +08:00
weijinmei
91ee0b87bc config: add codec es8375 config
Change-Id: Ib7992635e0daa999afffbb2b4c3813a2ca191db1
2025-06-16 09:10:48 +08:00
weijinmei
69af190669 es8375: add codec es8375 driver
Change-Id: Ie1b98893c2d0bd43260bfe3a50455a9dfdc51872
2025-06-16 09:10:31 +08:00
weijinmei
fb32843f66 i2s: add dsp_a/b fmt support
Change-Id: If9f10222504419ef46a8e5779110b4c803491ac1
2025-06-16 09:09:44 +08:00
weijinmei
825e7d1ed9 defconfig: enable codec es8316
Change-Id: I020892430ef9e53d03ea90ae005b294246dd4f06
2025-06-11 11:41:08 +08:00
huzhen
cc13775ad7 k1: dtsi: the interrupt of ethernet use interrupts-extended format
The current K1 GMAC controller cannot serve as a system wakeup source.
    Therefore, Wake-on-LAN (WoL) functionality must be implemented by the PHY,
    which wakes the system through its interrupt pin.

    For the GMAC's int_pin (connected to the PHY's interrupt pin) to function
    as a system wakeup source, it must be configured as a pinctrl interrupt.
    This results in two distinct interrupts for GMAC: Controller interrupt
    and int_pin interrupt.
    Consequently, eth0/eth1 Device Tree entries must use interrupts-extended
    to describe these dual interrupt sources.

    Note:Since the GMAC int_pin implementation may vary across hardware solutions,
    its configuration must be redefined within the respective platform-specific design.

Change-Id: I52dc5fc85ed01881fbccc5b6dcd5233e8f29722f
Signed-off-by: huzhen <george.hu@spacemit.com>
2025-06-07 10:15:35 +08:00
huzhen
008795971a net:spacemit: Add support for wol on k1
Change-Id: I6b6fe6d6c99bba41768a0eaffffa92960071c5f6
Signed-off-by: huzhen <george.hu@spacemit.com>
2025-06-07 10:14:52 +08:00
huzhen
28ca691589 net: phy: realtek: Add support for WOL magic packet on RTL8211F
The RTL8211F supports multiple WOL modes. This patch adds support for
    magic packets.

    The PHY notifies the system via the INTB/PMEB pin when a WOL event
    occurs.

    Backport Notes:
    1. File path changed: realtek/realtek_main.c ---> realtek.c
    2. Delete the unused member saved_wolopts

    Signed-off-by: Daniel Braunwarth <daniel.braunwarth@kuka.com>
    Reviewed-by: Andrew Lunn <andrew@lunn.ch>
    Link: https://patch.msgid.link/20250429-realtek_wol-v2-1-8f84def1ef2c@kuka.com
    Signed-off-by: Jakub Kicinski <kuba@kernel.org>
    (cherry picked from commit 7840e4d6f48a75413470935ebdc4bab4fc0c035e)

Change-Id: I6fb088bb370ff89f95381ed510cf9f3d159ed1e4
Signed-off-by: huzhen <george.hu@spacemit.com>
2025-06-07 10:14:28 +08:00
wanlong
3ba0573166 k1: uav: update sdio tx delaycode according to cpufreq
Change-Id: Iedd09e834f6212c977fa290785c8989ae397b408
Signed-off-by: wanlong <long.wan@spacemit.com>
2025-06-07 10:12:24 +08:00
wanlong
8a699f9f25 k1: ZT001H: update sdio tx delaycode according to cpufreq
Change-Id: I18ab764a49afe2e012f685bf8797b3527403cd8c
Signed-off-by: wanlong <long.wan@spacemit.com>
2025-06-07 10:12:10 +08:00
wanlong
30a73120ed k1: milkv-jupiter: update sdio tx delaycode according to cpufreq
Change-Id: I943a2ca6affec95b687c87076226a50fec078713
Signed-off-by: wanlong <long.wan@spacemit.com>
2025-06-07 10:09:45 +08:00
wanlong
51dbea3525 k1: MUSE-Paper-mini-4g: update sdio tx delaycode according to cpufreq
Change-Id: Ia0249e74ea02479c32f3c94ec29cb715a3bba6c3
Signed-off-by: wanlong <long.wan@spacemit.com>
2025-06-07 10:09:23 +08:00
wanlong
d0db91e254 k1: MUSE-Paper2: update sdio tx delaycode according to cpufreq
Change-Id: I6eb8e3d694f6925f407ee268c26153d19cf7442e
Signed-off-by: wanlong <long.wan@spacemit.com>
2025-06-07 10:08:59 +08:00
wanlong
02609c5431 k1: MUSE-Pi-Pro: update sdio tx delaycode according to cpufreq
Change-Id: I0157624d54f158533171c37958ab9d7d020e01ca
Signed-off-by: wanlong <long.wan@spacemit.com>
2025-06-07 10:07:56 +08:00
wanlong
f3375012f7 k1: MUSE-Pi: update sdio tx delaycode according to cpufreq
Change-Id: Idf843bda56eb2388b4b4aa27b2d80b491b676e8a
Signed-off-by: wanlong <long.wan@spacemit.com>
2025-06-07 10:07:35 +08:00
wanlong
19c8685532 k1: deb2: update sdio tx delaycode according to cpufreq
Change-Id: I0948caf652cfe28004122999d87b2f254d0590ef
Signed-off-by: wanlong <long.wan@spacemit.com>
2025-06-07 10:07:09 +08:00
wanlong
7861f6a046 k1: deb1: update sdio tx delaycode according to cpufreq
Change-Id: I0a53e90ade35ec0a0c05f1bb8c23993f5fcdcc7c
Signed-off-by: wanlong <long.wan@spacemit.com>
2025-06-07 10:06:57 +08:00
wanlong
8151a6dbbc mmc: sdhci-of-k1x: adjust tx delaycode according to cpufreq
Change-Id: I3f5cec193f5796c05a415eb413bc0093d9f6eaf4
Signed-off-by: wanlong <long.wan@spacemit.com>
2025-06-07 09:53:03 +08:00
yanhaodong
3efa91bb1c k1x: i2c: fix sda pull down after ack signal
set I2C_SDA_GLITCH_FIX_BYPASS bit before xfer.
If I2C_SDA_GLITCH_FIX_BYPASS bit is not set, sda
signal will keep low for a period to reduce glitch.
We set this bit for restart signal work normally.

Change-Id: Icd45af66fe47151eb911cdce558efa66c958a888
Signed-off-by: yanhaodong <haodong.yan@spacemit.com>
2025-06-04 08:22:42 +08:00
yanhaodong
59cad8f845 k1: uart: fix CTS state change cannot generate irq
If cts changes quickly, we get the first state and DCTS = 1.
Cts switches to low but DCTS has already been clear by last
read.
So we do "uart_handle_cts_change" after we see DCTS
turn to low.

Change-Id: Ie80111f878a3cdd54bf363f91506009e643adb8b
Signed-off-by: yanhaodong <haodong.yan@spacemit.com>
2025-05-29 10:59:33 +08:00
zengyu
68b2fa95c2 Disable unused PMIC RTC in k1-x_LX-V10.dts
Change-Id: Ieefb544f5e37a179c695cfccb6e75ccdd07a160d
2025-05-29 08:55:28 +08:00
zengyu
d930ba66f0 ethercat: restore required EXPORT_SYMBOLs in module.c
These symbols were mistakenly removed in a previous port.
They are necessary when users write EtherCAT control applications
as kernel modules.

Change-Id: I0a682fde751b9cf8b81945d24d49578e1ae029a2
2025-05-28 09:24:32 +08:00
lizhirong
f491cb1513 k1📷 fix the issue where udev scans nodes to release subdev node resource when the camera in use
Change-Id: Ia1a058965c379875e3f0ff91d5a4a87774dcd34e
Signed-off-by: lizhirong <zhirong.li@spacemit.com>
2025-05-27 17:57:18 +08:00
dengbo
563969041a nulldisp: fix remote login interface crash when accessing remotely
Unable to handle kernel access to user memory without uaccess routines at virtual address 0000000000000008
Oops [#1]
Modules linked in: algif_hash algif_skcipher af_alg 8852bs binfmt_misc cdc_ncm pwm_bl backlight ax_usb_nic sch_fq_codel ip_tables autofs4
CPU: 7 PID: 1731 Comm: labwc Not tainted 6.6.63 #20250523
Hardware name: spacemit k1-x MUSE-Pi board (DT)
epc : drm_gem_handle_create_tail+0x160/0x182
 ra : drm_gem_handle_create_tail+0x15c/0x182
epc : ffffffff8074de06 ra : ffffffff8074de02 sp : ffffffc8093f3c50
 gp : ffffffff820f0db8 tp : ffffffd91ff40c80 t0 : ffffffff81e2fc10
 t1 : ffffffff814aa9b0 t2 : 0000000000000000 s0 : ffffffc8093f3ca0
 s1 : ffffffd93c590000 a0 : 0000000000000058 a1 : ffffffda75f63708
 a2 : ffffffda75f6fb60 a3 : 0000000000000000 a4 : 0000000000000000
 a5 : 0000000000000000 a6 : 000000000000000c a7 : 00007fffffffffff
 s2 : 0000000000000001 s3 : ffffffd90b68e400 s4 : 0000000000000000
 s5 : ffffffd90b68e468 s6 : ffffffc8093f3d88 s7 : ffffffd90b68e450
 s8 : ffffffd93c590018 s9 : ffffffd90b68e400 s10: ffffffc8093f3d88
 s11: ffffffff814f3af0 t3 : 6865a52566dac856 t4 : 0000000000000001
 t5 : ffffffc8093f3d94 t6 : ffffffc8093f3a68
status: 0000000200000120 badaddr: 0000000000000008 cause: 000000000000000d
[<ffffffff8074de06>] drm_gem_handle_create_tail+0x160/0x182
[<ffffffff80758044>] drm_gem_prime_fd_to_handle+0x86/0x16c
[<ffffffff8075866c>] drm_prime_fd_to_handle_ioctl+0x16/0x2a
[<ffffffff8074e8f6>] drm_ioctl_kernel+0xa0/0x122
[<ffffffff8074eb2a>] drm_ioctl+0x1b2/0x3da
[<ffffffff8023f5be>] __riscv_sys_ioctl+0x8a/0xb2
[<ffffffff80f8f4a0>] do_trap_ecall_u+0x116/0x12a
[<ffffffff80f98c86>] ret_from_exception+0x0/0x6e
Code: c517 0120 0513 4365 9097 0082 80e7 3fe0 b783 1404 (679c) cb99

Change-Id: Ie9f613e216ea2428f34656cef9e2538b51ce644a
2025-05-23 17:49:08 +08:00
yanhaodong
502f2cbe04 k1x: flexcan: speed up AP handle rcan irq
after flexcan_irq, ap direct send msg to rcpu
instead of wakeup thread.

Change-Id: Ia7dacc49f662c2a03752405164d609673427a098
Signed-off-by: yanhaodong <haodong.yan@spacemit.com>
2025-05-23 10:15:59 +08:00
yanhaodong
67c7c01942 k1x: flexcan: add flexcan can2.0 config for k1
support FIFO_MODE only for flexcan can2.0.
We can choose CAN2.0 or CANFD through dtb(compatible)

Change-Id: I9d0a1fd402ab66de7b3cb284fbb45cf323a454c9
Signed-off-by: yanhaodong <haodong.yan@spacemit.com>
2025-05-21 09:35:10 +08:00
yanhaodong
e3f95b8811 k1x: flexcan: IRQF_NO_THREAD will cause error, remove it
In rt-linux, flexcan irq cannot use spin_lock if IRQF_NO_THREAD.

Change-Id: I1d6bb1a5d0e7d34ff71f80890dc8295a02bf61b2
Signed-off-by: yanhaodong <haodong.yan@spacemit.com>
2025-05-21 09:34:32 +08:00
yanhaodong
cece39422f k1: dts: switch MUSE-Pi-Pro 40pin to specific mode
config pins to uart/i2c/pwm/spi

Change-Id: I719ac6ba21aebd8b265bba8337befe3e8bbde07b
Signed-off-by: yanhaodong <haodong.yan@spacemit.com>
2025-05-19 14:39:08 +08:00
yanhaodong
f5b925289a k1: dts: switch MUSE-Pi 26pin to specific mode
config pins to uart/i2c/spi

Change-Id: I3d80d57fed5056c5fda7b8a0f133b51312f3a18a
Signed-off-by: yanhaodong <haodong.yan@spacemit.com>
2025-05-19 14:30:44 +08:00
yanhaodong
f7fc2b6a1c k1x: dts: remove unused dts files
Change-Id: I802740a1e7565601894d1f81eaf893c2705c670c
Signed-off-by: yanhaodong <haodong.yan@spacemit.com>
2025-05-16 14:48:53 +08:00