Commit Graph

1072263 Commits

Author SHA1 Message Date
William Wu
2261f3d0d0 usb: dwc3: drd: fix desired sw_mode when drd init for rockchip
On rockchip platforms (e.g. RK3588/RV1106), the dwc3 drd port
can be designed with Type-A interface, and when the drd work
as device mode, the vbus may be set to always on (RK3588 EVB2)
or the vbus is supplied by host.

The current code sets the desired sw_mode to device (peripheral)
when the dwc3 controller is initialized with no usb cable/device
connected, this sets the usb2 phy stay in normal mode. For device
mode with vbus always on (RK3588 EVB2), it's not standard design,
we can allow the usb2 phy to stay in normal mode to detect whether
usb device is connecting to host. But for device mode with vbus
is supplied by host (RV1106 EVB1), we can use the vbus to detect
whether usb device is connecting to host, in this case, the usb2
phy needs to be put in suspend mode by default.

In order to make the usb2 phy in suspend mode by default for
Type-A interface when drd in device mode and vbus isn't always
on, we only set the desired sw_mode to peripheral if the state
of EXTCON_USB it true.

Fixes: 58780864ccc4 ("usb: dwc3: drd: fix desired sw_mode when drd init for rockchip")
Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: I14a1bda0d80c71616007ca983840f3c585c1e6ef
2022-05-16 20:25:04 +08:00
William Wu
00168bb5b5 phy: rockchip: inno-usb2: fix otg port with vbus always on
The otg port on Rockchip platforms can be designed in
three different hardware circuits with Type-A interface.

1. RK3588 EVB2 Type-A OTG0 port with vbus is controlled
   by gpio, and vbus is always in high level.

2. RV1106 EVB1 Type-A OTG port with standard vbus designed
   that vbus isn't always on, and just depends on the OTG
   mode, that is, when the OTG port work as device mode,
   the vbus is supplied by Host, when the OTG port work
   as host mode, the vbus is always on.

3. RV1103 EVB1 Type-A OTG port has no vbus pin, and we set
   the utmi_bvalid of phy to high from GRF software control.
   In this case, the utmi_bvalid status register is in low
   level, so we can't use the utmi_bvalid status to check the
   utmi_bvalid for RV1103.

In order to support the above three application scenarios
for Type-A OTG port, especially phy runtime suspend control
for device mode, we need this patch.

With this patch, we can fix the following two issues:

1. RV1106 EVB1 Type-A OTG port can't enter phy suspend if
   no usb cable connected.

2. RV1103 failed to switch to device mode by "otg_mode"
   node, because phy enter suspend unexpectedly.

Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: Ia0d388345a4768a721a7e289956bca9684f69a36
2022-05-16 20:23:54 +08:00
William Wu
c8c84e5b9c ARM: dts: rockchip: rv1103: add vbus-always-on property for usb phy
RV1103 USB has no VBUS pin and we set the utmi_bvalid of phy
to come from PERI_GRF_USBPHY_CON2[14], and at the same time
set the utmi_bvalid to high by default. This case like VBUS
pin always on high level, so we need to add "vbus-always-on"
property for RV1103 USB OTG port.

Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: Iae9297b5b9166976bc5d1f8d3a9b8f110a9e5e34
2022-05-16 20:23:41 +08:00
Hangyu Hua
1292f51788 BACKPORT: can: usb_8dev: usb_8dev_start_xmit(): fix double dev_kfree_skb() in error path
commit 3d3925ff64 upstream.

There is no need to call dev_kfree_skb() when usb_submit_urb() fails
because can_put_echo_skb() deletes original skb and
can_free_echo_skb() deletes the cloned skb.

Bug: 228694483
Fixes: 0024d8ad16 ("can: usb_8dev: Add support for USB2CAN interface from 8 devices")
Link: https://lore.kernel.org/all/20220311080614.45229-1-hbh25y@gmail.com
Cc: stable@vger.kernel.org
Signed-off-by: Hangyu Hua <hbh25y@gmail.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Change-Id: I3c9191dd936d82e7c692fad33919b766e69ed7b5
2022-05-16 12:18:04 +01:00
Guochun Huang
f7938741f1 drm/rockchip: dsi2: init connector when external bridge attach no connector
drm_bridge_attach called by a kms driver to link the bridge to
an encoder's chain, mipi driver shall init a drm_connector when
DRM_BRIDGE_ATTACH_NO_CONNECTOR is set which the bridge shall
not create a drm_connector.

Change-Id: I83f16976ce506a38d80d3595c352e7bc263a50b1
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
2022-05-16 17:28:50 +08:00
Xing Zheng
34a21d2794 ASoC: codecs: rv1106_codec: using 0.9*AVDD for MICBIAS by default
The voltage of MICBIAS is 0.975*AVDD, it makes the transistors
close to saturation, and appropriately reducing the voltage
can make the transistor work in a linear amplification state.

Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Change-Id: Ie7713176204d4c5164c2bb2f4597930748413649
2022-05-16 09:44:48 +08:00
Xing Zheng
9a0e6a58aa ASoC: codecs: rv1106_codec: make channels_max is 4 for capture
The acodec may need to form a 2mic+2loopback mode with
"mode1" of “I2STDM Digital Loopback Mode”, so here we
need to specify channel_max as 4, so as not to limit
the maximum number of channels.

Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Change-Id: I7b4eeedcfb27c1c96ec6b69c5c3d33f8a26ff8a2
2022-05-16 09:32:45 +08:00
Wei Liu
82a3c7ee8d ANDROID: GKI: Update symbols to symbol list
Update symbols to symbol list from oppo

8 Added functions:

  [A] 'function int register_tcf_proto_ops(tcf_proto_ops*)'
  [A] 'function int tcf_action_exec(sk_buff*, tc_action**, int, tcf_result*)'
  [A] 'function void tcf_exts_destroy(tcf_exts*)'
  [A] 'function int tcf_exts_dump(sk_buff*, tcf_exts*)'
  [A] 'function int tcf_exts_dump_stats(sk_buff*, tcf_exts*)'
  [A] 'function int tcf_exts_validate(net*, tcf_proto*, nlattr**, nlattr*, tcf_exts*, bool, bool, netlink_ext_ack*)'
  [A] 'function bool tcf_queue_work(rcu_work*, work_func_t)'
  [A] 'function int unregister_tcf_proto_ops(tcf_proto_ops*)'

Bug: 193384408

Signed-off-by: Wei Liu <liuwei.a@oppo.com>
Change-Id: Ie958341612c6f99cf71661d7ff971483e92c4c00
2022-05-13 20:44:22 +00:00
liuhailong
59735a7d31 ANDROID: oplus: Update the ABI xml and symbol list
Leaf changes summary: 2 artifacts changed
Changed leaf types summary: 0 leaf type changed
Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 1 Added function
Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 1 Added variable

1 Added function:

  [A] 'function int __traceiter_android_vh_killed_process(void*, task_struct*, task_struct*, bool*)'

1 Added variable:

  [A] 'tracepoint __tracepoint_android_vh_killed_process'

Bug: 232062955
Change-Id: I46a611d0afbc4313a94106389229c3d2e24a3b6b
Signed-off-by: liuhailong <liuhailong@oppo.com>
2022-05-13 20:12:19 +00:00
Alistair Delva
76c90b9959 UPSTREAM: remoteproc: Fix count check in rproc_coredump_write()
commit f89672cc36 upstream.

Check count for 0, to avoid a potential underflow. Make the check the
same as the one in rproc_recovery_write().

Fixes: 3afdc59e43 ("remoteproc: Add coredump debugfs entry")
Signed-off-by: Alistair Delva <adelva@google.com>
Cc: Rishabh Bhatnagar <rishabhb@codeaurora.org>
Cc: stable@vger.kernel.org
Cc: Ohad Ben-Cohen <ohad@wizery.com>
Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Cc: Sibi Sankar <sibis@codeaurora.org>
Cc: linux-remoteproc@vger.kernel.org
Cc: kernel-team@android.com
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220119232139.1125908-1-adelva@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Bug: 227408567
Signed-off-by: Chunhui Li <chunhui.li@mediatek.com>
Change-Id: I57eb3dd2a7487e57f460cc9cce0097f139ed9da7
2022-05-13 15:07:09 +00:00
Finley Xiao
4c8bca36c7 arm64: dts: rockchip: rk3588s: Change idle threshold frequency to 2208MHz
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Idbe6c571d997034a282c49a141157d7896fb7f8b
2022-05-13 17:35:25 +08:00
Zhang Yubing
c443ea4939 drm/rockchip: dw-dp: adjuset pre-emphasis and swing setting
According to DP 1.4a 3.5.1.2, when a DP controller reads a request
pre-emphasis and swing that beyond DP standard's limits, the dp
controller shall set the pre-emphasis level according to the request
and set the highest voltage swing level that it can output with the
given pre-emphasis level.

When the pre-emphasis or swing reach the max level that the dp
controller can output, the MAX_PRE-EMPHASIS_REACHED or
MAX_SWING_REACHED bit should be set in DPCD TRAINING_LANEx_SET
registers.

Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Change-Id: I5c0529ee991248acbc1689c6e1b0f4719759f167
2022-05-13 17:15:18 +08:00
Jianwei Fan
8b6e363e11 media: i2c: s5k3l6xx: fix start straem sequential and add flip support
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: I8c7302eac2a0129dcdb7a7c14b686d54b257853a
2022-05-13 17:12:22 +08:00
Steffen Klassert
3e71aa523e BACKPORT: esp: Fix possible buffer overflow in ESP transformation
commit ebe48d368e upstream.

The maximum message size that can be send is bigger than
the  maximum site that skb_page_frag_refill can allocate.
So it is possible to write beyond the allocated buffer.

Fix this by doing a fallback to COW in that case.

v2:

Avoid get get_order() costs as suggested by Linus Torvalds.

Bug: 227452856
Fixes: cac2661c53 ("esp4: Avoid skb_cow_data whenever possible")
Fixes: 03e2a30f6a ("esp6: Avoid skb_cow_data whenever possible")
Reported-by: valis <sec@valis.email>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Tadeusz Struk <tadeusz.struk@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Change-Id: I2c7f97914138271e7788adfcebbd0b2b8b43cdcb
Signed-off-by: Lee Jones <lee.jones@linaro.org>
2022-05-13 09:53:56 +01:00
Wu Liangqing
aa43b7e67d arm64: dts: rockchip: rk3588s-tablet: add uboot charge suspend node
Change-Id: I664b07c341be806ea47b71ca182c1e024247551e
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
2022-05-13 16:09:42 +08:00
Zhenhua Huang
1fe13c137b UPSTREAM: mm: fix page_owner initializing issue for arm32
Page owner of pages used by page owner itself used is missing on arm32
targets.  The reason is dummy_handle and failure_handle is not initialized
correctly.  Buddy allocator is used to initialize these two handles.
However, buddy allocator is not ready when page owner calls it.  This
change fixed that by initializing page owner after buddy initialization.

The working flow before and after this change are:
original logic:
 1. allocated memory for page_ext(using memblock).
 2. invoke the init callback of page_ext_ops like page_owner(using buddy
    allocator).
 3. initialize buddy.

after this change:
 1. allocated memory for page_ext(using memblock).
 2. initialize buddy.
 3. invoke the init callback of page_ext_ops like page_owner(using buddy
    allocator).

with the change, failure/dummy_handle can get its correct value and page
owner output for example has the one for page owner itself:

  Page allocated via order 2, mask 0x6202c0(GFP_USER|__GFP_NOWARN), pid 1006, ts 67278156558 ns
  PFN 543776 type Unmovable Block 531 type Unmovable Flags 0x0()
    init_page_owner+0x28/0x2f8
    invoke_init_callbacks_flatmem+0x24/0x34
    start_kernel+0x33c/0x5d8

Link: https://lkml.kernel.org/r/1603104925-5888-1-git-send-email-zhenhuah@codeaurora.org
Signed-off-by: Zhenhua Huang <zhenhuah@codeaurora.org>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
(cherry picked from commit 7fb7ab6d61)
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: I5bdf1274eba27dacd41b92246c70bb41a69bd87e
2022-05-13 14:45:20 +08:00
Damon Ding
60788a1442 drm/rockchip: vop: add vop_reg interlace_read for rv1106
It is necessary for rv1106 to enable win interlace_read
feature when using 'i' display mode, like 720x480i and
720x576i.

Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: I174043875d2b19f0eebaa43f3555de3ca6d96c00
2022-05-13 14:33:52 +08:00
Su Yuefu
e5c40bc9d0 ARM: dts: rockchip: rv1106-evb-v10: RV1106 rtc open by default
Signed-off-by: Su Yuefu <yuefu.su@rock-chips.com>
Change-Id: I9456d17dae8b24bf8a0a8041efc8eef2592e48a1
2022-05-13 14:27:19 +08:00
Su Yuefu
ed45a03577 ARM: rv1106-evb.config: add rockchip rtc build config
Signed-off-by: Su Yuefu <yuefu.su@rock-chips.com>
Change-Id: I1b154688c8850de49b24521b0081f5bd6398e5cf
2022-05-13 14:22:57 +08:00
Tao Huang
dd9ba4d35b ARM: rv1106-evb.config: Update by diffconfig
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I8149173f7a3a5182e21c7f723d60ddf705723252
2022-05-13 14:20:47 +08:00
Zhichao Yu
adc69b3cef ARM: dts: rockchip: rv1106-ipc: add coherent_pool=0 to bootargs
Signed-off-by: Zhichao Yu <zhichao.yu@rock-chips.com>
Change-Id: I451f5b220e5395a7af78cdc4989e086fc977108e
2022-05-13 14:15:15 +08:00
Ding Wei
bfb97da050 rockchip: video: mpp: Add soft reset+disable_irq before power off
Change-Id: I62feeae483092bbd12edb185c956acc00b27b1c3
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
2022-05-13 14:14:02 +08:00
Suren Baghdasaryan
66f0c91b2f ANDROID: Fix the drain_all_pages default condition broken by a hook
The condition introduced by a patch adding a vendor hook to skip
drain_all_pages is invalid and changes the default behavior for CMA
allocations. Fix the condition to restore default behavior.

Fixes: a2485b8abd ("ANDROID: vendor_hooks: Add hooks to for alloc_contig_range")
Bug: 232357688
Reported-by: Yong-Taek Lee <ytk.lee@samsung.com>
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: I686ad9dff57f604557f79cf4dc12cde55474e533
2022-05-13 05:04:50 +00:00
Dingxian Wen
5c5251eabd media: rockchip: hdmirx: remove LTE_340MHz_scramble support from edid
Signed-off-by: Dingxian Wen <shawn.wen@rock-chips.com>
Change-Id: I3b82ab2786b908cfd188348afc96049749c2f79d
2022-05-13 11:26:29 +08:00
Dingxian Wen
6f4e90e375 media: rockchip: hdmirx: add wdt support
Reset the system through the watchdog when the system crashes with a
very low probability.

Signed-off-by: Dingxian Wen <shawn.wen@rock-chips.com>
Change-Id: I075852d6fcf9fbf5428c3b9ec794d58c3471a8af
2022-05-13 11:03:09 +08:00
XiaoDong Huang
187a20276c firmware: rockchip_sip: support wdt config
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
Change-Id: I49bceb0dfe0c6bed797d34e98a48ab793f91dbce
2022-05-13 11:03:09 +08:00
Yu Qiaowei
2f34117233 video: rockchip: rga3: Fix abnormal request exit process
Update driver version to 1.2.12

Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I4381e4b62ff90e09a148bee56f8bbaa478561570
2022-05-13 10:54:44 +08:00
Jianqun Xu
08a957965d ARM: dts: rockchip: rv1103-evb-v10: add coherent_pool=0 to bootargs
Change-Id: Id5439ae999db5e6bcc77f3b6a21e021622cdd2c7
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2022-05-13 10:37:05 +08:00
Jiri Bohac
393be9a064 UPSTREAM: Revert "xfrm: xfrm_state_mtu should return at least 1280 for ipv6"
commit a6d95c5a62 upstream.

This reverts commit b515d26372.

Commit b515d26372 ("xfrm: xfrm_state_mtu
should return at least 1280 for ipv6") in v5.14 breaks the TCP MSS
calculation in ipsec transport mode, resulting complete stalls of TCP
connections. This happens when the (P)MTU is 1280 or slighly larger.

The desired formula for the MSS is:
MSS = (MTU - ESP_overhead) - IP header - TCP header

However, the above commit clamps the (MTU - ESP_overhead) to a
minimum of 1280, turning the formula into
MSS = max(MTU - ESP overhead, 1280) -  IP header - TCP header

With the (P)MTU near 1280, the calculated MSS is too large and the
resulting TCP packets never make it to the destination because they
are over the actual PMTU.

The above commit also causes suboptimal double fragmentation in
xfrm tunnel mode, as described in
https://lore.kernel.org/netdev/20210429202529.codhwpc7w6kbudug@dwarf.suse.cz/

The original problem the above commit was trying to fix is now fixed
by commit 6596a02295 ("xfrm: fix MTU
regression").

Bug: 232198719
Signed-off-by: Jiri Bohac <jbohac@suse.cz>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Change-Id: If9f9f1015f1a494775f79efe7e84a37b63e48d3c
Signed-off-by: Lina Wang <lina.wang@mediatek.com>
2022-05-12 15:03:25 +00:00
Finley Xiao
36a09bba64 arm64: dts: rockchip: rk3588s: Add more opp node for cpub
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I58880e1ddde285196ea37954f8bef426fd3ba54a
2022-05-12 20:50:56 +08:00
Finley Xiao
6e471ff113 cpufreq: rockchip: Add support to set soc info for rk3588
1. Change length according to speed grade.
2. Set supported platforms according to SoC version and speed grade.

Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I448d3f784216bc034ea2900e5ab837920721cdd0
2022-05-12 20:50:56 +08:00
Finley Xiao
917e7daef8 arm64: dts: rockchip: rk3588s: change cpu npu and gpu opp table
In order to improve yield and stability.

Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I5e5fc7aa3b0a06b2a518cee0bba0c348f9321989
2022-05-12 20:50:56 +08:00
William Wu
a9e2f5f2a7 phy: rockchip: inno-usb2: fix compile warning
This patch fixes the following compile warning:
drivers/phy/rockchip/phy-rockchip-inno-usb2.c:1225:3: warning: Value stored to 'sch_work' is never read
drivers/phy/rockchip/phy-rockchip-inno-usb2.c:1235:4: warning: Value stored to 'sch_work' is never read

Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: I053f5775b28707a45530405084e3df827edde882
2022-05-12 19:04:29 +08:00
Finley Xiao
bdc5bf6b2d arm64: dts: rockchip: rk3588-rk806: Remove vdd gpu regulator-always-on
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I5ce9e0ec39f14c23a3e8aec608f4034308d1f8c4
2022-05-12 18:59:23 +08:00
Finley Xiao
e7fd42c35e MALI: bifrost: disable regulator when pm status is suspended
The system calls pm_runtime_get_noresume() to prevent device
from entering to runtime suspend status when reboot, and the
pm_runtime_put_sync_suspend() is called in a delay work,
so when reboot the power domain may be power on,
but the regulator is disabled, it's not allowed.

Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Ie25451ddf4fc866e93e7272a8d9a809919a96e1d
2022-05-12 18:59:23 +08:00
Finley Xiao
fe111758d6 MALI: bifrost: enable regulator when suspend
When system resume, all power domains will power on in
dpm_noirq_resume_devices(), if vdd gpu is disabled before system
suspend, the pd gpu will failed to power on when system resume,
the detail as follows:

rockchip-pm-domain fd8d8000.power-management:power-controller: failed to get ack on domain 'gpu', target_idle = 0, target_ack = 0, val=0x8080f
Kernel panic - not syncing: panic_on_set_idle set ...
CPU: 0 PID: 1947 Comm: Binder:352_2 Not tainted 5.10.66 #960
Hardware name: Rockchip RK3588 EVB1 LP4 V10 Board (DT)
Call trace:
 dump_backtrace+0x0/0x1c8
 show_stack+0x1c/0x2c
 dump_stack_lvl+0xdc/0x12c
 dump_stack+0x1c/0x64
 panic+0x150/0x3a4
 rockchip_pmu_set_idle_request+0x1f8/0x1fc
 rockchip_pd_power+0x11c/0x1e0
 rockchip_pd_power_on+0x28/0x38
 genpd_sync_power_on+0xf4/0x134
 genpd_resume_noirq+0x70/0xd0
 device_resume_noirq+0x1a8/0x410
 dpm_noirq_resume_devices+0x100/0x55c
 dpm_resume_noirq+0x18/0x34
 suspend_enter+0x33c/0x52c
 suspend_devices_and_enter+0xec/0x338
 enter_state+0x12c/0x3f8
 pm_suspend+0x60/0xcc
 state_store+0x108/0x148
 kobj_attr_store+0x1c/0x34
 sysfs_kf_write+0x40/0x58
 kernfs_fop_write_iter+0xf0/0x194
 vfs_write+0x328/0x390
 ksys_write+0x78/0xe8
 __arm64_sys_write+0x20/0x30
 el0_svc_common+0xc0/0x23c
 do_el0_svc+0x28/0x88
 el0_svc+0x14/0x24
 el0_sync_handler+0x88/0xec
 el0_sync+0x1a8/0x1c0
SMP: stopping secondary CPUs

Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I89f80d37ab2cc61c715bce3f8a25c26552918922
2022-05-12 18:59:23 +08:00
Jason Song
d1ae8597d2 arm64: dts: rockchip: support rk3588s tablet v11, single rk806.
Signed-off-by: Jason Song <sxj@rock-chips.com>
Change-Id: I96f7d494d2470aacde8ea95ba84dd6f5bb50efdc
2022-05-12 18:51:15 +08:00
Steven Liu
d17c82171e ARM: configs: rv1106: Enable ROCKCHIP_AMP
Signed-off-by: Steven Liu <steven.liu@rock-chips.com>
Change-Id: I41ae22d7c45fad742917d48c2399c319fe15e208
2022-05-12 18:50:48 +08:00
Steven Liu
ee2906b73e ARM: dts: rockchip: rv1106: add rv1106-amp.dtsi
Signed-off-by: Steven Liu <steven.liu@rock-chips.com>
Change-Id: I5bb07301307cf6e53ceeb056ed006d18eb89ff68
2022-05-12 18:50:48 +08:00
Wyon Bi
68d8bf81ae arm64: dts: rockchip: rk3588-vehicle-serdes-display: Enable split mode
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: I8b5391ecb732cf00fb38c22b30b9dfd6015bbb9f
2022-05-12 16:56:42 +08:00
Wyon Bi
55f6668552 drm/bridge: Add support for BU18TL82-M/BU18RL82-M
Split the driver code into separate source file

Fixes: 0ca8d654bd ("drm/bridge: Add support for BU18TL82-M/BU18RL82-M")
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: Id46cfbab9b21812432da0db1cfb4306feb79c595
2022-05-12 16:56:42 +08:00
Wyon Bi
c1754005a3 drm/bridge: analogix_dp: Support split mode for bridge chain
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: I22ec16f8b12213d3adf1929bd49e2437085b2485
2022-05-12 16:47:21 +08:00
Wyon Bi
6cc4fe12bb drm/rockchip: dw-dp: Add support for external bridge
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: Ia7f5299a89e8ec0588f95e26c1120dc9cfb990cc
2022-05-12 16:47:08 +08:00
Wyon Bi
130d976f44 drm/rockchip: dw-dp: Support force hpd
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: Iaa4bcb049ae1634b26f1f1ad232fbd574d870b2e
2022-05-12 16:46:02 +08:00
Yifeng Zhao
da1c2c4a2c scsi: sata: re enter sleep is prohibited during wake-up
The work ata_scsi_dev_rescan will hangup and can not wakeup if PM
enter sleep at the sata device  wake-up process.

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: I44045505c2e691102ab90ba3b2ae3031e7bab0a6
2022-05-12 16:45:18 +08:00
aaron.sun
d32e5f2e57 ARM: dts: rockchip: rv1106: Reserved 4k sram memory for mcu
reserved sram memory from 0xff6ff000 to 0xff6fffff for
mcu wrap

Signed-off-by: aaron.sun <aaron.sun@rock-chips.com>
Change-Id: I116476a5d787014088788191acf2cef7f1c921c4
2022-05-12 15:31:55 +08:00
Yandong Lin
731c9ba041 video: rockchip: dvbm: update for mcu update line cnt case
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: I41a502e19a1fd565a0d2d97e2017666540297c12
2022-05-12 15:29:48 +08:00
Yandong Lin
ffc716a9e6 video: rockchip: dvbm: fix start offset calculate err
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: If23f1fb22d2cff9b76c22aff8d7e23eef3f699e7
2022-05-12 15:29:48 +08:00
Zhang Yubing
7c4965dc25 drm/rockchip: dw-dp: filter yuv420 only mode
When the display mode support yuv420, It can get the min bpp
12. If the display mode only support yuv420 and downstream
device don't set VSC_SDP_EXTENSION_FOR_COLORIMETRY_SUPPORTED
bit in DPCD, filtering this mode.

Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Change-Id: I1ba05ce8ad622ba6a25b48025fe2a3efeaa289a1
2022-05-12 15:27:35 +08:00
Huibin Hong
9700637878 arm64: rockchip_defconfig: enable CONFIG_HARDLOCKUP_DETECTOR
Enable CONFIG_HARDLOCKUP_DETECTOR_OTHER_CPU which enable
CONFIG_SOFTLOCKUP_DETECTOR too.

The kernel can detect the lockup that cpu stuck with interrupts disabled.

Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
Change-Id: I34b3f1c99bc99c52c91b84c26c45e01207e60739
2022-05-12 15:13:47 +08:00