summaryrefslogtreecommitdiff
path: root/arch
AgeCommit message (Collapse)AuthorFilesLines
2023-03-19Merge tag 'JH7110_515_SDK_v4.5.1' into vf2-515-develAndy Hu1-0/+6
version JH7110_515_SDK_v4.5.1 for JH7110 EVB board 1. #4082: linux: u-boot: apply csr patch 2. #3499: linux: u-boot: enable framebuffer console 3. #4038: linux: vout fixed open clock fail 4. #3509: linux: fix some bugs and add request(), free(), set_config() ops for sys gpiochip
2023-03-16riscv: fix build with binutils 2.38Aurelien Jarno1-0/+6
From version 2.38, binutils default to ISA spec version 20191213. This means that the csr read/write (csrr*/csrw*) instructions and fence.i instruction has separated from the `I` extension, become two standalone extensions: Zicsr and Zifencei. As the kernel uses those instruction, this causes the following build failure: CC arch/riscv/kernel/vdso/vgettimeofday.o <<BUILDDIR>>/arch/riscv/include/asm/vdso/gettimeofday.h: Assembler messages: <<BUILDDIR>>/arch/riscv/include/asm/vdso/gettimeofday.h:71: Error: unrecognized opcode `csrr a5,0xc01' <<BUILDDIR>>/arch/riscv/include/asm/vdso/gettimeofday.h:71: Error: unrecognized opcode `csrr a5,0xc01' <<BUILDDIR>>/arch/riscv/include/asm/vdso/gettimeofday.h:71: Error: unrecognized opcode `csrr a5,0xc01' <<BUILDDIR>>/arch/riscv/include/asm/vdso/gettimeofday.h:71: Error: unrecognized opcode `csrr a5,0xc01' The fix is to specify those extensions explicitely in -march. However as older binutils version do not support this, we first need to detect that. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> Tested-by: Alexandre Ghiti <alexandre.ghiti@canonical.com> Cc: stable@vger.kernel.org Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
2023-03-10Merge branch 'CR_2829_cryp_jiajie.ho' into 'vf2-515-devel'andy.hu1-0/+1
CR_2829: riscv: defconfig - Enable tcrypt module See merge request sbc/linux!80
2023-03-10thermal:vf2 enable thermal subsystemziv.xu1-0/+4
vf2 enable thermal subsystem Signed-off-by: ziv.xu <ziv.xu@starfive.com>
2023-03-09Merge tag 'JH7110_515_SDK_v4.5.0-rc2' into vf2-515-develAndy Hu2-3/+24
version JH7110_515_SDK_v4.5.0-rc2 for JH7110 EVB board 1. #3746: linux: vout rgb code rollback to v4.4.0 2. #3668: linux: perf:sbi: disable cpu hotplug callback 3. #3166: linux: add thermal subsystem 4. #3877: linux: expand the mtd0 spl partition size in spi nor flash 5. #3729: linux: fix 4K wayland not work on some monitors
2023-03-09Merge branch 'CR_3877_mtd0_expansion_5.15_ziv.xu' into 'jh7110-5.15.y-devel'andy.hu1-1/+1
CR_3877_mtd0_expansion_5.15_ziv.xu See merge request sdk/linux!731
2023-03-09riscv: defconfig - Enable tcrypt moduleJia Jie Ho1-0/+1
Add tcrypt as module to VisionFive 2. User can use this module to do basic functional and speed test on crypto module. Signed-off-by: Jia Jie Ho <jiajie.ho@starfivetech.com>
2023-03-07jh7110.dsti :expand mtd0 partitionziv.xu1-1/+1
expand mtd0 partition Signed-off-by: ziv.xu <ziv.xu@starfive.com>
2023-03-07thermal: enable thermal subsystem with step_wise governorziv.xu2-3/+24
enable thermal subsystem with step_wise governor Signed-off-by: ziv.xu <ziv.xu@starfive.com>
2023-03-03Merge tag 'JH7110_515_SDK_v4.5.0-rc1' into vf2-515-develAndy Hu3-29/+28
version JH7110_515_SDK_v4.5.0-rc1 for JH7110 EVB board 1. #3467: linux: fix CPUfreq issue for the hibernation resume issue 2. #3546: linux: fix v4l2-compliance test issue for imx219 sensor 3. #3526: linux: qspi use reset framework 4. #3746: linux: rgb display support 1080p 60fps
2023-03-03Merge branch 'CR_3467_cpufreq_add_pm_opp_5.15_mason.huo' into 'vf2-515-devel'andy.hu1-0/+6
CR_3467 cpufreq_add_pm_opp See merge request sbc/linux!76
2023-03-03Merge branch 'CR_3583_IPV6_SUPPORT_samin.guo' into 'vf2-515-devel'andy.hu1-1/+0
CR_3583: riscv: defconfig: jh7110: enable ipv6. See merge request sbc/linux!75
2023-03-03Merge branch 'CR_3746_evb_515_rgb_1080_60_porting_shengyang.chen' into ↵andy.hu1-27/+27
'jh7110-5.15.y-devel' CR_3746_evb_515_riscv:linux:vout: rgb support 1080P@60fps See merge request sdk/linux!719
2023-03-03Merge branch 'CR_3526_qspi_use_reset_framework_5.15_ziv.xu' into ↵andy.hu1-1/+0
'jh7110-5.15.y-devel' CR_3526_qspi_use_reset_framework_5.15_ziv.xu See merge request sdk/linux!712
2023-03-03riscv: dts: Set specific cpu frequency when suspendingMason Huo1-0/+1
As JH7110 saves & restores all clock registers in hibernation. The cpu voltage may not correct after restoring cpu freqency from hibernation resume process. In case it's suspended in 1.5GHz with 1.04v, and it schedules to 750Mhz with 0.8v before resuming, then the cpu clock will be restored to 1.5GHz, but the cpu voltage still remains in 0.8v, then the system crashes. So we set the cpu frequency to 750MHz, and it will keep the cpu voltage matched when doing hibernation resuming. Signed-off-by: Mason Huo <mason.huo@starfivetech.com>
2023-03-03riscv: dts: statfive: Add clock and power supply for cpuMason Huo1-0/+6
To enable the cpufreq-dt driver, config the cpu with clock & power supply regulator. Signed-off-by: Mason Huo <mason.huo@starfivetech.com>
2023-03-02jh7110.dsti :expand mtd0 partitionziv.xu1-1/+1
expand mtd0 partition to 256k Signed-off-by: ziv.xu <ziv.xu@starfive.com>
2023-03-02riscv:linux:vout: rgb support 1080P@60fpsshengyang.chen1-27/+27
rgb support 1080P@60fps porting from: branch: CR_2896_evb_515_MIPI_RGB_dual_display_keith.zhao commit id: 51504aed4280caab91258e3faa789a9b66984bfc1a3 Signed-off-by: keith <keith.zhao@starfivetech.com> Signed-off-by: shengyang.chen<shengyang.chen@starfivetech.com>
2023-02-28spi-cadence-quadspi:use reset framwork to reset qspiziv.xu1-1/+0
use reset framwork to reset qspi Signed-off-by: ziv.xu <ziv.xu@starfive.com>
2023-02-24riscv: defconfig: jh7110: enable ipv6.Samin Guo1-1/+0
jh7110 support ipv6, so enable it. Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
2023-02-23riscv: defconfig: jh7110: add ipv6 supportSamin Guo1-1/+0
jh7110 support ipv6, so enable it. Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
2023-02-20Merge branch 'CR_3167_gt911_ts_515_changhuang.liang' into 'vf2-515-devel'VF2_v2.10.4andy.hu3-9/+6
CR_3167_gt911_ts_515_changhuang.liang Revert "riscv: defconfig: Enable GT9xx" See merge request sbc/linux!65
2023-02-17Merge tag 'JH7110_515_SDK_v4.3.0' into vf2-515-develAndy Hu1-0/+12
version JH7110_515_SDK_v4.3.0 for JH7110 EVB board 1. Fix hibernation issue: mmc 2. #3345 uboot: support mipi dsi display logo 3. #3145 linux: pci: Add PHY settings in pcie host driver. 4. #3349 linux: crypto: Remove AES key zeroization 5. #3477 spl_tool add LICENSE file
2023-02-16drivers: pci: Add PHY settings in pcie host driver.Kevin.xie1-0/+12
The settings are about PHY PLL KVCO fine tuning form CTS testing. Signed-off-by: Kevin.xie <kevin.xie@starfivetech.com>
2023-02-12Merge tag 'JH7110_515_SDK_v4.2.0' into vf2-515-develAndy Hu1-11/+11
version JH7110_515_SDK_v4.2.0 for JH7110 EVB board 1. Fix hibernation issue: AQC107 PCIe NIC 2. Support linux driver module build for: PDM, TDM, I2S, Watchdog, QSPI 3. #3253 open source for spl_tool 4. #3211 fix gst-omx crashed upon calling OMX_UseEGLImage func 5. #3262 Fix hdmi mipi dual display crash dump issue
2023-02-10Merge branch 'CR_3312_TDM_KO_Not_Work' into 'jh7110-5.15.y-devel'andy.hu1-5/+2
CR_3312_TDM_KO_Not_Work See merge request sdk/linux!694
2023-02-10CR_3312_TDM_KO_Not_WorkWalker Chen1-5/+2
Fixed the bug that tdm cat not work when it is build as module. Signed-off-by: Walker Chen <walker.chen@starfivetech.com>
2023-02-10Merge branch 'CR_3319_I2S_Hibernation_Module_Xingyu.Wu' into ↵andy.hu1-4/+8
'jh7110-5.15.y-devel' CR_3319_I2S_Hibernation_Module_Xingyu.Wu See merge request sdk/linux!692
2023-02-10CR_3323_PDM_KO_Can_Work_walker.chenWalker Chen1-2/+1
1. Build as ko module, can work normally after multiple loading and unloading. 2. can record normally after hibernation resume. Signed-off-by: Walker Chen <walker.chen@starfivetech.com>
2023-02-10sound: starfive: I2S: Fixed error after hibernation when building moduleXingyu Wu1-4/+8
When I2S resume but WM8960 has not resume and no clock, I2S should use inner clock instead of wm8960's clock first. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2023-02-06riscv: defconfig: Enable GT911Changhuang Liang1-0/+1
Enable GT911. Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com>
2023-02-06riscv: dts: starfive: Add goodix gt911 touchscreen supportChanghuang Liang2-0/+7
Add goodix gt911 touchscreen support. Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com>
2023-02-06Revert "riscv: dts: starfive: Add gt9xx touchscreen support"Changhuang Liang2-10/+0
This reverts commit 114424dfb1540462f90867028d1ad915e05f3016.
2023-02-06Revert "riscv: defconfig: Enable GT9xx"Changhuang Liang1-1/+0
This reverts commit cffcc7c9cb38f95f2f229344e5a7bd2ea67323a0.
2023-02-05Merge tag 'JH7110_515_SDK_v4.1.0' into vf2-515-develAndy Hu1-0/+1
version JH7110_515_SDK_v4.1.0 for JH7110 EVB board 1. Fix hibernation issue: usb cdns3, hdmi vout, isp 2. Support linux driver module build for: imx219, pwmdac, spi 3. #2339 fix usb read performance issue 4. #1432 support uboot reset on evb jh7110b or vf2 board 5. #3238 lack a memory reservation for OpenSBI 6. #3151 fix tdm input/ouput error
2023-01-31riscv: defconfig: Enable StarFive hwrngJia Jie Ho1-1/+1
Add StarFive JH7110 hwrng config to VisionFive 2 defconfig Signed-off-by: Jia Jie Ho <jiajie.ho@starfivetech.com>
2023-01-29usb:xhci:To improve performance,usb using lowmem for bulk xfer.minda.chen1-0/+1
Generate an usb low memory pool for usb 3.0 host read/write transfer, default size is 8M. Signed-off-by: minda.chen <minda.chen@starfivetech.com>
2023-01-11Merge branch 'CR_3121_VF2_Hibernation_mason.huo' into 'vf2-515-devel'andy.hu1-4/+3
CR_3121 Add hibernation support for VF2 See merge request sbc/linux!60
2023-01-11Merge branch 'CR_2862_gt9xx_ts_515_changhuang.liang' into 'vf2-515-devel'andy.hu3-0/+11
CR_2862_gt9xx_ts_515_changhuang.liang input: touchscreen: Add gt9xx driver support See merge request sbc/linux!56
2023-01-10rsicv: deconfig: Add hibernation and swap partitionmason.huo1-0/+2
Enable the hibernation feature, and config the default hibernation swap partition by partition label. Signed-off-by: mason.huo <mason.huo@starfivetech.com>
2023-01-10riscv: deconfig: Enable system suspend and pm testmason.huo1-4/+1
Config the system suspend feature, enable pm test feature. Signed-off-by: mason.huo <mason.huo@starfivetech.com>
2023-01-10dts: gpio: make gpio reset priority lower than pmic resetminda.chen1-1/+1
For sbi pmic reset priority is 192. To make pmic reset work. Make gpio reset priority lower. Signed-off-by: minda.chen <minda.chen@starfivetech.com>
2023-01-07Merge tag 'JH7110_515_SDK_v4.0.0-rc1' into vf2-515-develAndy Hu28-623/+797
version JH7110_515_SDK_v4.0.0-rc1 for JH7110 EVB board 1. #2828 support linux perf tool 2. #3049 merge hibernation branch to SDK 3. #2708 uboot support vout clk driver 4. #3006 uboot handle OTP return value 5. #2969, #3039 venc jpu fix futex issue
2023-01-06Merge branch 'CR_3049_Hibernation_mason.huo' into 'jh7110-5.15.y-devel'andy.hu20-28/+455
CR_3049 Add hibernation feature See merge request sdk/linux!658
2023-01-06riscv: starfive: sdio: modify and add sd card configWilliam Qiu8-23/+25
modify and add sd card config, sush as 'max-frequency' 'pinctrl-names'. Signed-off-by: William Qiu <william.qiu@starfivetech.com>
2023-01-06riscv: defconfig: Enable GT9xxChanghuang Liang1-0/+1
Enable GT9xx. Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com>
2023-01-06riscv: dts: starfive: Add gt9xx touchscreen supportChanghuang Liang2-0/+10
Add gt9xx touchscreen support. Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com>
2023-01-05RISCV: Support pmd_leaf() in the function kernel_page_present()Sia Jee Heng1-0/+2
Update kernel_page_present() function to support pmd_leaf(). Function kernel_page_present() will be invoked when hibernation is started. Signed-off-by: Sia Jee Heng <jeeheng.sia@starfivetech.com>
2023-01-05rsicv: deconfig: Add hibernation and swap partitionmason.huo1-0/+2
Enable the hibernation feature, and config the default hibernation swap partition by partition label. Signed-off-by: mason.huo <mason.huo@starfivetech.com>
2023-01-05riscv: kernel: Support hibernation resume for JH7110Sia Jee Heng7-17/+245
Further expand the support for hibernation resume so that the hibernated image can be restore from the disk. Signed-off-by: Sia Jee Heng <jeeheng.sia@starfivetech.com>