Commit Graph

1268880 Commits

Author SHA1 Message Date
Zefa Chen
f8d2bb2e07 media: i2c: cam-tb-setup add param of skip_frame_interval
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I4e03f309aa952ddde028df5d845164a33aacbfb2
2024-04-12 18:40:24 +08:00
Zefa Chen
38624894a9 media: rockchip: vicap support restart capture one frame with aov sinngle frame mode
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I1ce89f84d568b14fc59bd0ace774310c3d4b3a98
2024-04-12 18:40:24 +08:00
Zefa Chen
55f78a749b media: rockchip: vicap fixes error of restart stream of AOV
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I68cfb62e10dc493dca6f638a95c1ae258f079549
2024-04-12 18:40:24 +08:00
Zefa Chen
9f06768123 media: rockchip: vicap fixes one buffer support with rdbk aotu
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Ib98aa45830cbafb6afb4d7a991ed42c813764f3d
2024-04-12 18:40:24 +08:00
Zefa Chen
c08df6d37f media: rockchip: vicap support config reserved buf num
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I3e2baabba29fbc1494c490ac45f3bbcf5a8bf6d3
2024-04-12 18:40:24 +08:00
Guochun Huang
fb38a757f6 drm/rockchip: dw-dp: fix enable single stream of dp source device in sst mode
Type: Fix
Redmine ID: #476810
Associated modifications: gerrit links
Test: test method

Fixes: f07a5c3cf0 ("drm/rockchip: dw-dp: optimeize disable/enable dp flow")
Change-Id: I6e9befde28809215802389903cab96e0fb8c5dc3
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
2024-04-12 17:25:38 +08:00
Jianwei Fan
80647eb888 media: i2c: rk628: fix csc process mode and add range switch by user
1.support set output range by user
2.fix csc process color space and range config
3.add adobe YUV/RGB and 2020 YUV/RGB support

Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: I02ce6ae17c94f51b44d5b6096e1185e1fbb3e3e9
2024-04-12 15:58:34 +08:00
Jianwei Fan
75f62d85a6 media: i2c: rk628: add txdata and txbytehs reset when soft reset
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: I24c738e91107de252cf41270f7aafd3caa51fff6
2024-04-12 15:58:14 +08:00
Jianwei Fan
dfb6365006 media: i2c: rk628: clear interrupt should before process it
Change-Id: Id00207bf988b07d8e6b2b886dd7d7bf4f5bdd679
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
2024-04-12 15:57:42 +08:00
Jianwei Fan
7e2d3c490f media: i2c: rk628: fix CSI config valid immediately
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: Ibe48d5bc702522fb266e3d7cc4987a6c3aa82aa0
2024-04-12 11:25:25 +08:00
Cai Wenzhong
3c227060bc arm64: configs: rk3576_vehicle.config: add CONFIG_VIDEO_MAXIM_CAM_DUMMY
Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: I4fe33d0efdee595342d9a2da175372800d917bae
2024-04-11 19:47:43 +08:00
Cai Wenzhong
d5d7a649c9 arm64: configs: rk3588_vehicle.config: add CONFIG_VIDEO_MAXIM_CAM_DUMMY
Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: I31287deac0293f837b4c1680031e11e75e454870
2024-04-11 19:47:43 +08:00
Cai Wenzhong
eb1d8ea2ce media: i2c: maxim: driver version v3.02.00
Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: I1582b70b760ed71881ebffd826a8c2b18705c8b7
2024-04-11 19:47:43 +08:00
Cai Wenzhong
6a63912fdc arm64: dts: rockchip: add rk3588-vehicle-evb-maxim-max9671(/2)2-dphy3-dummy.dtsi
Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: I50d3ee28ac3bdee625dfadc31baf24c971d556ca
2024-04-11 19:47:43 +08:00
Cai Wenzhong
2ad5f7b7bf media: i2c: maxim: local: support mode add crop rect dts config
1. support mode dst: crop-rect = <left top width height>
2. v4l2 get_selection: crop rect = [left, top, width, height]

Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: Ieab812795fad8f2d8cd3618a924f9757ff952429
2024-04-11 19:47:43 +08:00
Cai Wenzhong
3267b452f2 media: i2c: maxim: remote: add dummy sensor driver
Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: Ibb3fa990044857bd8cf20fc4f54e4fc089aa5ec4
2024-04-11 19:47:43 +08:00
Cody Xie
c534e7e6ac arm64: dts: rockchip: Add board dts rk3576-vehicle-evb-v10-linux
Change-Id: I6cce3abaf74a3ab133ce2d98669bf5d9ce277f66
Signed-off-by: Cody Xie <cody.xie@rock-chips.com>
2024-04-11 16:37:41 +08:00
Zhibin Huang
e219b757a2 drm/panel: panel-simple: delete pm_runtime
In upstream patch, runtime pm is used to avoid excessive unprepare/
prepare.

However, some DSI panels need to be powered off and on again before
reloading the initialization sequence. If set the auto_suspend and
delay time is set to 1s, the suspend/resume callback function cannot
be entered when sleeping/waking up quickly, the power of panel cannot
be restarted, causing this timing to be abnormal and causing the panel
to not work properly.

In kernel 5.10, pm_runtime has not been used in panel-simple, but it
still runs stably in panel applications. Considering the above
reasons, we chose to revert the submission of pm_runtime upstream.

Type: Fix
Redmine ID: 460825 468692
Associated modifications:
    commit 3235b0f20a ("drm/panel: panel-simple: Use runtime pm to
    avoid excessive unprepare / prepare")
Test: N/A

Signed-off-by: Zhibin Huang <zhibin.huang@rock-chips.com>
Change-Id: I348e1a860e528cf4bee7ce76de0ea13c18fddd90
2024-04-11 16:22:30 +08:00
Caesar Wang
badbb91c40 arm64: dts: rockchip: enable dp0 sound for rk3576-evb1.dtsi
Change-Id: I4ac91cb2c76bbfa8778bb8fc79d90b3adaa409e1
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
2024-04-11 16:02:41 +08:00
Chen Shunqing
800b7a4984 media: i2c: rk628 add debugfs
Type: Function
Redmine ID: N/A
Associated modifications: N/A
Test:
enable rk628 debug:
    echo 1 > /d/rk628/3-0050/debug

hdmirx status:
    cat /d/rk628/3-0050/hdmirx/status

hdmirx hdcp:
    cat /d/rk628/3-0050/hdmirx/hdcp/enable
    echo 1 > /d/rk628/3-0050/hdmirx/hdcp/enable
    cat /d/rk628/3-0050/hdmirx/hdcp/status

Change-Id: I638710c3e4c60d15b9ca1d0a2d5d42d581bd94ff
Signed-off-by: Chen Shunqing <csq@rock-chips.com>
2024-04-11 15:36:25 +08:00
Jianwei Fan
1228527277 media: i2c: rk628: add reset rkcif when error interrupts
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: I31f4409fe2b4f52c04d4035ad4525c9e80f24673
2024-04-11 14:57:25 +08:00
Jianwei Fan
0e43952c98 media: platform: vicap export external soft reset function
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: Ib8e64185eeb237bda5ab202f24d44331d98fb861
2024-04-11 14:41:56 +08:00
Finley Xiao
c9fc251f1f arm64: dts: rockchip: rk3576: Add low temp config for opp table
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Iba3ae4544e51a6902971a4d026e271a2191a8167
2024-04-11 14:36:29 +08:00
Frank Wang
45eac64a36 phy: rockchip: inno-usb2: add more debug print
This adds more step prints make easy to debug.

Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Change-Id: Icf48b7d9e0d254db2fc75d3fdf713f901549e0e9
2024-04-11 14:19:30 +08:00
Zhang Yubing
fcc32041a4 drm/rockchip: dw-dp: register audio codec when dp port enable
Change-Id: I310c512fa388f7303da16b30be1d7a07dfe17081
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2024-04-10 19:34:45 +08:00
Zhang Yubing
d3a35aa83c drm/rockchip: dw-dp: avoid register device use the same node
when register 2 platform device use the same device node,
they will request the some pinctrl resource and cause
conflict. Don't use the same device node th register device
can avoid this issue.

Change-Id: I0a97bf50b80801ad09035554f2438c1c21580c1a
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2024-04-10 19:34:45 +08:00
Zhibin Huang
90480c88a8 arm64: dts: rockchip: normalize for dual-channel dsi
Signed-off-by: Zhibin Huang <zhibin.huang@rock-chips.com>
Change-Id: I04fd3ab4c1c09cc946957d8e1013ed214505ab90
2024-04-10 19:32:38 +08:00
Zhibin Huang
70d5c5d774 ARM: dts: rockchip: rk3288 boards: normalize for dual-channel dsi
Signed-off-by: Zhibin Huang <zhibin.huang@rock-chips.com>
Change-Id: Ie172d4d3821ef548149ce64f3e9d3eae5e83bdde
2024-04-10 19:32:16 +08:00
Guochun Huang
49a3a07ab7 drm/rockchip: dsi2: normalize for dual-channel
Change-Id: Ia1687f29183315d73aeaecd848e340e58a73717a
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
2024-04-10 19:31:34 +08:00
Zhibin Huang
6e287635a8 drm/rockchip: dsi: add support swap two channel data of MIPI
Signed-off-by: Zhibin Huang <zhibin.huang@rock-chips.com>
Change-Id: Ib9dd986da26bff9fb744e592522c332e721e03ac
2024-04-10 19:31:34 +08:00
Zhibin Huang
4f489b9d96 drm/rockchip: dsi: normalize for dual-channel
Signed-off-by: Zhibin Huang <zhibin.huang@rock-chips.com>
Change-Id: I8241ba018f3333481fa0ec63e009755a1a6c7f17
2024-04-10 19:31:34 +08:00
Zefa Chen
2d4661c496 media: rockchip: vicap disable dma adapter when use hdmi input
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I20a47ca718242eb253797c851b85189b5fcf1829
2024-04-10 17:40:39 +08:00
Wangqiang Guo
4fddfc26ca media: i2c: rk628: fix color space err on "RGB" format.
Change-Id: If950c7971143a411f2a83ccda92afafdb047c2d7
Signed-off-by: Wangqiang Guo <kay.guo@rock-chips.com>
2024-04-10 08:55:28 +08:00
Guochun Huang
77b8a97e6d drm/rockchip: analogix_dp: fix Condition of CDR fail
In DP spec 1.3, Condition of CR fail are outlined
in section 3.5.1.2.2.1, figure 3-20:

1. Maximum Voltage Swing reached
2. Same Voltage five times

The following conditions have been optimized:
1. Training of CDR still failed while maximum voltage swing has been applied and configured
2.Removed the redundant judgment for the maximum pre-emphasis level reached

Change-Id: I829437e0294663a6cb1f31feb91e1d6a468ed681
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
2024-04-09 19:53:05 +08:00
Weixin Zhou
4d0cc7b05a arm64: dts: rockchip: rk3576-eink: disable unuse node display_subsystem
Signed-off-by: Weixin Zhou <zwx@rock-chips.com>
Change-Id: Ib473e4d1e1af40c05cc2a33085764a93fdb3a092
2024-04-09 19:52:35 +08:00
Frank Wang
cda3d64772 phy: rockchip: inno-usb2: fix deadlock when using extcon_set_state_sync
The tcpm tx timeout cause a deadlock among these mutex locks.
 - rport->mutex in drivers/phy/rockchip/phy-rockchip-inno-usb2.c
 - phy->mutex in drivers/phy/phy-core.c
 - port->lock in drivers/usb/typec/tcpm/tcpm.c

The kernel report the following hung_task messages:

[ 4393.667144][   T69] Workqueue: events_freezable __dwc3_set_mode
[ 4393.667175][   T69] Call trace:
[ 4393.667187][   T69]  __switch_to+0xf8/0x134
[ 4393.667209][   T69]  __schedule+0x5e8/0x96c
[ 4393.667226][   T69]  schedule+0x7c/0xe4
[ 4393.667244][   T69]  schedule_preempt_disabled+0x24/0x40
[ 4393.667263][   T69]  __mutex_lock+0x3a4/0x950
[ 4393.667282][   T69]  __mutex_lock_slowpath+0x14/0x20
[ 4393.667300][   T69]  mutex_lock+0x38/0x70
[ 4393.667317][   T69]  rockchip_usb2phy_power_on+0x60/0x1e0
[ 4393.667339][   T69]  phy_power_on+0x8c/0x108
[ 4393.667357][   T69]  dwc3_core_init+0xbbc/0x17ac
[ 4393.667377][   T69]  dwc3_resume_common+0x5c/0x4b8
[ 4393.667396][   T69]  dwc3_runtime_resume+0x28/0x64
[ 4393.667416][   T69]  pm_generic_runtime_resume+0x28/0x3c
[ 4393.667437][   T69]  genpd_runtime_resume+0x1fc/0x384
[ 4393.667456][   T69]  __rpm_callback+0x7c/0x3c4
[ 4393.667477][   T69]  rpm_resume+0x43c/0x678
[ 4393.667496][   T69]  __pm_runtime_resume+0x4c/0x90
[ 4393.667515][   T69]  __dwc3_set_mode+0x5c/0x910
[ 4393.667534][   T69]  process_one_work+0x1a8/0x3b8
[ 4393.667557][   T69]  worker_thread+0x25c/0x430
[ 4393.667577][   T69]  kthread+0xec/0x1b8
[ 4393.667597][   T69]  ret_from_fork+0x10/0x20

[ 4393.667713][   T69] Call trace:
[ 4393.667725][   T69]  __switch_to+0xf8/0x134
[ 4393.667744][   T69]  __schedule+0x5e8/0x96c
[ 4393.667761][   T69]  schedule+0x7c/0xe4
[ 4393.667778][   T69]  schedule_preempt_disabled+0x24/0x40
[ 4393.667796][   T69]  __mutex_lock+0x3a4/0x950
[ 4393.667814][   T69]  __mutex_lock_slowpath+0x14/0x20
[ 4393.667833][   T69]  mutex_lock+0x38/0x70
[ 4393.667850][   T69]  phy_set_mode_ext+0x3c/0x88
[ 4393.667868][   T69]  dwc3_usb_role_switch_set+0x30/0x70
[ 4393.667887][   T69]  usb_role_switch_set_role+0x48/0x80
[ 4393.667907][   T69]  tcpm_set_roles+0xc0/0x128
[ 4393.667925][   T69]  run_state_machine+0x8d8/0x1964
[ 4393.667942][   T69]  tcpm_state_machine_work+0x84/0xcc
[ 4393.667963][   T69]  kthread_worker_fn+0xf4/0x228
[ 4393.667982][   T69]  kthread+0xec/0x1b8
[ 4393.668001][   T69]  ret_from_fork+0x10/0x20

[ 4393.668641][   T69] Workqueue: events rockchip_chg_detect_work
[ 4393.668664][   T69] Call trace:
[ 4393.668675][   T69]  __switch_to+0xf8/0x134
[ 4393.668694][   T69]  __schedule+0x5e8/0x96c
[ 4393.668711][   T69]  schedule+0x7c/0xe4
[ 4393.668729][   T69]  schedule_preempt_disabled+0x24/0x40
[ 4393.668747][   T69]  __mutex_lock+0x3a4/0x950
[ 4393.668765][   T69]  __mutex_lock_slowpath+0x14/0x20
[ 4393.668784][   T69]  mutex_lock+0x38/0x70
[ 4393.668801][   T69]  tcpm_psy_set_prop+0x1ec/0x334
[ 4393.668819][   T69]  power_supply_set_property+0x28/0x3c
[ 4393.668840][   T69]  charger_extcon_notifier+0x46c/0x6e4
[ 4393.668858][   T69]  raw_notifier_call_chain+0x44/0x70
[ 4393.668876][   T69]  extcon_sync+0x124/0x2e4
[ 4393.668895][   T69]  extcon_set_state_sync+0x2c/0x3c
[ 4393.668913][   T69]  rockchip_usb2phy_otg_sm_work+0x2b8/0x48c
[ 4393.668934][   T69]  rockchip_chg_detect_work+0x460/0x68c
[ 4393.668954][   T69]  process_one_work+0x1a8/0x3b8
[ 4393.668975][   T69]  worker_thread+0x25c/0x430
[ 4393.668995][   T69]  kthread+0xec/0x1b8
[ 4393.669014][   T69]  ret_from_fork+0x10/0x20

Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Change-Id: I002878b1e2ac23b6c4e9e2daf6d1bd7cd8f86d0a
2024-04-09 19:44:08 +08:00
Sandy Huang
8d5b857b29 drm/rockchip: vop2: Fix UAF error at incorrect dts configuration
If the dts enable display_subsystem and vop, but the connector is
disabled, the KASAN can detect the following error:

[   10.668100] rockchip-drm display-subsystem: failed to bind
27d00000.vop (ops vop2_component_ops): -19
[   10.671051] BUG: KASAN: use-after-free in drm_mode_config_cleanup+0x15c/0x3f4
[   10.671088] Read of size 8 at addr ffffff80c68958d8 by task swapper/0/1
[   10.671116]
[   10.671137] CPU: 7 PID: 1 Comm: swapper/0 Not tainted 6.1.57 #4596
[   10.671168] Hardware name: Rockchip RK3576 EVB1 V10 Board (DT)
[   10.671191] Call trace:
[   10.671211] dump_backtrace+0xf4/0x114
[   10.671244] show_stack+0x18/0x24
[   10.671274] dump_stack_lvl+0x6c/0x90
[   10.671304] print_report+0x15c/0x4a0
[   10.671333] kasan_report+0xc4/0x11c
[   10.671360] __asan_load8+0x94/0x98
[   10.671388] drm_mode_config_cleanup+0x15c/0x3f4
[   10.671417] rockchip_drm_bind+0x2b4/0x350
[   10.671448] try_to_bring_up_aggregate_device+0x25c/0x2c0
[   10.671479] component_master_add_with_match+0x1bc/0x204
[   10.671509] rockchip_drm_platform_probe+0x3d4/0x3ec
[   10.671541] platform_probe+0xd4/0xf4

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I96d7fe2322f560478d2ce51c35f6a14f44d39c7a
2024-04-09 17:57:06 +08:00
Jeffy Chen
ce94130e61 ext4: Enable DISCARD by default
It improves the performance and lifespan of some storages by enabling
the operating system to inform the drive when data blocks are no longer
in use, allowing for more efficient garbage collection and wear
leveling.

To disable it, use the nodiscard mount option.

Change-Id: I215ca87c00f32908c1ae233bc9304e7b647f60ea
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2024-04-09 16:10:43 +08:00
Lin Jinhan
01f0b83ddf media: i2c: ov50c40: use linkfreq 1250M for 4096x3072
The current linkfreq=750M is not working properly on rk3576 dphy3.

[   82.433231] mipi3-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[   82.433289] mipi3-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[   82.433303] mipi3-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[   82.433317] mipi3-csi2-hw ERR1:0x3000000 (crc,vc: 0 1)
[   82.433403] mipi3-csi2-hw ERR1:0x3000000 (crc,vc: 0 1)
[   82.433437] mipi3-csi2-hw ERR1:0x1000000 (crc,vc: 0)
[   82.433464] mipi3-csi2-hw ERR1:0x2000000 (crc,vc: 1)
[   82.433493] mipi3-csi2-hw ERR1:0x2000000 (crc,vc: 1)

Change-Id: Iecd7c4990e312b3245aa630da71cc686ef90a373
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
2024-04-09 15:43:23 +08:00
Wu Liangqing
9cf8c1b29c arm64: dts: rockchip: rk3399-sapphire-excavator-edp-avb: rewrite bootargs for gki
Change-Id: I0b294097a1db25ba112b0161edfa9b358a8ff280
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
2024-04-09 15:41:47 +08:00
Cai YiWei
3b4779dbfc media: rockchip: isp: default readback mode for multi sensor
Change-Id: Iebbdae5c88ccb8b50593e25684fb7874a77310b1
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2024-04-09 09:24:37 +08:00
Cai YiWei
1aef9b5255 media: rockchip: isp: aiisp two buf
bay3d iir_buf->read->NN->write->aiisp_buf->isp

Change-Id: I5bfd944f84a9a01639bb9488926e41468b0173ec
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2024-04-09 09:24:30 +08:00
Jon Lin
0b9cb72c24 net: wireless: rockchip_wlan: bcmdhd: Support wait l1ss state before stop dev
Change-Id: I25295fea65b9e3e5051937885739cd4f8efa8386
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-04-08 19:56:14 +08:00
Jon Lin
daf69def71 PCI: aspm_ext: Supoprt to check l1ss state
Change-Id: I585d01908751cefb66935951d42cd854299469fa
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-04-08 19:56:14 +08:00
William Wu
e136756b81 phy: rockchip-inno-usb2: Add independent configuration for px30
The px30 use the same phy configuration as rk3328,
however, in fact, they need different phy tuning
parameter, especially the ID Detector pin, px30
support the iddig status detection, but rk3328 not
support. Therefore, this patch adds independent
configuration for px30.

Fixes: 22d153d2eb ("phy: rockchip-inno-usb2: fix USB OTG not working in HOST mode for RK3328")
Change-Id: I8d6d581f3e0b91d7fa06d9c569579cdf6ba8d4bb
Signed-off-by: William Wu <william.wu@rock-chips.com>
2024-04-08 19:45:11 +08:00
Sandy Huang
8d62bc8475 drm/rockchip: vop2: check xmirror/ymirror/rotate90/rotate270 for cluster
1. Cluster can't support xmirror/rotate90/rotate270 when it isn't fbc
format.
2. Cluster can't support xmirror/ymirror/rotate90/rotate270 when it is
tiled format.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I191c090d69177f13b0352a0df452fc050f66a74c
2024-04-08 19:33:32 +08:00
YouMin Chen
c0abcaf26c arm64: dts: rockchip: rk3576-eink: config dmc wait-mode
Change-Id: If0dc2108f79be4275600e1f79886724fa9e6936e
Signed-off-by: YouMin Chen <cym@rock-chips.com>
2024-04-08 15:42:06 +08:00
YouMin Chen
49413f3975 dt-bindings: soc: rockchip-system-status: add DMC_WAIT_MODE_EBC_VBANK
Change-Id: Ib56c43db97b90b4f7d37dddd25b2e0896b76e7ba
Signed-off-by: YouMin Chen <cym@rock-chips.com>
2024-04-08 15:41:54 +08:00
Guochun Huang
74ecc03c86 drm/panel: simple: differentiated DSC backlight naming
when two single DSI work simultaneously without defining
the backlight, there will be a naming conflict as follows:

sysfs: cannot create duplicate filename '/class/backlight/dcs-backlight'

Change-Id: I25c9da720595322cd8136b715efc7822bd7e04e9
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
2024-04-08 15:32:19 +08:00
Damon Ding
458cc490ab BACKPORT: FROMLIST: pwm: Add a software PWM which toggles a GPIO from a high-resolution timer
Add a software PWM which toggles a GPIO from a high-resolution timer.

This will naturally not be as accurate or as efficient as a hardware
PWM, but it is useful in some cases.  I have for example used it for
evaluating LED brightness handling (via leds-pwm) on a board where the
LED was just hooked up to a GPIO, and for a simple verification of the
timer frequency on another platform.

Since high-resolution timers are used, sleeping gpio chips are not
supported and are rejected in the probe function.

Change-Id: Idbd041a5ab40530886192a913a092643646896ad
Signed-off-by: Vincent Whitchurch <vincent.whitchurch@axis.com>
Co-developed-by: Stefan Wahren <wahrenst@gmx.net>
Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
(cherry picked from https://patchwork.ozlabs.org/project/linux-gpio/patch/20240204220851.4783-3-wahrenst@gmx.net/)
2024-04-07 15:08:25 +08:00