summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2022-07-05dt-bindings: Add common bindings for ARM and RISC-V idle statesAnup Patel4-19/+219
The RISC-V CPU idle states will be described in under the /cpus/idle-states DT node in the same way as ARM CPU idle states. This patch adds common bindings documentation for both ARM and RISC-V idle states. Signed-off-by: Anup Patel <anup.patel@wdc.com> Signed-off-by: Anup Patel <apatel@ventanamicro.com> Reviewed-by: Rob Herring <robh@kernel.org> Reviewed-by: Guo Ren <guoren@kernel.org> Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
2022-07-05cpuidle: Add RISC-V SBI CPU idle driverAnup Patel5-0/+658
The RISC-V SBI HSM extension provides HSM suspend call which can be used by Linux RISC-V to enter platform specific low-power state. This patch adds a CPU idle driver based on RISC-V SBI calls which will populate idle states from device tree and use SBI calls to entry these idle states. Signed-off-by: Anup Patel <anup.patel@wdc.com> Signed-off-by: Anup Patel <apatel@ventanamicro.com> Acked-by: Atish Patra <atishp@rivosinc.com> Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
2022-07-05cpuidle: Factor-out power domain related code from PSCI domain driverAnup Patel8-135/+259
The generic power domain related code in PSCI domain driver is largely independent of PSCI and can be shared with RISC-V SBI domain driver hence we factor-out this code into dt_idle_genpd.c and dt_idle_genpd.h. Signed-off-by: Anup Patel <anup.patel@wdc.com> Signed-off-by: Anup Patel <apatel@ventanamicro.com> Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
2022-07-05RISC-V: Add SBI HSM suspend related definesmason.huo2-6/+22
We add defines related to SBI HSM suspend call and also update HSM states naming as-per latest SBI specification. Signed-off-by: Anup Patel <anup.patel@wdc.com> Signed-off-by: Anup Patel <apatel@ventanamicro.com> Reviewed-by: Guo Ren <guoren@kernel.org> Reviewed-by: Atish Patra <atishp@rivosinc.com> Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com> Signed-off-by: mason.huo <mason.huo@starfivetech.com>
2022-07-05RISC-V: Add arch functions for non-retentive suspend entry/exitAnup Patel7-11/+279
The hart registers and CSRs are not preserved in non-retentative suspend state so we provide arch specific helper functions which will save/restore hart context upon entry/exit to non-retentive suspend state. These helper functions can be used by cpuidle drivers for non-retentive suspend entry/exit. Signed-off-by: Anup Patel <anup.patel@wdc.com> Signed-off-by: Anup Patel <apatel@ventanamicro.com> Reviewed-by: Guo Ren <guoren@kernel.org> Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com> Signed-off-by: mason.huo <mason.huo@starfivetech.com>
2022-07-05RISC-V: Rename relocate() and make it globalAnup Patel1-3/+4
The low-level relocate() function enables mmu and relocates execution to link-time addresses. We rename relocate() function to relocate_enable_mmu() function which is more informative. Also, the relocate_enable_mmu() function will be used in the resume path when a CPU wakes-up from a non-retentive suspend so we make it global symbol. Signed-off-by: Anup Patel <anup.patel@wdc.com> Signed-off-by: Anup Patel <apatel@ventanamicro.com> Reviewed-by: Guo Ren <guoren@kernel.org> Reviewed-by: Atish Patra <atishp@rivosinc.com> Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
2022-07-05RISC-V: Enable CPU_IDLE driversAnup Patel4-1/+34
We force select CPU_PM and provide asm/cpuidle.h so that we can use CPU IDLE drivers for Linux RISC-V kernel. Starfive: Add deconfig for starfive jh7110 Signed-off-by: Anup Patel <anup.patel@wdc.com> Signed-off-by: Anup Patel <apatel@vetanamicro.com> Reviewed-by: Guo Ren <guoren@kernel.org> Reviewed-by: Atish Patra <atishp@rivosinc.com> Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com> Signed-off-by: mason.huo <mason.huo@starfivetech.com>
2022-07-05Merge branch 'CR_1479_DRM_tda_driver_keith.zhao' into 'jh7110-5.15.y-devel'andy.hu13-8014/+59
Cr 1470 drm tda driver keith.zhao See merge request sdk/linux!243
2022-07-05Merge branch 'CR_1274_SEC_william.qiu' into 'jh7110-5.15.y-devel'andy.hu1-21/+0
crypto:starfive:remove sha warning log See merge request sdk/linux!242
2022-07-04riscv:driver:drm:DC8200keith.zhao6-7933/+0
delete FW MACRO head file Signed-off-by:keith.zhao <keith.zhao@statfivetech.com>
2022-07-04riscv:driver:drm:DC8200keith.zhao4-72/+47
fix tda hdmi color error display Signed-off-by:keith.zhao <keith.zhao@statfivetech.com>
2022-07-04riscv:driver:drm:DC8200keith.zhao1-0/+1
enable tda config for vout rgb driver Signed-off-by:keith.zhao <keith.zhao@statfivetech.com>
2022-07-04riscv:driver:drm:DC8200keith.zhao3-9/+11
1、update dts for vout rgb driver Signed-off-by:keith.zhao <keith.zhao@statfivetech.com>
2022-07-04crypto:starfive:remove sha warning logwilliam.qiu1-21/+0
remove sha warning log Signed-off-by: william.qiu <william.qiu@starfivetech.com>
2022-07-04Merge branch 'CR_1489_v4l2_515_changhuang.liang' into 'jh7110-5.15.y-devel'andy.hu1-0/+5
v4l2: media device add some mesg info See merge request sdk/linux!240
2022-07-04Merge branch 'CR_1469_PCIe_AX210_Kevin.xie' into 'jh7110-5.15.y-devel'andy.hu3-2/+0
riscv: defconfig: Removed AX210 WLAN card firmware. See merge request sdk/linux!236
2022-07-04v4l2: media device add some mesg infochanghuang.liang1-0/+5
Signed-off-by: changhuang.liang <changhuang.liang@starfivetech.com>
2022-07-04riscv: defconfig: Removed AX210 WLAN card firmware.Kevin.xie3-2/+0
The firmware will be set in buildroot linux-firmware package. Signed-off-by: Kevin.xie <kevin.xie@starfivetech.com>
2022-07-04Merge branch 'CR_1274_SEC_JIAJIE.HO' into 'jh7110-5.15.y-devel'andy.hu4-126/+132
crypto:starfive: Enable CCM and GCM mode for AES See merge request sdk/linux!234
2022-07-03crypto:starfive: Enable CCM and GCM mode for AESjiajie.ho4-126/+132
Add CCM and GCM modes of operation for Starfive AES driver. Signed-off-by: jiajie.ho <jiajie.ho@starfivetech.com>
2022-07-01Merge branch 'CR_1337_GPU_shanlong.li' into 'jh7110-5.15.y-devel'andy.hu3-4/+14
Cr 1337 gpu shanlong.li See merge request sdk/linux!233
2022-07-01driver:GPU: use pm runtime interfaceshanlong.li2-4/+13
use pm runtime interface Signed-off-by: shanlong.li <shanlong.li@starfivetech.com>
2022-07-01dts:GPU: add pmu signal define for GPUshanlong.li1-0/+1
add pmu signal define for GPU Signed-off-by: shanlong.li <shanlong.li@starfivetech.com>
2022-07-01Merge branch 'CR_877_Timer_Xingyu.Wu' into 'jh7110-5.15.y-devel'andy.hu2-54/+81
Cr 877 timer xingyu.wu See merge request sdk/linux!213
2022-07-01Merge branch 'CR_1462_v4l2_pmu_changhuang.liang' into 'jh7110-5.15.y-devel'andy.hu2-3/+12
v4l2: modify pmu interface See merge request sdk/linux!222
2022-07-01Merge branch 'CR_1467_vpu_update_pmu_api_samin.guo' into 'jh7110-5.15.y-devel'andy.hu1-0/+3
risdv:dts:jh7110: add pmu signal define for vpu/jpu See merge request sdk/linux!226
2022-07-01v4l2: modify pmu interfacechanghuang.liang2-3/+12
2022-07-01Merge branch 'CR_1456_Reset_5.15_clivia.cai' into 'jh7110-5.15.y-devel'andy.hu1-5/+5
reset:starfive:jh7110: update macro definition. See merge request sdk/linux!219
2022-07-01Merge branch 'CR_1464_7110_evb_5.15_vout_pmu_shengyang.chen' into ↵andy.hu1-5/+12
'jh7110-5.15.y-devel' riscv:linux:driver:drm See merge request sdk/linux!225
2022-07-01Merge branch 'CR_1459_V4L2_515_mason.huo' into 'jh7110-5.15.y-devel'andy.hu36-906/+5479
Cr 1459 v4 l2 515 mason.huo See merge request sdk/linux!224
2022-07-01riscv:linux:driver:drmshengyang.chen1-3/+0
remove some useless comment after review Signed-off-by:shengyang.chen<shengyang.chen@starfivetech.com>
2022-07-01Merge branch 'CR_1454_SPDIF_update_515_curry.zhang' into 'jh7110-5.15.y-devel'andy.hu1-2/+5
[Audio: SPDIF] Restore the spdif driver clock tree config See merge request sdk/linux!227
2022-07-01Merge branch 'CR_1454_SPDIF_dtb_515_curry.zhang' into 'jh7110-5.15.y-devel'andy.hu2-1/+14
[Audio: SPDIF] Add the spdif driver to jh7110-evb-uart4-emmc-spdif.dts See merge request sdk/linux!215
2022-07-01[Audio: SPDIF] Restore the spdif driver clock tree configcurry.zhang1-2/+5
Signed-off-by: curry.zhang <curry.zhang@starfivetech.com>
2022-07-01risdv:dts:jh7110: add pmu signal define for vpu/jpusamin1-0/+3
Signed-off-by: samin <samin.guo@starfivetech.com>
2022-07-01riscv:linux:driver:drmshengyang.chen1-5/+15
replace standard pmu interface Signed-off-by:shengyang.chen<shengyang.chen@starfivetech.com>
2022-07-01Merge branch 'CR_1465_add_pm_function_for_GPU_walker.chen' into ↵andy.hu2-1/+125
'jh7110-5.15.y-devel' Add a pm function for GPU See merge request sdk/linux!221
2022-07-01media: starfive: Map sensor format to ISP0RAW & SCD_Y as backup policyKevin.xie2-7/+59
Signed-off-by: Kevin.xie <kevin.xie@starfivetech.com>
2022-07-01media: starfive: Add compatible mbus format mapping for ISP0RAW & SCD_YKevin.xie1-4/+38
Signed-off-by: Kevin.xie <kevin.xie@starfivetech.com>
2022-07-01dts/starfive: modify sc2235 endpoint regchanghuang.liang1-1/+1
Signed-off-by: changhuang.liang <changhuang.liang@starfivetech.com>
2022-07-01v4l2: sc2235 delete pinctrl configurechanghuang.liang1-1/+0
Signed-off-by: changhuang.liang <changhuang.liang@starfivetech.com>
2022-07-01V4L2: add imx219 supportchanghuang.liang1-2/+2
dts/starfive: add imx219 configure Signed-off-by: changhuang.liang <changhuang.liang@starfivetech.com>
2022-07-01v4l2: add imx219 start-up logchanghuang.liang1-0/+3
Signed-off-by: changhuang.liang <changhuang.liang@starfivetech.com>
2022-07-01media: starfive: Support starfive platfrom driver build into moduleliuxl03273-6/+11
To support ISP usr mode debugging, support starfive v4l2 driver for kernel module. The starfive v4l2 driver is built in kernel by default, user needs to modify the kernel deconfig to support kernel module. Signed-off-by: mason.huo <mason.huo@starfivetech.com>
2022-07-01V4L2: add imx219 supportchanghuang.liang17-82/+87
dts/starfive: add imx219 configure Signed-off-by: changhuang.liang <changhuang.liang@starfivetech.com>
2022-07-01media: starfive: Remove isp id for single isp controllermason.huo8-288/+231
The jh7110 only has one isp controller, but the driver defines isp device IDs for multi isp controller. Remove all isp IDs from the driver. Signed-off-by: mason.huo <mason.huo@starfivetech.com>
2022-07-01media: starfive: Remove isp1 for jh7110mason.huo16-430/+174
For jh7110 soc, there is only one isp controller. To avoid the system errors when config to support dual isp, remove the all isp1 related source code from driver. Signed-off-by: mason.huo <mason.huo@starfivetech.com>
2022-07-01media: starfive: Fix isp line cache coherence issuemason.huo3-0/+13
The isp app uses the mmap buffer mode which needs to sync the cache before isp controller writes data into the buffer. Add L2 cache flushing before sending data to user space, so that make sure the cache coherence. Signed-off-by: mason.huo <mason.huo@starfivetech.com>
2022-07-01media: starfive: Change the default format of scd_y padmason.huo3-4/+4
2022-07-01media: starfive: Add set fmt for all ISP padsliuxl03271-6/+0
Signed-off-by: mason.huo <mason.huo@starfivetech.com>