Commit Graph

1086924 Commits

Author SHA1 Message Date
Su Yuefu
ca4e22208b media: i2c: sc530ai: update gain map according to datasheet
Change-Id: I842a776b4f668848a81a2b928f136df1acc5227f
Signed-off-by: Su Yuefu <yuefu.su@rock-chips.com>
2024-01-16 18:26:25 +08:00
Frank Wang
99111d8fb2 hwspinlock: rockchip: object to unlocking someone else's lock
Check hwlock user id and object to unlocking someone else's lock
when invoking unlock() API.

Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Change-Id: I46c256fd703fa56ce3d175ff2d721f53d3615ec0
2024-01-16 16:19:07 +08:00
Frank Wang
3229c7d5d5 hwspinlock: rockchip: support to set hwlock user in dt
With this commit, we can set hwlock user id in DT with
"rockchip,hwlock-user-id" property, if it is not set, the driver
use default value 0x01 instead.

Change-Id: Ib7ecc3eaf23ba79d85dc82182a9db0760c6d830c
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
2024-01-16 16:18:54 +08:00
Frank Wang
fa524e432a dt-bindings: hwlock: rockchip: add hwlock user id property
Set hwlock user id with the "rockchip,hwlock-user-id" property.

Change-Id: I46327ff4146e9c0999def48d67a3538462b82bfb
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
2024-01-16 16:18:41 +08:00
Zhang Yubing
0a30d6ee1e drm/rockchip: dw-dp: filter yuv420 when display mode not support
Change-Id: I1aead8dcd05dffdf89c62c162524bfde9c63f86e
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2024-01-16 15:45:21 +08:00
Luo Wei
f13fe816e0 arm64: dts: rockchip: rk3588-vehicle-evb: move port dts to bridge node for rohm
Signed-off-by: Luo Wei <lw@rock-chips.com>
Change-Id: I7c51267923b82791a6f70b8086f08d5b661399fa
2024-01-16 15:44:38 +08:00
Luo Wei
5d0970aacb mfd: display-serdes: fix compile errors on kernel-6.1
Signed-off-by: Luo Wei <lw@rock-chips.com>
Change-Id: Id52ed6fe9779cef2fe08c781cbe46f68b621844f
2024-01-16 15:36:36 +08:00
Cai YiWei
81fdd2b9d6 media: rockchip: isp: fix isp32 lost buf
Change-Id: I81f32f3d1c98c30f32fb862eaa4a31bbbcbb2412
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2024-01-15 18:13:59 +08:00
Damon Ding
748a301cd4 arm64: dts: rockchip: rk3562-evb1: add rgb 1024x600p60 panel display board
RGB panel Q7050ITH2641AA1T with 24-bit color depth.

Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: Ieaf626a2d20c9f30640985c61d48187cf637b0fe
2024-01-15 17:58:54 +08:00
Damon Ding
090d4f484b arm64: dts: rockchip: rk3588-evb: add edp 4k panel display board
EDP panel NV140QUM-N61 supports 3840x2160p60 with 4lanes.

Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: Ie21e227418c95ba0e190964716f70409505b4e71
2024-01-15 16:01:17 +08:00
Jon Lin
b2da6c9353 PCI: rockchip: dw-ep: Resize bar after hot reset
Change-Id: I079d354422b9e1c4895ac75781e33c924467991d
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-01-15 15:59:23 +08:00
Jon Lin
8c11a4fe4f mtd: spinand: unim: The nand flash does not support 84H and 34H command
Change-Id: Id44563e2ab35c65d879d8179e412a9b88aea6cba
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-01-15 14:35:12 +08:00
Jon Lin
c022f003dc mtd: spinand: XINCUN: Fix XCSP1AAPK read id method
Fixes: c08e952374 ("mtd: spinand: XINCUN: Support new device XCSP1AAPK")
Change-Id: Ifa4d4a875c45b3f20be9839f5bea0f44ff3aeb98
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-01-15 14:33:00 +08:00
Damon Ding
61ede000b1 arm64: dts: rockchip: rk3562-evb1: add sii902x bt1120/bt656 to hdmi board
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: I4a771d87694cc47e542ead825d90b50e9ae32d13
2024-01-15 11:59:34 +08:00
Elaine Zhang
1c6c2f66f3 mfd: rk808: remove rtc stop for pre init
If RTC has been started, stop rtc in pre init will affect
the rtc function and accuracy.

Change-Id: Ic601e8e2d622de95638ca1710c1cff8c5c1a90d5
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2024-01-15 08:58:16 +08:00
Sandy Huang
289b59b0e9 drm/rockchip: drv: rename drm_atomic_helper_connector_commit()
drm_atomic_helper_connector_commit() is rockchip private function, so
rename to rockchip_drm_atomic_helper_connector_commit() is more reasonable.

the function is introduced by the following commit:
commit: 88ea93aeb0 ("drm/rockchip: Introduce connector commit")

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I7d118495024c699529e872e036930a9d3ba70610
2024-01-12 17:24:02 +08:00
Zou Dengming
19ab80fe27 net: rfkill-bt: add power up func when waked by bt-irq only.
when rtk(also some others) wifi/bt combo chips suspend, it
disconnect from bt-remote control unit(RCU). when RCU's
powerkey pressed, it will send ble broadcast to rtk bt chip.

As the rtk chips receive the broadcast, it should wake up
the host, but it can't send bt-hid powerkey to host because
it had lost communication with host.
So,it just send a IRQ pulse to host. The host should resume
from suspend.

Because the RCU just send a IRQ pulse, so rk chips just resume
by IRQ and then go to sleep again for no power-key event.
this is not expected. we expect to power up system wholly.

With this path, we try to power up the system. so we add a
power-up key event when BT IRQ received.

We also can control the "/proc/bluetooth/sleep/powerupkey"
node to enable or disable this function.

Change-Id: Ie59b4a2c4cd2f91820d31835df86565003126465
Signed-off-by: Zou Dengming <marsow.zou@rock-chips.com>
2024-01-12 14:45:42 +08:00
Shawn Lin
f98648322e PCI: rockchip: dw: Fix NULL pointer of hot_rst_work
If the hot reset was happening just before the hot_rst_work
was created, NULL pointer dereference was hit.

[    2.366623] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000100
[    2.367402] Mem abort info:

...8<...

[    2.380736] Call trace:
[    2.380960]  __queue_work+0x30/0x5a0
[    2.381282]  queue_work_on+0x88/0xa4
[    2.381607]  rk_pcie_sys_irq_handler+0x1ec/0x280
[    2.382019]  __handle_irq_event_percpu+0x80/0x250
[    2.382440]  handle_irq_event+0x64/0x120
[    2.382796]  handle_fasteoi_irq+0xc8/0x204
[    2.383162]  __handle_domain_irq+0x78/0xe0
[    2.383528]  gic_handle_irq+0xf8/0x364

Fix it by masking all misc interrupts before registering rk_pcie_sys_irq_handler.
And later, they will be unmasked already.

Fixes: 679557456b ("PCIe: dw: rockchip: Delaying the link training after hot reset")
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: I1667e956526faa046a49323ee57b59fdb7a6451d
2024-01-10 16:05:45 +08:00
Jon Lin
8730136b26 spi: rockchip-sfc: Support chip select 1 extension
Part of the SOC supports FSPI CS1N and supports two external devices
for a single FSPI controller. The software provides targeted support.

Change-Id: I1bedf5864b664e94d280a2bc34e7d07212c774d3
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-01-10 16:05:25 +08:00
Cai Wenzhong
3aa3879e5e media: i2c: maxim: local: maxim2c: driver version v3.00.00
1. local deserializer and remote devices are associated through i2c-mux
2. remote camera is abstracted as v4l2 subdev

Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: I8b383651721cc35f7a2f6985ffbb3f0aa6a065a1
2024-01-10 15:07:22 +08:00
Jianwei Fan
cb3614d40c arm64: dts: rockchip: rk3399-evb-ind-lpddr4-v13-android-avb: add tc35874x configuration
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: Ia8e5c19ae4d37e0c7e16f8f149c17716e9f54d2d
2024-01-10 15:06:56 +08:00
Jianwei Fan
eda8eae147 arm64: dts: rockchip: rk3399-evb-ind-lpddr4-android-avb: add tc35874x configuration
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: Ib3e274017f3a971b5fb301c81e3ade43141af1d3
2024-01-10 15:06:56 +08:00
Meiyou Chen
6ffc963243 arm64: dts: rockchip: rk3399-ind: tc358749x use dummy codec
Signed-off-by: Meiyou Chen <cmy@rock-chips.com>
Change-Id: Id6213f44e64cd92b0369f8dfdb411bba9b108930
2024-01-10 15:06:56 +08:00
XiaoDong Huang
88bf597f09 ARM: fiq_glue: save/restore r6 in fiq_glue_setup
Fixes: fce07a27c8 ("ARM: fiq_glue: fix compilation error for THUMB2_KERNEL")
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
Change-Id: I89c8d3d8f9665d18917b0be5be4a5fd33bf21408
2024-01-10 14:33:49 +08:00
LongChang Ma
cafdb02e96 media: i2c: techpoint: fix tp9951 2 lane ecc error
Signed-off-by: LongChang Ma <chad.ma@rock-chips.com>
Change-Id: Iddc95c2a0512e25d8a8c9575a5a55161c5c47b6d
2024-01-10 09:26:14 +08:00
Sugar Zhang
89ba14ab7c ASoC: rockchip: i2s: 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.

This patch also try to solve clk leak for master output mode.

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

Fixes: 89e11e98f4 ("arm64: dts: rockchip: rk3588: Add pinctrl idle for I2S0/2/3")
Change-Id: I41dcdabd8e4015c7bd7285a03a24a3765a0b576f
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2024-01-09 16:26:05 +08:00
Cai Wenzhong
08d8bee9b8 arm64: dts: rockchip: rk3588-vehicle-maxim-cameras-s66.dtsi: support i2c-mux
Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: Ifc72e4f913a35f1d7bac0e8182d5972f81407654
2024-01-09 15:54:08 +08:00
Cai Wenzhong
f38142ccdc arm64: dts: rockchip: rk3588-vehicle-evb-maxim-max9671(/2)2-d(c)phy0(/3).dtsi: support i2c-mux
Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: I56f1d8722f956c627b0a12576b8470717e67e0ad
2024-01-09 15:54:08 +08:00
Cai Wenzhong
5c0f60413d media: i2c: maxim: remote: add ox03j10 sensor driver
Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: I1576c86394b28c3a810865790c2da93b0b5e0a8d
2024-01-09 15:54:08 +08:00
Cai Wenzhong
8157c8c4e4 media: i2c: maxim: remote: add ov2311/ov2312 sensor driver
Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: I1f96d0218c99c6326991a37cfc64ea63a579dd76
2024-01-09 15:54:08 +08:00
Cai Wenzhong
2948f08a9c media: i2c: maxim: remote: add ox01f10 sensor driver
Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: I0a622432876409572c228a0bee2baa88d75a7d3e
2024-01-09 15:54:08 +08:00
Cai Wenzhong
84288b2e37 media: i2c: maxim: remote: add sc320at sensor driver
Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: I30a657f6bfbb4991457cfd1ff2ed58b91bb2212e
2024-01-09 15:54:08 +08:00
Cai Wenzhong
455bfe8481 media: i2c: maxim: remote: serializer driver version v3.00.00
1. remote serializer support max9295/max96715/max96717
2. remote serializer provide APIs for remote camera calls

Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: Ib9f5fbefdded0f40a9b06f3c490713c4f0a20dfd
2024-01-09 15:54:08 +08:00
Cai Wenzhong
acb67fd645 media: i2c: maxim: local: maxim4c: driver version v3.00.00
1. local deserializer and remote devices are associated through i2c-mux
2. remote camera is abstracted as v4l2 subdev

Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: Id827c4a9b13a2280ec6b4b2114fa389b3e31674c
2024-01-09 15:54:08 +08:00
Lan Honglin
beb9974b6f media: i2c: sc850sl: fix gain discontinuity issue
sync update from 4.19

Change-Id: I432669771e6a3a5c9e07811f94f5bd77ed5b2e63
Signed-off-by: Lan Honglin <helin.lan@rock-chips.com>
2024-01-09 11:14:28 +08:00
Cai YiWei
ce956f7a33 media: rockchip: isp: fix resume mi no enable
Change-Id: Ic7aa8eb5528e97b4d425971d5189ef85c0c1c6c9
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2024-01-08 11:03:52 +08:00
Jon Lin
982e655deb arm64: dts: rockchip: rk3568: Add nfc
Change-Id: I3fb8fae8b63925d58e6889af4df80e920b3d4881
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-01-05 09:25:15 +08:00
Cai YiWei
08c66b08ce media: rockchip: isp: sync irq_ends
irqs in different cpu will change irq_ends flag, lock to sync.

Change-Id: Ie5467825173a16c796c7ab84c15286af44edc5d9
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2024-01-05 08:52:32 +08:00
Zhang Yubing
eaa1941ab7 mfd: rkx110_x120: cru: fix to get a avialble pll rate
In some case, the pll rate will be change to get a target
rate for it's child. we want set the pll rate closest to
the max pll rate. However, It's not all the rate can get
a set of legal paramters to config the pll. So when this
case happen, we try a lower rate as the target pll rate.

Change-Id: I45abec2114f74634904cf3c34655d8df331d171b
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2024-01-04 18:08:02 +08:00
Liang Chen
801e11b222 arm64: dts: rockchip: rk3562: adjust regulator-init-microvolt of vdd_cpu/vdd_logic for rk3562 boards
Raise initial voltage of vdd_cpu/vdd_logic when startup to improve stability.

Signed-off-by: Liang Chen <cl@rock-chips.com>
Change-Id: I223a21351424cb3fb47e5b3cae4f8e0324bd9a25
2024-01-04 15:11:44 +08:00
Liang Chen
ff902937c0 arm64: dts: rockchip: rk3562: adjust low-temp-min-volt for cpu/dmc
Raise voltage of cpu/dmc when low temperature to improve stability.

Signed-off-by: Liang Chen <cl@rock-chips.com>
Change-Id: I80321c0454c98c62a237192b46fa00da1b48d336
2024-01-04 15:07:18 +08:00
LongChang Ma
5e9dee2ebe media: i2c: add sc830ai sensor driver
Signed-off-by: LongChang Ma <chad.ma@rock-chips.com>
Change-Id: Ib22fb1d354cbb3ee26f5a94c969675cbb28990ff
2024-01-03 19:46:07 +08:00
Sugar Zhang
1bbb558966 dmaengine: pl330: Use tasklet_hi_schedule
Use tasklet_hi_schedule for better audio performance,
especially for LLA (Low Latency Audio) situation.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Ic5a215a269e718b0e5613132cb9fe9b58940d0e1
2024-01-03 19:45:53 +08:00
Jon Lin
c08e952374 mtd: spinand: XINCUN: Support new device XCSP1AAPK
Change-Id: Ia8de254547f40499a501e20421efb0f443842b87
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-01-03 19:42:57 +08:00
Jiahang Zheng
14119c4f7f arm64: dts: rockchip: rk3562-amp: change mcu ram address
Change-Id: If7311abee120fef2a0259845e202612f8c67372a
Signed-off-by: Jiahang Zheng <jiahang.zheng@rock-chips.com>
2024-01-03 17:55:24 +08:00
Jianwei Fan
aa47569d06 media: i2c: lt8668sx: add lt8668sx hdmi2csi driver
Change-Id: I4fba2eb4aca597ba41a08a89c6444f9a715c4630
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
2024-01-03 17:50:49 +08:00
Yandong Lin
77a1b08896 video: rockchip: mpp: remove av1dec l2 cache
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: If018c12464264f62db4baa658b75d8942504a765
2024-01-03 17:48:01 +08:00
XiaoDong Huang
4227edfdb3 ARM: rockchip: rv1106_pm: do wdt save/restore
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
Change-Id: Ie805d22a99110162015a51718ec29de2e6008614
2024-01-03 17:09:20 +08:00
Cai YiWei
2846affd16 media: rockchip: isp: add buf cnt info to procfs
Change-Id: I78ce99dad93e57c544e150013ccac02868d43f88
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2024-01-03 17:06:39 +08:00
Cai YiWei
f8d9b2d3b4 media: rockchip: isp: fix wait timeout with thunderboot
Change-Id: Ied63c17c68e1cd565a3f246655fa9ec66be638b3
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2024-01-03 17:06:39 +08:00