Commit Graph

1280353 Commits

Author SHA1 Message Date
Tao Huang
d950bee6db Revert "drm/panel: simple: Add support for BOE NV124FHM-N73 1920x1080 panel"
This reverts commit f67be24239.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ifd888cbb5fd9630a05528dd5639ad58a67493766
2025-02-07 19:48:51 +08:00
Tao Huang
d6992856f6 Revert "drm/panel: simple: Add support for BOE MV270QUM-N10"
This reverts commit db8a437fd3.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Iae5175ce87b3d110cb0cd9bae6b2d0095b7e96ff
2025-02-07 19:48:19 +08:00
Tao Huang
90ca19f9a5 Revert "drm/panel: simple: Add support for BOE MV238QUM-N20"
This reverts commit 7ba25eea80.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I22eda1c029691e4053cd5a8b0f79fdaebcd25fdc
2025-02-07 19:47:46 +08:00
Tao Huang
66190a3935 Revert "drm/panel: simple: Add support for AUO B125HAN03.1 1920x1080 panel"
This reverts commit f712e42bd1.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I71101db366c3d11585944aab606db4dcfa55c849
2025-02-07 19:46:43 +08:00
Tao Huang
a76724bff4 Revert "dt-bindings: Add support for AUO B101EW05 1280x800 panel"
This reverts commit 92c763a6a1.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I5204028bfcde0dc745f08ea6f710442b10c708e6
2025-02-07 19:45:41 +08:00
Lin Jianhua
5abb1bd80b ARM: dts: rockchip: rk3506-evb2-v10: update matrix-keypad
Change-Id: I8fefeb356ae23285300b869eb4640902f1261c91
Signed-off-by: Lin Jianhua <linjh@rock-chips.com>
2025-02-07 15:01:28 +08:00
Huang zhibao
9e2ef257d6 arm64: dts: rockchip: rk3576-evb2: Remove vcc3v3_lcd_n
Signed-off-by: Huang zhibao <hzb@rock-chips.com>
Change-Id: Ieb50556d5ed41c23005137c60153d604906f79c7
2025-02-06 06:32:40 +00:00
Tao Huang
35f9183723 mmc: dw_mmc: Explicitly include linux/pinctrl/consumer.h for pinctrl_select_state
Change-Id: I94a11f222ed5ae7ed3be1b8e69f71a19667aa381
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2025-02-05 18:44:58 +08:00
Tao Huang
47102b506a regulator: rk806: Explicitly include linux/pinctrl/consumer.h
Change-Id: I9b4c7b5ec442536bef78aeec3e0ea151ec670c35
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2025-02-05 18:44:58 +08:00
Tao Huang
7166d5f4bb mfd: rk806: Explicitly include linux/pinctrl/consumer.h
Change-Id: I4cb4f8d7b88319100f5646b4f96fbe5b73cc96a1
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2025-02-05 18:30:08 +08:00
Tao Huang
4f984d8890 ASoC: aw87xxx: Explicitly include vmalloc.h
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Id22433d505871dbaecc5fe717d11393a193bcc1c
2025-02-05 18:24:00 +08:00
Tao Huang
e5dac74356 firmware: rockchip_sip: Explicitly include vmalloc.h
Change-Id: Ibdbd04178e7da485a0187b33c327c7f35c33a8a5
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2025-02-05 18:17:09 +08:00
Tao Huang
b77ddffd87 drm/rockchip: tve: Explicitly include linux/platform_device.h
Change-Id: If99af821b63244229912fc0797d241a211a4fbea
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2025-02-05 17:51:38 +08:00
Tao Huang
c6443c0b46 drm/rockchip: dsi2: Explicitly include linux/platform_device.h
Change-Id: Ie4b6eb3e89618984f7fdc4aeb305b065779552d6
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2025-02-05 17:47:47 +08:00
Tao Huang
643604e150 clk: rockchip: rk3328: Explicitly include linux/platform_device.h
Change-Id: Idfe90228e880090a19ab944f34f13e973b84e20c
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2025-02-05 17:43:38 +08:00
Tao Huang
a355f5a2a0 clk: rockchip: rk1808: Explicitly include linux/platform_device.h
Change-Id: Icdd546d52a9fb37fd96e0b2a628fda41f910561b
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2025-02-05 17:41:50 +08:00
Tao Huang
aa258f62fb input: touchscreen: parade: use "prompt" instead of "bool" for choice prompts
Change-Id: I0119334ded45a6431f5657b64118b14ebfe376e8
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2025-02-05 09:25:52 +00:00
Tao Huang
c9c714620d input: touchscreen: cyttsp5: use "prompt" instead of "bool" for choice prompts
Change-Id: Ie5635f06817a6191be30cbb36d227bb43f7a498f
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2025-02-05 09:25:52 +00:00
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