Commit Graph

1066174 Commits

Author SHA1 Message Date
Cai YiWei
5b28972d97 media: rockchip: isp: fix fbc stop iommu page fault for isp30
Change-Id: I422e99c289c74b14525a21a198d37bbea8337eec
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2021-11-29 16:06:42 +08:00
Zheng Yang
ca885383eb drm/rockchip: dw-dp: support dynamic binding to different vp port
According to the application scenario, DP0/DP1 may be bind to the
same vp port, or different vp port. The corresponding bit in output_if
needs to be set or cleared correctly.

Change-Id: I880946d0c61a209d5a16ff7d2aada43f87a075c5
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
2021-11-29 16:05:47 +08:00
Tao Huang
18a6cae4bb rk: scripts/mkimg: Support Create U-Boot FIT Image use ${BOOT_ITS}
Change-Id: Id878ebf13606f1be324b11d89cb803ec9ed6c209
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2021-11-29 15:17:46 +08:00
Jianqun Xu
146b4dc1de dma-buf: dma-heap set device max_segment_size to DMA_BIT_MASK(32)
With CONFIG_DMA_API_DEBUG_SG enabled built:

[   14.668444][  T369] ------------[ cut here ]------------
[   14.668476][  T369] DMA-API: dma_heap system-uncached: mapping sg segment longer than device claims to support [len=1048576] [max=65536]
[   14.668508][  T369] WARNING: CPU: 1 PID: 369 at kernel/dma/debug.c:1173 debug_dma_map_sg+0x1d4/0x3f8
[   14.668517][  T369] Modules linked in:
[   14.668533][  T369] CPU: 1 PID: 369 Comm: HwBinder:364_2 Not tainted 5.10.43 #53
[   14.668542][  T369] Hardware name: Rockchip RK3588 EVB2 LP4 V10 Board (DT)
[   14.668553][  T369] pstate: 60400009 (nZCv daif +PAN -UAO -TCO BTYPE=--)
[   14.668564][  T369] pc : debug_dma_map_sg+0x1d4/0x3f8
[   14.668574][  T369] lr : debug_dma_map_sg+0x1d4/0x3f8
[   14.668582][  T369] sp : ffffffc015cb3a90
[   14.668591][  T369] x29: ffffffc015cb3ab0 x28: ffffff8003557000
[   14.668605][  T369] x27: 0000000000000011 x26: 0000000000010000
[   14.668619][  T369] x25: ffffffffffffffff x24: ffffffc015cb3c90
[   14.668632][  T369] x23: ffffff80057fec00 x22: ffffff80055c1c00
[   14.668646][  T369] x21: ffffffc011fbf000 x20: 0000000000000011
[   14.668660][  T369] x19: ffffffc011dd9000 x18: ffffffc015ce5050
[   14.668673][  T369] x17: 0000000000000000 x16: 00000000000000d8
[   14.668686][  T369] x15: 0000000000000004 x14: 0000000000003fff
[   14.668699][  T369] x13: ffffffc011e5c9e8 x12: 0000000000000003
[   14.668712][  T369] x11: 00000000ffffbfff x10: 00000000ffffffff
[   14.668725][  T369] x9 : 20e580535cacc400 x8 : 20e580535cacc400
[   14.668738][  T369] x7 : 3d6e656c5b207472 x6 : ffffffc01205b610
[   14.668751][  T369] x5 : ffffffffffffffff x4 : 0000000000000000
[   14.668765][  T369] x3 : ffffffc011b27378 x2 : 0000000000000000
[   14.668777][  T369] x1 : 0000000000000001 x0 : 0000000000000074
[   14.668791][  T369] Call trace:
[   14.668802][  T369]  debug_dma_map_sg+0x1d4/0x3f8
[   14.668814][  T369]  dma_map_sg_attrs+0x7c/0xcc
[   14.668828][  T369]  system_heap_do_allocate+0x78c/0x7d4
[   14.668839][  T369]  system_uncached_heap_allocate+0x18/0x28
[   14.668850][  T369]  dma_heap_ioctl+0x140/0x1f0
[   14.668862][  T369]  __arm64_sys_ioctl+0x94/0xd0
[   14.668875][  T369]  el0_svc_common+0xa4/0x180
[   14.668885][  T369]  do_el0_svc+0x28/0x88
[   14.668897][  T369]  el0_svc+0x14/0x24
[   14.668906][  T369]  el0_sync_handler+0x88/0xec
[   14.668917][  T369]  el0_sync+0x1a8/0x1c0
[   14.668925][  T369] ---[ end trace acb8f73633a08943 ]---

Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: I551ae9da257c1337e857de8a21931594f8d25d3c
2021-11-29 15:13:17 +08:00
Alex Wang
abf624145e arm64: dts: rockchip: add rk3588-nvr-demo-v10-android dts
Change-Id: I02b79559265d714c49292029a02ee83de0be1136
Signed-off-by: Alex Wang <alex.wang@rock-chips.com>
2021-11-29 12:01:48 +08:00
Wangqiang Guo
fbf26729da arm64: dts: rockchip: Modify battery curve for rk3588s tablet
Signed-off-by: Wangqiang Guo <kay.guo@rock-chips.com>
Change-Id: I7d4696eef302b59e633430b4347a17bead62751b
2021-11-29 12:00:03 +08:00
William Wu
17e122ec97 arm64: dts: rockchip: rk3588-nvr-demo: remove hs limit for usb3_0
Because the usb3_0 super-speed phy driver is ready, let's
remove the maximum-speed limit for usb3_0 on nvr demo board.
Add also enable the usbdp_phy1_u3 to force usb3_1 to u2 only.

Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: If8835a667ad9e561d0291130b8fd1fbbe0fc6206
2021-11-29 11:57:26 +08:00
Wyon Bi
ffd1c1b1d6 drm/rockchip: dw-dp: Register aux channel
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: I3bd76c5ba249901179d56db29661ef195839ae3a
2021-11-29 11:56:52 +08:00
Wyon Bi
307b981a4e arm64: configs: rockchip_defconfig: Enable CONFIG_DRM_DP_AUX_CHARDEV
DPCD read:
dd if=/dev/drm_dp_aux0 bs=1 skip=$((0x200)) count=1 status=none | od -tx1

DPCD write:
echo -e -n "\x80" | dd of=/dev/drm_dp_aux0 bs=1 seek=$((0x10a)) count=1 status=none

Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: I2a81b94b466d0e77b8608ea55e5ff91d18931956
2021-11-29 11:53:14 +08:00
Cai YiWei
bc6d4938a4 media: rockchip: isp: fix bigmode for multi device
Change-Id: I5debe62ea15fa8d5f01931aea643f2c982c57f6b
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2021-11-29 10:44:19 +08:00
Andy Yan
edf7edcdee drm/rockchip: vop2: Check PMU_BISR_STATUS register for pd status when bisr enabled
We should check PMU_BISR_STATUS register for
pd on/off status when bisr memory repair is
enabled.

Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Change-Id: If1d0927551ddea9757c70b3a948367132a83ed5c
2021-11-29 10:35:44 +08:00
Zhang Yubing
a1663d7e8a phy: rockchip: usbdp: Fix aux channel polarity setting
It's too late to set the aux channel polarity. Some
sink device will not  send attention cmd to indicate
hpd plug event. Setting the aux channel polarity earlier.
When detecting the connected status is disconnected,
Setting the gpio status to low.

Fixes: 8081c70a82: ("phy: rockchip: usbdp-phy: add pointer check, avoid NULL pointer")
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Change-Id: Ie653a043f9d3cecf489846d7edbd6eca73f5ee28
2021-11-27 16:56:15 +08:00
Wyon Bi
e3093cade8 drm/rockchip: dw-dp: Check hpd status before power down link
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: I3a05b3520d71ef5f0429a2c33933db62f3a2fffc
2021-11-27 11:07:47 +08:00
Jindong Yue
851990cc99 ANDROID: ABI: Add several spi_mem related symbols
Add several spi_mem related symbols required by
spi-nxp-fspi.ko and spi-nor.ko

Leaf changes summary: 11 artifacts changed
Changed leaf types summary: 0 leaf type changed
Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 11 Added functions
Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 0 Added variable

11 Added functions:

  [A] 'function spi_mem_dirmap_desc* devm_spi_mem_dirmap_create(device*, spi_mem*, const spi_mem_dirmap_info*)'
  [A] 'function int spi_mem_adjust_op_size(spi_mem*, spi_mem_op*)'
  [A] 'function bool spi_mem_default_supports_op(spi_mem*, const spi_mem_op*)'
  [A] 'function ssize_t spi_mem_dirmap_read(spi_mem_dirmap_desc*, u64, size_t, void*)'
  [A] 'function ssize_t spi_mem_dirmap_write(spi_mem_dirmap_desc*, u64, size_t, void*)'
  [A] 'function int spi_mem_driver_register_with_owner(spi_mem_driver*, module*)'
  [A] 'function void spi_mem_driver_unregister(spi_mem_driver*)'
  [A] 'function bool spi_mem_dtr_supports_op(spi_mem*, const spi_mem_op*)'
  [A] 'function int spi_mem_exec_op(spi_mem*, const spi_mem_op*)'
  [A] 'function const char* spi_mem_get_name(spi_mem*)'
  [A] 'function bool spi_mem_supports_op(spi_mem*, const spi_mem_op*)'

Bug: 207737303
Signed-off-by: Jindong Yue <jindong.yue@nxp.com>
Change-Id: I6637737f5076cb87fe2180680fd5a3e507b10bc6
2021-11-26 21:43:45 +08:00
Pratyush Yadav
be30f0ce33 UPSTREAM: spi: spi-mem: add spi_mem_dtr_supports_op()
spi_mem_default_supports_op() rejects DTR ops by default to ensure that
the controller drivers that haven't been updated with DTR support
continue to reject them. It also makes sure that controllers that don't
support DTR mode at all (which is most of them at the moment) also
reject them.

This means that controller drivers that want to support DTR mode can't
use spi_mem_default_supports_op(). Driver authors have to roll their own
supports_op() function and mimic the buswidth checks. See
spi-cadence-quadspi.c for example. Or even worse, driver authors might
skip it completely or get it wrong.

Add spi_mem_dtr_supports_op(). It provides a basic sanity check for DTR
ops and performs the buswidth requirement check. Move the logic for
checking buswidth in spi_mem_default_supports_op() to a separate
function so the logic is not repeated twice.

Signed-off-by: Pratyush Yadav <p.yadav@ti.com>
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/r/20210204141218.32229-1-p.yadav@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>

Bug: 207737303
(cherry picked from commit 539cf68cd5)
Change-Id: Iaa3951c2e3f51f265b9bea583a3c8bd4fed80bb7
Signed-off-by: Jindong Yue <jindong.yue@nxp.com>
2021-11-26 21:42:47 +08:00
Jindong Yue
e5dfa89138 ANDROID: gki_defconfig: enable CONFIG_SPI_MEM
Enable SPI memory extension to provide high-level
interface to send memory-like commands, which are
used by vendor SPI controllers, like spi-nxp-fspi.

Bug: 207737303
Signed-off-by: Jindong Yue <jindong.yue@nxp.com>
Change-Id: I9ea58edc1407bead42970c4cc74c5d4a93c99d13
2021-11-26 21:42:46 +08:00
Jindong Yue
bb18be4257 ANDROID: ABI: Add several iio related symbols
Add several iio related symbols required by st_lsm6dsx.ko

Leaf changes summary: 5 artifacts changed
Changed leaf types summary: 0 leaf type changed
Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 5 Added functions
Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 0 Added variable

5 Added functions:

  [A] 'function int iio_device_claim_direct_mode(iio_dev*)'
  [A] 'function void iio_device_release_direct_mode(iio_dev*)'
  [A] 'function int iio_push_event(iio_dev*, u64, s64)'
  [A] 'function int iio_read_mount_matrix(device*, const char*, iio_mount_matrix*)'
  [A] 'function ssize_t iio_show_mount_matrix(iio_dev*, uintptr_t, const iio_chan_spec*, char*)'

Bug: 194108974
Signed-off-by: Jindong Yue <jindong.yue@nxp.com>
Change-Id: I7f7b78d510f120497f597463e69ce35cb7203417
2021-11-26 21:42:41 +08:00
Jindong Yue
1407b7e124 ANDROID: ABI: Update symbol list for IMX
Add below symbols:
 regmap-i3c.ko: dev_to_i3cdev, i3c_device_match_id
 st_lsm6dsx_spi.ko: spi_get_device_id
 micrel.ko: genphy_restart_aneg, phy_modify_mmd
 snd-soc-rpmsg-pcm512x.ko: snd_interval_ranges, snd_pcm_hw_constraint_ratnums
 snd-soc-imx-pcm512x-rpmsg.ko: snd_soc_limit_volume
 goodix.ko: touchscreen_parse_properties, touchscreen_report_pos

Leaf changes summary: 10 artifacts changed
Changed leaf types summary: 0 leaf type changed
Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 10 Added functions
Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 0 Added variable

10 Added functions:

  [A] 'function i3c_device* dev_to_i3cdev(device*)'
  [A] 'function int genphy_restart_aneg(phy_device*)'
  [A] 'function const i3c_device_id* i3c_device_match_id(i3c_device*, const i3c_device_id*)'
  [A] 'function int phy_modify_mmd(phy_device*, int, unsigned int, unsigned short int, unsigned short int)'
  [A] 'function int snd_interval_ranges(snd_interval*, unsigned int, const snd_interval*, unsigned int)'
  [A] 'function int snd_pcm_hw_constraint_ratnums(snd_pcm_runtime*, unsigned int, snd_pcm_hw_param_t, const snd_pcm_hw_constraint_ratnums*)'
  [A] 'function int snd_soc_limit_volume(snd_soc_card*, const char*, int)'
  [A] 'function const spi_device_id* spi_get_device_id(const spi_device*)'
  [A] 'function void touchscreen_parse_properties(input_dev*, bool, touchscreen_properties*)'
  [A] 'function void touchscreen_report_pos(input_dev*, const touchscreen_properties*, unsigned int, unsigned int, bool)'

Bug: 194108974
Signed-off-by: Jindong Yue <jindong.yue@nxp.com>
Change-Id: I824286c114b9a90b779e712b844b7db93d4b57a0
2021-11-26 21:42:23 +08:00
XiaoTan Luo
4ef5723d99 ASoC: es8323: fixed dapm route error
Signed-off-by: XiaoTan Luo <lxt@rock-chips.com>
Change-Id: Idde66be4fc3a32a5d1c496795d5cbf3a49464ea6
2021-11-26 20:47:44 +08:00
Jianhui Wang
94995f4e33 arm64: dts: rockchip: rk3588-tablet.dtsi: Enable rga node
Signed-off-by: Jianhui Wang <wjh@rock-chips.com>
Change-Id: Ia4adc96df7f70aa8c008c81a218d7928cd306e61
2021-11-26 20:46:16 +08:00
Kever Yang
9d98b3fedd arm64: dts: rockchip: rk3588: Fix pcie module clock
PCIe need pipe clock for interface with phy;

Note that pcie controller also need its clock(has been set critical)
ACLK_PHP_GIC_ITS, and ACLK_PCIE_BRIDGE(has been set as parent).

Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Change-Id: I98b2c001e8d0568af482cef8702a73a6cbd661f6
2021-11-26 20:42:48 +08:00
XiaoTan Luo
9e1ddefd50 arm64: configs: rockchip_linux_defconfig: enable SND_SOC_ROCKCHIP_HDMI
enable ROCKCHIP_HDMI ASoC driver to report jack status.

Signed-off-by: XiaoTan Luo <lxt@rock-chips.com>
Change-Id: I61dd19266747cfa2eb97030c107d95924f80f03d
2021-11-26 19:28:42 +08:00
Lin Jinhan
83906c9426 crypto: rockchip: v2: modify to pass crypto selftest case
Compared to 4.19, there are many new algorithm boundary
 condition tests in 5.10. Drivers need to be fixed to
 pass these tests and increase driver robustness.

Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
Change-Id: I597a478a5cfff5fa6c5389f45adec21acb63c68e
2021-11-26 19:23:25 +08:00
Wyon Bi
34cbbf50e8 arm64: dts: rockchip: Add RK3588 EVB2 LP4 V10 eDP to DP Board
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: Id6298bbdcbbd926b84f51193526ea975ebd86f3f
2021-11-26 19:20:31 +08:00
Zhang Yubing
63e8f7ff8a arm64: dts: rockchip: rk3588-evb3-lp5: change dp clk source
use v0pll as dp interface dclk source default.

Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Change-Id: I893bf3dc83632c500b8fafa664cf2e8177d809fc
2021-11-26 19:18:36 +08:00
Wyon Bi
956b7cc975 drm/rockchip: dw-dp: Use drm_dp_read_dpcd_caps() helper
Reads the extended DPRX caps (%DP_DP13_DPCD_REV) if present.

Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: I5c442e4c92917e136665b3dd5554abef9b7c81e5
2021-11-26 19:10:58 +08:00
Elaine Zhang
347e6b3e3d clk: rockchip: rk3588: fix usb3\sata\gamc\pcie aclk parent
aclk dependencies:
aclk_usb3/satax/gmac --> aclk_mmu_php --> aclk_php_root -->
aclk_pcie_root

aclk_pciex_mst --> aclk_mmu_pcie --> aclk_pcie_bridge -->
aclk_pcie_root --> aclk_php_root

Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: I51933de0e401f6fc381ea177943bde16ca00401a
2021-11-26 19:09:36 +08:00
Li Huang
42333bee4f video: rockchip: rga3: Support multi core config by userspace.
Signed-off-by: Li Huang <putin.li@rock-chips.com>
Change-Id: I8dfb08ca6f4490fd2097e971127ef7c274b1babd
2021-11-26 17:38:54 +08:00
Li Huang
262304034d video: rockchip: rga3: Fixup wrong uv_stride on rga888 fbc
Signed-off-by: Li Huang <putin.li@rock-chips.com>
Change-Id: I60626f464e5a55c5afce5ae9fc546b374f4119ad
2021-11-26 17:32:14 +08:00
Wyon Bi
e66a221f58 arm64: dts: rockchip: rk3588s-evb1-lp4x: Add support for edp panel
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: I7033313667e233a381d1bede0ae3c586bf57a901
2021-11-26 17:02:35 +08:00
Elaine Zhang
046268f16b clk: rockchip: rk3588: mark aclk_php_gic_its as critical
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: Ibe77113d127cb6ac1f63eb917607aef47683cf18
2021-11-26 14:21:50 +08:00
David Wu
ae65c3830d arm64: configs: rockchip_linux_defconfig: Enable SMMU V3
There are two MMU600 instances in RK3588.

Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: I9b1709a90098a72b9d64f02055fdabd2ce2f2754
2021-11-26 11:27:57 +08:00
Zhang Yubing
d6fbed788e phy: rockchip: usbdp: fix repeat modify mode_change flag issue
When use Typc-C Interface, after detect CC connect, we assume
the usbdp phy can be use as multi-function(both usb and dp use)
and init the phy in multi-function mode. If the sink only
support only dp function, we need reinit the usbdp phy only dp
function.

When enter dp mode, config the pin assignment, get the attention
cmd from sink, tcpm will callback the mux set. But we only need
the info when hpd is true.

Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Change-Id: I25aa718e4b41b9645aa456a2767addfbd624318c
2021-11-26 11:01:24 +08:00
Jianhui Wang
e830cf86d5 arm64: dts: rockchip: rk3588s-tablet: remove vp0&vp3
The tablet only uses edp and dp display interfaces(edp->vp2,dp->vp1),
so remove vp0&vp3

Signed-off-by: Jianhui Wang <wjh@rock-chips.com>
Change-Id: I1c56a95c4bd3c052f18ed43fd3b9962156b59b22
2021-11-26 10:56:25 +08:00
Wang Panzhenzhuan
6793be67bb arm64: dts: rockchip: rk3588s-tablet: raise avdd_1v2_cam_s0 voltage
Tablet's rear camera convert fpc decrease the dvdd,
so need raise nldo4 voltage to ensure rear camera ov50c40 normal.

Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: Id36f920dd80d9072cf3265a6cc992ae648c77142
2021-11-26 10:53:25 +08:00
Zain Wang
1edbd29596 power: supply: bq25700: change register notifier to EXTCON_USB_VBUS_EN
Generally, bq25700 is only source for USB VBUS, bq25700 should
respond all EXTCON_USB_VBUS_EN requests.

And at OTG mode, there may be no EXTCON_USB_HOST_EN changes,
in this case, USB always keeps vbus output even if it used
as device mode.

Signed-off-by: Zain Wang <wzz@rock-chips.com>
Change-Id: I0b50be90bfc70ad296c1ec67d5a39f2b1c26920d
2021-11-26 10:37:16 +08:00
Jianqun Xu
ec6350b547 drm/rockchip: fix overflow of min_pitch
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: I45a90e68d5ca3f24fea66086ddae46b03f7ee5a7
2021-11-26 10:35:27 +08:00
Wang Jie
6e09befb4d arm64: dts: rockchip: rk3588s-tablet: remove hs limit for usb3_0
Change-Id: Ibcdb89fc2b50b15f722c5709e98037b8dbb8ad4d
Signed-off-by: Wang Jie <dave.wang@rock-chips.com>
2021-11-26 09:51:52 +08:00
Wyon Bi
7b87558613 drm/rockchip: dw-dp: Fix aux_status register field
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: Ide7b83c9debec94825d4cf2a2ede621fb2764849
2021-11-26 09:21:08 +08:00
Lee Jones
575a552ac7 ANDROID: usb: gadget: f_accessory: Mitgate handling of non-existent USB request
Prevents mishandling USB requests that are no longer present.

Bug: 161010552
Fixes: 483cb5629e ("ANDROID: usb: gadget: f_accessory: Add Android Accessory function")
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Change-Id: I8ff24d6d49214c3bd10a1b5d5e72814ec2a91c61
2021-11-25 14:57:32 +00:00
Wang Panzhenzhuan
ddceb14a7e arm64: rockchip_defconfig: enable CONFIG_VIDEO_OV50C40
Enable ov50c40 config for rk3588s tablet & rk3588 evb1.

Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: I61a3d6141babcb0872ec9377f83e5bd759bfe6a4
2021-11-25 21:12:39 +08:00
Tao Huang
fa0abb00cd media: i2c: ov50c40: Select VIDEO_OTP_EEPROM
Enable otp_eeprom config for ov50c40 module.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ib6bc08bd1d33814ecd752dd834d81fb50174bc39
2021-11-25 21:07:03 +08:00
Simon Xue
a9ffcf51f7 PCI: rockchip: dw: refactor resize bar register address
Change-Id: I31c6ec368409d1e75fb1a15d9f4dc28a4e1c011f
Signed-off-by: Simon Xue <xxm@rock-chips.com>
2021-11-25 20:13:10 +08:00
Simon Xue
889f7522e4 pcie-dma-trx: update to version 0x3
support reverse buffer address

if reverse
	buf_idx 0-7	rc <- ep
	buf_idx 8-15	rc -> ep
else
	buf_idx 0-7	rc -> ep
	buf_idx 8-15	rc <- ep

Should update test-pcie:

rc: ./test-pcie 2 1000 1024 0 0
ep: ./test-pcie 1 1000 1024 0 0

Change-Id: I73cd6cb3511068166d5681f44a7f53d46003775b
Signed-off-by: Simon Xue <xxm@rock-chips.com>
2021-11-25 20:12:37 +08:00
Wang Panzhenzhuan
bf930ada8e arm64: dts: rockchip: rk3588s-tablet: add camera config
support ov13855 & ov50c40

Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: I473da810c706017fed7658c30b05c58d57e598c7
2021-11-25 19:57:18 +08:00
Yiqing Zeng
ecdb73a16f media: i2c: add rk ircut driver
Signed-off-by: Yiqing Zeng <zack.zeng@rock-chips.com>
Change-Id: Ie29c235e22e19fb5a0cd5c080f46eaba32ec57fc
2021-11-25 19:54:04 +08:00
Greg Kroah-Hartman
376046be3b ANDROID: GKI: fix up abi break in ehci code
Commit 94e5305a38 ("usb: ehci: handshake CMD_RUN instead of STS_HALT")
that got added into 5.10.79, added a new bitfield to the struct ehci_hcd
structure.  This bitfield is only used by the ehci core, and does not
change the size of the structure overall at all, so comment it properly
so that the CRC of any ehci functions do not change, and update the .xml
file with the newly added bitfield:

Leaf changes summary: 1 artifact changed
Changed leaf types summary: 1 leaf type changed
Removed/Changed/Added functions summary: 0 Removed, 0 Changed, 0 Added function
Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 0 Added variable

'struct ehci_hcd at ehci.h:111:1' changed:
  type size hasn't changed
  1 data member insertion:
    'unsigned int is_aspeed', at offset 15 (in bits) at ehci.h:226:1
  one impacted interface

Bug: 161946584
Fixes: 94e5305a38 ("usb: ehci: handshake CMD_RUN instead of STS_HALT")
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Id5d3a9324d9a15f8baaf4aefedda786ed6d949c2
2021-11-25 11:35:59 +01:00
Neal Liu
bf13278d66 UPSTREAM: usb: ehci: handshake CMD_RUN instead of STS_HALT
commit 7f2d73788d upstream.

For Aspeed, HCHalted status depends on not only Run/Stop but also
ASS/PSS status.
Handshake CMD_RUN on startup instead.

Tested-by: Tao Ren <rentao.bupt@gmail.com>
Reviewed-by: Tao Ren <rentao.bupt@gmail.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Neal Liu <neal_liu@aspeedtech.com>
Link: https://lore.kernel.org/r/20210910073619.26095-1-neal_liu@aspeedtech.com
Cc: Joel Stanley <joel@jms.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 94e5305a38)
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I14c0553c973837c1eb0f57d4e4a7ec278ed5abb1
2021-11-25 11:35:55 +01:00
Sugar Zhang
3a7f369b5c arm64: dts: rockchip: rk3588: Add aud clk for hdmi nodes
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I58e07f40529352a986e4b7582d792aa0856861aa
2021-11-25 18:25:44 +08:00
Sugar Zhang
e108ff9f6f drm/rockchip: dw_hdmi: Handle aud clk for hdmi qp
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I9a8abc55175a1c1219d7731d358a63451de60238
2021-11-25 18:25:22 +08:00