platform/kernel/linux-starfive.git
23 months agoMerge branch 'CR_1600_v4l2_reset_515_changhuang.liang' into 'jh7110-5.15.y-devel'
Jason Zhou [Thu, 21 Jul 2022 10:39:37 +0000 (10:39 +0000)]
Merge branch 'CR_1600_v4l2_reset_515_changhuang.liang' into 'jh7110-5.15.y-devel'

CR_1600_v4l2_reset_515_changhuang.liang

See merge request sdk/linux!282

23 months agoMerge branch 'CR_1657_clock_tree_api_Xingyu.Wu' into 'jh7110-5.15.y-devel'
Jason Zhou [Thu, 21 Jul 2022 10:38:00 +0000 (10:38 +0000)]
Merge branch 'CR_1657_clock_tree_api_Xingyu.Wu' into 'jh7110-5.15.y-devel'

CR_1657 clock tree api xingyu.wu

See merge request sdk/linux!305

23 months agoMerge branch 'CR_1658_I2S_515_curry.zhang' into 'jh7110-5.15.y-devel'
Jason Zhou [Thu, 21 Jul 2022 10:36:57 +0000 (10:36 +0000)]
Merge branch 'CR_1658_I2S_515_curry.zhang' into 'jh7110-5.15.y-devel'

CR_1658_I2S [Audio: I2S] Updated the reset API

See merge request sdk/linux!301

23 months agoMerge branch 'CR_1656_RTC_hal.feng' into 'jh7110-5.15.y-devel'
Jason Zhou [Thu, 21 Jul 2022 10:35:03 +0000 (10:35 +0000)]
Merge branch 'CR_1656_RTC_hal.feng' into 'jh7110-5.15.y-devel'

Cr 1656 rtc hal.feng

See merge request sdk/linux!292

23 months ago[Audio: I2S] Updated the reset API
curry.zhang [Wed, 20 Jul 2022 01:36:38 +0000 (18:36 -0700)]
[Audio: I2S] Updated the reset API

changed the standard reset API

Signed-off-by: curry.zhang <curry.zhang@starfivetech.com>
23 months agoMerge branch 'CR_1582_evb_515_DRM_RGB_keith.zhao' into 'jh7110-5.15.y-devel'
Jason Zhou [Thu, 21 Jul 2022 05:28:59 +0000 (05:28 +0000)]
Merge branch 'CR_1582_evb_515_DRM_RGB_keith.zhao' into 'jh7110-5.15.y-devel'

riscv:linux:vout:rgb

See merge request sdk/linux!278

23 months agortc: starfive: Change reset api
Hal Feng [Tue, 19 Jul 2022 13:11:20 +0000 (21:11 +0800)]
rtc: starfive: Change reset api

Use devm_reset_control_array_get_exclusive() to get reset

Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
23 months agoriscv: dts: starfive: Modify order of reset in rtc node
Hal Feng [Tue, 19 Jul 2022 13:09:14 +0000 (21:09 +0800)]
riscv: dts: starfive: Modify order of reset in rtc node

For changing reset api used in rtc driver

Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
23 months agoclk:starfive:Update clk and reset api about vout
xingyu.wu [Wed, 20 Jul 2022 02:07:06 +0000 (10:07 +0800)]
clk:starfive:Update clk and reset api about vout

Use 'clk_bulk_get' api to replace 'clk_get' and use
'share' replace 'exclusive' about reset.

Signed-off-by: xingyu.wu <xingyu.wu@starfivetech.com>
23 months agoclk:starfive:Update clk and reset api about isp
xingyu.wu [Wed, 20 Jul 2022 02:02:06 +0000 (10:02 +0800)]
clk:starfive:Update clk and reset api about isp

Use 'clk_bulk_get' and 'devm_reset_control_array_get' api
to replace 'clk_get' and 'devm_reset_control_get' api.

Signed-off-by: xingyu.wu <xingyu.wu@starfivetech.com>
23 months agov4l2: modify reset api
changhuang.liang [Thu, 14 Jul 2022 07:48:02 +0000 (15:48 +0800)]
v4l2: modify reset api

modify reset api

Signed-off-by: changhuang.liang <changhuang.liang@starfivetech.com>
23 months agoMerge branch 'CR_1176_CLOCK_TREE_PLL_Xingyu.Wu' into 'jh7110-5.15.y-devel'
Jason Zhou [Wed, 20 Jul 2022 09:28:58 +0000 (09:28 +0000)]
Merge branch 'CR_1176_CLOCK_TREE_PLL_Xingyu.Wu' into 'jh7110-5.15.y-devel'

CR 1176 clock tree pll xingyu.wu

See merge request sdk/linux!280

23 months agoclk:starfive:Modify function format about 'jh7110_pll_data_from'
xingyu.wu [Mon, 18 Jul 2022 02:11:56 +0000 (10:11 +0800)]
clk:starfive:Modify function format about 'jh7110_pll_data_from'

Modify function format about 'jh7110_pll_data_from'

Signed-off-by: xingyu.wu <xingyu.wu@starfivetech.com>
23 months agodefconfig:Add CONFIG_CLK_STARFIVE_JH7110_PLL
xingyu.wu [Fri, 15 Jul 2022 09:31:36 +0000 (17:31 +0800)]
defconfig:Add CONFIG_CLK_STARFIVE_JH7110_PLL

Add CONFIG_CLK_STARFIVE_JH7110_PLL

Signed-off-by: xingyu.wu <xingyu.wu@starfivetech.com>
23 months agoclk:starfive:Set PLL2 frequency when clock tree registering
xingyu.wu [Fri, 15 Jul 2022 08:51:21 +0000 (16:51 +0800)]
clk:starfive:Set PLL2 frequency when clock tree registering

In the file drivers/clk/starfive/clk-starfive-jh7110-pll.h,
If set PLL2_DEFAULT_FREQ NULL of 0 , then PLL2 frequency is original.
If set PLL2_DEFAULT_FREQ one of 'starfive_pll2_freq_value', then PLL2
frequency will be set the new rate during clock tree registering.

Signed-off-by: xingyu.wu <xingyu.wu@starfivetech.com>
23 months agoclk:starfive:Add PLL2 frequency controller
xingyu.wu [Fri, 15 Jul 2022 03:53:25 +0000 (11:53 +0800)]
clk:starfive:Add PLL2 frequency controller

If enable CONFIG_CLK_STARFIVE_JH7110_PLL, also could read or set PLL1 clock's
rate by reading or setting syscon registers.

Signed-off-by: xingyu.wu <xingyu.wu@starfivetech.com>
23 months agoclk:starfive:Add PLL0 frequency controller
xingyu.wu [Mon, 11 Jul 2022 08:46:18 +0000 (16:46 +0800)]
clk:starfive:Add PLL0 frequency controller

If enable CONFIG_CLK_STARFIVE_JH7110_PLL, could read or set PLL0 clock's
rate by reading or setting syscon registers.

Signed-off-by: xingyu.wu <xingyu.wu@starfivetech.com>
23 months agoclk:starfive:Modify the format
xingyu.wu [Mon, 4 Jul 2022 03:02:31 +0000 (11:02 +0800)]
clk:starfive:Modify the format

Modify the clocktree files' format

Signed-off-by: xingyu.wu <xingyu.wu@starfivetech.com>
23 months agodt-bindings:clock:Delete external clock definitions
xingyu.wu [Tue, 21 Jun 2022 12:41:11 +0000 (20:41 +0800)]
dt-bindings:clock:Delete external clock definitions

Move external clock definitions to C files that avoid illegal use.

Signed-off-by: xingyu.wu <xingyu.wu@starfivetech.com>
23 months agoMerge branch 'CR_1651_7110_evb_5.15_voutrst-1_shengyang.chen' into 'jh7110-5.15.y...
Jason Zhou [Wed, 20 Jul 2022 06:23:30 +0000 (06:23 +0000)]
Merge branch 'CR_1651_7110_evb_5.15_voutrst-1_shengyang.chen' into 'jh7110-5.15.y-devel'

Cr 1651 7110 evb 5.15 voutrst 1 shengyang.chen

See merge request sdk/linux!285

23 months agoMerge branch 'CR_1562_SPI_Xingyu.Wu' into 'jh7110-5.15.y-devel'
Jason Zhou [Wed, 20 Jul 2022 06:22:11 +0000 (06:22 +0000)]
Merge branch 'CR_1562_SPI_Xingyu.Wu' into 'jh7110-5.15.y-devel'

CR_1562 spi xingyu.wu

See merge request sdk/linux!288

23 months agoMerge branch 'CR_1564_I2C_hal.feng' into 'jh7110-5.15.y-devel'
Jason Zhou [Wed, 20 Jul 2022 06:21:25 +0000 (06:21 +0000)]
Merge branch 'CR_1564_I2C_hal.feng' into 'jh7110-5.15.y-devel'

CR 1564 i2c hal.feng

See merge request sdk/linux!290

23 months agoMerge branch 'CR_1560_v4l2_changhuang.liang' into 'jh7110-5.15.y-devel'
Jason Zhou [Wed, 20 Jul 2022 06:20:37 +0000 (06:20 +0000)]
Merge branch 'CR_1560_v4l2_changhuang.liang' into 'jh7110-5.15.y-devel'

CR_1560_v4l2_changhuang.liang

See merge request sdk/linux!294

23 months agoMerge branch 'CR_1631_7110_evb_5.15_mipitx_shengyang.chen' into 'jh7110-5.15.y-devel'
Jason Zhou [Wed, 20 Jul 2022 06:19:45 +0000 (06:19 +0000)]
Merge branch 'CR_1631_7110_evb_5.15_mipitx_shengyang.chen' into 'jh7110-5.15.y-devel'

CR_1631-5.15 riscv:linux:drm:mipitx

See merge request sdk/linux!296

23 months agoMerge branch 'CR_1274_SEC_jiajie.ho' into 'jh7110-5.15.y-devel'
Jason Zhou [Wed, 20 Jul 2022 06:19:12 +0000 (06:19 +0000)]
Merge branch 'CR_1274_SEC_jiajie.ho' into 'jh7110-5.15.y-devel'

crypto:starfive: Switch CSR polling instead of interrupt for HMAC.

See merge request sdk/linux!298

23 months agocrypto:starfive: Switch CSR polling instead of interrupt for HMAC.
jiajie.ho [Wed, 20 Jul 2022 03:20:55 +0000 (11:20 +0800)]
crypto:starfive: Switch CSR polling instead of interrupt for HMAC.

Observed interrupt signal goes HIGH before HMAC calculations
has been completed. Switching to use CSR polling to check for
HMAC_DONE instead.

Signed-off-by: Jia Jie Ho <jiajie.ho@starfivetech.com>
23 months agoriscv:linux:drm:
shengyang.chen [Wed, 20 Jul 2022 01:54:46 +0000 (09:54 +0800)]
riscv:linux:drm:

fix mipi shifted display problem
remove useless process in vs_dc_hw.c

Signed-off-by:shengyang.chen<shengyang.chen@starfivetech.com>

23 months agoriscv: dts: starfive: Correct i2c scl/sda falling time
Hal Feng [Tue, 19 Jul 2022 06:20:44 +0000 (14:20 +0800)]
riscv: dts: starfive: Correct i2c scl/sda falling time

Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
23 months agospi:pl022-starfive:Turn off dma channel search under overlay
xingyu.wu [Tue, 19 Jul 2022 07:51:13 +0000 (15:51 +0800)]
spi:pl022-starfive:Turn off dma channel search under overlay

Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
23 months agospi:pl022-starfive:Avoid power device error when CONFIG_PM enable
xingyu.wu [Tue, 19 Jul 2022 06:49:20 +0000 (14:49 +0800)]
spi:pl022-starfive:Avoid power device error when CONFIG_PM enable

It would be error when CONFIG_PM enable and use overlay by of-platform to register.
And disable 'auto_runtime_pm' can be avoid.

And add some power manager operation in platform probe function.

Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
23 months agoriscv:linux:drm:
shengyang.chen [Tue, 19 Jul 2022 03:02:16 +0000 (11:02 +0800)]
riscv:linux:drm:

replace some reset interfaces for vout

Signed-off-by:shengyang.chen<shengyang.chen@starfivetech.com>

23 months agoriscv:arch:dts:
shengyang.chen [Tue, 19 Jul 2022 03:01:15 +0000 (11:01 +0800)]
riscv:arch:dts:

reduce some useless calling in vout port

Signed-off-by:shengyang.chen<shengyang.chen@starfivetech.com>

23 months agov4l2: fixed close wr due to system hung
changhuang.liang [Mon, 18 Jul 2022 02:31:34 +0000 (10:31 +0800)]
v4l2: fixed close wr due to system hung

Signed-off-by: changhuang.liang <changhuang.liang@starfivetech.com>
23 months agoMerge branch 'CR_1566_RTC_hal.feng' into 'jh7110-5.15.y-devel'
Jason Zhou [Fri, 15 Jul 2022 01:41:37 +0000 (01:41 +0000)]
Merge branch 'CR_1566_RTC_hal.feng' into 'jh7110-5.15.y-devel'

CR_1566: rtc hal.feng

See merge request sdk/linux!276

23 months agoriscv:linux:vout:rgb
keith.zhao [Thu, 14 Jul 2022 19:55:35 +0000 (03:55 +0800)]
riscv:linux:vout:rgb

Solve RGB channel display offset problem

Signed-off-by: keith <keith.zhao@starfivetech.com>
23 months agortc: starfive: Improve rtc driver
Hal Feng [Wed, 13 Jul 2022 13:10:54 +0000 (21:10 +0800)]
rtc: starfive: Improve rtc driver

1. Set initial time if rtc is never set.
2. Add timeout when clearing interrupt flag register.
3. Improve alarm function.

Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
23 months agortc: starfive: Improve coding style
Hal Feng [Mon, 20 Jun 2022 07:34:13 +0000 (15:34 +0800)]
rtc: starfive: Improve coding style

Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
23 months agoMerge branch 'CR_1458_timer_watchdog_wording_Xingyu.Wu' into 'jh7110-5.15.y-devel'
Jason Zhou [Tue, 12 Jul 2022 13:57:24 +0000 (13:57 +0000)]
Merge branch 'CR_1458_timer_watchdog_wording_Xingyu.Wu' into 'jh7110-5.15.y-devel'

CR 1458 timer watchdog wording xingyu.wu

See merge request sdk/linux!269

23 months agoMerge branch 'CR_1455_PCIe_Kevin.xie' into 'jh7110-5.15.y-devel'
Jason Zhou [Tue, 12 Jul 2022 13:46:33 +0000 (13:46 +0000)]
Merge branch 'CR_1455_PCIe_Kevin.xie' into 'jh7110-5.15.y-devel'

driver: pci: Add extended reset time for better compatibility

See merge request sdk/linux!273

23 months agoMerge branch 'CR_1537_USB_515_mason.huo' into 'jh7110-5.15.y-devel'
Jason Zhou [Tue, 12 Jul 2022 13:11:48 +0000 (13:11 +0000)]
Merge branch 'CR_1537_USB_515_mason.huo' into 'jh7110-5.15.y-devel'

usb: cdns3: Configuare phy as down-spread-spectrum

See merge request sdk/linux!253

23 months agoMerge branch 'CR_1480_7110_evb_5.15_mipitx_shengyang.chen' into 'jh7110-5.15.y-devel'
Jason Zhou [Tue, 12 Jul 2022 13:06:40 +0000 (13:06 +0000)]
Merge branch 'CR_1480_7110_evb_5.15_mipitx_shengyang.chen' into 'jh7110-5.15.y-devel'

riscv:linux:drm:mipidsi

See merge request sdk/linux!265

23 months agoMerge branch 'CR_1383_v4l2_pipeline_515_changhuang.liang' into 'jh7110-5.15.y-devel'
Jason Zhou [Tue, 12 Jul 2022 13:05:06 +0000 (13:05 +0000)]
Merge branch 'CR_1383_v4l2_pipeline_515_changhuang.liang' into 'jh7110-5.15.y-devel'

v4l2: delete csiphy1 and csi1 subdev

See merge request sdk/linux!255

23 months agoMerge branch 'CR_1496_DRM_mipi_hdmi_colorIssue_keith.zhao' into 'jh7110-5.15.y-devel'
Jason Zhou [Tue, 12 Jul 2022 13:03:35 +0000 (13:03 +0000)]
Merge branch 'CR_1496_DRM_mipi_hdmi_colorIssue_keith.zhao' into 'jh7110-5.15.y-devel'

riscv:driver:drm:DC8200

See merge request sdk/linux!271

23 months agoMerge branch 'CR_1352_DRM_plane_overlay_515_Jack.Zhu' into 'jh7110-5.15.y-devel'
Jason Zhou [Tue, 12 Jul 2022 12:56:22 +0000 (12:56 +0000)]
Merge branch 'CR_1352_DRM_plane_overlay_515_Jack.Zhu' into 'jh7110-5.15.y-devel'

[VOUT][DRM]fix redmine #1352: disable plane overlay in close flow

See merge request sdk/linux!259

23 months agoMerge branch 'CR_1427_I2C_hal.feng' into 'jh7110-5.15.y-devel'
Jason Zhou [Tue, 12 Jul 2022 12:53:00 +0000 (12:53 +0000)]
Merge branch 'CR_1427_I2C_hal.feng' into 'jh7110-5.15.y-devel'

Cr 1427 i2c hal.feng

See merge request sdk/linux!263

23 months agodriver: pci: Add extended reset time for better compatibility
Kevin.xie [Tue, 12 Jul 2022 11:14:08 +0000 (19:14 +0800)]
driver: pci: Add extended reset time for better compatibility

Signed-off-by: Kevin.xie <kevin.xie@starfivetech.com>
23 months agoMerge branch 'CR_1563_v4l2_515_changhuang.liang' into 'jh7110-5.15.y-devel'
Jason Zhou [Tue, 12 Jul 2022 09:58:36 +0000 (09:58 +0000)]
Merge branch 'CR_1563_v4l2_515_changhuang.liang' into 'jh7110-5.15.y-devel'

CR_1563_v4l2_515_changhuang.liang

See merge request sdk/linux!267

23 months agoriscv:driver:drm:DC8200
keith.zhao [Tue, 12 Jul 2022 05:40:53 +0000 (13:40 +0800)]
riscv:driver:drm:DC8200

1、fix issue #1496(#1320 is the same issue)

Signed-off-by:keith.zhao <keith.zhao@statfivetech.com>

23 months agoclocksource: starfive: Update timer names
Ley Foon Tan [Thu, 7 Jul 2022 09:53:08 +0000 (09:53 +0000)]
clocksource: starfive: Update timer names

The existing implementation uses DT clock-names 'timer0', 'timer1' and etc
as timer names.  This will have issue if there are two timer instance IPs
in the system.

This patch update timer names to format below, example:
timer@13050000.ch0
timer@13050000.ch1
timer@13050000.ch2
timer@13050000.ch3

Signed-off-by: Ley Foon Tan <leyfoon.tan@linux.starfivetech.com>
23 months agodtsi:Add reset nodes about timer
xingyu.wu [Tue, 12 Jul 2022 03:00:52 +0000 (11:00 +0800)]
dtsi:Add reset nodes about timer

Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
23 months agoclocksource: starfive: Add reset control support
xingyu.wu [Tue, 12 Jul 2022 02:57:13 +0000 (10:57 +0800)]
clocksource: starfive: Add reset control support

Reset the timer if the reset control is available.

Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
Signed-off-by: Ley Foon Tan <leyfoon.tan@linux.starfivetech.com>
23 months agodtsi:Update compatible string about timer
xingyu.wu [Tue, 12 Jul 2022 01:57:17 +0000 (09:57 +0800)]
dtsi:Update compatible string about timer

jh7110.dtsi:Update compatible string to "starfive,timers"

Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
23 months agodt-bindings: watchdog: starfive: Add StarFive watchdog
Ley Foon Tan [Tue, 28 Jun 2022 09:31:14 +0000 (09:31 +0000)]
dt-bindings: watchdog: starfive: Add StarFive watchdog

Add dt-bindigns documentation for StarFive watchdog.

Signed-off-by: Ley Foon Tan <leyfoon.tan@linux.starfivetech.com>
23 months agodt-bindings: timer: Add compatible for StarFive timer
Ley Foon Tan [Tue, 28 Jun 2022 08:38:56 +0000 (08:38 +0000)]
dt-bindings: timer: Add compatible for StarFive timer

Adds dt-binding documentation of timer for StarFive timer.

Signed-off-by: Ley Foon Tan <leyfoon.tan@linux.starfivetech.com>
23 months agowatchdog: starfive: Change "si5" to "starfive"
Ley Foon Tan [Tue, 28 Jun 2022 05:49:43 +0000 (05:49 +0000)]
watchdog: starfive: Change "si5" to "starfive"

Change all "si5" wording in driver to "starfive".
No functional change.

Signed-off-by: Ley Foon Tan <leyfoon.tan@linux.starfivetech.com>
23 months agoclocksource: starfive: Update compatible string to "starfive,timers"
Ley Foon Tan [Tue, 28 Jun 2022 03:59:09 +0000 (03:59 +0000)]
clocksource: starfive: Update compatible string to "starfive,timers"

Update compatible string to "starfive,timers".

Signed-off-by: Ley Foon Tan <leyfoon.tan@linux.starfivetech.com>
23 months agoclocksource: Kconfig: starfive: Update StarFive timer help description
Ley Foon Tan [Tue, 28 Jun 2022 05:55:37 +0000 (05:55 +0000)]
clocksource: Kconfig: starfive: Update StarFive timer help description

Same StarFive timer IP is used in JH8100 SoC. Remove JH71xx wording from
description to be more generic.

Signed-off-by: Ley Foon Tan <leyfoon.tan@linux.starfivetech.com>
23 months agov4l2: modify bus_info
changhuang.liang [Mon, 11 Jul 2022 12:50:56 +0000 (20:50 +0800)]
v4l2: modify bus_info

23 months agoriscv:linux:drm:mipidsi
shengyang.chen [Mon, 11 Jul 2022 11:42:27 +0000 (19:42 +0800)]
riscv:linux:drm:mipidsi

fix mipi display color problem

Signed-off-by:shengyang.chen<shengyang.chen@starfivetech.com>

23 months agodrm: verisilicon: inno_hdmi: Fix an i2c failure during kernel startup
Hal Feng [Mon, 11 Jul 2022 07:14:23 +0000 (15:14 +0800)]
drm: verisilicon: inno_hdmi: Fix an i2c failure during kernel startup

Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
23 months ago[VOUT][DRM]fix redmine #1352: disable plane overlay in close flow
jack.zhu [Fri, 8 Jul 2022 12:07:29 +0000 (20:07 +0800)]
[VOUT][DRM]fix redmine #1352: disable plane overlay in close flow

23 months agoMerge branch 'CR_1534_gpiomon_jianlong' into 'jh7110-5.15.y-devel'
Jason Zhou [Fri, 8 Jul 2022 10:21:33 +0000 (10:21 +0000)]
Merge branch 'CR_1534_gpiomon_jianlong' into 'jh7110-5.15.y-devel'

CR_1534 pinctrl: starfive: Fix gpiomon erro

See merge request sdk/linux!249

23 months agoMerge branch 'CR_1346_PWM_hal.feng' into 'jh7110-5.15.y-devel'
Jason Zhou [Fri, 8 Jul 2022 08:30:21 +0000 (08:30 +0000)]
Merge branch 'CR_1346_PWM_hal.feng' into 'jh7110-5.15.y-devel'

Cr 1346 pwm hal.feng

See merge request sdk/linux!257

23 months agopwm: pwm-starfive-ptc: Improve pwm accuracy
Hal Feng [Tue, 5 Jul 2022 13:22:51 +0000 (21:22 +0800)]
pwm: pwm-starfive-ptc: Improve pwm accuracy

Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
23 months agoMerge branch 'CR_1490_7110_evb_5.15_mipitx_shengyang.chen' into 'jh7110-5.15.y-devel'
Jason Zhou [Fri, 8 Jul 2022 06:27:05 +0000 (06:27 +0000)]
Merge branch 'CR_1490_7110_evb_5.15_mipitx_shengyang.chen' into 'jh7110-5.15.y-devel'

riscv:linux:vout:m31

See merge request sdk/linux!250

23 months agousb: cdns3: Configuare phy as down-spread-spectrum
mason.huo [Fri, 8 Jul 2022 03:24:21 +0000 (11:24 +0800)]
usb: cdns3: Configuare phy as down-spread-spectrum

The default phy spread-spectrum mode is up-spread-spectrum,
which is violated the usb3 spec.
The up-spread-spectrum mode leads to phy buffers overrun.

Signed-off-by: mason.huo <mason.huo@starfivetech.com>
23 months agov4l2: delete csiphy1 and csi1 subdev
changhuang.liang [Fri, 8 Jul 2022 02:34:19 +0000 (10:34 +0800)]
v4l2: delete csiphy1 and csi1 subdev

Signed-off-by: changhuang.liang <changhuang.liang@starfivetech.com>
23 months agoMerge branch 'CR_1311_CPUIdle_mason.huo' into 'jh7110-5.15.y-devel'
andy.hu [Fri, 8 Jul 2022 00:48:47 +0000 (00:48 +0000)]
Merge branch 'CR_1311_CPUIdle_mason.huo' into 'jh7110-5.15.y-devel'

Cr 1311 cpu idle mason.huo

See merge request sdk/linux!247

23 months agoriscv:linux:vout:m31
shengyang.chen [Thu, 7 Jul 2022 12:19:52 +0000 (20:19 +0800)]
riscv:linux:vout:m31

fix 'NULL device' printing problem in console

Signed-off-by:shengyang.chen<shengyang.chen@starfivetech.com>

23 months agopinctrl: starfive: Fix gpiomon erro
Jianlong Huang [Thu, 7 Jul 2022 08:47:24 +0000 (16:47 +0800)]
pinctrl: starfive: Fix gpiomon erro
If enable CONFIG_PM, 'pm_runtime_get_sync' will return erro

Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
23 months agopwm: pwm-starfive-ptc: Improve coding style
Hal Feng [Tue, 21 Jun 2022 14:01:09 +0000 (22:01 +0800)]
pwm: pwm-starfive-ptc: Improve coding style

Disable clock properly, delete redundant comments, modify compatible

Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
23 months agoriscv: dts: starfive: Modify the compatible of pwm(ptc) driver
Hal Feng [Tue, 5 Jul 2022 01:38:32 +0000 (09:38 +0800)]
riscv: dts: starfive: Modify the compatible of pwm(ptc) driver

Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
23 months agoMerge branch 'CR_1468_I2C_Kevin.xie' into 'jh7110-5.15.y-devel'
andy.hu [Tue, 5 Jul 2022 06:53:37 +0000 (06:53 +0000)]
Merge branch 'CR_1468_I2C_Kevin.xie' into 'jh7110-5.15.y-devel'

dts: starfive: Set static i2c bus number

See merge request sdk/linux!244

23 months agodts: starfive: Set static i2c bus number
Kevin.xie [Mon, 4 Jul 2022 09:46:49 +0000 (17:46 +0800)]
dts: starfive: Set static i2c bus number

Signed-off-by: Kevin.xie <kevin.xie@starfivetech.com>
23 months agoriscv: dts: Add the cpuidle states
mason.huo [Wed, 22 Jun 2022 05:18:28 +0000 (13:18 +0800)]
riscv: dts: Add the cpuidle states

Add four cpuidle states per the dt binding document.

Signed-off-by: mason.huo <mason.huo@starfivetech.com>
23 months agoriscv: deconfig: Enable the riscv cpuidle config
mason.huo [Wed, 22 Jun 2022 05:16:32 +0000 (13:16 +0800)]
riscv: deconfig: Enable the riscv cpuidle config

Signed-off-by: mason.huo <mason.huo@starfivetech.com>
23 months agoriscv: Add the make function for SBI version
mason.huo [Wed, 22 Jun 2022 05:11:59 +0000 (13:11 +0800)]
riscv: Add the make function for SBI version

After cherry pick the riscv cpuidle driver,
there is a compilation error due to lack of
sbi_mk_version(); add it manually.

Signed-off-by: mason.huo <mason.huo@starfivetech.com>
23 months agodt-bindings: Add common bindings for ARM and RISC-V idle states
Anup Patel [Thu, 10 Feb 2022 05:49:46 +0000 (11:19 +0530)]
dt-bindings: Add common bindings for ARM and RISC-V idle states

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>
23 months agocpuidle: Add RISC-V SBI CPU idle driver
Anup Patel [Thu, 10 Feb 2022 05:49:45 +0000 (11:19 +0530)]
cpuidle: Add RISC-V SBI CPU idle driver

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>
23 months agocpuidle: Factor-out power domain related code from PSCI domain driver
Anup Patel [Thu, 10 Feb 2022 05:49:44 +0000 (11:19 +0530)]
cpuidle: Factor-out power domain related code from PSCI domain driver

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>
23 months agoRISC-V: Add SBI HSM suspend related defines
mason.huo [Wed, 22 Jun 2022 02:31:05 +0000 (10:31 +0800)]
RISC-V: Add SBI HSM suspend related defines

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>
23 months agoRISC-V: Add arch functions for non-retentive suspend entry/exit
Anup Patel [Thu, 10 Feb 2022 05:49:42 +0000 (11:19 +0530)]
RISC-V: Add arch functions for non-retentive suspend entry/exit

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>
23 months agoRISC-V: Rename relocate() and make it global
Anup Patel [Thu, 10 Feb 2022 05:49:41 +0000 (11:19 +0530)]
RISC-V: Rename relocate() and make it global

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>
23 months agoRISC-V: Enable CPU_IDLE drivers
Anup Patel [Thu, 10 Feb 2022 05:49:40 +0000 (11:19 +0530)]
RISC-V: Enable CPU_IDLE drivers

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>
23 months agoMerge branch 'CR_1479_DRM_tda_driver_keith.zhao' into 'jh7110-5.15.y-devel'
andy.hu [Tue, 5 Jul 2022 02:26:41 +0000 (02:26 +0000)]
Merge branch 'CR_1479_DRM_tda_driver_keith.zhao' into 'jh7110-5.15.y-devel'

Cr 1470 drm tda driver keith.zhao

See merge request sdk/linux!243

23 months agoMerge branch 'CR_1274_SEC_william.qiu' into 'jh7110-5.15.y-devel'
andy.hu [Tue, 5 Jul 2022 02:25:10 +0000 (02:25 +0000)]
Merge branch 'CR_1274_SEC_william.qiu' into 'jh7110-5.15.y-devel'

crypto:starfive:remove sha warning log

See merge request sdk/linux!242

23 months agoriscv:driver:drm:DC8200
keith.zhao [Mon, 4 Jul 2022 10:43:16 +0000 (18:43 +0800)]
riscv:driver:drm:DC8200

delete FW MACRO head file

Signed-off-by:keith.zhao <keith.zhao@statfivetech.com>

23 months agoriscv:driver:drm:DC8200
keith.zhao [Mon, 4 Jul 2022 10:18:38 +0000 (18:18 +0800)]
riscv:driver:drm:DC8200

fix tda hdmi color error display

Signed-off-by:keith.zhao <keith.zhao@statfivetech.com>

23 months agoriscv:driver:drm:DC8200
keith.zhao [Mon, 4 Jul 2022 10:15:48 +0000 (18:15 +0800)]
riscv:driver:drm:DC8200

enable tda config for vout rgb driver

Signed-off-by:keith.zhao <keith.zhao@statfivetech.com>

23 months agoriscv:driver:drm:DC8200
keith.zhao [Mon, 4 Jul 2022 10:14:04 +0000 (18:14 +0800)]
riscv:driver:drm:DC8200

1、update dts for vout rgb driver

Signed-off-by:keith.zhao <keith.zhao@statfivetech.com>

23 months agocrypto:starfive:remove sha warning log
william.qiu [Mon, 4 Jul 2022 10:12:54 +0000 (18:12 +0800)]
crypto:starfive:remove sha warning log

remove sha warning log

Signed-off-by: william.qiu <william.qiu@starfivetech.com>
23 months agoMerge branch 'CR_1489_v4l2_515_changhuang.liang' into 'jh7110-5.15.y-devel'
andy.hu [Mon, 4 Jul 2022 09:15:30 +0000 (09:15 +0000)]
Merge branch 'CR_1489_v4l2_515_changhuang.liang' into 'jh7110-5.15.y-devel'

v4l2: media device add some mesg info

See merge request sdk/linux!240

23 months agoMerge branch 'CR_1469_PCIe_AX210_Kevin.xie' into 'jh7110-5.15.y-devel'
andy.hu [Mon, 4 Jul 2022 09:11:36 +0000 (09:11 +0000)]
Merge branch 'CR_1469_PCIe_AX210_Kevin.xie' into 'jh7110-5.15.y-devel'

riscv: defconfig: Removed AX210 WLAN card firmware.

See merge request sdk/linux!236

23 months agov4l2: media device add some mesg info
changhuang.liang [Mon, 4 Jul 2022 08:23:50 +0000 (16:23 +0800)]
v4l2: media device add some mesg info

Signed-off-by: changhuang.liang <changhuang.liang@starfivetech.com>
23 months agoriscv: defconfig: Removed AX210 WLAN card firmware.
Kevin.xie [Mon, 4 Jul 2022 05:23:05 +0000 (13:23 +0800)]
riscv: defconfig: Removed AX210 WLAN card firmware.

The firmware will be set in buildroot linux-firmware package.

Signed-off-by: Kevin.xie <kevin.xie@starfivetech.com>
23 months agoMerge branch 'CR_1274_SEC_JIAJIE.HO' into 'jh7110-5.15.y-devel'
andy.hu [Mon, 4 Jul 2022 01:43:20 +0000 (01:43 +0000)]
Merge branch 'CR_1274_SEC_JIAJIE.HO' into 'jh7110-5.15.y-devel'

crypto:starfive: Enable CCM and GCM mode for AES

See merge request sdk/linux!234

23 months agocrypto:starfive: Enable CCM and GCM mode for AES
jiajie.ho [Sun, 3 Jul 2022 20:23:15 +0000 (04:23 +0800)]
crypto:starfive: Enable CCM and GCM mode for AES

Add CCM and GCM modes of operation for Starfive AES driver.

Signed-off-by: jiajie.ho <jiajie.ho@starfivetech.com>
23 months agoMerge branch 'CR_1337_GPU_shanlong.li' into 'jh7110-5.15.y-devel'
andy.hu [Fri, 1 Jul 2022 12:18:53 +0000 (12:18 +0000)]
Merge branch 'CR_1337_GPU_shanlong.li' into 'jh7110-5.15.y-devel'

Cr 1337 gpu shanlong.li

See merge request sdk/linux!233

23 months agodriver:GPU: use pm runtime interface
shanlong.li [Fri, 1 Jul 2022 11:57:19 +0000 (04:57 -0700)]
driver:GPU: use pm runtime interface

use pm runtime interface

Signed-off-by: shanlong.li <shanlong.li@starfivetech.com>
23 months agodts:GPU: add pmu signal define for GPU
shanlong.li [Fri, 1 Jul 2022 11:55:51 +0000 (04:55 -0700)]
dts:GPU: add pmu signal define for GPU

add pmu signal define for GPU

Signed-off-by: shanlong.li <shanlong.li@starfivetech.com>