Commit Graph

1276649 Commits

Author SHA1 Message Date
Yu Qiaowei
263734a862 video: rockchip: rga3: Add drv_shutdown callback
Need to reset hardware when driver exits.

Update driver version to 1.3.6

Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I4c6cb394a1339cf689d2d0d011d5df3fb24f0425
2024-11-04 16:13:50 +08:00
Yu Qiaowei
b430f82a6f video: rockchip: rga3: fix irq_handler crash when hardware reset
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: Iee7f20510172fc89c6640503926584a982d2837c
2024-11-04 16:13:50 +08:00
Andy Yan
4ada27f283 drm/rockchip: Add log for iommu map/unmap
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Change-Id: Ieefd2e6e113da45cfdfe9578ab5580d16402c3d6
2024-11-04 11:33:19 +08:00
Andy Yan
d233408e36 drm/rockchip: Add rockchip_drm_dbg_thread_info() function
Support print thread info.

Change-Id: I56111c8bb438ad354553276881d74fc7a6186340
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
2024-11-04 11:32:13 +08:00
Andy Yan
593488826a drm/rockchip: omit \n when call rockchip_drm_dbg()
trace(TP_printk) will add \n by it's self.

Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Change-Id: Idcc0bbd801053222fbf67085cc218596f7d6c84e
2024-11-04 11:29:51 +08:00
Andy Yan
5366dcae7d drm/rockchip: Add tracepoints
Enable:
  echo 1 > sys/kernel/tracing/tracing_on
  echo 1 > sys/kernel/tracing/events/rockchipdrm/enable
  echo 8192  > sys/kernel/tracing/buffer_size_kb
  cat /sys/kernel/tracing/trace

Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Change-Id: Ib3936d6093cb6dcb3a19ee5f74867be1f4befa94
2024-11-04 11:22:27 +08:00
Shawn Lin
50fa63ad68 PCI: dw: rockchip: Disable RC's BAR into rk_pcie_host_config()
To fix the unnecessary RC's bar allocation warning:

[    2.226288] pci 0000:00:00.0: BAR 0: no space for [mem size 0x40000000]
[    2.226305] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x40000000]
[    2.226317] pci 0000:00:00.0: BAR 1: no space for [mem size 0x40000000]
[    2.226327] pci 0000:00:00.0: BAR 1: failed to assign [mem size 0x40000000]

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: I617cfa3408115d7c73190c6b9816d48ae82a37c8
2024-11-01 18:07:00 +08:00
Lin Jianhua
6c008c1038 ARM: dts: rockchip: Add rk3506b-test2-v10
Change-Id: Id370a1fe3bb8a407b60c684463910960f253b90c
Signed-off-by: Lin Jianhua <linjh@rock-chips.com>
2024-11-01 16:06:30 +08:00
Jon Lin
7f790a5cf3 spi: rockchip-sfc: Add rockchip,rk3506-fspi compatible
Change-Id: I61f67209b25e1917e656c1c8faa6241df58478b2
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-11-01 15:20:18 +08:00
Jon Lin
89b9a1cfda ARM: dts: rockchip: rk3502: Change rockchip,fspi to rockchip,rk3506-fspi
Change-Id: I22453b6b6992176bdc12a7ceab5071d529f25a37
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-11-01 15:19:51 +08:00
Jon Lin
65f8dd5090 dt-bindings: spi: rockchip-sfc: Add rockchip,rk3506-fspi compatible
Change-Id: I43c4f32607f073d8a70d469e2eced2738978de52
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-11-01 14:32:36 +08:00
Zhihuan He
6ce3e83a23 clk: rockchip: rk3588: add PCLK_DDR_MON_CH for ddr monitor
Change-Id: I822ca44539a675cd35c9979fd14654463c80ba3d
Signed-off-by: Zhihuan He <huan.he@rock-chips.com>
2024-10-31 19:13:10 +08:00
Zhihuan He
827bf4adc0 clk: rockchip: rk3576: add PCLK_DDR_MON_CH for ddr monitor
Change-Id: I2239f6d96d144f7a314a7df2fd2fe60477464233
Signed-off-by: Zhihuan He <huan.he@rock-chips.com>
2024-10-31 19:13:10 +08:00
Zhihuan He
dfb8a71ba3 PM / devfreq: rockchip-dfi: add dfi pclk management
In the most of the time, the pclk of dfi is turned off. The pclk is only
enabled when the result is retrieved for power saving.

Change-Id: I040a87e0b146694874b15dce3b23e4ddc5e86c1e
Signed-off-by: Zhihuan He <huan.he@rock-chips.com>
2024-10-31 19:12:58 +08:00
Zhihuan He
12c5f9d83b arm64: dts: rockchip: rk3588s: add pclk for dfi
Change-Id: Icf2bc60fcdf7aa044440812102f88cee9a8d0981
Signed-off-by: Zhihuan He <huan.he@rock-chips.com>
2024-10-31 19:12:34 +08:00
Zhihuan He
2a0b40b049 arm64: dts: rockchip: rk3576: add pclk for dfi
Change-Id: I604750114a6c891bbe6db9d9b1727127a67b4c1d
Signed-off-by: Zhihuan He <huan.he@rock-chips.com>
2024-10-31 19:12:27 +08:00
Zhihuan He
2435985bc8 dt-bindings: clock: rk3576: add PCLK_DDR_MON define
Change-Id: I6d6e61df45859ade8c33f2619dc20435dda9f6cf
Signed-off-by: Zhihuan He <huan.he@rock-chips.com>
2024-10-31 19:12:15 +08:00
Zhihuan He
0722b19d8f dt-bindings: clock: rk3588: add PCLK_DDR_MON define
Change-Id: I9b85696bae7ce349b85c384b8630c75ad8a779fd
Signed-off-by: Zhihuan He <huan.he@rock-chips.com>
2024-10-31 19:11:47 +08:00
Wu Liangqing
7d639ea892 arm64: dts: rockchip: add rk3576-tablet-v11
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
Change-Id: I5e6c76e97171e2a88680f7e3734137dac9bac30a
2024-10-30 18:27:00 +08:00
Shawn Lin
3f8577c27e ARM: dts: rockchip: rk3506-pinctrl: Set sdmmc Io to pullup state
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: I03a1b50e67ee7710f36e995bfbe0414ab70c0149
2024-10-30 09:48:31 +08:00
Shengfei Xu
21ae02a8df arm64: dts: rockchip: rk3576-rk806/tablet: Add the shutdown sequence for rk806
Change-Id: I5f8a50a529dd94af660c5dd642d2a6401178a009
Signed-off-by: Shengfei Xu <xsf@rock-chips.com>
2024-10-29 18:01:23 +08:00
Shengfei Xu
b2dcf7ae10 mfd: rk806: config the power off sequence
Configure the power-off timing of each power supply of the PMIC
during normal shutdown through the "shutdown-sequence".
Configure the power-off timing of each power supply of PMIC
during low power forced shutdown through "vb-shutdown-sequence".
Press the RESET button in sleep mode, and the PMIC will power down
and then power on. The PMIC's power on sequence follows
the power on sequence.

Change-Id: Iebd0ea604fe5419dcead8fa75ade1402cabf7461
Signed-off-by: Shengfei Xu <xsf@rock-chips.com>
2024-10-29 18:00:33 +08:00
Shengfei Xu
a3f03c79ff mfd: rk806: Low power triggered system forced shutdown
Change-Id: I38b7592525d81aa09672362208d7f5bc53539b4e
Signed-off-by: Shengfei Xu <xsf@rock-chips.com>
2024-10-29 18:00:33 +08:00
Jon Lin
5da753e40a arm64: dts: rockchip: rk3576: Add PD_SDGMAC to fspi1/flexbus/dsmc
Change-Id: Ifcd32623540b58c166e619224127b0409f5f41cc
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-10-29 17:19:59 +08:00
Frank Wang
6448d1eec8 usb: typec: fusb302: set src current to default 80uA
The FUSB302B failed to detect sink devices from SRC_UNATTACHED state
with SRC 180 uA CC current setting, the TCPM and FUSB302 logs like
the below and FUSB302B has no further action.

[   72.229911] fusb302 IRQ: 0x21, a: 0x00, b: 0x00, status0: 0x23:
[   72.229993] fusb302 IRQ: COMP_CHNG, comp=true:
[   72.230212] fusb302 cc1=Open, cc2=Open:
[   72.230265] tcpm CC1: 2 -> 0, CC2: 0 -> 0 [state SRC_ATTACH_WAIT, polarity 0, disconnected]:
[   72.230306] tcpm state change SRC_ATTACH_WAIT -> SRC_UNATTACHED [rev3 NONE_AMS]:
[   72.230345] tcpm Start toggling:
[   72.237430] fusb302 start drp toggling:

The vendor said that FUSB302B was designed with 80uA for sink
detection which means it can only guarantee FUSB302B will works well
with that setting, so amend the SRC CC current at toggling to fix it.

Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Change-Id: Iefeb7dd20c03c04832ac82d43cc4f8d9edccbcc6
2024-10-29 17:05:36 +08:00
Jon Lin
7f84caccd0 PCI: dw: rockchip: Define IO and Host initialization interfaces
Change-Id: I3491ee22e216d009aee2613de4b6f276c2154a72
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-10-29 17:04:37 +08:00
Jon Lin
c37dff4abe PCI: dw: rockchip: Unified PCIe initialization process
Change-Id: Ia564bc5e2063b05c0eeeb99527e5253f610308f6
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-10-29 17:04:37 +08:00
Jon Lin
652b60a98e PCI: dw: rockchip: Move PCIE_CLIENT_INTR_MASK to configuration process.
Change-Id: Id90ddc7c1280e8f01974380d5d2ebebbe12bec67
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-10-29 17:04:37 +08:00
Jon Lin
f4df5925fe PCI: dw: rockchip: Split phy resource initialization and phy initialization
Change-Id: I3d4b7f4137aa938d3621742b231aee9461f322b2
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-10-29 17:04:37 +08:00
Jason Zhu
e27115aa16 ASoC: codecs: rk_dsm: fix audio aliasing
Set the dsm registers default value so that they can not be changed
as zero with regmap interface.

Change-Id: I1788fe2cabcb65ba09964a79d2fe20c057924839
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
2024-10-29 16:31:06 +08:00
Shunhua Lan
4bfb13e85d media: rockchip: hdmirx: fix audio fifo underflow or overflow when working for audio with high jitter
Signed-off-by: Shunhua Lan <lsh@rock-chips.com>
Change-Id: Ibf4dc35997e742119aaae28a9a4deb4bcdf65b7e
2024-10-29 16:30:44 +08:00
Shunhua Lan
fdea02a3ef media: rockchip: hdmirx: use the closest fs for audio instead of invalid
Signed-off-by: Shunhua Lan <lsh@rock-chips.com>
Change-Id: I833d7f9834965189f23adda7f5219b5ec5711ea2
2024-10-29 16:30:35 +08:00
Shunhua Lan
fa24640896 media: i2c: rk628: fix audio fifo underflow or overflow when working for audio with high jitter
Signed-off-by: Shunhua Lan <lsh@rock-chips.com>
Change-Id: I418d691381f6f8c389a190ac96a2587b0e2f22fd
2024-10-28 16:18:20 +08:00
Shunhua Lan
71bb2b36f6 media: i2c: rk628: repair cts n interrupt loss
Change-Id: I9603a1733555b535f0542ca6677e9cb27647a399
Signed-off-by: Shunhua Lan <lsh@rock-chips.com>
2024-10-28 16:17:24 +08:00
Shunhua Lan
b328bd0f78 ASoC: codecs: rk730: add coeff configurations for different audio fs and mclk
Change-Id: Ic9ee8eab87417b9946c97bf01789b6bcb9cd0ff0
Signed-off-by: Shunhua Lan <lsh@rock-chips.com>
2024-10-28 16:14:32 +08:00
Shunhua Lan
07dbb4735c ASoC: codecs: rk730: do soft reset in rk730_reset
The patch fix no sound when hot rebooting because of registers value mismatch

Change-Id: I6c9b040b3cd025c4e27c391e0f539505e747aaa7
Signed-off-by: Shunhua Lan <lsh@rock-chips.com>
2024-10-28 16:14:32 +08:00
Luo Wei
427cd6dd82 mfd: display-serdes: improve drivers about these case
1.set lcd low level before set high level
2.set label for lock&err gpio and irq
3.add monitor function for serdes important register

Signed-off-by: Luo Wei <lw@rock-chips.com>
Change-Id: I6e0ee19de04dec87fd356a6f5cb046612bec3451
2024-10-28 14:18:32 +08:00
Jason Zhu
872875b540 ASoC: rockchip: pdm_v2: fix the recording signal is 0 when gain is too large
Since the PDM mic has dc signal, the signal will be recorded as 0
when gain is too large. The dc and voice signals will be enlarge
to maximum value and they will be filtered to zero by high pass filter.

Change-Id: I4973da38a28028dff502e3bc7f97030a3bde7b8f
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
2024-10-25 20:35:34 +08:00
Shawn Lin
4cadd49e1f PCI: dw: rockchip: Add slot power limit support
Change-Id: I135d37768b4fb34e16b7e4a8adc7f8c4cc5d6a1a
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
2024-10-25 20:34:34 +08:00
Shengfei Xu
d43bf47467 regulator: fixed: Get the configured limit for a current-limited regulator
Change-Id: I0154cdcda406828aff7dcdf884e63e1c74992e4b
Signed-off-by: Shengfei Xu <xsf@rock-chips.com>
2024-10-25 20:34:34 +08:00
Shengfei Xu
1f5f09ff39 regulator: rk806: Get the configured limit for a current-limited regulator
Change-Id: I96f116dfd21b375cd1cc7e583adfb02c181667cf
Signed-off-by: Shengfei Xu <xsf@rock-chips.com>
2024-10-25 20:34:34 +08:00
Algea Cao
b578fa577b drm/bridge: synopsys: dw-hdmi-qp: Use new edid api
Kernel-6.1 add new api drm_edid_connector_update
can parse hdmi2.1 edid information. Kernel-5.10 old
drm_add_edid_modes in kernel-6.1 is limited to parse
hdmi2.0 edid information. So we must use drm_edid_connector_update
instead of drm_add_edid_modes.

Change-Id: I421049f38ffdec1cb136a02d9100eafd92c1f0a6
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2024-10-25 20:15:38 +08:00
Tao Huang
495fe343ce Merge tag 'v6.1.99'
This is the 6.1.99 stable release

* tag 'v6.1.99': (1975 commits)
  Linux 6.1.99
  Revert "usb: xhci: prevent potential failure in handle_tx_event() for Transfer events without TRB"
  Linux 6.1.98
  nilfs2: fix incorrect inode allocation from reserved inodes
  null_blk: Do not allow runt zone with zone capacity smaller then zone size
  spi: cadence: Ensure data lines set to low during dummy-cycle period
  nfc/nci: Add the inconsistency check between the input data length and count
  kbuild: fix short log for AS in link-vmlinux.sh
  nvmet: fix a possible leak when destroy a ctrl during qp establishment
  platform/x86: touchscreen_dmi: Add info for the EZpad 6s Pro
  platform/x86: touchscreen_dmi: Add info for GlobalSpace SolT IVW 11.6" tablet
  regmap-i2c: Subtract reg size from max_write
  nvme: adjust multiples of NVME_CTRL_PAGE_SIZE in offset
  dma-mapping: benchmark: avoid needless copy_to_user if benchmark fails
  nvme-multipath: find NUMA path only for online numa-node
  ALSA: hda/realtek: Enable headset mic of JP-IK LEAP W502 with ALC897
  fs/ntfs3: Mark volume as dirty if xattr is broken
  i2c: pnx: Fix potential deadlock warning from del_timer_sync() call in isr
  clk: mediatek: mt8183: Only enable runtime PM on mt8183-mfgcfg
  clk: mediatek: clk-mtk: Register MFG notifier in mtk_clk_simple_probe()
  ...

Change-Id: Ibf9c2caa3bbffb7a960e82ec6c2b0b497753778c

Conflicts:
	arch/arm64/boot/dts/rockchip/rk3328.dtsi
	drivers/gpu/drm/rockchip/rockchip_drm_vop2.c
	drivers/phy/rockchip/phy-rockchip-snps-pcie3.c
	drivers/pinctrl/pinctrl-rockchip.c
	drivers/usb/gadget/function/u_audio.c
	include/linux/usb/quirks.h
	mm/cma.c
	sound/soc/rockchip/rockchip_i2s_tdm.c
2024-10-25 17:51:39 +08:00
Tao Huang
af561def2e Revert "regulator: core: Ensure debugfs is fully initialized"
This reverts commit 175fb4a3cc.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2024-10-25 17:49:51 +08:00
Jason Zhu
1b1b029fe3 ASoC: codecs: rk_dsm: call regcache_sync() when dsm resume
If not sync regcache when dsm resume, the dsm card occur error
since the value in cache is same with what we set. So that the
value will not sync to dsm registers.

error log:
aplay: pcm_write:2178: write error: Input/output error
rockchip-sai 2a640000.sai: Failed to clear 1

Change-Id: Ia6318dedf12ae696cf05ae59055427932b1638ea
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
2024-10-25 17:36:42 +08:00
Luo Wei
267c32b9db arm64: dts: rockchip: rk3576-vehicle-evb20: fix maxim serdes lock gpio err
Signed-off-by: Luo Wei <lw@rock-chips.com>
Change-Id: If64c5cc5db5ec57e63c44eef96ba35eadd36ee44
2024-10-25 16:18:07 +08:00
Luo Wei
7e80a3f182 arm64: dts: rockchip: rk3576-vehicle-evb20: fix adb resume issue
Signed-off-by: Luo Wei <lw@rock-chips.com>
Change-Id: If9cefd2b5b1f026ab393e0f28a7db353486382ec
2024-10-25 16:17:48 +08:00
Luo Wei
6ef18fb63d arm64: dts: rockchip: rk3588-vehicle-evb: add reset all for maxim serdes
Signed-off-by: Luo Wei <lw@rock-chips.com>
Change-Id: I9f71f24458d46ccc3749d89dee7badb43a98ac5f
2024-10-25 16:17:24 +08:00
Luo Wei
afa6bd4208 arm64: dts: rockchip: rk3588-vehicle-evb: keep lcd 12v on
Signed-off-by: Luo Wei <lw@rock-chips.com>
Change-Id: I357b28aa26b766604984a7fa9fc18025adf3f657
2024-10-25 16:17:24 +08:00
wei.luo
39864a50c2 arm64: dts: rockchip: rk3588-vehicle-evb: close usb auto suspend
Signed-off-by: Luo Wei <lw@rock-chips.com>
Change-Id: Ia3656f4c3eeec9b31bbe9e939861b0222032f831
2024-10-25 16:17:24 +08:00