summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2022-10-27v4l2: Fixed vin line stream_out not change except WR.changhuang.liang1-9/+11
Fixed vin line stream_out not change except WR. Signed-off-by: changhuang.liang <changhuang.liang@starfivetech.com>
2022-10-27v4l2: VIN driver use pmchanghuang.liang5-78/+153
VIN driver use pm save power, delete turn on pmu multiple times and modify isp clk and reset after turn on pmu. Signed-off-by: changhuang.liang <changhuang.liang@starfivetech.com>
2022-10-27ov4689: Correct some codechanghuang.liang1-32/+10
Correct some code. Signed-off-by: changhuang.liang <changhuang.liang@starfivetech.com>
2022-10-27sc2235: Delete the control direct control registerchanghuang.liang1-71/+15
Delete the control direct control register and correct some code. Signed-off-by: changhuang.liang <changhuang.liang@starfivetech.com>
2022-10-27sc2235: Use runtime/system pmchanghuang.liang1-42/+62
Use runtime/system pm save power. Signed-off-by: changhuang.liang <changhuang.liang@starfivetech.com>
2022-10-27imx219: Separate set stream and runtime PMchanghuang.liang1-47/+14
Separate set stream and runtime PM, use runtime PM. Signed-off-by: changhuang.liang <changhuang.liang@starfivetech.com>
2022-10-27ov4689: Use runtime PMchanghuang.liang1-84/+66
Switch to using runtime PM for power management. Signed-off-by: changhuang.liang <changhuang.liang@starfivetech.com>
2022-10-27ov4689: delete read chip id in set powerchanghuang.liang1-19/+0
delete read chip id in set power on. Signed-off-by: changhuang.liang <changhuang.liang@starfivetech.com>
2022-10-27cpuidle: riscv-sbi: Fix code to allow a genpd governor to be usedUlf Hansson1-2/+2
The intent is to use a genpd governor when there are some states that needs to be managed. Although, the current code ends up to never assign a governor, let's fix this. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Reviewed-by: Anup Patel <anup@brainfault.org> Tested-by: Anup Patel <anup@brainfault.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by: minda.chen <minda.chen@starfivetech.com>
2022-10-27RISC-V: Avoid using per cpu array for ordered bootingAtish Patra4-19/+61
Currently both order booting and spinwait approach uses a per cpu array to update stack & task pointer. This approach will not work for the following cases. 1. If NR_CPUs are configured to be less than highest hart id. 2. A platform has sparse hartid. This issue can be fixed for ordered booting as the booting cpu brings up one cpu at a time using SBI HSM extension which has opaque parameter that is unused until now. Introduce a common secondary boot data structure that can store the stack and task pointer. Secondary harts will use this data while booting up to setup the sp & tp. Reviewed-by: Anup Patel <anup@brainfault.org> Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com> From 9a2451f1866344d38b4a1dc20396e3a03954fcd7 Resolved merge conflict. Signed-off-by: <jeeheng.sia@starfivetech.com> Signed-off-by: minda.chen <minda.chen@starfivetech.com>
2022-10-27RISC-V: Use SBI SRST extension when availableAnup Patel2-0/+51
The SBI SRST extension provides a standard way to poweroff and reboot the system irrespective to whether Linux RISC-V S-mode is running natively (HS-mode) or inside Guest/VM (VS-mode). The SBI SRST extension is available in the SBI v0.3 specification. (Refer, https://github.com/riscv/riscv-sbi-doc/releases/tag/v0.3.0-rc1) This patch extends Linux RISC-V SBI implementation to detect and use SBI SRST extension. Signed-off-by: Anup Patel <anup.patel@wdc.com> Reviewed-by: Atish Patra <atish.patra@wdc.com> Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com> Signed-off-by: minda.chen <minda.chen@starfivetech.com>
2022-10-27cpuidle: riscv-sbi: Correct the compatible stringmason.huo1-1/+1
The riscv-sbi driver compatible string should not changed to starfive since it's a common driver for riscv. Signed-off-by: mason.huo <mason.huo@starfivetech.com>
2022-10-27riscv: dts: Remove unsupport idle statesmason.huo1-46/+14
The JH7110 soc only support WFI cpu idle state, remove the unsupport states. Add a long WFI for entering the cpu_suspend(). Signed-off-by: mason.huo <mason.huo@starfivetech.com>
2022-10-26clk:starfive:Count PLL1 rateXingyu Wu2-7/+1
Count PLL1 rate through reading syscon registers. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2022-10-26clk:starfive:Change PLL0 rate to 1.5GHzXingyu Wu2-0/+36
Change PLL0 rate to 1.5GHz and change cpu_core divider. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2022-10-14Merge branch 'CR_2285_SEC_jiajie.ho' into 'jh7110-5.15.y-devel'andy.hu10-826/+6
Cr 2285 sec jiajie.ho See merge request sdk/linux!533
2022-10-14Merge branch 'CR_2261_CAN_515_william.qiu' into 'jh7110-5.15.y-devel'andy.hu3-6/+12
Cr 2261 can 515 william.qiu See merge request sdk/linux!521
2022-10-14Merge branch 'CR_2141_SEC_jiajie.ho' into 'jh7110-5.15.y-devel'andy.hu2-59/+83
CR_2141:crypto:starfive: Enhanced AES driver to handle negative cases See merge request sdk/linux!517
2022-10-14Merge branch 'CR_2307_PWMDAC_515_walker.chen' into 'jh7110-5.15.y-devel'andy.hu1-99/+126
CR_2307_PWMDAC_515: fix playback repeatly issue See merge request sdk/linux!524
2022-10-14Merge branch 'CR_1861_515_HDMI_AUDIO_Xingyu.Wu' into 'jh7110-5.15.y-devel'andy.hu13-177/+712
CR_1861_515_HDMI_AUDIO_Xingyu.Wu See merge request sdk/linux!526
2022-10-14CR_2285:SEC:Crypto:Starfive: Update hardware engine DMA driverjiajie.ho8-746/+6
Updating Starfive Jh7110 Crypto hardware engine to use orginal ARM PL08X driver. Signed-off-by: jiajie.ho <jiajie.ho@starfivetech.com>
2022-10-14dt-bindings:SEC: Remove bindings for SEC_DMAjiajie.ho2-80/+0
Removing dt-bindings for Starfive JH7110 SEC_DMA as the hardware engine will use original ARM PL08X driver. Signed-off-by: jiajie.ho <jiajie.ho@starfivetech.com>
2022-10-12sound:starfive:Remove i2srx-master and merge into starfive_i2sXingyu Wu6-1070/+199
Remove i2srx-master.c and i2srx-master.h files, and merge into starfive_i2s.c and starfive_i2s.h files. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2022-10-12sound:starfive:Change the order about mclk_ext's operationXingyu Wu1-6/+6
Change the order about setting parent to mclk_ext after resets when PDM registering. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2022-10-12arch:dts:starfive:Add 'sound-dai' function in hdmi nodeXingyu Wu2-1/+22
Add new audio device in audio card about hdmi and i2s. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2022-10-12gpu:drm:Add audio function in inno hdmiXingyu Wu4-46/+354
Could playback audio through HDMI. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2022-10-12arch:dts:starfive:Change mclk_ext pinXingyu Wu1-2/+1
Change mclk_ext pin from GPIO61 to GPIO4. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2022-10-12arch:dts:starfive:Modify i2stx_4ch0 nodeXingyu Wu2-6/+13
Add mclk_ext clock and enable i2stx_4ch0 status. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2022-10-12sound:starfive:Add I2S driverXingyu Wu4-0/+1071
Add I2S driver for starfive. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2022-10-11can:starfive:modify some data field and clock frequencyWilliam Qiu1-4/+8
modify some data field and clock frequency Signed-off-by: William Qiu <william.qiu@starfivetech.com>
2022-10-10CR_2307_PWMDAC_515: fix playback repeatly issueWalker Chen1-99/+126
fix the bug that error occurs when playback repleatly. Signed-off-by: Walker Chen <walker.chen@linux.starfivetech.com>
2022-10-09dts:starfive:modify can dts config and improve CAN IO driving forceWilliam Qiu2-2/+4
modify can dts config and improve CAN IO driving force Signed-off-by: William Qiu <william.qiu@starfivetech.com>
2022-10-04CR_2141:crypto:starfive: Enhanced AES driver to handle negative casesjiajie.ho2-59/+83
1. Added input text length check for ECB and CBC mode. 2. Added input IV check for CCM mode. 3. Removed unnecessary zero data check. 4. Updated functions to return proper error codes. Signed-off-by: jiajie.ho <jiajie.ho@starfivetech.com>
2022-09-30Merge branch 'CR_2248_PMU_walker.chen' into 'jh7110-5.15.y-devel'andy.hu2-6/+27
CR_2248_PMU_515: Fix some power domain can not be disabled See merge request sdk/linux!515
2022-09-30Merge branch 'CR_2233_CMA_515_samin.guo' into 'jh7110-5.15.y-devel'andy.hu1-1/+1
CR_2233_CMA_515_samin.guo:riscv:dts:jh7110: Modify CMA reserved space to better support 2G DRAM See merge request sdk/linux!509
2022-09-28pmu: starfive: Fix some power domain can not be disabledWalker Chen2-6/+27
Vout and isp domain can not be disabled during clock tree is running probe function. This bug has been fixed. Signed-off-by: Walker Chen <walker.chen@linux.starfivetech.com>
2022-09-26riscv:dts:jh7110: Modify CMA reserved space to better support 2G DRAMsamin1-1/+1
When the DDR is 2G (0x40000000-0xc0000000), it may cause address usage problems. Signed-off-by: samin <samin.guo@starfivetech.com>
2022-09-23Merge branch 'CR_1849_DMA_walker.chen' into 'jh7110-5.15.y-devel'andy.hu2-76/+25
CR_1849_DMA_walker.chen See merge request sdk/linux!483
2022-09-23Merge branch 'CR_2180_evb_515_DRM_WESTON_keith.zhao' into 'jh7110-5.15.y-devel'andy.hu1-0/+28
CR_2180:riscv:driver:drm: Weston-GPU See merge request sdk/linux!501
2022-09-23Merge branch 'CR_2162_GPU_shanlong.li' into 'jh7110-5.15.y-devel'andy.hu5-17/+19
Cr 2162 gpu shanlong.li See merge request sdk/linux!499
2022-09-23Merge branch 'CR_2156_v4l2_515_changhuang.liang' into 'jh7110-5.15.y-devel'andy.hu3-6/+6
CR_2156_v4l2_515_changhuang.liang v4l2: modify vin clk base on pll2 change See merge request sdk/linux!491
2022-09-23Merge branch 'CR_2127_PCIe_515_Kevin.xie' into 'jh7110-5.15.y-devel'andy.hu2-2/+11
CR 2127 drivers: pci: Support 64bit prefetchable MMIO range. See merge request sdk/linux!503
2022-09-23Merge branch 'CR_2123_515_SPDIF_mclkext_Xingyu.Wu' into 'jh7110-5.15.y-devel'andy.hu8-60/+84
CR_2123_515_spdif_mclkext_xingyu.wu See merge request sdk/linux!489
2022-09-23driver:gpu: gpu driver change to releaseshanlong.li2-13/+6
gpu driver change to release Signed-off-by: shanlong.li <shanlong.li@starfivetech.com>
2022-09-23Merge branch 'CR_1737_SEC_jiajie.ho' into 'jh7110-5.15.y-devel'andy.hu4-43/+81
CR_1737:crypto:starfive: Fixed AEAD tag generation and verification See merge request sdk/linux!505
2022-09-23driver:GPU:set the gpu frequency to 594Mhzshanlong.li2-1/+9
set the gpu frequency to 594Mhz Signed-off-by: shanlong.li <shanlong.li@starfivetech.com>
2022-09-23dts:GPU: add core clkshanlong.li1-3/+4
add core clk Signed-off-by: shanlong.li <shanlong.li@starfivetech.com>
2022-09-22CR_1737:crypto:starfive: Fixed AEAD tag generation and verificationjiajie.ho4-43/+81
Added support in AES GCM and CCM mode for various tag length and tag verification for non-AES blocksize aligned text. Signed-off-by: jiajie.ho <jiajie.ho@starfivetech.com>
2022-09-21riscv:driver:drm: Weston-GPUkeith.zhao1-0/+28
add format_mod_supported interface for userspace Signed-off-by: keith <keith.zhao@starfivetech.com>
2022-09-20drivers: pci: Support 64bit prefetchable MMIO range.Kevin.xie2-2/+11
Verification has been completed on NVIDIA GT710 with modetest. Signed-off-by: Kevin.xie <kevin.xie@starfivetech.com>