Commit Graph

1080740 Commits

Author SHA1 Message Date
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
Jon Lin
a51736f637 spi: rockchip: Support rockchip,cs-inactive-disable property
The feature cs-inactice support ss_in_n posedege interrupt in slave
mode, but it's need to disable the feature of cs-inactive.

Change-Id: I7a983719811589ee729a4355d3d5159ec78d1257
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-06-30 00:12:37 +08:00
Cai Wenzhong
6d7c7b143a media: i2c: max96722: version 1.01.00
Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: I7f54b870205489a5fd66841b940361a067bcf1fd
2023-06-29 19:34:04 +08:00
Cai Wenzhong
b738cf9fb4 media: i2c: max96712: version 1.06.00
Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: Ib0275f7160888b1ec7d85e98a3ab5e80c189b242
2023-06-29 18:53:56 +08:00
Felix Zeng
9db57dd757 driver: rknpu: Update rknpu driver, version: 0.9.0
* Fix power reference counting error
* Fix issue with IOMMU mode limited to 32-bit
* Reduce the time consumed by dma mapping

Signed-off-by: Felix Zeng <felix.zeng@rock-chips.com>
Change-Id: I93ea77fee4904455a80dfe6303ff049f3338742b
2023-06-29 18:53:07 +08:00
Damon Ding
8e777ce52e arm64: dts: rockchip: rk3562-evb1: add rgb2hdmi display board
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: I57f2a581a040bd5680c3acfa6f83897daed05d0d
2023-06-29 18:50:42 +08:00
Finley Xiao
2f6c8669bf arm64: dts: rockchip: rk3588j: Adjust Maximum frequency
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I930b9bd951175981d55b2ec1938dcb6eed2eaf52
2023-06-29 18:49:12 +08:00
Finley Xiao
25033bf473 arm64: dts: rockchip: rk3588m: Remove unused nodes
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Ie140880538225e0905f9e4132d82274db73ba5da
2023-06-29 18:49:12 +08:00
Finley Xiao
7efaf6559d arm64: dts: rockchip: rk3588s: Add opps for rk3588j/m
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I261edc1f7af8159840f3caf2046e8f9962f81974
2023-06-29 18:49:12 +08:00
Finley Xiao
2fe4992cb6 soc: rockchip: opp_select: Add support to parse 'rockchip,pvtm-voltage-sel-hw'
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I9d8ad8057f5fff32d5cd859b9d6ee71486c61160
2023-06-29 18:49:12 +08:00
Finley Xiao
ed8ff84e98 soc: rockchip: opp_select: Implement rockchip_set_opp_supported_hw()
This implements new APIs to get soc info and set opp hardware info.

Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I167a37f661ce6fc8b32afc7768985fe23e35318c
2023-06-29 18:49:12 +08:00