Commit Graph

1065693 Commits

Author SHA1 Message Date
Zhichao Yu
412afcda10 ARM: dts: rockchip: add camera config for rv1103g-evb-v10
Signed-off-by: Zhichao Yu <zhichao.yu@rock-chips.com>
Change-Id: I6ec1b2a7ae2f2707e74d62baeb4187001e74fcdf
2022-04-01 19:52:29 +08:00
Chen Shunqing
0b224f6d4d arm64: dts: rockchip: rk3588: add PCLK_S_HDMIRX for hdcp1.4
Signed-off-by: Chen Shunqing <csq@rock-chips.com>
Change-Id: I09ca47b7171488c90e4e64aae05e1ce5ff47d2f6
2022-04-01 18:02:19 +08:00
Mark Huang
3851d8abf1 arm64: dts: rockchip: rk3588-nvr-demo-v10-spi-nand: update ubi.mtd to 4
Signed-off-by: Mark Huang <huangjc@rock-chips.com>
Change-Id: I72d31311c482d46f646ec9b8af87adca1b8a597f
2022-04-01 17:12:18 +08:00
YouMin Chen
a57fc15ec9 arm64: dts: rockchip: rk3588s: Add more OPPs for dmc
Signed-off-by: YouMin Chen <cym@rock-chips.com>
Change-Id: Icc5ec2946897a8e3e895aac14038167d2cb2b46c
2022-04-01 16:29:01 +08:00
YouMin Chen
b5599a8a61 PM / devfreq: rockchip_dmc: rk3588 set vdd_center to sleep_volt in suspend
Signed-off-by: YouMin Chen <cym@rock-chips.com>
Change-Id: Ia72a4877cd1b3d2bbd7de612bdb9cc92245a6088
2022-04-01 16:29:01 +08:00
Finley Xiao
041c735d54 arm64: dts: rockchip: rk3588-rk806: Change voltage range for vdd_ddr and vdd_log
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I28e5e0a7496115e76ec8d685c8a0b6ad4b3a794b
2022-04-01 16:29:01 +08:00
Zhichao Guo
f827805318 ARM: dts: rockchip: rv1106g-evb1-spi-nand: support wifi and SDcard
spi-nand dts includes rv1106g-evb1-v10.dts to support
wifi and SDcard devices

Signed-off-by: Zhichao Guo <zhichao.guo@rock-chips.com>
Change-Id: Ife7b4fa5d8af70715f5d2b3defa7325f4e639342
2022-04-01 16:12:21 +08:00
Andy Yan
a3e8a9039a drm/rockchip: vop2: Clear splice_mode_right flag of splice_vp
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Change-Id: Ie06c61537f87da8616e04bc301a32df1d0864cf5
2022-04-01 16:08:01 +08:00
Jianqun Xu
654739143f ARM: dts: rockchip: rv1106-evb-v10: add coherent_pool=0
When the CONFIG_DMA_CMA is selected, the atomic_pool will be initialized
and allocates 256 KiB defaultly from the default cma area.

Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: I77045a0b9c9f185f33035a406794e4be4d0e2e66
2022-04-01 11:03:02 +08:00
Damon Ding
bd911bb60e ARM: configs: enable DRM_EDID and DRM_SII902X on rv1106-evb.config
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: I9645be18d5639848038adfba338adcb590446fee
2022-04-01 11:01:01 +08:00
Damon Ding
a2692740bc drm: Kconfig: DRM_EDID select CONFIG_HDMI by default
Fixes: a92ed4afa9 ("drm/edid: add config option of edid function")
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: I01d731a9fd13e11206fcaadc98491835566c948e
2022-04-01 10:59:40 +08:00
Damon Ding
c3509dd346 drm/bridge: sii902x: modify the config select to reduce memory usage
Not to select DRM_MIPI_DSI and SND_SOC_HDMI_CODEC when
ROCKCHIP_MINI_KERNEL selected.

Fixed: 0dace269aa ("drm: bridge: fix LONTIUM use of mipi_dsi_() functions")
       efaede77b8 ("drm/bridge: sii902x: Select SND_SOC_HDMI_CODEC if SND_SOC is configured")
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: I639e35736f93b7304eac3614b983d6e3e83994ca
2022-04-01 10:58:15 +08:00
William Wu
01ccdd1489 usb: gadget: u_audio: improve uac compatibility
Some PC USB Hosts (e.g Dell laptop) fail to send
SetInterface(AltSet=0) to stop capture/playback
when PC enter suspend or play YouTube Video.

To be compatible with these PC, add this patch to
stop capture/playback prior to start again if the
stream_state is true.

Change-Id: Iced57de39b6b88a7c987897dcb123cf8d7cf6473
Signed-off-by: William Wu <william.wu@rock-chips.com>
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
2022-04-01 10:48:17 +08:00
Ren Jianing
1abe6982f8 BACKPORT: usb: gadget: u_audio: add uevent for set_alt and set_srate
This patch add uevent to notify the application layer when it should
playback or capture and setting the accuration sample rate.

The event consists of three parts, namely USB_STATE, STREAM_DIRECTION
and STREAM_STATE. For example:

g_audio_work: sent uac uevent USB_STATE=SET_INTERFACE STREAM_DIRECTION=IN STREAM_STATE=OFF
g_audio_work: sent uac uevent USB_STATE=SET_INTERFACE STREAM_DIRECTION=OUT STREAM_STATE=ON
g_audio_work: sent uac uevent USB_STATE=SET_SAMPLE_RATE STREAM_DIRECTION=OUT SAMPLE_RATE=44100

Signed-off-by: Ren Jianing <jianing.ren@rock-chips.com>

(backported from develop-4.19 commit 55c7a54911)
Change-Id: I9115a8aa57875a440df96b67bb02c3d50f237b29
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
2022-04-01 10:48:10 +08:00
William Wu
02c6e7f24b BACKPORT: usb: gadget: f_uac1: finalize wMaxPacketSize according to bandwidth
According to USB Audio Device 1.0 Spec, Ch4.6.1.1:
The wMaxPacketSize of endpoint is defined as follows:
Maximum packet size of endpoint is capable of sending
or receiving when this configuration is selected. This
is determined by the audio bandwidth constraints of
the endpoint.

In current code, the wMaxPacketSize is limited to 200,
and the bInterval is set to 4 (1ms). That is, the maximum
bandwidth over USB bus is 200 * 1000 = 200000 bytes.

We find an issue about bandwidth limitation when we try to
support UAC1 with 8ch * 16bit * 16KHz on RK3308 platform,
which needs more bandwidth than it can support.

This patch sets the wMaxPacketSize dynamically according
to the parameters of UAC1. It is similar to the same thing
done earlier for f_uac2.

Signed-off-by: William Wu <william.wu@rock-chips.com>

(backported from develop-4.19 commit 573d2e1e2e)
Change-Id: I3304f9eb4d1eee18f4beb44af46a246940c2dfe3
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
2022-04-01 10:48:03 +08:00
David Wu
931b12539b net: stmmac: Add integrated phy powe up/down for ethernet up/down
For integrated PHY, there is no stmmac_mdio_reset(), so add callback for
the PHY power control during ethernet interface up/down, and suspend/resume.

Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: Ib8ae375ee885aecefc7f5b9a6617523186a3f0e1
2022-04-01 10:47:47 +08:00
Li Huang
c002048f4f video: rockchip: rga3: fixup crash on rga_job_next
1. Free job resource when user exit to call release
2. Support rga_seesion.

Signed-off-by: Li Huang <putin.li@rock-chips.com>
Change-Id: I87d01ce24d80769bb379c6117798063133e922b3
2022-04-01 10:46:41 +08:00
Li Huang
295acc8ce8 video: rockchip: rga3: code optimization
Use pointer to get scheduler form job.

Signed-off-by: Li Huang <putin.li@rock-chips.com>
Change-Id: Ie928eb30c171763e31f659da0fc6a8f11b1e3a0e
2022-04-01 10:46:41 +08:00
Li Huang
2be1c5ce62 video: rockchip: rga3: code optimization
1. rename rga_scheduler to scheduler
2. sort rga_internal_ctx_* func

Signed-off-by: Li Huang <putin.li@rock-chips.com>
Change-Id: I1a5fd7f1b8b400728ac00c55b684d401ad269dc1
2022-04-01 10:46:41 +08:00
Li Huang
0a1063e4ac video: rockchip: rga3: fixup RGA3 timeout
When import/release buffer frequently called in parallel, may cause
RGA3 timeout.

IOMMU op need pm_runtime_get_sync to flush tlb.

Signed-off-by: Li Huang <putin.li@rock-chips.com>
Change-Id: I5dd61f287740da682975189fa69dce73ee570f04
2022-04-01 10:46:41 +08:00
Zefa Chen
ac1a792365 media: rockchip: vicap check the synchronization of each group of frames
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Ic2c40899649bfc5a8fc4ef291f5b05f586f328d7
2022-04-01 10:45:51 +08:00
Shawn Lin
d2821ac28f PCI: rockchip: dw: Add rockchip,perst-inactive-ms property support
Some devices need more #PERST inactive time, so we need expose
DT property.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: I95e2236f7c2005942c2c6247f069ebe24ba5c182
2022-04-01 10:43:41 +08:00
Finley Xiao
7b43769a16 clk: rockchip: rk3588: Remove CLK_IGNORE_UNUSED for lpll, b0pll and b1pll
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Iafdd1ae6e545fd018dd4becab0083a60a0570fb1
2022-04-01 10:43:14 +08:00
shengfei Xu
3b7f60deed mfd: rk806: update rk806 volatile reg range
Signed-off-by: shengfei Xu <xsf@rock-chips.com>
Change-Id: I1f73137e033a5eacebbd3e2f5000527efd874160
2022-04-01 10:42:07 +08:00
Lian Xu
e76af5fc7c media: rockchip: isp: Solve the wrap_line frame rate problem
Change-Id: I6a949723c1b8caa90897b111a37d19f32644b6ba
Signed-off-by: Lian Xu <xu.lian@rock-chips.com>
2022-04-01 10:04:07 +08:00
Lian Xu
9542500c18 media: rockchip: isp: Solve the problem of invalid mirror
Change-Id: Ifbe8ff9f4bca7f42352e398cc86c6329b281dcc0
Signed-off-by: Lian Xu <xu.lian@rock-chips.com>
2022-04-01 09:34:34 +08:00
Cai YiWei
4bcf50f7a6 media: rockchip: isp: add isp reg cache read/write api
Change-Id: I9db97c3ae4dc3f0a9418f427026a5689ee73750f
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2022-04-01 09:34:27 +08:00
Finley Xiao
cb62fa6675 MALI: bifrost: Change clock source to normal pll when suspend
When call pm_runtime_get_sync(), the runtime callback will change clock
source to normal pll, but now pm_runtime_get_sync() is called in a delay
work and the wakelock seems to be invalid on linux system,
so when suspend the pm_runtime_get_sync() may not be called.

Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I0a951b455c10158ca63d747e35e9001cdbdde91c
2022-04-01 09:33:18 +08:00
Cai YiWei
a78431756f media: rockchip: isp: power on to set pipeline default format
Change-Id: Icdd040e9f9d6aac7bb84ba1ec22516fc04884b6e
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2022-03-31 19:43:02 +08:00
Cai YiWei
b4cb093eee media: rockchip: isp: set isp subdev crop and also check stream crop
Change-Id: I92ef9af47b9e5e9ebfb034b62214506548296164
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2022-03-31 19:42:55 +08:00
Yanchao Hu
1e18c2b6de ARM: dts: rockchip: Add support for RV1106G IPC38 SPI NAND Board
Signed-off-by: Yanchao Hu <yanchao.hu@rock-chips.com>
Change-Id: I7d41a903b8dc6e2af6c33ed0c0d2b793443d5bd3
2022-03-31 19:21:50 +08:00
Li Huang
65d129a414 video: rockchip: rve: Update to 1.0.2
support config ASYNC

Signed-off-by: Li Huang <putin.li@rock-chips.com>
Change-Id: I762cf8e67dbd9ceaebc3d58120652c8d89f6e92a
2022-03-31 19:14:19 +08:00
Li Huang
bac6b534b7 video: rockchip: rve: Fixup some error on insmod ko
1. Fixup misc_register fail
2. Close power always on
3. Move timer init after register success

Signed-off-by: Li Huang <putin.li@rock-chips.com>
Change-Id: I4b7753b6e6fe5f7c1dc3a8b4591ea7ccce690421
2022-03-31 19:14:19 +08:00
Li Huang
0949545400 video: rockchip: rve: Optimize statistics on bandwidth & cycle
Signed-off-by: Li Huang <putin.li@rock-chips.com>
Change-Id: I9260b41adbc5a1a0bab6be099fd40971324586ce
2022-03-31 19:14:19 +08:00
Jianqun Xu
c2a93573e4 ARM: configs: rv1106_defconfig: DMABUF_HEAPS_ROCKCHIP_CMA_ALIGNMENT=0
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: I164cc9a27020e653655839283bf3a2e2e2077a84
2022-03-31 10:00:28 +08:00
Mark Huang
56a0e2ce87 ARM: rv1106-evb.config: Enable UVC/UAC/HID
Signed-off-by: Mark Huang <huangjc@rock-chips.com>
Change-Id: I9577c4f159622d8648fc5d3ce83c7adcdf645bd6
2022-03-30 20:33:12 +08:00
Li Huang
f863ae5dd0 video: rockchip: rga3: fixup scheduler load
Signed-off-by: Li Huang <putin.li@rock-chips.com>
Change-Id: I60a2357d1fd517092d1721cfcd16cd1a2e2dba04
2022-03-30 17:47:39 +08:00
Weiwen Chen
19d26d75b6 ARM: rv1106-evb.config: support spi nand
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: Ic1156239064abf7b83f19b6bac8239d6ab548b5f
2022-03-30 17:21:07 +08:00
Jon Lin
01a8559fe6 ARM: dts: rockchip: rv1106: Add rknpor_powergood node
Change-Id: Ib41b419f0df96298389be67a2ddbee7aebddcbbf
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2022-03-30 16:17:22 +08:00
Jon Lin
ecbe5f051c soc: rockchip: Add rockchip_npor_powergood
Powergood integrated on npor is an interrupt signal that triggers
an interrupt when a specific level value is detected.

Do some software protection for the system when the interrupt is
triggered.

Change-Id: I928c05e9dd7c7ac76af54135c7ea73d377c22807
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2022-03-30 16:17:04 +08:00
Jon Lin
c70280b04a ARM: configs: rv1106: Support RKROCKCHIP_NPOR_POWERGOOD
Change-Id: Icbdc86206b7ba8dcfc1d3ac030cd4f0a9f0f6a94
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2022-03-30 16:16:44 +08:00
Mark Huang
6f771b8baf arm64: dts: rockchip: rk3588-nvr-demo1-v21: disable dp0 logo
Signed-off-by: Mark Huang <huangjc@rock-chips.com>
Change-Id: Iaa844b717fa94c73a825febbdd83ba223bdb6a7a
2022-03-30 12:12:40 +08:00
Zefa Chen
bf6101f235 ARM: dts: rockchip: rv1106-evb-cam: support camera ircut
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I73feabef84ce9a31b207420e06560ec9976d58f3
2022-03-30 11:54:09 +08:00
Yifeng Zhao
d7d43c9c1c soc: rockchip: vendor storage: add HDCP_14_HDMIRX_ID
Modify SENSOR_CALIBRATION_ID from 13 to 14 and add
SENSOR_CALIBRATION_ID.

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: Id10be9960c1d7015edebaa7ccf646d8f16cf1d15
2022-03-30 11:10:55 +08:00
Shunqing Chen
7ddd8990c9 arm64: rockchip_defconfig: Enable RK628 HDMI to CSI/BT1120
Signed-off-by: Shunqing Chen <csq@rock-chips.com>
Change-Id: I2d925cc00fb4f2c35893abe6a48e2b0b59b1fbfd
2022-03-30 10:51:05 +08:00
Sugar Zhang
52fd300c57 ASoC: rockchip: i2s-tdm: Update params when it real changed
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I81c8ebb49e995f68c56848fbc5475ad305f50233
2022-03-30 10:32:01 +08:00
Su Yuefu
ff850fd4a7 ARM: dts: rockchip: rv1106-evb-cam: match camera module index with ircut
Signed-off-by: Su Yuefu <yuefu.su@rock-chips.com>
Change-Id: I7fbc01a71bd83388c8f4cb062f826a4f2a5a2e56
2022-03-30 10:01:55 +08:00
Ziyuan Xu
559353fe7c ARM: rv1106-evb.config: Enable CONFIG_PWRSEQ_SIMPLE
Most of the sdio devices need a simple pwrseq that is referred by
mmc-pwrseq, otherwise the mmc host will be probed as -EPROBE_DEFER
result.

Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
Change-Id: I2db654076563d49ddf52d91342fff93d39b218e0
2022-03-30 09:36:11 +08:00
Wu Liangqing
7168edebe8 arm64: dts: rockchip: rk3588-evb7: fix bluetooth uart9 iomux error
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
Change-Id: I369aecd2f48608e7c298bdb7a6abf63bef398efe
2022-03-30 09:27:47 +08:00
Xing Zheng
e466b62d40 ARM: configs: rv1106: enable the internal acodec by default
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Change-Id: Iec82a5004b7d2d6a4a7314b243656ca7a4052424
2022-03-29 19:31:41 +08:00