platform/kernel/linux-starfive.git
20 months agoSDIO:starfive:add SDIO/EMMC runtime pm ops
William Qiu [Fri, 21 Oct 2022 03:46:05 +0000 (11:46 +0800)]
SDIO:starfive:add SDIO/EMMC runtime pm ops

add SDIO/EMMC runtime pm ops.

Signed-off-by: William Qiu <william.qiu@starfivetech.com>
20 months agocanfd:ipms:add canfd runtime PM ops
William Qiu [Fri, 21 Oct 2022 02:13:13 +0000 (10:13 +0800)]
canfd:ipms:add canfd runtime PM ops

add canfd runtime PM ops.

Signed-off-by: William Qiu <william.qiu@starfivetech.com>
20 months agosound:starfive:spdif:Add hibernation operation
Xingyu Wu [Thu, 20 Oct 2022 07:44:59 +0000 (15:44 +0800)]
sound:starfive:spdif:Add hibernation operation

Add runtime pm and system pm in spdif driver.

Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
20 months agopwm: starfive: Add pm handling (system/runtime pm ops)
Hal Feng [Wed, 19 Oct 2022 12:10:56 +0000 (20:10 +0800)]
pwm: starfive: Add pm handling (system/runtime pm ops)

Add system/runtime pm ops functions and enable runtime pm.

Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
20 months agopinctrl:starfive: Add system pm interface
Jianlong Huang [Wed, 19 Oct 2022 10:00:02 +0000 (18:00 +0800)]
pinctrl:starfive: Add system pm interface

Support system pm fuction when suspend and resume.

Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
20 months agoCR_2345_Audio_DevicePM_walker.chen
Walker Chen [Fri, 14 Oct 2022 07:43:20 +0000 (15:43 +0800)]
CR_2345_Audio_DevicePM_walker.chen

Implement Runtime PM and System PM for PDM and TDM module.

Signed-off-by: Walker Chen <walker.chen@linux.starfivetech.com>
20 months agoadd system pm for watchdog
Ziv.Xu [Thu, 13 Oct 2022 09:09:05 +0000 (17:09 +0800)]
add system pm for watchdog

add system pm for watchdog

Signed-off-by: Ziv.Xu <Ziv.Xu@starfivetech.com>
20 months agoadd runtime pm for watchdog
Ziv.Xu [Sat, 8 Oct 2022 07:02:15 +0000 (15:02 +0800)]
add runtime pm for watchdog

add runtime pm for watchdog

Signed-off-by: Ziv.Xu <Ziv.Xu@starfivetech.com>
20 months agousb: cdns: add pm and runtume pm ops
minda.chen [Sat, 8 Oct 2022 11:07:06 +0000 (19:07 +0800)]
usb: cdns: add pm and runtume pm ops

add starfive pm supend/resume and runtime pm runtime
suspend and resume ops

Signed-off-by: minda.chen <minda.chen@starfivetech.com>
20 months agodrivers: pci: Support system pm no irq ops.
Kevin.xie [Thu, 13 Oct 2022 03:29:30 +0000 (11:29 +0800)]
drivers: pci: Support system pm no irq ops.

Because of the limitation of hardware design, only enable/disable clk here.

Signed-off-by: Kevin.xie <kevin.xie@starfivetech.com>
20 months agodrivers: pci: Support runtime pm & release when found empty slot in probe.
Kevin.xie [Thu, 13 Oct 2022 02:53:59 +0000 (10:53 +0800)]
drivers: pci: Support runtime pm & release when found empty slot in probe.

Used PLDA link up/down status in probe to indicate the slot situations.

Signed-off-by: Kevin.xie <kevin.xie@starfivetech.com>
20 months agomedia: starfive: Remove hardware operations in vin init
changhuang.liang [Wed, 19 Oct 2022 06:14:37 +0000 (14:14 +0800)]
media: starfive: Remove hardware operations in vin init

Remove hardware operations in vin init, hardware operation need turn on
power domain.

Signed-off-by: changhuang.liang <changhuang.liang@starfivetech.com>
20 months agodts: starfive: VIN delete noc bus clock
changhuang.liang [Wed, 19 Oct 2022 03:08:00 +0000 (11:08 +0800)]
dts: starfive: VIN delete noc bus clock

VIN delete noc bus clock.

Signed-off-by: changhuang.liang <changhuang.liang@starfivetech.com>
20 months agomedia: starfive: Delete isp noc bus clock
changhuang.liang [Wed, 19 Oct 2022 03:03:54 +0000 (11:03 +0800)]
media: starfive: Delete isp noc bus clock

Delete operate isp noc bus clock in vin module.

Signed-off-by: changhuang.liang <changhuang.liang@starfivetech.com>
20 months agomedia: starfive: Vin module get reset use share
changhuang.liang [Wed, 19 Oct 2022 02:03:38 +0000 (10:03 +0800)]
media: starfive: Vin module get reset use share

Vin module get reset use share due to the same reset single with isp
clock module.

Signed-off-by: changhuang.liang <changhuang.liang@starfivetech.com>
20 months agov4l2: Fixed vin line stream_out not change except WR.
changhuang.liang [Mon, 10 Oct 2022 12:18:20 +0000 (20:18 +0800)]
v4l2: Fixed vin line stream_out not change except WR.

Fixed vin line stream_out not change except WR.

Signed-off-by: changhuang.liang <changhuang.liang@starfivetech.com>
20 months agov4l2: VIN driver use pm
changhuang.liang [Mon, 26 Sep 2022 09:12:04 +0000 (17:12 +0800)]
v4l2: VIN driver use pm

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>
20 months agoov4689: Correct some code
changhuang.liang [Fri, 30 Sep 2022 08:56:24 +0000 (16:56 +0800)]
ov4689: Correct some code

Correct some code.

Signed-off-by: changhuang.liang <changhuang.liang@starfivetech.com>
20 months agosc2235: Delete the control direct control register
changhuang.liang [Fri, 30 Sep 2022 08:13:57 +0000 (16:13 +0800)]
sc2235: Delete the control direct control register

Delete the control direct control register and correct some code.

Signed-off-by: changhuang.liang <changhuang.liang@starfivetech.com>
20 months agosc2235: Use runtime/system pm
changhuang.liang [Fri, 30 Sep 2022 07:19:26 +0000 (15:19 +0800)]
sc2235: Use runtime/system pm

Use runtime/system pm save power.

Signed-off-by: changhuang.liang <changhuang.liang@starfivetech.com>
20 months agoimx219: Separate set stream and runtime PM
changhuang.liang [Thu, 29 Sep 2022 07:14:05 +0000 (15:14 +0800)]
imx219: Separate set stream and runtime PM

Separate set stream and runtime PM, use runtime PM.

Signed-off-by: changhuang.liang <changhuang.liang@starfivetech.com>
20 months agoov4689: Use runtime PM
changhuang.liang [Wed, 28 Sep 2022 02:36:12 +0000 (10:36 +0800)]
ov4689: Use runtime PM

Switch to using runtime PM for power management.

Signed-off-by: changhuang.liang <changhuang.liang@starfivetech.com>
20 months agoov4689: delete read chip id in set power
changhuang.liang [Tue, 27 Sep 2022 07:42:44 +0000 (15:42 +0800)]
ov4689: delete read chip id in set power

delete read chip id in set power on.

Signed-off-by: changhuang.liang <changhuang.liang@starfivetech.com>
20 months agocpuidle: riscv-sbi: Fix code to allow a genpd governor to be used
Ulf Hansson [Sat, 14 May 2022 15:20:44 +0000 (17:20 +0200)]
cpuidle: riscv-sbi: Fix code to allow a genpd governor to be used

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>
20 months agoRISC-V: Avoid using per cpu array for ordered booting
Atish Patra [Mon, 30 May 2022 04:33:31 +0000 (12:33 +0800)]
RISC-V: Avoid using per cpu array for ordered booting

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>
20 months agoRISC-V: Use SBI SRST extension when available
Anup Patel [Wed, 9 Jun 2021 12:13:22 +0000 (17:43 +0530)]
RISC-V: Use SBI SRST extension when available

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>
20 months agoMerge branch 'CR_2285_SEC_jiajie.ho' into 'jh7110-5.15.y-devel'
andy.hu [Fri, 14 Oct 2022 07:34:12 +0000 (07:34 +0000)]
Merge branch 'CR_2285_SEC_jiajie.ho' into 'jh7110-5.15.y-devel'

Cr 2285 sec jiajie.ho

See merge request sdk/linux!533

20 months agoMerge branch 'CR_2261_CAN_515_william.qiu' into 'jh7110-5.15.y-devel'
andy.hu [Fri, 14 Oct 2022 06:37:19 +0000 (06:37 +0000)]
Merge branch 'CR_2261_CAN_515_william.qiu' into 'jh7110-5.15.y-devel'

Cr 2261 can 515 william.qiu

See merge request sdk/linux!521

20 months agoMerge branch 'CR_2141_SEC_jiajie.ho' into 'jh7110-5.15.y-devel'
andy.hu [Fri, 14 Oct 2022 06:34:10 +0000 (06:34 +0000)]
Merge branch 'CR_2141_SEC_jiajie.ho' into 'jh7110-5.15.y-devel'

CR_2141:crypto:starfive: Enhanced AES driver to handle negative cases

See merge request sdk/linux!517

20 months agoMerge branch 'CR_2307_PWMDAC_515_walker.chen' into 'jh7110-5.15.y-devel'
andy.hu [Fri, 14 Oct 2022 06:22:39 +0000 (06:22 +0000)]
Merge branch 'CR_2307_PWMDAC_515_walker.chen' into 'jh7110-5.15.y-devel'

CR_2307_PWMDAC_515: fix playback repeatly issue

See merge request sdk/linux!524

20 months agoMerge branch 'CR_1861_515_HDMI_AUDIO_Xingyu.Wu' into 'jh7110-5.15.y-devel'
andy.hu [Fri, 14 Oct 2022 06:12:02 +0000 (06:12 +0000)]
Merge branch 'CR_1861_515_HDMI_AUDIO_Xingyu.Wu' into 'jh7110-5.15.y-devel'

CR_1861_515_HDMI_AUDIO_Xingyu.Wu

See merge request sdk/linux!526

20 months agoCR_2285:SEC:Crypto:Starfive: Update hardware engine DMA driver
jiajie.ho [Fri, 14 Oct 2022 02:07:35 +0000 (10:07 +0800)]
CR_2285:SEC:Crypto:Starfive: Update hardware engine DMA driver

Updating Starfive Jh7110 Crypto hardware engine
to use orginal ARM PL08X driver.

Signed-off-by: jiajie.ho <jiajie.ho@starfivetech.com>
20 months agodt-bindings:SEC: Remove bindings for SEC_DMA
jiajie.ho [Fri, 14 Oct 2022 01:57:06 +0000 (09:57 +0800)]
dt-bindings:SEC: Remove bindings for SEC_DMA

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>
20 months agosound:starfive:Remove i2srx-master and merge into starfive_i2s
Xingyu Wu [Tue, 11 Oct 2022 13:16:56 +0000 (21:16 +0800)]
sound:starfive:Remove i2srx-master and merge into starfive_i2s

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>
20 months agosound:starfive:Change the order about mclk_ext's operation
Xingyu Wu [Tue, 11 Oct 2022 13:11:39 +0000 (21:11 +0800)]
sound:starfive:Change the order about mclk_ext's operation

Change the order about setting parent to mclk_ext after resets
when PDM registering.

Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
20 months agoarch:dts:starfive:Add 'sound-dai' function in hdmi node
Xingyu Wu [Tue, 11 Oct 2022 02:51:48 +0000 (10:51 +0800)]
arch:dts:starfive:Add 'sound-dai' function in hdmi node

Add new audio device in audio card about hdmi and i2s.

Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
20 months agogpu:drm:Add audio function in inno hdmi
Xingyu Wu [Tue, 11 Oct 2022 02:46:07 +0000 (10:46 +0800)]
gpu:drm:Add audio function in inno hdmi

Could playback audio through HDMI.

Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
20 months agoarch:dts:starfive:Change mclk_ext pin
Xingyu Wu [Tue, 11 Oct 2022 02:32:46 +0000 (10:32 +0800)]
arch:dts:starfive:Change mclk_ext pin

Change mclk_ext pin from GPIO61 to GPIO4.

Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
20 months agoarch:dts:starfive:Modify i2stx_4ch0 node
Xingyu Wu [Tue, 11 Oct 2022 02:29:59 +0000 (10:29 +0800)]
arch:dts:starfive:Modify i2stx_4ch0 node

Add mclk_ext clock and enable i2stx_4ch0 status.

Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
20 months agosound:starfive:Add I2S driver
Xingyu Wu [Tue, 11 Oct 2022 02:19:27 +0000 (10:19 +0800)]
sound:starfive:Add I2S driver

Add I2S driver for starfive.

Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
20 months agocan:starfive:modify some data field and clock frequency
William Qiu [Tue, 11 Oct 2022 02:11:18 +0000 (10:11 +0800)]
can:starfive:modify some data field and clock frequency

modify some data field and clock frequency

Signed-off-by: William Qiu <william.qiu@starfivetech.com>
21 months agoCR_2307_PWMDAC_515: fix playback repeatly issue
Walker Chen [Mon, 10 Oct 2022 13:36:03 +0000 (21:36 +0800)]
CR_2307_PWMDAC_515: fix playback repeatly issue

fix the bug that error occurs when playback repleatly.

Signed-off-by: Walker Chen <walker.chen@linux.starfivetech.com>
21 months agodts:starfive:modify can dts config and improve CAN IO driving force
William Qiu [Sun, 9 Oct 2022 03:43:49 +0000 (11:43 +0800)]
dts:starfive:modify can dts config and improve CAN IO driving force

modify can dts config and improve CAN IO driving force

Signed-off-by: William Qiu <william.qiu@starfivetech.com>
21 months agoCR_2141:crypto:starfive: Enhanced AES driver to handle negative cases
jiajie.ho [Tue, 4 Oct 2022 17:12:05 +0000 (01:12 +0800)]
CR_2141:crypto:starfive: Enhanced AES driver to handle negative cases

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>
21 months agoMerge branch 'CR_2248_PMU_walker.chen' into 'jh7110-5.15.y-devel'
andy.hu [Fri, 30 Sep 2022 03:44:05 +0000 (03:44 +0000)]
Merge branch 'CR_2248_PMU_walker.chen' into 'jh7110-5.15.y-devel'

CR_2248_PMU_515: Fix some power domain can not be disabled

See merge request sdk/linux!515

21 months agoMerge branch 'CR_2233_CMA_515_samin.guo' into 'jh7110-5.15.y-devel'
andy.hu [Fri, 30 Sep 2022 03:21:39 +0000 (03:21 +0000)]
Merge branch 'CR_2233_CMA_515_samin.guo' into 'jh7110-5.15.y-devel'

CR_2233_CMA_515_samin.guo:riscv:dts:jh7110: Modify CMA reserved space to better support 2G DRAM

See merge request sdk/linux!509

21 months agopmu: starfive: Fix some power domain can not be disabled
Walker Chen [Wed, 28 Sep 2022 08:08:44 +0000 (16:08 +0800)]
pmu: starfive: Fix some power domain can not be disabled

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>
21 months agoriscv:dts:jh7110: Modify CMA reserved space to better support 2G DRAM
samin [Mon, 26 Sep 2022 04:33:27 +0000 (12:33 +0800)]
riscv:dts:jh7110: Modify CMA reserved space to better support 2G DRAM

When the DDR is 2G (0x40000000-0xc0000000), it may cause address usage
problems.

Signed-off-by: samin <samin.guo@starfivetech.com>
21 months agoMerge branch 'CR_1849_DMA_walker.chen' into 'jh7110-5.15.y-devel'
andy.hu [Fri, 23 Sep 2022 08:28:22 +0000 (08:28 +0000)]
Merge branch 'CR_1849_DMA_walker.chen' into 'jh7110-5.15.y-devel'

CR_1849_DMA_walker.chen

See merge request sdk/linux!483

21 months agoMerge branch 'CR_2180_evb_515_DRM_WESTON_keith.zhao' into 'jh7110-5.15.y-devel'
andy.hu [Fri, 23 Sep 2022 07:03:25 +0000 (07:03 +0000)]
Merge branch 'CR_2180_evb_515_DRM_WESTON_keith.zhao' into 'jh7110-5.15.y-devel'

CR_2180:riscv:driver:drm: Weston-GPU

See merge request sdk/linux!501

21 months agoMerge branch 'CR_2162_GPU_shanlong.li' into 'jh7110-5.15.y-devel'
andy.hu [Fri, 23 Sep 2022 06:59:39 +0000 (06:59 +0000)]
Merge branch 'CR_2162_GPU_shanlong.li' into 'jh7110-5.15.y-devel'

Cr 2162 gpu shanlong.li

See merge request sdk/linux!499

21 months agoMerge branch 'CR_2156_v4l2_515_changhuang.liang' into 'jh7110-5.15.y-devel'
andy.hu [Fri, 23 Sep 2022 06:57:42 +0000 (06:57 +0000)]
Merge branch 'CR_2156_v4l2_515_changhuang.liang' into 'jh7110-5.15.y-devel'

CR_2156_v4l2_515_changhuang.liang v4l2: modify vin clk base on pll2 change

See merge request sdk/linux!491

21 months agoMerge branch 'CR_2127_PCIe_515_Kevin.xie' into 'jh7110-5.15.y-devel'
andy.hu [Fri, 23 Sep 2022 06:46:17 +0000 (06:46 +0000)]
Merge branch 'CR_2127_PCIe_515_Kevin.xie' into 'jh7110-5.15.y-devel'

CR 2127 drivers: pci: Support 64bit prefetchable MMIO range.

See merge request sdk/linux!503

21 months agoMerge branch 'CR_2123_515_SPDIF_mclkext_Xingyu.Wu' into 'jh7110-5.15.y-devel'
andy.hu [Fri, 23 Sep 2022 06:44:23 +0000 (06:44 +0000)]
Merge branch 'CR_2123_515_SPDIF_mclkext_Xingyu.Wu' into 'jh7110-5.15.y-devel'

CR_2123_515_spdif_mclkext_xingyu.wu

See merge request sdk/linux!489

21 months agodriver:gpu: gpu driver change to release
shanlong.li [Fri, 23 Sep 2022 06:37:27 +0000 (23:37 -0700)]
driver:gpu: gpu driver change to release

gpu driver change to release

Signed-off-by: shanlong.li <shanlong.li@starfivetech.com>
21 months agoMerge branch 'CR_1737_SEC_jiajie.ho' into 'jh7110-5.15.y-devel'
andy.hu [Fri, 23 Sep 2022 06:35:35 +0000 (06:35 +0000)]
Merge branch 'CR_1737_SEC_jiajie.ho' into 'jh7110-5.15.y-devel'

CR_1737:crypto:starfive: Fixed AEAD tag generation and verification

See merge request sdk/linux!505

21 months agodriver:GPU:set the gpu frequency to 594Mhz
shanlong.li [Thu, 15 Sep 2022 03:01:51 +0000 (20:01 -0700)]
driver:GPU:set the gpu frequency to 594Mhz

set the gpu frequency to 594Mhz

Signed-off-by: shanlong.li <shanlong.li@starfivetech.com>
21 months agodts:GPU: add core clk
shanlong.li [Thu, 15 Sep 2022 02:59:44 +0000 (19:59 -0700)]
dts:GPU: add core clk

add core clk

Signed-off-by: shanlong.li <shanlong.li@starfivetech.com>
21 months agoCR_1737:crypto:starfive: Fixed AEAD tag generation and verification
jiajie.ho [Thu, 22 Sep 2022 04:31:49 +0000 (12:31 +0800)]
CR_1737:crypto:starfive: Fixed AEAD tag generation and verification

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>
21 months agoriscv:driver:drm: Weston-GPU
keith.zhao [Wed, 21 Sep 2022 01:56:46 +0000 (09:56 +0800)]
riscv:driver:drm: Weston-GPU

add format_mod_supported interface for userspace

Signed-off-by: keith <keith.zhao@starfivetech.com>
21 months agodrivers: pci: Support 64bit prefetchable MMIO range.
Kevin.xie [Tue, 20 Sep 2022 09:11:49 +0000 (17:11 +0800)]
drivers: pci: Support 64bit prefetchable MMIO range.

Verification has been completed on NVIDIA GT710 with modetest.

Signed-off-by: Kevin.xie <kevin.xie@starfivetech.com>
21 months agoMerge branch 'CR_2030_5.15_evb_vout_shengyang.chen' into 'jh7110-5.15.y-devel'
andy.hu [Fri, 16 Sep 2022 09:00:59 +0000 (09:00 +0000)]
Merge branch 'CR_2030_5.15_evb_vout_shengyang.chen' into 'jh7110-5.15.y-devel'

CR_2030_5.15_2_riscv:dts:drm

See merge request sdk/linux!497

21 months agoMerge branch 'CR_2165_v4l2_515_changhuang.liang' into 'jh7110-5.15.y-devel'
andy.hu [Fri, 16 Sep 2022 08:35:07 +0000 (08:35 +0000)]
Merge branch 'CR_2165_v4l2_515_changhuang.liang' into 'jh7110-5.15.y-devel'

CR_2165_v4l2_515_changhuang.liang v4l2: modify imx219 vertical crop value

See merge request sdk/linux!495

21 months agoMerge branch 'CR_2155_515_Timer_Xingyu.Wu' into 'jh7110-5.15.y-devel'
andy.hu [Fri, 16 Sep 2022 08:31:56 +0000 (08:31 +0000)]
Merge branch 'CR_2155_515_Timer_Xingyu.Wu' into 'jh7110-5.15.y-devel'

CR_2155_515_Timer_Xingyu.Wu

See merge request sdk/linux!493

21 months agoMerge branch 'CR_1706_SEC_jiajie.ho' into 'jh7110-5.15.y-devel'
andy.hu [Fri, 16 Sep 2022 08:05:11 +0000 (08:05 +0000)]
Merge branch 'CR_1706_SEC_jiajie.ho' into 'jh7110-5.15.y-devel'

CR_1706:crypto:starfive: Add buffer alignment for AES driver

See merge request sdk/linux!394

21 months agoMerge branch 'CR_2135_SEC_515_william.qiu' into 'jh7110-5.15.y-devel'
andy.hu [Fri, 16 Sep 2022 08:03:38 +0000 (08:03 +0000)]
Merge branch 'CR_2135_SEC_515_william.qiu' into 'jh7110-5.15.y-devel'

CR_2135_515:sec_dma:pl080:remove arm primecell compatible

See merge request sdk/linux!485

21 months agoMerge branch 'CR_1922_evb_515_DRM_hdmi_720x480_colorIssue_keith.zhao' into 'jh7110...
andy.hu [Fri, 16 Sep 2022 04:25:21 +0000 (04:25 +0000)]
Merge branch 'CR_1922_evb_515_DRM_hdmi_720x480_colorIssue_keith.zhao' into 'jh7110-5.15.y-devel'

CR_1922:riscv:driver:drm: HDMI display

See merge request sdk/linux!488

21 months agoMerge branch 'CR_2111_515_Clocktree_yaml_Xingyu.Wu' into 'jh7110-5.15.y-devel'
andy.hu [Fri, 16 Sep 2022 04:23:16 +0000 (04:23 +0000)]
Merge branch 'CR_2111_515_Clocktree_yaml_Xingyu.Wu' into 'jh7110-5.15.y-devel'

CR_2111_515_Documentation:Add starfive clock yaml

See merge request sdk/linux!473

21 months agoriscv:dts:drm
shengyang.chen [Thu, 15 Sep 2022 10:52:27 +0000 (18:52 +0800)]
riscv:dts:drm

update changing of dts compatible value

Signed-off-by: shengyang.chen<shengyang.chen@starfivetech.com>
21 months agoCR_1849_DMA_515: Stop dma channel
Walker Chen [Fri, 9 Sep 2022 14:07:55 +0000 (22:07 +0800)]
CR_1849_DMA_515: Stop dma channel

DMA: fixed some issue.

1. Removed some invalid function such as dma_tasklet.
2. Export axi_dma_cyclic_stop function to other driver.
3. Setting timeout 200 ms to poll the status of dma
   when one channel is disabled.

Signed-off-by: Walker Chen <walker.chen@starfivetech.com>
21 months agov4l2: modify imx219 vertical crop value
changhuang.liang [Thu, 15 Sep 2022 08:59:14 +0000 (16:59 +0800)]
v4l2: modify imx219 vertical crop value

modify imx219 vertical crop value

Signed-off-by: changhuang.liang <changhuang.liang@starfivetech.com>
21 months agosound:soc:wm8960:Change delay time when first capture
Xingyu Wu [Wed, 14 Sep 2022 07:39:23 +0000 (15:39 +0800)]
sound:soc:wm8960:Change delay time when first capture

Change delay time from 800 to 1000 when first capture.

Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
21 months agosound:starfive:spdif:Use mclk_inner about 11k and 22k
Xingyu Wu [Wed, 14 Sep 2022 06:11:39 +0000 (14:11 +0800)]
sound:starfive:spdif:Use mclk_inner about 11k and 22k

Use mclk_inner clock from 1188m PLL2
will be better about 11k and 22k.

Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
21 months agosound:starfive:pdm:Use mclk_ext external clock
Xingyu Wu [Tue, 13 Sep 2022 09:29:02 +0000 (17:29 +0800)]
sound:starfive:pdm:Use mclk_ext external clock

Use mclk_ext instead of mclk_inner.

Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
21 months agosound:starfive:spdif:Use extrenal mclk
Xingyu Wu [Thu, 8 Sep 2022 08:40:21 +0000 (16:40 +0800)]
sound:starfive:spdif:Use extrenal mclk

Use extrenal mclk_ext instead of mclk_inner.

Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
21 months agoclocksource: starfive: Remove struct reset_control
Ley Foon Tan [Mon, 12 Sep 2022 02:09:27 +0000 (02:09 +0000)]
clocksource: starfive: Remove struct reset_control

Remove struct reset_control from starfive_clkevt struct, uses local
struct reset_control instead.

Signed-off-by: Ley Foon Tan <leyfoon.tan@linux.starfivetech.com>
21 months agodt-bindings: timer: JH7110: Update reset information
Ley Foon Tan [Mon, 12 Sep 2022 01:43:59 +0000 (01:43 +0000)]
dt-bindings: timer: JH7110: Update reset information

Added reset parameters to binding document and update clock description.

Signed-off-by: Ley Foon Tan <leyfoon.tan@linux.starfivetech.com>
21 months agodt-bindings:timer:Modify the name
Xingyu Wu [Thu, 15 Sep 2022 01:57:21 +0000 (09:57 +0800)]
dt-bindings:timer:Modify the name

Rename to 'starfive,jh7110-timers.yaml'.

Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
21 months agov4l2: modify vin clk base on pll2 change
changhuang.liang [Thu, 15 Sep 2022 01:35:41 +0000 (09:35 +0800)]
v4l2: modify vin clk base on pll2 change

pll2 frequency change to 1188M so vin clock will change.

Signed-off-by: changhuang.liang <changhuang.liang@starfivetech.com>
21 months agoDocumentation:devicetree:clock:Add starfive clock yaml
Xingyu Wu [Wed, 7 Sep 2022 06:35:03 +0000 (14:35 +0800)]
Documentation:devicetree:clock:Add starfive clock yaml

Add starfive clkgen, vout and isp yaml file.

Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
21 months agodma:pl080:modify vic7110 function name to jh7110
William Qiu [Tue, 13 Sep 2022 10:20:15 +0000 (18:20 +0800)]
dma:pl080:modify vic7110 function name to jh7110

modify vic7110 function name to jh7110

Signed-off-by: William Qiu <william.qiu@starfivetech.com>
21 months agobt-binding:pl080:remove arm pl080 compatible
William Qiu [Tue, 13 Sep 2022 10:18:53 +0000 (18:18 +0800)]
bt-binding:pl080:remove arm pl080 compatible

remove arm pl080 compatible and add support
for starfive jh7110-pl080

Signed-off-by: William Qiu <william.qiu@starfivetech.com>
21 months agodts:starfive:pinctrl:Add mclk_ext pin
Xingyu Wu [Thu, 8 Sep 2022 08:34:21 +0000 (16:34 +0800)]
dts:starfive:pinctrl:Add mclk_ext pin

Add mclk_ext pin and it's rate is 12.288m.

Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
21 months agoriscv:driver:drm: HDMI display
keith.zhao [Tue, 13 Sep 2022 06:55:44 +0000 (14:55 +0800)]
riscv:driver:drm: HDMI display

1、fix 720x480 display
2、improve eye diagram parameters

Signed-off-by: keith <keith.zhao@starfivetech.com>
22 months agoMerge branch 'CR_2124_evb_515_DRM_GST_4K_keith.zhao' into 'jh7110-5.15.y-devel'
andy.hu [Fri, 9 Sep 2022 10:15:47 +0000 (10:15 +0000)]
Merge branch 'CR_2124_evb_515_DRM_GST_4K_keith.zhao' into 'jh7110-5.15.y-devel'

CR 2124 riscv:linux:vout:hdmi gst

See merge request sdk/linux!481

22 months agoriscv:linux:vout:hdmi gst
keith.zhao [Fri, 9 Sep 2022 09:48:54 +0000 (17:48 +0800)]
riscv:linux:vout:hdmi gst

delete file by mistake submit

Signed-off-by: keith <keith.zhao@starfivetech.com>
22 months agoriscv:linux:vout:hdmi gst
keith.zhao [Fri, 9 Sep 2022 09:38:09 +0000 (17:38 +0800)]
riscv:linux:vout:hdmi gst

1、fix CR 2124 gst play 4K video issue
2、remove unused code caused by pll switches 1188

Signed-off-by: keith <keith.zhao@starfivetech.com>
22 months agoMerge branch 'CR_2121_CAN_515_william.qiu' into 'jh7110-5.15.y-devel'
andy.hu [Fri, 9 Sep 2022 09:05:29 +0000 (09:05 +0000)]
Merge branch 'CR_2121_CAN_515_william.qiu' into 'jh7110-5.15.y-devel'

Cr 2121 can 515 william.qiu

See merge request sdk/linux!477

22 months agoMerge branch 'CR_1448_5.15_evb_vout_shengyang.chen' into 'jh7110-5.15.y-devel'
andy.hu [Fri, 9 Sep 2022 08:31:12 +0000 (08:31 +0000)]
Merge branch 'CR_1448_5.15_evb_vout_shengyang.chen' into 'jh7110-5.15.y-devel'

CR_1448_5.15_riscv:linux:drm:

See merge request sdk/linux!479

22 months agoMerge branch 'CR_2119_evb_515_DRM_mipi_new_panel_keith.zhao' into 'jh7110-5.15.y...
andy.hu [Fri, 9 Sep 2022 08:30:11 +0000 (08:30 +0000)]
Merge branch 'CR_2119_evb_515_DRM_mipi_new_panel_keith.zhao' into 'jh7110-5.15.y-devel'

CR_2119: riscv:linux:vout:mipi

See merge request sdk/linux!475

22 months agoriscv:linux:drm:
shengyang.chen [Fri, 9 Sep 2022 06:35:47 +0000 (14:35 +0800)]
riscv:linux:drm:

update code after pll switch to 1188m
based on new pll config, fix rgb bug caused by old pll
------------------------------------------------------------
update code after review

Signed-off-by: shengyang.chen<shengyang.chen@starfivetech.com>
22 months agoriscv:linux:drm:
shengyang.chen [Fri, 9 Sep 2022 03:51:16 +0000 (11:51 +0800)]
riscv:linux:drm:

update code after pll switch to 1188m
based on new pll config, fix rgb bug caused by old pll

Signed-off-by: shengyang.chen<shengyang.chen@starfivetech.com>
22 months agodt-bindings:SDIO:Add bindings for StarFive JH7110 SDIO
William Qiu [Fri, 9 Sep 2022 04:39:43 +0000 (12:39 +0800)]
dt-bindings:SDIO:Add bindings for StarFive JH7110 SDIO

Add bindings for StarFive JH7110 SDIO

Signed-off-by: William Qiu <william.qiu@starfivetech.com>
22 months agoSDIO:starfive:Add the starfive private driver for SDIO
William Qiu [Fri, 9 Sep 2022 04:39:12 +0000 (12:39 +0800)]
SDIO:starfive:Add the starfive private driver for SDIO

Add the starfive private driver for SDIO

Signed-off-by: William Qiu <william.qiu@starfivetech.com>
22 months agodefconfig:starfive:Add support for SDIO's starfive private driver
William Qiu [Fri, 9 Sep 2022 04:38:37 +0000 (12:38 +0800)]
defconfig:starfive:Add support for SDIO's starfive private driver

Add support for SDIO's starfive private driver

Signed-off-by: William Qiu <william.qiu@starfivetech.com>
22 months agodts:starfive:modify SDIO config
William Qiu [Fri, 9 Sep 2022 04:37:56 +0000 (12:37 +0800)]
dts:starfive:modify SDIO config

modify SDIO config

Signed-off-by: William Qiu <william.qiu@starfivetech.com>
22 months agoriscv:linux:vout:mipi
keith.zhao [Thu, 8 Sep 2022 07:07:41 +0000 (15:07 +0800)]
riscv:linux:vout:mipi

add 3 new mipi panel support

Signed-off-by: keith <keith.zhao@starfivetech.com>
22 months agoMerge branch 'CR_2015_SEC_jiajie.ho' into 'jh7110-5.15.y-devel'
andy.hu [Wed, 7 Sep 2022 07:49:23 +0000 (07:49 +0000)]
Merge branch 'CR_2015_SEC_jiajie.ho' into 'jh7110-5.15.y-devel'

CR_2015:crypto:starfive: Remove DES/TDES support

See merge request sdk/linux!427

22 months agoMerge branch 'CR_1946_515_GMAC_yanhong.wang' into 'jh7110-5.15.y-devel'
andy.hu [Wed, 7 Sep 2022 07:31:30 +0000 (07:31 +0000)]
Merge branch 'CR_1946_515_GMAC_yanhong.wang' into 'jh7110-5.15.y-devel'

Cr 1946 515 gmac yanhong.wang

See merge request sdk/linux!416

22 months agoMerge branch 'CR_2084_CAN_515_william.qiu' into 'jh7110-5.15.y-devel'
andy.hu [Wed, 7 Sep 2022 07:22:30 +0000 (07:22 +0000)]
Merge branch 'CR_2084_CAN_515_william.qiu' into 'jh7110-5.15.y-devel'

CR_2084_515:dt-blinding:canfd:set can1 to canfd

See merge request sdk/linux!465