lijuan
ecbc859a2d
defconfig: delete INITRAMFS_SOURCE config
...
Change-Id: Ib3f784e29ac83814e1f12bcd4c493487e22c95f0
Signed-off-by: lijuan <juan.li@spacemit.com>
2025-01-20 13:55:51 +08:00
zhangmeng
c7b47155c9
Merge remote-tracking branch 'origin/k1-dev' into k1-release
...
Change-Id: I83db5c209e0363df970347f32a664796f97440e5
2025-01-17 21:07:54 +08:00
wanlong
8aca758627
mmc: sdhci-of-k1x: Do not recovery sdr104 if no-1-8-v is enabled
...
Change-Id: I7993bbb2b24a0fa869f2be45cf25f5cbf484148d
2025-01-17 20:39:12 +08:00
liweizhi
9cefc6c141
kbuild: deb-pkg: add provide field for version control
...
Change-Id: Ic7032de19ee32c7c53425f2afcc9faba7e35274c
2025-01-17 17:47:48 +08:00
lijuan
3ab0ab2134
rt-patch: fix patch failed
...
Change-Id: I7356902ec0714e0d89dd0d2e886b54bfcd2d7a13
Signed-off-by: lijuan <juan.li@spacemit.com>
2025-01-13 18:59:11 +08:00
wanlong
2478da4f2d
wireless: aic8800: enable wow function, rising trigger
...
Change-Id: I6b6fa5c24acfedd17d9f684285183457fee2d458
2025-01-13 11:29:28 +08:00
lijuan
a0981fb66a
debug_config: add debug_config for lock/memory debug
...
Change-Id: I19289f397a7abc98847b6bf30de46742bfd2f715
2025-01-10 18:35:00 +08:00
zhangmeng
6625306d3f
focaltech_touch: spacemit_drm_register_client depend on DRM_SPACEMIT
...
Change-Id: I0c818dd2806550f2c93a3dc3079f396dcb1abccc
2025-01-10 18:34:45 +08:00
zhangmeng
07e8e86fdc
chipone-tddi: spacemit_drm_register_client interface depend on DRM_SPACEMIT
...
Change-Id: Ib8b861e8a9b37ddca4a03995e0873976f28b7f92
2025-01-10 18:34:34 +08:00
zhangmeng
98f5bfc759
camera: camera sensor should depend on i2c module
...
Change-Id: I0e2f276b01ba1f184a7f81a0eb37ca1d48c2ee38
2025-01-10 18:34:23 +08:00
zhangmeng
0eee4755ed
ocp2138: should depned on i2c module
...
Change-Id: Ie33978be7bbe1f0f075d0cae18fa1f5df9456207
2025-01-10 18:34:10 +08:00
zhangmeng
c712f847bf
sound: hdmi-audio on k1 should depend on hdmi module
...
Change-Id: I4d253f6cc608a406130bed6ec18744fef89dd60d
2025-01-10 18:33:59 +08:00
zhangmeng
904ec961ae
codecs: es7210 should depend on i2c
...
Change-Id: I6a20b684f8f68bf57389acd859cf3177658424a9
2025-01-10 18:33:49 +08:00
zhangmeng
e09b4f1331
sgm415xx: should depend on i2c
...
Change-Id: Ic2ddbe16c9977b7f12ee51b2e901ebc28072705a
2025-01-10 18:33:38 +08:00
zhangmeng
f3480b2f8f
drm: POWERVR_ROGUE_NULLDRMDISP should depned on DRM and POWERVR_ROGUE
...
Change-Id: Ib993e38bebce0f87f53c305081a80ea18d4a70ae
2025-01-10 18:33:28 +08:00
zhenglilang
5ee151c10d
k1:display: resolve the issue of screen not lighting up due to inappropriate power-on timing
...
Change-Id: Ifbc8a16232407b868c4e07d5ecce9648873ba10b
(cherry picked from commit a0d94b35d9
)
2025-01-10 18:30:02 +08:00
zhenglilang
a0d94b35d9
k1:display: resolve the issue of screen not lighting up due to inappropriate power-on timing
...
Change-Id: Ifbc8a16232407b868c4e07d5ecce9648873ba10b
2025-01-09 16:51:59 +08:00
Junzhong Pan
0781e3d63f
k1_defconfig: enable ncm and hid usb_gadget
...
Change-Id: I3cf2208f32d4d7a3e5c89c0799a51778730d1881
2025-01-09 14:37:07 +08:00
dengbo
3b88b6f219
img-rogue: fix crash when use 'lsof /dev/video0'
...
fix:
kernel: Unable to handle kernel access to user memory without uaccess routines at virtual address 0000000000000018
kernel: Oops [#4 ]
kernel: Modules linked in: algif_hash algif_skcipher af_alg 8852bs binfmt_misc sch_fq_codel ip_tables autofs4
kernel: CPU: 5 PID: 5100 Comm: lsof Tainted: G D 6.6.36 #2.0.4.2
kernel: Hardware name: spacemit k1-x deb1 board (DT)
kernel: epc : pvr_show_fdinfo+0x50/0x86
kernel: ra : seq_show+0x150/0x1a8
kernel: epc : ffffffff808259f6 ra : ffffffff802bb850 sp : ffffffc808e53c10
kernel: gp : ffffffff820f46e0 tp : ffffffd903ea1880 t0 : ffffffff80fd4f1c
kernel: t1 : ffffffff814aa8f0 t2 : ffffffff81401250 s0 : ffffffc808e53c60
kernel: s1 : ffffffd906ac9078 a0 : ffffffff80825822 a1 : ffffffc808e53c18
kernel: a2 : ffffffd902a96100 a3 : ffffffd906ac7080 a4 : 0000000000000000
kernel: a5 : ffffffd9044e8000 a6 : 0000000000000001 a7 : ffffffffffffffff
kernel: s2 : ffffffd907ff2700 s3 : ffffffd906ac9078 s4 : ffffffd906c679c0
kernel: s5 : ffffffd915e713d8 s6 : 0000000000088002 s7 : 0000000000000000
kernel: s8 : 0000000000400cc0 s9 : fffffffffffff000 s10: 000000007ffff000
kernel: s11: ffffffd906ac90b0 t3 : 0000003fa69ad9d8 t4 : 0000003fa6a4c790
kernel: t5 : 0000000000000016 t6 : ffffffd90f62302a
kernel: status: 0000000200000120 badaddr: 0000000000000018 cause: 000000000000000d
kernel: [<ffffffff808259f6>] pvr_show_fdinfo+0x50/0x86
kernel: [<ffffffff802bb850>] seq_show+0x150/0x1a8
kernel: [<ffffffff8025c8ac>] seq_read_iter+0xde/0x348
kernel: [<ffffffff8025cb92>] seq_read+0x7c/0xa8
kernel: [<ffffffff802326fc>] vfs_read+0x98/0x234
kernel: [<ffffffff8023307a>] ksys_read+0x54/0xcc
kernel: [<ffffffff80233106>] __riscv_sys_read+0x14/0x1c
kernel: [<ffffffff80fd4fd6>] do_trap_ecall_u+0xba/0x12c
kernel: [<ffffffff80fde792>] ret_from_exception+0x0/0x6e
kernel: Code: 67b0 0593 fb84 6fd8 7394 6a1c 3823 fc04 3423 fc94 (4f18) 52b4
kernel: ---[ end trace 0000000000000000 ]---
Change-Id: I26d8e12dd350d3bd20e10da517e102569bd0ab70
2025-01-09 11:01:06 +08:00
dengbo
70b71d4451
configs: add new config to support cloud-based device
...
diff with k1_defconfig:
+CONFIG_DRM=y
CONFIG_DRM_RADEON=m
CONFIG_DRM_RADEON_USERPTR=y
-CONFIG_DRM_SPACEMIT=y
-CONFIG_SPACEMIT_MIPI_PANEL=y
-CONFIG_SPACEMIT_HDMI=y
+CONFIG_POWERVR_ROGUE_NULLDRMDISP=y
CONFIG_POWERVR_ROGUE=y
CONFIG_FB=y
CONFIG_BACKLIGHT_PWM=y
Change-Id: Ia57161d89828f8b2482ec06219341aa19131f10b
2025-01-09 11:00:39 +08:00
dengbo
445609fb22
nulldisp: set default surface size to 1280x720
...
Change-Id: Ia0f5187c6ae2bc9667132b27f738145c8ae87939
2025-01-09 11:00:15 +08:00
Nell
094b885290
k1:i2c:modify all of the pinctrl drive capability of i2c
...
Change-Id: I9db585a6da083e8250cb25869806c8bbce9bb968
2025-01-09 10:54:23 +08:00
lijuan
3819a53519
i2c: fix i2c pio transfer timeout when reboot
...
Change-Id: Ia1c47ce5b9d0af6f15321649fdcc823da0345026
Signed-off-by: lijuan <juan.li@spacemit.com>
(cherry picked from commit a4c57ca2cc
)
2025-01-06 16:14:44 +08:00
wanlong
90236acb02
usb: typec: husb239: fix bug of voltage compare, req_voltage's unit is mV
...
Change-Id: I63aca3d038542942304f83f4b4be2f0c5c0c2550
2025-01-06 14:35:25 +08:00
lijuan
a4c57ca2cc
i2c: fix i2c pio transfer timeout when reboot
...
Change-Id: Ia1c47ce5b9d0af6f15321649fdcc823da0345026
Signed-off-by: lijuan <juan.li@spacemit.com>
2025-01-06 13:49:19 +08:00
zhangmeng
da725bd74d
Merge remote-tracking branch 'origin/k1-dev' into k1-release
...
Change-Id: Icf6c49e497e5d56563c4af4ef0b0847dcb91f7e8
2025-01-03 09:06:33 +08:00
zhenglilang
1ac55a1bd0
k1:display: resolve the issue of HDMI reading EDID getting stuck in an infinite loop
...
Change-Id: I96e22dcd3c96c9e1ae9c58f6f8fd5ed764c792cc
2025-01-02 17:37:27 +08:00
zhouxl
821ea1a46c
efivar: add efivar filesystem support
...
After enable efivar filesystem support in kernel, we can access
efi variable through path /sys/firmware/efi/efivars.
efi variable include boot order, boot timeout, boot sequence...,
we can modify its value through efivars in kernel command line
without UEFI bootloader code.
Change-Id: If52dc5f06ae940fdaf407327966693c54f759dc9
2025-01-02 17:35:30 +08:00
weijinmei
83aa6cb926
i2c: fix ri2c clock rate incorrect
...
before: 61.44Hz
after: 30.72MHz
Change-Id: Ic79e53e2f6ca0766ee43f69d0395b7d63fb7924c
2025-01-02 17:25:19 +08:00
zhenglilang
ac6712d8b1
k1:display: adjust gx09inx101 resolution to 60Hz
...
Change-Id: I2ddc3f5359b5efc2148679c4c9b7ae34f8ee15df
2025-01-02 17:21:18 +08:00
wanlong
c4fbf4d9b3
wireless: aic8800: avoid enter endless loop while sdio io fail
...
Change-Id: I4cbb9cfa6a3cc714fffd1d7df265cd59cf04e13b
2025-01-02 17:17:11 +08:00
lizhirong
a64e7e8285
camera:ccic: fix deadlock problem of ccic_test in mlx75027
...
Change-Id: I11d1669c0e016fd855a5ed1d38da675c05cdd3be
2025-01-02 17:16:44 +08:00
zhangmeng
8163aca0b5
media: k1/camera: fix some compile warnings
...
Change-Id: I9d9dc1612a00b8be764fdcf133100a33e91e9fb3
2024-12-27 13:51:43 +08:00
zhangmeng
024c7f9833
thermal: k1: Correct a typo in the code
...
Change-Id: I3b034182584e4c5f3cb7403f42217a70e60b904f
2024-12-27 13:51:25 +08:00
zhangmeng
b77986df3d
soc: k1/jpu: fix MODULE_LICENSE announce error
...
Change-Id: Ica834e42c69fa232373d672dbcc95f91c7fa40cf
2024-12-27 13:51:19 +08:00
zhangmeng
fd2b142449
wdt: k1x: fix MODULE_LICENSE announce error
...
Change-Id: I7d9181aa4af4aee2704114c5318af71679b40c55
2024-12-27 13:51:12 +08:00
Nell
17e47563fa
k1:pinctrl: add the address space of gpio
...
Change-Id: Icabd1bb84716299fdcb1967948a7b25ead0a08e6
2024-12-26 11:47:30 +08:00
lijuan
9b6683e61f
ai-trap: scan device-tree when booting time
...
Change-Id: I3075960b7d3a20262b4979816e9521f4c4f169c2
Signed-off-by: lijuan <juan.li@spacemit.com>
2024-12-26 08:58:39 +08:00
zhangmeng
a6af219840
pinctrl: fix compile warning
...
Change-Id: If647781b60f246036479c37ee329ac884b932588
2024-12-26 08:57:46 +08:00
lilijun
1737d8466f
drm: k1/display: Turn off HPD interrupt during system suspend to avoid screen flickering when the system wakes up
...
Change-Id: Ia273901b23b0f5c8b8936838c8db72dcc65cc337
2024-12-25 21:15:25 +08:00
wanlong
f20a470920
wireless: rtl8852bs: modify compile optimize from -O1 to -O2
...
Change-Id: I663ab20073dc132c9d96d59fe1c02ef54a259578
2024-12-25 21:15:25 +08:00
lijuan
30f1e8c181
i2c: fix i2c transfer timeout when irq thread
...
The irq thread will set ONESHOT flag.
1. When the interruption occurs, the corresponding interrupt will be masked,
2. After the interrupt handler finishes, the corresponding interrupt will be unmasked.
3. However, in the case of an exception, the corresponding interrupt will not be unmasked.
eg:
CPU0 CPU1
irq_finalize_oneshot() { spacemit_i2c_xfer() {
... wait_for_completion_timeout()
disable_irq(spacemit_i2c->irq);
if (!desc->threads_oneshot && ...
!irqd_irq_disabled(&desc->irq_data) &&
irqd_irq_masked(&desc->irq_data))
unmask_threaded_irq(desc); }
...
}
Change-Id: If6393fdfb781b535b8da2fc26b08bbffff984365
2024-12-25 21:15:25 +08:00
Nell
ce4b06bb82
pinctrl:k1:support the sleep function of pinctrl
...
this patch can set one pin to gpio mode and can also output low or high
Change-Id: I6f50585f7177a3d9cf36f28bfa5d5f11caa52137
2024-12-25 21:15:25 +08:00
Wende Tan
4bba54be79
RISC-V: build: Allow LTO to be selected
...
Allow LTO to be selected for RISC-V, only when LLD >= 14, since there is
an issue [1] in prior LLD versions that prevents LLD to generate proper
machine code for RISC-V when writing `nop`s.
To avoid boot failures in QEMU [2], '-mattr=+c' and '-mattr=+relax'
need to be passed via '-mllvm' to ld.lld, as there appears to be an
issue with LLVM's target-features and LTO [3], which can result in
incorrect relocations to branch targets [4]. Once this is fixed in LLVM,
it can be made conditional on affected ld.lld versions.
Disable LTO for arch/riscv/kernel/pi, as llvm-objcopy expects an ELF
object file when manipulating the files in that subfolder, rather than
LLVM bitcode.
[1] https://github.com/llvm/llvm-project/issues/50505 , resolved by LLVM
commit e63455d5e0e5 ("[MC] Use local MCSubtargetInfo in writeNops")
[2] https://github.com/ClangBuiltLinux/linux/issues/1942
[3] https://github.com/llvm/llvm-project/issues/59350
[4] https://github.com/llvm/llvm-project/issues/65090
Tested-by: Wende Tan <twd2.me@gmail.com>
Change-Id: Ib5a2cfe304cf10594e3f8cfec8d44794fd433882
Signed-off-by: Wende Tan <twd2.me@gmail.com>
Co-developed-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20231017-riscv-lto-v4-1-e7810b24e805@kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
2024-12-25 21:15:25 +08:00
Mark Zhuang
de89350157
riscv: support enable more ISA for compare
...
Add ISA zba zbb zbc zbs zicond
config RISCV_ISA_ZBA port form
commit c12603e76ef666ce5c51a9d6faf155c9e3de7601
Author: Xiao Wang <xiao.w.wang@intel.com>
Date: Thu May 16 17:04:30 2024 +0800
riscv, bpf: Optimize zextw insn with Zba extension
config RISCV_ISA_ZBC port form
commit a43fe27d650375cd9e5ea915c538f6f9eabd185e
Author: Xiao Wang <xiao.w.wang@intel.com>
Date: Fri Jun 21 13:47:07 2024 +0800
riscv: Optimize crc32 with Zbc extension
Change-Id: Ic77b3fd8bd3b167840e4183aea2e0757ab90e330
2024-12-25 21:14:22 +08:00
zhangmeng
54ac0d6c04
hw_random: spacemit: fix compile warning
...
Change-Id: I9bd2a1e2df919995bafedc4eb44368293f825936
2024-12-25 21:12:47 +08:00
zhangmeng
e867add917
drm: img-rogue: fix compile warning
...
Change-Id: I52a8fd6cd1c3b8453d86d04dae3a6a91b1af7b0b
2024-12-25 21:12:43 +08:00
zhangmeng
6fa23c95a1
wireless: bcmdhd: fix compile warning
...
Change-Id: I4b8a548022e3613312395dd4b83cd2d579184b5d
2024-12-25 21:12:36 +08:00
zhangmeng
11a17b09f8
remoteproc: k1: fix compile warning
...
Change-Id: Ifcc22b50f0627f3e031b1a165885b606faf1566c
2024-12-25 21:12:10 +08:00
lijuan
bdc1a7e759
raid6: fix build warning
...
1. WARNING: modpost: vmlinux: section mismatch in reference: raid6_select_algo_wrapper+0x8 (section: .text.unlikely) -> raid6_select_algo (section: .init.text)
Change-Id: Iad0c0185970eecd0d57ef1eb3128e10bc266dace
Signed-off-by: lijuan <juan.li@spacemit.com>
2024-12-25 19:33:00 +08:00