platform/kernel/linux-starfive.git
2 years agoconfigs: enable CPU_FREQ
Jianlong Huang [Sat, 29 Oct 2022 06:45:27 +0000 (14:45 +0800)]
configs: enable CPU_FREQ

enable cpu freq function

Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2 years agonet:stmmac:dwc-qos: add support for external rmii_rtx clocks
Samin Guo [Fri, 21 Oct 2022 09:28:39 +0000 (17:28 +0800)]
net:stmmac:dwc-qos: add support for external rmii_rtx clocks

JH7110A use external rmii_rtx clk for tx clk on 100M/10M mode.

Signed-off-by: Samin Guo <samin.guo@linux.starfivetech.com>
2 years agoregulator:axp15060:Remove sdio vdd regulator
Jianlong Huang [Thu, 20 Oct 2022 01:23:51 +0000 (09:23 +0800)]
regulator:axp15060:Remove sdio vdd regulator

Visionfive2 emmc is default 1.8V, there is no need to controll the voltage.
Remove sdio_vdd node and code.

Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2 years agoconfigfs: Enable SND_SOC_STARFIVE_I2S
Jianlong Huang [Tue, 18 Oct 2022 03:31:28 +0000 (11:31 +0800)]
configfs: Enable SND_SOC_STARFIVE_I2S

Support hdmi audio

Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2 years agoarch:dts:starfive:Enable i2stx_4ch0 node
Jianlong Huang [Mon, 17 Oct 2022 14:15:24 +0000 (22:15 +0800)]
arch:dts:starfive:Enable i2stx_4ch0 node

Add mclk_ext pin and enable i2stx_4ch0

Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2 years agoriscv:dts:jh7110: Modify CMA reserved space to better support 2G DRAM
Jianlong Huang [Mon, 17 Oct 2022 13:45:03 +0000 (21:45 +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 Guo <samin.guo@starfivetech.com>
Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2 years agoriscv:starfive:jh7110: change gmac0 tx delay to 0xa
Samin Guo [Mon, 17 Oct 2022 10:59:39 +0000 (18:59 +0800)]
riscv:starfive:jh7110: change gmac0 tx delay to 0xa

0xa will better match gmac0 tx in 1000M

Signed-off-by: Samin Guo <samin.guo@linux.starfivetech.com>
2 years agodts:starfive:jh7110: set gmac phy tx_inverted for JH7110B+YT8531PHY.
Samin Guo [Wed, 12 Oct 2022 05:05:44 +0000 (13:05 +0800)]
dts:starfive:jh7110: set gmac phy tx_inverted for JH7110B+YT8531PHY.

JH7110B requires tx_inverted_10/100/1000 configuration, and different parameters
may be required in 10M/100M/1000M mode.

This parameter supports JH7110B+YT8531PHY by default. Other boards can
modify the parameters of the tx_inverted_10/100/1000 to obtain support.

Signed-off-by: Samin Guo <samin.guo@linux.starfivetech.com>
2 years agodts: starfive: Add A11 dts for vf2 version 1.1 board
Jianlong Huang [Wed, 12 Oct 2022 02:00:10 +0000 (10:00 +0800)]
dts: starfive: Add A11 dts for vf2 version 1.1 board

Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2 years agodts: starfive: Enable gpio restart
Jianlong Huang [Tue, 27 Sep 2022 02:50:28 +0000 (10:50 +0800)]
dts: starfive: Enable gpio restart

Add gpio restart dts node
Enable gpio restart config

Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2 years agodts: starfive: Enable usb device node
Jianlong Huang [Sat, 24 Sep 2022 00:46:23 +0000 (08:46 +0800)]
dts: starfive: Enable usb device node

Sync jh7110 usb device node and enable
Sync jh7110 imx219 compatible name

Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2 years agoconfigs: visionfive2: Enable usb device config
Jianlong Huang [Sat, 24 Sep 2022 00:45:26 +0000 (08:45 +0800)]
configs: visionfive2: Enable usb device config

Sync jh7110 usb device config

Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2 years agoconfig: Add led config
Jianlong Huang [Mon, 19 Sep 2022 09:44:30 +0000 (17:44 +0800)]
config: Add led config

Enable led trigger heartbeat

Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2 years agodts: starfive: Add led node
Jianlong Huang [Mon, 19 Sep 2022 09:43:13 +0000 (17:43 +0800)]
dts: starfive: Add led node

Add led node on dts file

Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2 years agodts: starfive: Move wm8960 and ac108 node under i2c form dtsi file to wm8960/ac108...
Jianlong Huang [Mon, 19 Sep 2022 06:54:44 +0000 (14:54 +0800)]
dts: starfive: Move wm8960 and ac108 node under i2c form dtsi file to wm8960/ac108 file

The default dts do not contain wm8960/ac108, move to the other file.
The booting of default dts do not have wrong log about wm8960/ac108

Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2 years agodts: starfive: Replace stf to starfive
Jianlong Huang [Mon, 19 Sep 2022 00:50:08 +0000 (08:50 +0800)]
dts: starfive: Replace stf to starfive

Forget to replace stf to starfive on dtbo file

Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2 years agodts: starfive: enhance SD card io Output Drive Strength
Jianlong Huang [Thu, 15 Sep 2022 00:56:06 +0000 (08:56 +0800)]
dts: starfive: enhance SD card io Output Drive Strength

SD card gpio is generic gpio on visionfive2, the default output drive strength may be not enough, some sd card do not work.
So enhance the gpio output drive strength to max.
But on visionfive2, the sd card gpio is fixed 3.3V, there is no need to switch_voltage and not support uhs mode.

Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2 years agodts: starfive: Replace sf to starfive
Jianlong Huang [Thu, 15 Sep 2022 00:47:20 +0000 (08:47 +0800)]
dts: starfive: Replace sf to starfive

Because upstream requirement.
Replace sf to starfive.
Replace hdmi_output to rgb_output.
Replace encoder to dsi_output

Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2 years agodts: starfive: Add wm8960 and ac108 dts
Jianlong Huang [Thu, 1 Sep 2022 07:22:36 +0000 (15:22 +0800)]
dts: starfive: Add wm8960 and ac108 dts

Add wm8960 and ac108 dts base default dts

Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2 years agoconfigs: starfive: sync jh7110 config to visionfive2
Jianlong Huang [Mon, 29 Aug 2022 00:57:59 +0000 (08:57 +0800)]
configs: starfive: sync jh7110 config to visionfive2

sync jh7110 config to visionfive2 about audio config

Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2 years agoriscv: dts: Change the cpu_vdd_0p9 to cpu_vdd
mason.huo [Tue, 23 Aug 2022 03:44:09 +0000 (11:44 +0800)]
riscv: dts: Change the cpu_vdd_0p9 to cpu_vdd

Signed-off-by: mason.huo <mason.huo@starfivetech.com>
2 years agodts: starfive: Add ac108 dts config
jianlonghuang [Tue, 23 Aug 2022 01:13:07 +0000 (09:13 +0800)]
dts: starfive: Add ac108 dts config

    Add ac108 dts

Signed-off-by: jianlonghuang <jianlong.huang@starfivetech.com>
2 years agodts: starfive: update vf2 dts base on new board A1.1
Jianlong Huang [Wed, 17 Aug 2022 05:57:35 +0000 (13:57 +0800)]
dts: starfive: update vf2 dts base on new board A1.1

reserve vf2 old board A1.0 dts as jh7110-visionfive-v2-A10.dts
new board A1.1 dts as default, jh7110-visionfive-v2.dts
vf2 dts common as jh7110-visionfive-v2.dtsi

Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2 years agodts: starfive: Add ac108 dts config
Jianlong Huang [Fri, 19 Aug 2022 02:58:36 +0000 (10:58 +0800)]
dts: starfive: Add ac108 dts config

Add ac108 dts and config

Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2 years agoRevert "v4l2: imx219 use pinctrl"
Jianlong Huang [Fri, 19 Aug 2022 02:22:44 +0000 (10:22 +0800)]
Revert "v4l2: imx219 use pinctrl"
This patch just for evb

This reverts commit 8d7c702d7bc0fef9ee5882db660390801bbccaa7.

2 years agodts: starfive: sync evb dts and config
Jianlong Huang [Wed, 27 Jul 2022 10:02:18 +0000 (18:02 +0800)]
dts: starfive: sync evb dts and config

Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2 years agoriscv: configs: jh7110: Enable StarFive dwmac
yanhong.wang [Mon, 25 Jul 2022 06:45:36 +0000 (14:45 +0800)]
riscv: configs: jh7110: Enable StarFive dwmac

Enable StarFive dwmac.

Signed-off-by: yanhong.wang <yanhong.wang@starfivetech.com>
2 years agodts: starfive: modify sdio0 config
Jianlong Huang [Mon, 25 Jul 2022 05:10:52 +0000 (13:10 +0800)]
dts: starfive: modify sdio0 config

set hs400es mode to promote read and write speed

Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2 years agodts: starfive: Modified PCIe pin setting for bring up PCIe USB hub.
Kevin.xie [Fri, 22 Jul 2022 02:51:00 +0000 (10:51 +0800)]
dts: starfive: Modified PCIe pin setting for bring up PCIe USB hub.

Based on VisionFive V2 SCH.

Signed-off-by: Kevin.xie <kevin.xie@starfivetech.com>
2 years agodts: starfive: Add overlay dts
Jianlong Huang [Thu, 14 Jul 2022 09:39:19 +0000 (17:39 +0800)]
dts: starfive: Add overlay dts

Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2 years agoriscv: configs: Fix the pmic config from jh7110 to visionfive2
Kevin.xie [Thu, 14 Jul 2022 07:31:59 +0000 (15:31 +0800)]
riscv: configs: Fix the pmic config from jh7110 to visionfive2

Signed-off-by: Kevin.xie <kevin.xie@starfivetech.com>
2 years agoriscv:linux:drm:mipidsi
shengyang.chen [Thu, 14 Jul 2022 03:47:22 +0000 (11:47 +0800)]
riscv:linux:drm:mipidsi

update dphy reg config for visionfive2 board

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

2 years agov4l2: add imx219 support
changhuang.liang [Wed, 13 Jul 2022 07:50:24 +0000 (15:50 +0800)]
v4l2: add imx219 support

dts: add imx219 configure

Signed-off-by: changhuang.liang <changhuang.liang@starfivetech.com>
2 years agoriscv:dts:starfive-visionfive2: Add ethernet-phy node to set delay_chain
Jianlong Huang [Tue, 12 Jul 2022 05:57:38 +0000 (13:57 +0800)]
riscv:dts:starfive-visionfive2: Add ethernet-phy node to set delay_chain

Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2 years agoarch: riscv: Add dts & defconfig for axp15060 pmic driver
Kevin.xie [Tue, 12 Jul 2022 03:10:52 +0000 (11:10 +0800)]
arch: riscv: Add dts & defconfig for axp15060 pmic driver

Signed-off-by: Kevin.xie <kevin.xie@starfivetech.com>
2 years agodts: starfive: Add pwmdac and wm8960 config
Jianlong Huang [Tue, 12 Jul 2022 00:21:51 +0000 (08:21 +0800)]
dts: starfive: Add pwmdac and wm8960 config
configs : starfive: sync JH7110_515_SDK_v1.0.0-rc2 config

Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2 years agoconfigs: starfive: Add at24 config and device
Jianlong Huang [Fri, 1 Jul 2022 10:35:58 +0000 (18:35 +0800)]
configs: starfive: Add at24 config and device

Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2 years agodts: starfive: Support visionfive2
Jianlong Huang [Thu, 30 Jun 2022 10:40:19 +0000 (18:40 +0800)]
dts: starfive: Support visionfive2

Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2 years agonet: phy: motorcomm: Support the YT8531 gigabit PHY
Jianlong Huang [Tue, 7 Jun 2022 01:12:51 +0000 (09:12 +0800)]
net: phy: motorcomm: Support the YT8531 gigabit PHY

Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2 years agoMerge branch 'CR_2517_sec_jiajie.ho' into 'jh7110-5.15.y-devel'
andy.hu [Wed, 2 Nov 2022 09:52:16 +0000 (09:52 +0000)]
Merge branch 'CR_2517_sec_jiajie.ho' into 'jh7110-5.15.y-devel'

CR_2517_515:crypto:starfive: Fix "Unbalanced pm_runtime_enable!" warning

See merge request sdk/linux!583

2 years agoMerge branch 'CR_2522_ECO_EVB_515_samin.guo' into 'jh7110-5.15.y-devel'
andy.hu [Wed, 2 Nov 2022 09:45:57 +0000 (09:45 +0000)]
Merge branch 'CR_2522_ECO_EVB_515_samin.guo' into 'jh7110-5.15.y-devel'

CR_2522:support gmac with jh7110B-evb

See merge request sdk/linux!585

2 years agoMerge branch 'CR_2395_I2C_hal.feng' into 'jh7110-5.15.y-devel'
andy.hu [Wed, 2 Nov 2022 09:40:20 +0000 (09:40 +0000)]
Merge branch 'CR_2395_I2C_hal.feng' into 'jh7110-5.15.y-devel'

CR_2395_I2C_hal.feng

See merge request sdk/linux!581

2 years agoMerge branch 'CR_2498_spi_without_dma_devel_5.15_ziv.xu' into 'jh7110-5.15.y-devel'
andy.hu [Wed, 2 Nov 2022 09:37:53 +0000 (09:37 +0000)]
Merge branch 'CR_2498_spi_without_dma_devel_5.15_ziv.xu' into 'jh7110-5.15.y-devel'

CR 2498 spi without dma devel 5.15 ziv.xu

See merge request sdk/linux!582

2 years agodts:satrfive:jh7110: default support jh7110A gmac0
Samin Guo [Tue, 1 Nov 2022 12:09:36 +0000 (20:09 +0800)]
dts:satrfive:jh7110: default support jh7110A gmac0

default support jh7110A gmac0

Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
2 years agonet:phy:motorcomm: support yt8521 inverted
Samin Guo [Tue, 1 Nov 2022 12:04:52 +0000 (20:04 +0800)]
net:phy:motorcomm: support yt8521 inverted

jh7110B need yt8521 inverted.

Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
2 years agonet:phy:motorcomm: support modifying RGMII_TX_CLK delay train from dts
Samin Guo [Tue, 1 Nov 2022 11:03:46 +0000 (19:03 +0800)]
net:phy:motorcomm: support modifying RGMII_TX_CLK delay train from dts

support use original or inverted RGMII_TX_CLK delay train.
10M/100M/1000M can be configured independently.

tx_inverted_xx = val;

for example:
&gmac0 {
    #address-cells = <1>;
    #size-cells = <0>;
    phy0: ethernet-phy@0 {
    tx_inverted_10 = <0>;
    tx_inverted_100 = <1>;
    tx_inverted_1000 = <1>;
    };
};

0: original (default)
1: inverted

Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
2 years agoCR_2517:crypto:starfive: Fix "Unbalanced pm_runtime_enable!" warning
Jia Jie Ho [Tue, 1 Nov 2022 06:40:42 +0000 (14:40 +0800)]
CR_2517:crypto:starfive: Fix "Unbalanced pm_runtime_enable!" warning

Crypto driver will probe multiple times waiting for
DMA to be ready, each time calling pm_runtime_enable().
Only call pm_runtime_enable() when it's not already enabled.

Signed-off-by: Jia Jie Ho <jiajie.ho@starfivetech.com>
2 years agospi-pl022-starfive.c: make spi work without dma
ziv.xu [Tue, 1 Nov 2022 06:12:21 +0000 (14:12 +0800)]
spi-pl022-starfive.c: make spi work without dma

make spi work without dma

Signed-off-by: ziv.xu <ziv.xu@starfive.com>
2 years agoclk: starfive: Keep the clock apb0 enabled always
Hal Feng [Mon, 31 Oct 2022 05:52:18 +0000 (13:52 +0800)]
clk: starfive: Keep the clock apb0 enabled always

This solves crush problem of i2c runtime pm and
prevents some aon modules from working abnormally.

Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2 years agoRevert "i2c: designware: Descend startup priority"
Hal Feng [Mon, 31 Oct 2022 05:46:12 +0000 (13:46 +0800)]
Revert "i2c: designware: Descend startup priority"

This reverts commit ef0fec210073c298598ab9a27e362e002dc0bf0b.
Then we keep the clock apb0 enabled always to fix crush
problem of i2c runtime pm.

Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2 years agoMerge branch 'CR_2412_515_Clocktree_PLL1_Xingyu.Wu' into 'jh7110-5.15.y-devel'
andy.hu [Fri, 28 Oct 2022 03:39:02 +0000 (03:39 +0000)]
Merge branch 'CR_2412_515_Clocktree_PLL1_Xingyu.Wu' into 'jh7110-5.15.y-devel'

CR_2412_515_Clocktree_PLL1_Xingyu.Wu

See merge request sdk/linux!553

2 years agoMerge branch 'CR_2440_515_Clocktree_1.5G_Xingyu.Wu' into 'jh7110-5.15.y-devel'
andy.hu [Fri, 28 Oct 2022 03:38:26 +0000 (03:38 +0000)]
Merge branch 'CR_2440_515_Clocktree_1.5G_Xingyu.Wu' into 'jh7110-5.15.y-devel'

CR_2440_515_Clocktree_1.5G_Xingyu.Wu

See merge request sdk/linux!564

2 years agoMerge branch 'CR_2439_CPUFREQ_515_mason.huo' into 'jh7110-5.15.y-devel'
andy.hu [Fri, 28 Oct 2022 03:36:22 +0000 (03:36 +0000)]
Merge branch 'CR_2439_CPUFREQ_515_mason.huo' into 'jh7110-5.15.y-devel'

Cr 2439 cpufreq 515 mason.huo

See merge request sdk/linux!562

2 years agoMerge branch 'CR_2417_CPUIdle_515_mason.huo' into 'jh7110-5.15.y-devel'
andy.hu [Fri, 28 Oct 2022 03:35:46 +0000 (03:35 +0000)]
Merge branch 'CR_2417_CPUIdle_515_mason.huo' into 'jh7110-5.15.y-devel'

Cr 2417 cpu idle 515 mason.huo

See merge request sdk/linux!559

2 years agoMerge branch 'CR_2462_DEV_PM_mason.huo' into 'jh7110-5.15.y-devel'
andy.hu [Fri, 28 Oct 2022 03:27:46 +0000 (03:27 +0000)]
Merge branch 'CR_2462_DEV_PM_mason.huo' into 'jh7110-5.15.y-devel'

CR_2462 Port runtime PM from hibernation to devel

See merge request sdk/linux!574

2 years agoregulator: axp15060: Change the cpu_vdd_0p9 to cpu_vdd
mason.huo [Fri, 29 Jul 2022 07:17:55 +0000 (15:17 +0800)]
regulator: axp15060: Change the cpu_vdd_0p9 to cpu_vdd

Rename the cpu_vdd_0p9 regulator to cpu_vdd,
since the regulator may changed per cpu frequency.

Signed-off-by: mason.huo <mason.huo@starfivetech.com>
2 years agodriver: regulator: Add axp15060 pmic regulator driver
Kevin.xie [Tue, 12 Jul 2022 01:57:05 +0000 (09:57 +0800)]
driver: regulator: Add axp15060 pmic regulator driver

Add support for the axp15060 pmic.

Signed-off-by: Kevin.xie <kevin.xie@starfivetech.com>
2 years agocpufreq: starfive: Remove unuse clocks
mason.huo [Wed, 26 Oct 2022 03:47:45 +0000 (11:47 +0800)]
cpufreq: starfive: Remove unuse clocks

The jh7110 pll0 is fixed for cpufreq,
so we should change the cpu_core clock directly.
Remove the pll0 & osc clock.

Signed-off-by: mason.huo <mason.huo@starfivetech.com>
2 years agoriscv: defconfigs: Enable cpufreq for jh7110
mason.huo [Wed, 26 Oct 2022 03:43:20 +0000 (11:43 +0800)]
riscv: defconfigs: Enable cpufreq for jh7110

Set the default cpufreq govenor to ondemand.

Signed-off-by: mason.huo <mason.huo@starfivetech.com>
2 years agoriscv: dts: starfive: Remove unsupported cpu frequencies
mason.huo [Mon, 24 Oct 2022 08:51:24 +0000 (16:51 +0800)]
riscv: dts: starfive: Remove unsupported cpu frequencies

As the pll0 is fixed, there are only four cpu frequencies
that can be divided from the pll0, so remove the other
cpu frequencies.

Signed-off-by: mason.huo <mason.huo@starfivetech.com>
2 years agosound:dwc:i2s:Add hibernation about i2srx-3ch
Xingyu Wu [Thu, 27 Oct 2022 09:39:22 +0000 (17:39 +0800)]
sound:dwc:i2s:Add hibernation about i2srx-3ch

Add runtime pm and system pm in i2srx-3ch driver.

Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2 years agosound:dwc:i2s:Add hibernation about i2stx-4ch1
Xingyu Wu [Thu, 27 Oct 2022 08:06:02 +0000 (16:06 +0800)]
sound:dwc:i2s:Add hibernation about i2stx-4ch1

Add runtime pm and system pm in i2stx-4ch1 driver.

Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2 years agoriscv: deconfig: Enable pm advanced debug
mason.huo [Thu, 27 Oct 2022 07:25:21 +0000 (15:25 +0800)]
riscv: deconfig: Enable pm advanced debug

Enable pm advanced debug, so that we can
check runtime PM status.

Signed-off-by: mason.huo <mason.huo@starfivetech.com>
2 years agosound:starfive:pwmdac:Add runtime pm operation
Xingyu Wu [Fri, 21 Oct 2022 01:56:24 +0000 (09:56 +0800)]
sound:starfive:pwmdac:Add runtime pm operation

Add runtime pm operation in PWMDAC driver.

Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2 years agortc:starfive: add pm ops for rtc
ziv.xu [Thu, 27 Oct 2022 02:55:00 +0000 (10:55 +0800)]
rtc:starfive: add pm ops for rtc

add pm ops for rtc

Signed-off-by: ziv.xu <ziv.xu@starfive.com>
2 years agoi2c: designware: Descend startup priority
Hal Feng [Wed, 26 Oct 2022 13:13:09 +0000 (21:13 +0800)]
i2c: designware: Descend startup priority

So i2c will be initialized after uart.

Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2 years agoi2c: designware: Uncomment and recover the pm functions
Hal Feng [Tue, 25 Oct 2022 12:18:39 +0000 (20:18 +0800)]
i2c: designware: Uncomment and recover the pm functions

Uncomment the system pm and runtime pm ops functions. Restore
the Synopsys DesignWare i2c driver to the original version.

Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2 years agoCR_2345_Audio_DevicePM_walker.chen
Walker Chen [Thu, 27 Oct 2022 03:50:06 +0000 (11:50 +0800)]
CR_2345_Audio_DevicePM_walker.chen

Fix the bug that pdm function name spell error.

Signed-off-by: Walker Chen <walker.chen@starfivetech.com>
2 years agoCR_2345_Audio_DevicePM_walker.chen
Walker Chen [Wed, 26 Oct 2022 11:19:12 +0000 (19:19 +0800)]
CR_2345_Audio_DevicePM_walker.chen

Disable clock when audio driver is loaded.

Signed-off-by: Walker Chen <walker.chen@starfivetech.com>
2 years agodriver:gpu: add gpu runtime pm
shanlong.li [Wed, 26 Oct 2022 09:44:58 +0000 (02:44 -0700)]
driver:gpu: add gpu runtime pm

fix up system pm error and add runtime pm

Signed-off-by: shanlong.li <shanlong.li@starfivetech.com>
2 years agosound:starfive:Add hibernation in I2S
Xingyu Wu [Wed, 26 Oct 2022 09:38:41 +0000 (17:38 +0800)]
sound:starfive:Add hibernation in I2S

Add hibernation in starfive I2S driver.

Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2 years agortc-starfive.c:add system pm for rtc
ziv.xu [Wed, 26 Oct 2022 06:14:04 +0000 (14:14 +0800)]
rtc-starfive.c:add system pm for rtc

add system pm for rtc

Signed-off-by: ziv.xu <ziv.xu@starfive.com>
2 years agodrive:mailbox:add pm ops
ys [Wed, 26 Oct 2022 06:18:49 +0000 (23:18 -0700)]
drive:mailbox:add pm ops

add runtime pm and system pm ops

Signed-off-by: ys <eason.xiong@starfivetech.com>
2 years agosec:starfive:add sec runtime PM ops
William Qiu [Tue, 25 Oct 2022 07:00:23 +0000 (15:00 +0800)]
sec:starfive:add sec runtime PM ops

add sec runtime PM ops.

Signed-off-by: William Qiu <william.qiu@starfivetech.com>
2 years agoSDIO:starfive:modify SDIO/EMMC runtime PM callback function
William Qiu [Tue, 25 Oct 2022 02:39:46 +0000 (10:39 +0800)]
SDIO:starfive:modify SDIO/EMMC runtime PM callback function

modify SDIO/EMMC runtime PM callback function.

Signed-off-by: William Qiu <william.qiu@starfivetech.com>
2 years agocanfd:ipms:modify runtime PM callback funciton
William Qiu [Tue, 25 Oct 2022 02:36:38 +0000 (10:36 +0800)]
canfd:ipms:modify runtime PM callback funciton

modify runtime PM callback function.

Signed-off-by: William Qiu <william.qiu@starfivetech.com>
2 years agoclk:starfive:isp:Add runtime and system pm control
Xingyu Wu [Fri, 30 Sep 2022 07:26:59 +0000 (15:26 +0800)]
clk:starfive:isp:Add runtime and system pm control

Add runtime and system pm in isp clock tree driver.

Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2 years agopwm: starfive: Remove macro UNIVERSAL_DEV_PM_OPS
Hal Feng [Fri, 21 Oct 2022 06:38:17 +0000 (14:38 +0800)]
pwm: starfive: Remove macro UNIVERSAL_DEV_PM_OPS

Because it causes error when system pm.

Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2 years agodrivers: temp sensor: reset execute permissions
ziv.xu [Fri, 21 Oct 2022 06:36:51 +0000 (14:36 +0800)]
drivers: temp sensor: reset execute permissions

reset execute permissions for FILE: drivers/hwmon/sfctemp.c

Signed-off-by: ziv.xu <ziv.xu@starfive.com>
2 years agoadd devcie pm for temp sensor
ziv.xu [Fri, 21 Oct 2022 03:43:22 +0000 (11:43 +0800)]
add devcie pm for temp sensor

add device pm for temp sensor

Signed-off-by: ziv.xu <ziv.xu@starfive.com>
2 years agoadd device pm for trng
Ziv.Xu [Sat, 8 Oct 2022 07:17:46 +0000 (15:17 +0800)]
add device pm for trng

add device pm for trng

Signed-off-by: Ziv.Xu <Ziv.Xu@starfivetech.com>
2 years agoadd device pm for spi
Ziv.Xu [Mon, 10 Oct 2022 06:58:15 +0000 (14:58 +0800)]
add device pm for spi

add device pm for spi

Signed-off-by: Ziv.Xu <Ziv.Xu@starfivetech.com>
2 years 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>
2 years 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>
2 years 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>
2 years 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>
2 years 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>
2 years 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>
2 years 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>
2 years 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>
2 years 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>
2 years 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>
2 years 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>
2 years 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>
2 years 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>
2 years 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>
2 years 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>
2 years 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>
2 years 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>
2 years 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>