Commit Graph

1280335 Commits

Author SHA1 Message Date
Tao Huang
be7b2f21b3 drivers: rkflash: Fix Kconfig Segmentation fault
Fix following error:
[scripts/kconfig/Makefile:56: menuconfig] Segmentation fault (core dumped)
on v6.12.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ie767e45e4ee9025efe95186e3d1a4a7f6a7d0867
2025-02-05 16:47:55 +08:00
Tao Huang
e9991c5bc2 media: i2c: imx498: Fix typo in Makefile
Fixes: 0ad1b882f4 ("media: i2c: add imx498 sensor driver")
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I5a153b90c76eb75450f2590db03820570ab45d1d
2025-02-05 16:15:42 +08:00
Damon Ding
3558926745 drm/rockchip: logo: call drm_atomic_bridge_chain_check() bridge in mode fixup
For some connector drivers, such as dw-dp, &drm_bridge_funcs.atomic_check()
helps to select output_mode, color_range and so on, which will be
determined in the following &drm_encoder_helper_funcs.atomic_check().

In order to get the exact display mode for the mode comparison
between U-boot and Kernel, add the full bridge atomic check process
in rockchip_drm_mode_fixup().

Without this patch, the mode comparison will fail if the DP logo
display is enabled in YUV420 mode for RK3576, because the display
mode of uboot has been fixed while the display mode of kernel has
not, due to the incorrect conn_state->output_mode.

The related workaround is:

/*
 * For RK3576 YUV420 output, hden signal introduce one cycle delay,
 * so we need to adjust hfp and hbp to compatible with this design.
 */
if (vop2->version == VOP_VERSION_RK3576 &&
    conn_state->output_mode == ROCKCHIP_OUT_MODE_YUV420) {
	mode->crtc_hsync_start += 2;
	mode->crtc_hsync_end += 2;
}

Fixes: c4642391b1 ("drm/rockchip: vop2: adjust hfp and hbp for YUV420 output")
Change-Id: I3193bfa2bca7c14f5c7308f94e7d23160618be0c
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2025-02-05 11:08:18 +08:00
Tao Huang
79a5a1e949 driver: rknpu: Add kern_addr_valid()
Fixes: 731451a16a ("mm: remove kern_addr_valid() completely")
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I611eed4a5c11721be3ad3c76618241793cc371fc
2025-01-25 14:49:34 +08:00
Tao Huang
fab422d7f2 Merge tag 'v6.1.118'
This is the 6.1.118 stable release

* tag 'v6.1.118': (264 commits)
  Linux 6.1.118
  9p: fix slab cache name creation for real
  fs/ntfs3: Fix general protection fault in run_is_mapped_full
  platform/x86: x86-android-tablets: Fix use after free on platform_device_register() errors
  mm: krealloc: Fix MTE false alarm in __do_krealloc
  Bluetooth: L2CAP: Fix uaf in l2cap_connect
  ext4: fix timer use-after-free on failed mount
  drm/amdkfd: amdkfd_free_gtt_mem clear the correct pointer
  uprobe: avoid out-of-bounds memory access of fetching args
  uprobes: encapsulate preparation of uprobe args buffer
  io_uring: fix possible deadlock in io_register_iowq_max_workers()
  md/raid10: improve code of mrdev in raid10_sync_request
  net: usb: qmi_wwan: add Fibocom FG132 0x0112 composition
  LoongArch: Use "Exception return address" to comment ERA
  HID: lenovo: Add support for Thinkpad X1 Tablet Gen 3 keyboard
  HID: multitouch: Add quirk for Logitech Bolt receiver w/ Casa touchpad
  fs: Fix uninitialized value issue in from_kuid and from_kgid
  bpf: Fix mismatched RCU unlock flavour in bpf_out_neigh_v6
  vDPA/ifcvf: Fix pci_read_config_byte() return code handling
  nvme: make keep-alive synchronous operation
  ...

Change-Id: I444ffa78df5ea265e328ff158178c4e640030da8

Conflicts:
	arch/arm/boot/dts/rk3036.dtsi
2025-01-25 10:26:37 +08:00
Tao Huang
e81819eb46 Revert "ethernet: arc: Fix the device for dma_map_single/dma_unmap_single"
This reverts commit 00b877ac98.

Replaced by commit fd4e062fbc ("net: arc: fix the device for dma_map_single/dma_unmap_single").

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I098b78b5794ea395ca9ced29ee027e66e24f8ed4
2025-01-25 10:25:01 +08:00
Lin Jianhua
cef9074639 ARM: configs: rk3506_defconfig: support rk816
Change-Id: I7d8f18b72aa4cb4bc8edf5d9e9f9082d6f5b4148
Signed-off-by: Lin Jianhua <linjh@rock-chips.com>
2025-01-25 01:47:18 +00:00
LongChang Ma
e3a69bab86 arm64: dts: rockchip: rk3576-evb1-v10: add ipc dual cam dts
Change-Id: Ia6334a78f72dbf648089df230237d3dbc9bb09bd
Signed-off-by: LongChang Ma <chad.ma@rock-chips.com>
2025-01-25 01:44:57 +00:00
Damon Ding
795750411d drm/rockchip: vop2: fix the log in vop2_plane_mask_check()
Fix the unexpected '\n' in the middle of the log.

Fixes: c6b6f4232c ("drm/rockchip: vop2: Add human readable log output info")
Change-Id: Ifc857fb67187d9afd189cb7ff1e4dff0f31c9ab3
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2025-01-25 01:29:50 +00:00
Damon Ding
2c67eda0e2 drm/rockchip: vvop: adapt to the drm helper functions with full atomic state
Pass the full state to CRTC atomic enable/disable/flush and plane atomic
update.

Relevant commits:
commit 351f950db4 ("drm/atomic: Pass the full state to CRTC atomic enable/disable")
commit f6ebe9f9c9 ("drm/atomic: Pass the full state to CRTC atomic begin and flush")
commit 977697e20b ("drm/atomic: Pass the full state to planes atomic disable and update")

Change-Id: I3a523d02d80c0248c7065b408985737d5b83a3f8
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2025-01-25 09:11:05 +08:00
Lin Jianhua
753101509a ARM: dts: rockchip: add rk3506G EVB2 dts
Change-Id: I79218f1c67cff9ffe0c1c20301b175cd6dfdcc44
Signed-off-by: Lin Jianhua <linjh@rock-chips.com>
2025-01-24 10:15:01 +00:00
Lin Jianhua
a747bf995d ARM: dts: rockchip: rk3506-pinctrl: Add sai3 idle pins
Change-Id: I538aa9965eb95f77f77e3b4d5bce2983f06436f3
Signed-off-by: Lin Jianhua <linjh@rock-chips.com>
2025-01-24 10:14:09 +00:00
Zhibin Huang
f1903cd015 phy: rockchip: mipi-dcphy: modify rk3576 data lane driver-down resistor
Signal test to correct dphy DQ driver-down resistors, see
redmine #487592 - #3 for specific report details.

Type: Fix
Redmine ID: #487592
Associated modifications: N/A
Test: N/A

Signed-off-by: Zhibin Huang <zhibin.huang@rock-chips.com>
Change-Id: I3692ce528646ad3b215b212cbb453b0c4c0e9420
2025-01-24 10:12:39 +00:00
Shengfei Xu
a1ebce918d power: supply: rockchip-charger-manager: Resolve unnecessary delayed_work
Without DC charging, there is no need to initialize its delayed_work.

Change-Id: I17bd69e0a388b7048b1ce8139bce5b6cfb8ccd3e
Signed-off-by: Shengfei Xu <xsf@rock-chips.com>
2025-01-24 10:12:15 +00:00
William Wu
fd91f03517 usb: dwc3: gadget: Avoid get frame in runtime suspended state
If dwc gadget is already in runtime suspended state, it should
not access the dwc3 register to get the frame number.

Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: I6107f8290eff68126198bcccc0561de7d480c221
2025-01-24 10:11:59 +00:00
Mingwei Yan
bac4740826 media: rockchip: vpss: fix stop don't del buffer_done_list
Signed-off-by: Mingwei Yan <mingwei.yan@rock-chips.com>
Change-Id: Ifce8944d18678ea96910ccf07fc0c042f354ba06
2025-01-24 10:06:43 +00:00
Mingwei Yan
35287c1612 media: rockchip: vpss: support frame info attach to image tail
Signed-off-by: Mingwei Yan <mingwei.yan@rock-chips.com>
Change-Id: Ib3915bf0670226c44f4adfdbe65d4d849c3ab403
2025-01-24 18:00:58 +08:00
Elaine Zhang
9e4b2a9592 arm64: dts: rockchip: Increase VOP clk rate on RK3328
The VOP on RK3328 needs to run at a higher rate in order to produce
a proper 3840x2160 signal.
Change to use 300MHz for VIO clk and 400MHz for VOP clk.

Fixes: f0ebe5aef9fa ("Revert "arm64: dts: rockchip: Increase VOP clk
rate on RK3328"")

Change-Id: Ifdd4db27071377519df94cebd3bba78b6dcd4a1c
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2025-01-24 09:58:23 +00:00
Elaine Zhang
684674a4fe Revert "arm64: dts: rockchip: Increase VOP clk rate on RK3328"
This reverts commit 1ba4d34bdc.

Before changing the PLL frequency, in order to avoid overclocking the
child clock, set the child clock to a large div first, and then set the
CLK as required after the PLL is set.

Change-Id: Ibd09c2c9ad4a6c739ca2ac66b75734d4525b70b0
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2025-01-24 09:58:23 +00:00
Elaine Zhang
a56129cb0c Revert "clk: rockchip: Set parent rate for DCLK_VOP clock on RK3228"
This reverts commit a3f77b5d16.

RK3228 Only GPLL and CPLL, GPLL is a common clock, does not allow dclk_vop
to change its frequency, CPLL is used by GMAC, if dclk_vop use
CLK_SET_RATE_PARENT and CLK_SET_RATE_NO_REPARENT flags will
affect the GMAC function.

Change-Id: I2c959a19f115b34720364586c374fc6e01fc8eb4
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2025-01-24 09:58:23 +00:00
Zhang Yubing
4388d47efb drm/rockchip: dw-dp: clear old output_if
when the encoder attach to a new crtc, the old output_if bind to
old crtc need clear.

Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Change-Id: I6fd4317c47ca9a64a24c85ee4fb1552204a5e3f8
2025-01-24 09:56:21 +00:00
Zhang Yubing
640ae5cbe2 drm/bridge: synopsys: dw-hdmi-qp: clear old output_if
when the encoder attach to a new crtc, the old output_if bind to
old crtc need clear.

Change-Id: I30b0a1500905051ee9ed5a03781a83b9ff055b3e
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2025-01-24 09:56:21 +00:00
Zhang Yubing
3a65316705 drm/rockchip: drv: support get old crtc and new crtc by encoder
For all the display interface on the Soc, for example, DP, HDMI,
DSI, DPI. All of these display interface will register the drm encoder
which will encode the match the display interface requirement. In some
case, we may need check the encoder's crtc change or not to do some
work.
When userspace do a commit work, a connect may attach to a new crtc,
or unattach to a old crtc, and choose a best encoder. The connector
can know whether the new crtc and the old crtc it attach is the same
or know. But its best encoder can't know.
Here, we get the connector whose old_state.best_encoder is the target
encoder. Then the old_state.crtc of this connector is the encoder's old
crtc. We get the connector whose new_state.best_encoder is the target
encoder. Then the new_state.crtc if this connector is the encoder's new
crtc.

Change-Id: Id9e5f27b9dcf368473b48f76e3cad375276eadfb
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2025-01-24 09:56:21 +00:00
Zain Wang
791a318ed7 power: supply: rk816-battery: try to get extcon from battery node
Extcon is useless for rk808 driver, move extcon definition
to battery node.

Change-Id: Ifb4cf8b132a0a397e651699d27cfb86c415be9dd
Signed-off-by: Zain Wang <wzz@rock-chips.com>
2025-01-24 04:23:18 +00:00
Zitong Cai
fee389503b input: touchscreen: add support for Himax hx83192
Change-Id: Ibbc9bb7cdd4dfae9d2bcbc8c0346f9446e1534af
Signed-off-by: Zitong Cai <zitong.cai@rock-chips.com>
2025-01-24 09:21:00 +08:00
Tao Huang
a30a604318 iio: adc: gpio_muxadc: Fix typo in Rockchip copyright notice
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I70eee7b9a64cdd09245ebd4d492f43e7fde85f75
2025-01-22 19:25:06 +08:00
Tao Huang
0c5f11d591 mtd: rknand: Fix typo in Rockchip copyright notice
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ia01ee5601474bbf4937fe198bd1b51a99d1f87c6
2025-01-22 19:24:37 +08:00
Tao Huang
3038677d2a net: ethernet: stmmac: Fix typo in Rockchip copyright notice
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I2639277384c4d3ca958109030f2eade1b8e5088a
2025-01-22 19:24:37 +08:00
Tao Huang
eeb355823a net: phy: rk630: Fix typo in Rockchip copyright notice
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I81fbf360af600814783a5bb1fdc89e3081b8920a
2025-01-22 19:24:37 +08:00
Tao Huang
7358c1e6f9 pinctrl: max96745: Fix typo in Rockchip copyright notice
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I7cc6a173820f38f9b27729ea3476335e1a511026
2025-01-22 19:24:37 +08:00
Tao Huang
0bd2dba2ef pinctrl: max96755f: Fix typo in Rockchip copyright notice
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Iea39064a8b721bac0aaa31b3aa28823f96609bd9
2025-01-22 19:24:36 +08:00
Tao Huang
5c67f68c5e power: ec_battery: Fix typo in Rockchip copyright notice
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I557316493fc58abfe1fe975f0eb2c9915ef8f4bf
2025-01-22 19:24:36 +08:00
Tao Huang
e59a45a563 pwm: rockchip-i2s: Fix typo in Rockchip copyright notice
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I2927da860a3b54484c69d27035bcf67e9008323e
2025-01-22 19:24:36 +08:00
Tao Huang
e2560753d1 spi: rockchip-slave: Fix typo in Rockchip copyright notice
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I68242cd0fedc89bb8592b3b156130c19c5fb80a7
2025-01-22 19:24:36 +08:00
Tao Huang
869ae51db9 thermal: rk_virtual_thermal: Fix typo in Rockchip copyright notice
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: If47872f7d139b1dbf8d8588caf6ab0b494cbae83
2025-01-22 19:24:36 +08:00
Tao Huang
6788c8cf9b usb: typec: tcpci_et7303: Fix typo in Rockchip copyright notice
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I5aa26d8bb696b6d25731fac2a9db62021313bd3e
2025-01-22 19:24:36 +08:00
Tao Huang
3d3618faee usb: typec: tcpci_husb311: Fix typo in Rockchip copyright notice
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Iec05c0f98bd2604d888d86941489daa5662e6cdb
2025-01-22 19:24:36 +08:00
Tao Huang
be8cfb0011 video: rockchip: rga: Fix typo in Rockchip copyright notice
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ia5df60455cf2449ee3de1250fa3853fc9e2e6cc4
2025-01-22 19:24:36 +08:00
Tao Huang
1904e5b446 video: rockchip: rga2: Fix typo in Rockchip copyright notice
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I9c32b8036b0e318e146991d4fd9eeb901c884300
2025-01-22 19:24:36 +08:00
Tao Huang
92887bebb8 video: rockchip: vtunnel: Fix typo in Rockchip copyright notice
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ia55110111037a78f392900967200b4615d0540be
2025-01-22 19:24:36 +08:00
Tao Huang
f5dd00e4cb dt-bindings: rockchip: Fix typos in Rockchip copyright notice
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I5472169c1ae0718a9aa5039e214f924e1a4e3e54
2025-01-22 19:24:36 +08:00
Tao Huang
12d321f646 clk: rockchip: Fix typo in Rockchip copyright notice
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I8474a4e94732570799ea1da051a706e45a0b72a3
2025-01-22 19:24:36 +08:00
Tao Huang
107455b759 dma-buf-cache: Fix typo in Rockchip copyright notice
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Id228cc6a7088a4f7c1294d42d3320b3c48e277b9
2025-01-22 19:24:36 +08:00
Tao Huang
776463ab06 mfd: max96745: Fix typo in Rockchip copyright notice
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ic6759911b12d5c17e0bd9ec13aa0ba5711c11952
2025-01-22 19:24:36 +08:00
Tao Huang
ba11da5f7f mfd: max96755f: Fix typo in Rockchip copyright notice
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I53ed383dadd3b245bf8db394d9ef653583874039
2025-01-22 19:24:36 +08:00
Tao Huang
de7d1186a8 mfd: rk618: Fix typo in Rockchip copyright notice
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ic13d8fedd438b01d84aebef9616d928cb9c9e1a4
2025-01-22 19:24:36 +08:00
Tao Huang
b3ea65948c mfd: rk630: Fix typo in Rockchip copyright notice
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I8589ab0af02fc1db635ce90fc5c46aec8efb8000
2025-01-22 19:24:35 +08:00
Tao Huang
8e8bec3797 mtd: bbt_store: Fix typos in Rockchip copyright notice
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I4fb28f10580711d2c524c04b0bc94dc4cb9f2d6e
2025-01-22 19:24:35 +08:00
Tao Huang
d81dbd906e platform_data: spi-rockchip: Fix typo in Rockchip copyright notice
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I08bbc211c5a2792892daf4f3fdda50fab3db7964
2025-01-22 19:12:03 +08:00
Tao Huang
aef257897e power: cw2015_battery: Fix typo in Rockchip copyright notice
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ib295c22f40959f70da2fb308d25647cd1bc9fe8f
2025-01-22 19:11:09 +08:00