Commit Graph

1080200 Commits

Author SHA1 Message Date
Luo Wei
601c236ec0 arm64: dts: rockchip: rk3588-vehicle: fix gmac pinctrl-name error
Signed-off-by: Luo Wei <lw@rock-chips.com>
Change-Id: I542bd51d414da77811a6c94d3739e29499c7215b
2023-07-06 10:36:23 +08:00
Jon Lin
f893305c91 mtd: spinand: dosilicon: Modify redundant ECC status bits
Change-Id: I80d37af0ecec18744bf6b3e1a8ef5b101330cce5
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-07-06 10:34:09 +08:00
Jon Lin
18390c37e3 phy: rockchip: naneng-combphy: Fix swing from 250mV to 650mV for rk3562 pcie
Fixes: 13639746fa ("phy: rockchip: naneng-combphy: Fix swing to 650mv under 100M refclk for rk3562")

Change-Id: If9bf594ec4183d4be62dd1f9edb24ecd30915f78
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-07-06 09:36:31 +08:00
Jon Lin
e52c72d489 PCI: rockchip: dw_ep: Fix wrong return value check
Fixes: c3f038c2dc ("PCI: rockchip: dw_ep: Delaying the link training after hot reset")
Change-Id: I9e14995caecce709d93d33b9e2b568a5eae91273
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-07-05 19:08:57 +08:00
Sandy Huang
971385101b Revert "arm64: dts: rockchip: Assign VOP_ACLK to 750MHZ for rk3588-linux.dtsi"
Assign VOP_ACLK to 750MHZ at rk3588s.dtsi, so reverts this commit 7836b77050.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I1dd48012246eb4d52d748bf489128fcf2885c30f
2023-07-05 18:00:08 +08:00
Sandy Huang
d20de9394c arm64: dts: rockchip: rk3588: assigned VOP_ACLK to 750MHZ
Assigned RK3588 VOP_ACLK as 750MHZ by default to support 8k output and improve
VOP performance.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Ia4c75a9f04c655e4b26867bc87023812cdc7f82f
2023-07-05 18:00:08 +08:00
Sugar Zhang
2c39e5b72a arm64: configs: rockchip_defconfig: Enable TDM_MULTI_LANES
The I2S-TDM on Rockchip SoCs only support one data lane for tx and one
data lane for rx, but the codec devices may requires a normal tdm work
with more than one data lane.

Enable the TDM_MULTI_LANES to allow driver works under a higher sample
rate and with more data lanes.

More detail, see the driver patch comment.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Idbeeb00d4903e49fb3c0c3dfbb16b55125fe2da7
2023-07-05 15:44:27 +08:00
Jon Lin
e61f29a758 mtd: spinand: jsc: Fix the error method for judging flash ECC
The former method makes ECC effective value decreased from 4 to 1.

Change-Id: I069e62432bb339356070f5228fc7d65daca7b696
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-07-05 15:38:13 +08:00
Jon Lin
b66c344c7b mtd: spinand: unim: Fix the error method for judging flash ECC
The former method makes ECC effective value decreased from 4 to 1.

Change-Id: Ie5f37e291166661def40db015eac63c003719785
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-07-05 15:38:13 +08:00
Sugar Zhang
cb1aa9dde3 arm64: dts: rockchip: rk3588: Add pinctrl-idle/clk for PDM
pinctrl-default/idle/clk must be paired in the same iomux group.

DON'T USE pdm1m0-default with pdm1m1-idle

Ref: commit: 0d9748600792 ("ASoC: rockchip: pdm: Fix clk glitch on runtime PM")

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Iea86fc5a16eaec8b39c31708228732b49ccda5d7
2023-07-05 11:03:43 +08:00
Sugar Zhang
91a11122a7 ASoC: rockchip: pdm: Fix unbalanced clk reference
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Ib43aea6590349cddc5b9d8104e723de9e8697f86
2023-07-05 11:01:58 +08:00
Sugar Zhang
1f8e86a5ea ASoC: rockchip: pdm: Fix clk glitch on runtime PM
For controller which is managed by PD (power-domain),
when PD off, the controller is reset to the default
status, and the FRAC-DIV is a fixed value(1/20).

Once the mclk is enabled, there are some high freq cycle
leak, to fix this issue, we use the pinctrl-idle to
block these cycles until the config has been come back
to the normal state.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I4e34129277cffa7bc443b6addfb1e26b70bf546e
2023-07-05 11:01:42 +08:00
Elon Zhang
7d639c6705 ARM: configs: rv1106-tee.config: enable CONFIG_TEE and CONFIG_OPTEE
Signed-off-by: Elon Zhang <zhangzj@rock-chips.com>
Change-Id: I90d1ecc306cb0a15d34e837067ec7454193fe111
2023-07-05 10:49:37 +08:00
Zhihuan He
ac35846c24 arm64: dts: rockchip: px30s: reduce LP4 overshoot when ODT off
Signed-off-by: Zhihuan He <huan.he@rock-chips.com>
Change-Id: Ibf4ea2c6be203635fd5d4de37ebdd5c9c8aaf352
2023-07-05 09:57:23 +08:00
Finley Xiao
3b62835044 PM / devfreq: rockchip_dmc: Change frequency according to 4k plane
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Ida56cdd3a9e15c00a711f8c4435e6ba67a1ceea6
2023-07-05 09:56:33 +08:00
Sandy Huang
57d8c58672 drm/rockchip: vop2: add 4k plane num for dmc
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I2b60f6dace8b7a9916a6f6424b47cfdcd26782f1
2023-07-05 09:42:36 +08:00
Jiajian Wu
d05a760d48 ASoC: rockchip: i2s: Add support for IEC958
Refer to commit 4142064c7f ("ASoC: rockchip: i2s: Add support for IEC958").

Change-Id: I6d4b7bbb4bc30d268f68a1ec4da8cd76c1c1eb87
Signed-off-by: Jiajian Wu <jair.wu@rock-chips.com>
2023-07-05 09:35:15 +08:00
Jon Lin
e78bfc975c spi: Add rockchip spi slave object
Define a protocol specification for SPI slave transmission,
with the following main requirements:
1.ctrl packet with 2B cmd, 2B addr(offset in APP_RAM), 4B data
(usually is the following data packet length);
2.data packet with data;
3.support ctrl packet only for configuration;
4.support ctrl packet witch data packet for IO transmission.
5.spidev_rkslv support SPI_OBJ_APP_RAM_SIZE application buffer

Start the test in master device, like following:
	echo read 64 1000 > /dev/spidev_rkmst_misc

Show the application buffer in slave device, like following:
	echo appmem 0 256 > ./dev/spidev_rkslv_misc

Change-Id: I531e812be56826729345f6718019662fc6f414ae
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-07-05 09:31:23 +08:00
Tao Huang
3055a89c51 iommu/rockchip: use IS_REACHABLE instead of IS_ENABLED
Fix build error with CONFIG_ROCKCHIP_IOMMU=m

ld.lld: error: undefined symbol: rockchip_iommu_disable
>>> referenced by mpp_iommu.c:570 (drivers/video/rockchip/mpp/mpp_iommu.c:570)
>>>               video/rockchip/mpp/mpp_iommu.o:(mpp_iommu_refresh) in archive drivers/built-in.a

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: If64029f606eb2dfc1f5c09a585341456d4ed9bf0
2023-07-04 20:11:18 +08:00
Sugar Zhang
2fcc1fece7 ASoC: rockchip: i2s-tdm: Add support for TDM_MULTI_LANES
Example: RK3588

Use I2S2_2CH as Clk-Gen to serve TDM_MULTI_LANES

I2S2_2CH ----> BCLK,I2S_LRCK --------> I2S0_8CH_TX (Slave TRCM-TXONLY)
    |
    |--------> BCLK,TDM_SYNC --------> TDM Device (Slave)

Note:

I2S2_2CH_MCLK: BCLK
I2S2_2CH_SCLK: I2S_LRCK (GPIO2_B7)
I2S2_2CH_LRCK: TDM_SYNC (GPIO2_C0)

DT:

&i2s0_8ch {
       status = "okay";
       assigned-clocks = <&cru I2S0_8CH_MCLKOUT>;
       assigned-clock-parents = <&cru MCLK_I2S0_8CH_TX>;
       i2s-lrck-gpio = <&gpio1 RK_PC5 GPIO_ACTIVE_HIGH>;
       tdm-fsync-gpio = <&gpio1 RK_PC2 GPIO_ACTIVE_HIGH>;
       rockchip,tdm-multi-lanes;
       rockchip,tdm-tx-lanes = <2>; //e.g. TDM16 x 2
       rockchip,tdm-rx-lanes = <2>; //e.g. TDM16 x 2
       rockchip,clk-src = <&i2s2_2ch>;
       pinctrl-names = "default";
       pinctrl-0 = <&i2s0_lrck
                    &i2s0_sclk
                    &i2s0_sdi0
                    &i2s0_sdi1
                    &i2s0_sdo0
                    &i2s0_sdo1>;
};

&i2s2_2ch {
       status = "okay";
       assigned-clocks = <&cru I2S2_2CH_MCLKOUT>;
       assigned-clock-parents = <&cru MCLK_I2S2_2CH>;
       pinctrl-names = "default";
       pinctrl-0 = <&i2s2m0_mclk
                    &i2s2m0_lrck
                    &i2s2m0_sclk>;
};

Usage: TDM16 x 2 Playback

amixer contents

numid=3,iface=MIXER,name='Receive SDIx Select'
  ; type=ENUMERATED,access=rw------,values=1,items=5
  ; Item #0 'Auto'
  ; Item #1 'SDIx1'
  ; Item #2 'SDIx2'
  ; Item #3 'SDIx3'
  ; Item #4 'SDIx4'
  : values=0
numid=2,iface=MIXER,name='Transmit SDOx Select'
  ; type=ENUMERATED,access=rw------,values=1,items=5
  ; Item #0 'Auto'
  ; Item #1 'SDOx1'
  ; Item #2 'SDOx2'
  ; Item #3 'SDOx3'
  ; Item #4 'SDOx4'
  : values=0

/# amixer sset "Transmit SDOx Select" "SDOx2"
Simple mixer control 'Transmit SDOx Select',0
  Capabilities: enum
  Items: 'Auto' 'SDOx1' 'SDOx2' 'SDOx3' 'SDOx4'
  Item0: 'SDOx2'

/# aplay -D hw:0,0 --period-size=1024 --buffer-size=4096 -r 48000 \
   -c 32 -f s32_le /dev/zero

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I6996e05c73a9d68bbeb9562eb6e68e4c99b52d85
2023-07-04 14:24:23 +08:00
Sugar Zhang
109b42513e arm64: dts: rockchip: rk3588: Fix pinctrl warning log
because I2S_SDO2/3 is mux with I2S_SDI3/2.

pinctrl: not freeing pin 58 (gpio1-26) as part of deactivating group i2s0-sdi2
pinctrl: not freeing pin 57 (gpio1-25) as part of deactivating group i2s0-sdi3

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Iba7549712841f21866d4c388a32c5626bfb6af11
2023-07-04 14:18:18 +08:00
Sugar Zhang
89e11e98f4 arm64: dts: rockchip: rk3588: Add pinctrl idle for I2S0/2/3
pinctrl-default/idle/clk must be paired in the same iomux group.

DON'T USE i2s2m0-default with i2s2m1-idle

Ref: commit: b935bf8cc83f ("ASoC: rockchip: i2s-tdm: Add support for pinctrl idle state")

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I0bf6f1cfb74d7f398050961913439031fa90245f
2023-07-04 14:18:18 +08:00
Sugar Zhang
0b947f4a87 ASoC: rockchip: i2s-tdm: Optimize TRCM-resume for QUIRKS_ALWAYS_ON
On the QUIRKS_ALWAYS_ON path, we bring up the clk path on probe
to achieve the clk always on function.

for this situation, the refcount always true, so, we should save
the stream dma state on pause and then do restore on resume.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I8e45b78a475a468880ef2fb0b358dbdd1169ff08
2023-07-04 14:14:51 +08:00
Sugar Zhang
e58d8720f6 ASoC: rockchip: i2s-tdm: Fix register write failed on QUIRKS_ALWAYS_ON
CLK_ALWAYS_ON should be placed after all registers write done,
because this situation will enable XFER bit which will make
some registers(depend on XFER) write failed.

Fixes: 3644caf8de ("ASoC: rockchip: i2s-tdm: Add support for clk always-on")

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Iffcfed18d3805ee575df4e8cf267d4ef6a3fa866
2023-07-04 14:14:51 +08:00
Sugar Zhang
32477f80d3 ASoC: rockchip: i2s-tdm: Add support for pinctrl idle state
This patch switch pinctrl to idle state when runtime suspend.

At the moment, it's used for workaround for I2S0/2/3 (PD_AUDIO)
slave IO issue on RK3588 SoCs.

The issue acts like that when PD_AUDIO off, the BCLK/LRCK pin
will pull down the external clk to half-level.

The root cause is that when PD_AUDIO off, the BCLK/LRCK pin
are clamped as drive output low.

OTOH, the ASoC framework set pinctrl state first and then do
runtime PM resume (enable PD). it's reasonable, but for the
current issue, a few half-level cycles leak after resume, so,
we split pinctrl-clk out to control it separately.

  snd_pcm_open

      for_each_rtd_components(rtd, i, component)
      	pinctrl_pm_select_default_state(component->dev);

      ret = snd_soc_pcm_component_pm_runtime_get(rtd, substream);

e.g. pinctrl idle for i2s0

i2s0_gpio: i2s0-gpio {
	rockchip,pins =
		/* i2s0_lrck_gpio */
		<1 RK_PC5 0 &pcfg_pull_none>,
		/* i2s0_sclk_gpio */
		<1 RK_PC3 0 &pcfg_pull_none>;
};

&i2s0_8ch {
	pinctrl-names = "default", "idle", "clk";
	pinctrl-1 = <&i2s0_gpio>;
	pinctrl-2 = <&i2s0_lrck
		     &i2s0_sclk>;
};

cat /sys/kernel/debug/pinctrl/pinctrl-handles

device: fe470000.i2s current state: idle
  state: default
    type: MUX_GROUP controller rockchip-pinctrl group: i2s0-sdi0 (26) function: i2s0 (24)
    type: CONFIGS_PIN controller rockchip-pinctrl pin gpio1-28 (60)config 00000001
    type: MUX_GROUP controller rockchip-pinctrl group: i2s0-sdi1 (27) function: i2s0 (24)
    type: CONFIGS_PIN controller rockchip-pinctrl pin gpio1-27 (59)config 00000001
    type: MUX_GROUP controller rockchip-pinctrl group: i2s0-sdi2 (28) function: i2s0 (24)
    type: CONFIGS_PIN controller rockchip-pinctrl pin gpio1-26 (58)config 00000001
    type: MUX_GROUP controller rockchip-pinctrl group: i2s0-sdi3 (29) function: i2s0 (24)
    type: CONFIGS_PIN controller rockchip-pinctrl pin gpio1-25 (57)config 00000001
    type: MUX_GROUP controller rockchip-pinctrl group: i2s0-sdo0 (30) function: i2s0 (24)
    type: CONFIGS_PIN controller rockchip-pinctrl pin gpio1-23 (55)config 00000001
    type: MUX_GROUP controller rockchip-pinctrl group: i2s0-sdo1 (31) function: i2s0 (24)
    type: CONFIGS_PIN controller rockchip-pinctrl pin gpio1-24 (56)config 00000001
  state: idle
    type: MUX_GROUP controller rockchip-pinctrl group: i2s0-idle (23) function: i2s0 (24)
    type: CONFIGS_PIN controller rockchip-pinctrl pin gpio1-21 (53)config 00000001
    type: CONFIGS_PIN controller rockchip-pinctrl pin gpio1-19 (51)config 00000001
  state: clk
    type: MUX_GROUP controller rockchip-pinctrl group: i2s0-lrck (24) function: i2s0 (24)
    type: CONFIGS_PIN controller rockchip-pinctrl pin gpio1-21 (53)config 00000001
    type: MUX_GROUP controller rockchip-pinctrl group: i2s0-sclk (25) function: i2s0 (24)
    type: CONFIGS_PIN controller rockchip-pinctrl pin gpio1-19 (51)config 00000001

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Ibda030dad44830f9f4eeb6448c14d4053a096fc6
2023-07-04 14:14:51 +08:00
Cai YiWei
e80b7a38e1 media: rockchip: isp: fix ldch for multiple read back
Change-Id: I26355da1c3fec7050baa5b5462297669b504ab26
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2023-07-04 11:13:31 +08:00
Lin Qihao
616e829127 arm64: dts: rockchip: Add rk3528 board for linux.
1.rk3528-evb1-ddr4-v10-spi-nand-linux.dts
2.rk3528-demo4-ddr4-v10-linux.dts

Change-Id: I14edfaadcba53e1bae1a9333e21f70338befb5f1
Signed-off-by: Lin Qihao <kevin.lin@rock-chips.com>
2023-07-03 16:59:20 +08:00
Sugar Zhang
e007c5be2f arm64: dts: rockchip: rk3588: Add mclkout for I2S1-M1
I2S1 has two iomux group, M0 is located in BUS_IOC,
and M1 is located in PMU_IOC. they are controlled by
different IOE bit.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Ib6b302e8b03aa7d64bdd11862c413c736eaf4636
2023-07-03 16:54:40 +08:00
Cai YiWei
8c236335ed media: rockchip: isp: fix uyvy format for unite mode
Change-Id: Id497079cc30fddcb06e19ac267de92d5c48b68dc
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2023-07-03 16:28:06 +08:00
Sugar Zhang
5c003b6983 ASoC: rockchip: i2s-tdm: Reduce FIFO XRUN warning prompt
Warning once each time FIFO XRUN occurs, and then disable
it, until the next time the stream resume.

Before:
  rockchip_i2s_tdm_isr: 234 callbacks suppressed
  rockchip-i2s-tdm fe480000.i2s: TX FIFO Underrun
  rockchip-i2s-tdm fe480000.i2s: TX FIFO Underrun
  rockchip-i2s-tdm fe480000.i2s: TX FIFO Underrun
  rockchip-i2s-tdm fe480000.i2s: TX FIFO Underrun
  rockchip-i2s-tdm fe480000.i2s: TX FIFO Underrun
  rockchip-i2s-tdm fe480000.i2s: TX FIFO Underrun
  rockchip-i2s-tdm fe480000.i2s: TX FIFO Underrun
  rockchip-i2s-tdm fe480000.i2s: TX FIFO Underrun
  rockchip-i2s-tdm fe480000.i2s: TX FIFO Underrun
  rockchip-i2s-tdm fe480000.i2s: TX FIFO Underrun
  ...

  cat /proc/interrupts | grep i2s
  21:      514 0 0 0 0 0 0 0 GICv3 213 Level  i2s

After:

  rockchip-i2s-tdm fe480000.i2s: TX FIFO Underrun
  rockchip-i2s-tdm fe480000.i2s: TX FIFO Underrun
  rockchip-i2s-tdm fe480000.i2s: TX FIFO Underrun
  rockchip-i2s-tdm fe480000.i2s: TX FIFO Underrun

  cat /proc/interrupts | grep i2s
  21:        4 0 0 0 0 0 0 0 GICv3 213 Level  i2s

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Ibe3b07d94b31f421fd637296cb137d5ba1071fcc
2023-07-03 15:49:50 +08:00
XiaoTan Luo
87f8c92f0e arm64: dts: rockchip: rk3588-vehicle: btsco enable 16k pcm support
Enable 16k pcm support for rk3588 vehicle boards.
Fixes: e1e3340e25 ("arm64: dts: rockchip: rk3588 boards: btsco enable 16k pcm support")

Signed-off-by: XiaoTan Luo <lxt@rock-chips.com>
Change-Id: Ifeaa088a01f7dee35cd9f669e0dfb04015f4413a
2023-07-03 15:49:06 +08:00
Sugar Zhang
264abe5b9d ASoC: rockchip: pdm: Fix clear on runtime resume
register PDM_SYSCONFIG is marked as volatile, and for regcache
sync policy, it will skip the registers which marked as volatile.

so, we should do it after regcache sync.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Ic65bc28d14fefc6e6c70e1b2c26468aa0fcd142e
2023-07-03 15:47:30 +08:00
Jon Lin
0a17a29a19 arm64: dts: rockchip: rk3588-evb: Set pcie30x4_clkreqn_m1 gpio output low
The new hardware design will connect clkreq to the control pin of the
external clock, so the default output should be low level。

Change-Id: I2c99b90b7de359c8f32576d5f6eb7157c7a4a7b5
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-07-03 14:31:57 +08:00
Sugar Zhang
8012da0685 arm64: dts: rockchip: rk3562: Enable Schmitt-Trigger for pins I2Sx-CLK
This patch enable Schmitt-Trigger for pins I2S-MCLK/BCLK/LRCK for
clk noise reduction on slave mode which clk is provided by external
devices. and this can make controllers work much more robust.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I04237f1b1f56c5abbb4b61f0a2c1af89b1e32bc3
2023-07-03 14:28:14 +08:00
Sugar Zhang
c31bdd4afb arm64: dts: rockchip: rk3528: Enable Schmitt-Trigger for pins I2Sx-CLK
This patch enable Schmitt-Trigger for pins I2S-MCLK/BCLK/LRCK for
clk noise reduction on slave mode which clk is provided by external
devices. and this can make controllers work much more robust.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I619605ee9f71f912e495a2eb991746cdc67d8dd8
2023-07-03 14:28:14 +08:00
Sugar Zhang
1960cac34a arm64: dts: rockchip: rk3588: Enable Schmitt-Trigger for pins I2Sx-CLK
This patch enable Schmitt-Trigger for pins I2S-MCLK/BCLK/LRCK for
clk noise reduction on slave mode which clk is provided by external
devices. and this can make controllers work much more robust.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I8734c40041733b51107d0ed9715606111b2b94b9
2023-07-03 14:28:14 +08:00
Sugar Zhang
f2e765e3f9 arm64: dts: rockchip: rk3568: Enable Schmitt-Trigger for pins I2Sx-CLK
This patch enable Schmitt-Trigger for pins I2S-MCLK/BCLK/LRCK for
clk noise reduction on slave mode which clk is provided by external
devices. and this can make controllers work much more robust.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Iaac7ecc28e2a686e0c01ff4f3ae082d90fe3474d
2023-07-03 14:28:14 +08:00
Sugar Zhang
1a62380cdb arm64: dts: rockchip: px30: Enable Schmitt-Trigger for pins I2Sx-CLK
This patch enable Schmitt-Trigger for pins I2S-MCLK/BCLK/LRCK for
clk noise reduction on slave mode which clk is provided by external
devices. and this can make controllers work much more robust.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I757328e08969031a638e2f7b7da09bf7473f8a0b
2023-07-03 14:28:14 +08:00
Sugar Zhang
ebac5559a8 arm64: dts: rockchip: rk3308: Enable Schmitt-Trigger for pins I2Sx-CLK
This patch enable Schmitt-Trigger for pins I2S-MCLK/BCLK/LRCK for
clk noise reduction on slave mode which clk is provided by external
devices. and this can make controllers work much more robust.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I08b127b7f75f303c8da45973d068f57b9a6ebc62
2023-07-03 14:28:14 +08:00
Sugar Zhang
b66ce77e31 arm64: dts: rockchip: rk1808: Enable Schmitt-Trigger for pins I2Sx-CLK
This patch enable Schmitt-Trigger for pins I2S-MCLK/BCLK/LRCK for
clk noise reduction on slave mode which clk is provided by external
devices. and this can make controllers work much more robust.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I27ff54d8e17ef9a41cf2db91dbbfb8e81f8227ff
2023-07-03 14:28:14 +08:00
Zefa Chen
deb5581bef media: i2c: sensor driver remove limit of modify sensor fps
to solve the problem of the camera being unable to restore the default frame rate after adjust it to other frame rates

Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Iedbeca79cb17368922d41a55ef2aafeb58170e1f
2023-06-30 19:38:03 +08:00
Zhang Yubing
6bd92608df drm/rockchip: drv: get acm and csc info when boot
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Change-Id: I03dd5370a86d7a998bd8543c3eb09b1b7a8746c6
2023-06-30 16:27:48 +08:00
Zhang Yubing
49d12068b3 drm/rockchip: drv: add a parameter to pass data for crtc loader protect
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Change-Id: I463766227e8bc1acc325831941bba2c44b1e8b6b
2023-06-30 16:27:19 +08:00
Yifeng Zhao
5580a7e6f3 mmc: dw_mmc-rockchip: fix v2 tuning defect
The v2 tuning has a defect, When tuning again, it is possible to
choose the phase that was previously selected which cannot work
stable.

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: I0dcc83bb35567278e8a10f1964f4636573b165ec
2023-06-30 15:21:01 +08:00
Shiqin Chen
701fcef947 arm64: dts: rockchip: Add rk3568 toybrick board
Change-Id: I7e17479682405b2edb402a31c5c4feff4a5a7f9f
Signed-off-by: Shiqin Chen <chensq@rock-chips.com>
2023-06-30 15:20:14 +08:00
Cai Wenzhong
b35fc82165 arm64: dts: rockchip: add rk3588-vehicle-evb-maxim-max96722.dtsi.
Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: Ic9ac28c908fea6cb7e4f58a4f9f749cb97d02998
2023-06-30 11:54:16 +08:00
Kever Yang
0ead4b6531 net: rfkill: rk: Add stub for rfkill_get_wifi_power_state() when CONFIG_RFKILL_RK=n
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
Change-Id: I15897f8421e7f00b08170f428179c82b969e36fd
2023-06-30 10:56:20 +08:00
Jon Lin
527eb2b93f dt-bindings: spi: spi-rockchip: Add description for ready-gpios property
Change-Id: I944f06c01a5c719c5bfc6313a41933794e92efd8
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-06-30 09:47:49 +08:00
Jon Lin
2286209df9 spi: rockchip: Support slave ready gpio signal
When spi slave is configured and ready to sample the clk from the
spi master, sending the gpio signal to remote, and the signal is
rising edge effective.

Add gpio to spi dts node like following:
&spi1 {
	...
	ready-gpios = <&gpio1 RK_PD2 GPIO_ACTIVE_LOW>;
	...
};

Change-Id: I38c81d9058a1eb0c5397a37df99c22d273c30692
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-06-30 09:45:03 +08:00
Jon Lin
cb95040587 dt-bindings: spi: spi-rockchip: Add description for rockchip,cs-inactive-disable property
Change-Id: If71321768bac1398cbd1127fc572bc9a6d20b804
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-06-30 09:43:03 +08:00