Commit Graph

854578 Commits

Author SHA1 Message Date
Jason Zhu
9922d1954a ARM: dts: rockchip: rv1126: support spi nor thunder boot
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: I2ee46da045c65c1d3895ec6f96ff879238f8a66a
2020-08-05 17:23:41 +08:00
Cai YiWei
bd9dc64e59 media: rockchip: isp: add Y8/Y10/Y12 format for dmatx/dmarx
Change-Id: I1b3b24c4c5af78c211afd52e2766bc56da5007fa
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2020-08-05 17:22:54 +08:00
Zefa Chen
f67add1eda media: i2c: imx307 fixed lvds output data offset
support test pattern

Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I78fbabe1baaa13925d11109944d1942febb0e7ba
2020-08-05 17:22:13 +08:00
Weiwen Chen
bcabf008e4 ARM: dts: rv1126: 38x38 board: fix gmac reset timing
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: I7f56fb8078fbdb817e9bb0834d41ba64127f077e
2020-08-05 11:29:45 +08:00
Allon Huang
3b986afbe2 media: rockchip: cif: support mipi yuv
Signed-off-by: Allon Huang <allon.huang@rock-chips.com>
Change-Id: Iba235d83b5c2578e45eb9418cfed5660018495db
2020-08-05 11:27:20 +08:00
Nickey Yang
8ce1466dbc ARM: dts: rv1109: add camera IR cut support on 38 board
Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
Change-Id: I4a5a337461bed98a4d3525fbbfba9a162897aef2
2020-08-04 16:19:02 +08:00
Cai YiWei
f28d124bf7 media: rockchip: isp: high write hurry priority
Change-Id: I2e2af49812efb30ad997b4809f0fd5dbb910f990
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2020-08-04 16:18:44 +08:00
Vicent Chi
5109f0dfe5 ARM: dts: rv11xx-evb-v10.dtsi: fixup os04a10 camera module name
Change-Id: I87fe898dc804c44a392596a55e56b7821651b28d
Signed-off-by: Vicent Chi <vicent.chi@rock-chips.com>
2020-08-04 11:43:18 +08:00
Binyuan Lan
a82f7fca8f ASoC: rockchip: rk817-codec: Initialize DIGEN_CLKE when reset
Solve the problem that LRCK level amplitude is not enough

Change-Id: I5fbcd2a10b4c725ea24b73c9c4469027809da003
Signed-off-by: Binyuan Lan <lby@rock-chips.com>
2020-08-04 11:14:42 +08:00
Nickey Yang
e81d23480a ARM: dts: rv1126: add evb v13 board support
v13 board solve the problem of insufficient amplitude
of usb in low-speed handshake phase by usb_dm pull up
and it control by gpio0_c1.
gpio0_c1 and pwm3 are one pin, so pwm3 used for
backlight is now provided by pwm0.

Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
Change-Id: Ia4169f12217c382e5389060746be763b6e7ff4c3
2020-08-04 11:08:04 +08:00
Jon Lin
5140ef5bbe soc: rockchip: Add rockchip thunder boot sfc driver
This driver aimed at starting decompression as soon as
possible.

Change-Id: Iadf07e54047430153bc66fb1f92f85beaecf2c0d
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2020-08-04 09:37:11 +08:00
Cai YiWei
7897e2cc1f media: rockchip: ispp: fix dma off fail for fbc mode
Change-Id: Iebff08696df76b2f79b69eed267f2c238cb60a39
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2020-08-03 11:34:38 +08:00
Cai YiWei
26d6550db1 media: rockchip: isp: fix error of isp crop from dmarx
Change-Id: Ie2e8d6259ba306d965b3eaa0f5e5499978d19c9b
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2020-08-03 11:34:38 +08:00
Lin Jianhua
78a58ce5b6 ARM: dts: rockchip: rv1109-evb-ddr3-v12-facial-gate: ov2718 link to rx1
Signed-off-by: Lin Jianhua <linjh@rock-chips.com>
Change-Id: Ifa1d513dfa15f9f463a58895e4e64b4bded879ed
2020-08-03 09:11:56 +08:00
Weiwen Chen
3b5d077e7f ARM: dts: rv1126: add 38x38 v10 spi nor board support
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: I722b33cee409dde49c820763158ad5857de47c54
2020-08-03 09:10:05 +08:00
Weiwen Chen
25718843ea ARM: configs: rv1126-spi-nor.config: add imx415 module compile
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: Ib184635d6124e09e273b0142451f72119bb784d9
2020-08-03 09:10:05 +08:00
Cai YiWei
07ccf7045d media: rockchip: ispp: default yuv420 for less bandwidth
Change-Id: Ibba98ad098774afbc62445d773b8b0a25467b99e
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2020-08-03 09:09:07 +08:00
Yiqing Zeng
4b5f545e02 media: i2c: imx415: fix hdr ratio error and set hdr ae bug
1. register 0x3260 should be set 0x00 in hdr mode, set 0x01 in normal mode
2. rhs1 should be 4n+1 when set hdr ae

Signed-off-by: Yiqing Zeng <zack.zeng@rock-chips.com>
Change-Id: I8e662f35e544dc75bf9506f1254bc1a4da358b58
2020-08-03 09:06:01 +08:00
Nickey Yang
023141391d ARM: dts: rv1109: correct reset pins definitions on 38 board
sensor driver use reset instead of rst, so sync this.

Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
Change-Id: I4d5a1bbf7db9da53a5ca6c5740ef1e1dbb8f796d
2020-07-31 18:27:08 +08:00
Nickey Yang
c0484983ab ARM: dts: rv1126: add bat ipc v10 board support
rv1126 bat ipc v10 is a demo board with battery.

Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
Change-Id: I99cadefb1c649c98c3f9b3abfd816c3c28d59686
2020-07-31 09:18:55 +08:00
Zefa Chen
f6db1bd14b media: i2c: imx347 fixed hdr exposure issue
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I5c4d6a4ff4c36d907b120a93eb61a3fb3e5378a9
2020-07-30 19:26:54 +08:00
Zefa Chen
0d0b450603 media: i2c: imx307 fixed exposure and flip issue
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Ia53c4f379607dcd067bb9772ed62708e33845a97
2020-07-30 19:26:42 +08:00
William Wu
49b5c0d29f usb: dwc3: gadget: fix ep init for unequal num of in/out eps
Some SoCs have different number of endpoints between the EP-IN
and EP-OUT (e.g. RK3399/RV1126 have 7 in endpoints and 6 out
endpoints), it will fail to init all of the endpoints.

In my test case, I use RV1126 dwc3 to support 3 UVC functions
at the same time, and each UVC function need one in endpoint
for control interface and one in endpoint for streaming interface,
so it needs to init 7 in endpoints (include ep0-in) in this case.
Without this patch, it will fail to init the ep7-in because
it set the wrong DWC3_DEP_BASE for ep7-in.

According to dwc3 databook, the register DALEPENA and the "USB
Endpoint Number" field of Parameter1 are doing 1:1 mapping for
endpoints, meaning physical endpoints 2 maps to logical endpoint
2:
Bit[0]: USB EP0-OUT
Bit[1]: USB EP0-IN
Bit[2]: USB EP1-OUT
Bit[3]: USB EP1-IN
...
Bit[13]: USB EP7-IN

The dwc3 driver use dep->number to index endpoint number and init
the DALEPENA and the "USB Endpoint Number" field of Parameter1.
For RV1126, it should set dep->number to 13 for EP7-IN.

But the registers DEPCMDPAR2(#n),DEPCMDPAR1(#n), DEPCMDPAR0(#n),
and DEPCMD(#n) don't 1:1 mapping for endpoints. For RV1126, it
should set #n to 12 for EP7-IN. And the event->endpoint_number
in the dwc3_endpoint_interrupt() is equal to 12 for EP7-IN.

Fixes: c2185009e2 ("usb: dwc3: gadget: fix init endpoints and resize tx fifos")
Change-Id: I0898306196f4dacf09b0de3cf4d76d9026b6315c
Signed-off-by: William Wu <william.wu@rock-chips.com>
2020-07-30 18:06:39 +08:00
Weiwen Chen
db245aeba5 ARM: configs: rv1126-spi-nor.config: add nfs
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: I48f0184a1462fc6b438f7be135538c594f7b5247
2020-07-30 16:43:04 +08:00
Zefa Chen
7262a9a1a3 media: i2c: os04a10 fixed flip issue
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I2b091244cc0cdb8e5e36b097ad6a0eb8e7f73ade
2020-07-30 16:26:25 +08:00
Zefa Chen
7c3a8d5a30 media: i2c: ov02k10 support 12bit hdr mode
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I44b004a0f31a48570e402b0111d03073f33ca1d6
2020-07-30 16:26:18 +08:00
Allon Huang
b1fea1a6c4 media: rockchip: cif: fix lost frame when sof occurs twice at the same time
frm start int don't be set, current & next frame start occur simultaneously

Signed-off-by: Allon Huang <allon.huang@rock-chips.com>
Change-Id: I49f28a6d49e8a726f3f8a4c290444792a497876f
2020-07-30 11:53:12 +08:00
Allon Huang
325c2db47b media: rockchip: cif: keep crop info after streaming off
Signed-off-by: Allon Huang <allon.huang@rock-chips.com>
Change-Id: I69971cdee744ccc490ebb64d074343115d50742a
2020-07-30 11:53:02 +08:00
Binyuan Lan
a3ce48bb60 arm64: dts: rockchip: rk3326 ai-va board set mclk-fs = <256>
Change-Id: Ia212f9cf438e967e8a84232533538ad4e457f761
Signed-off-by: Binyuan Lan <lby@rock-chips.com>
2020-07-30 09:33:58 +08:00
Allon Huang
0fa77a1ace media: rockchip: cif: fix compile error when config with module
Signed-off-by: Allon Huang <allon.huang@rock-chips.com>
Change-Id: I2dd063fddab1abfcd86c415bce89a594f763b786
2020-07-29 17:36:23 +08:00
Alpha Lin
415635bfda ARM: dts: rockchip: enable iep2 node in rv11xx-evb-v10
Enable iep2 node in rv11xx series.

Signed-off-by: Alpha Lin <alpha.lin@rock-chips.com>
Change-Id: Idfe5b6ed7d57f9ded2810d625a15af575e3aa7e7
2020-07-29 16:35:35 +08:00
Alpha Lin
c192967a9b rockchip/iep2: update according to mpp service revision
Remove prepare callback for mpp service callback
function only used in video codec link table mode.

Update task private data acquired method for mpp
service revision.

Signed-off-by: Alpha Lin <alpha.lin@rock-chips.com>
Change-Id: I01e908699b5e2eeb29e0a8706a3e526bf8568167
2020-07-29 16:34:49 +08:00
Shunqian Zheng
c7d00631ab media: i2c: add imx415 sensor driver
Sony IMX415 can output 3840x2160 30fps HDR frames.

Change-Id: I626ce64feda2fe197a4778b10690e429232e19ce
Signed-off-by: Shunqian Zheng <zhengsq@rock-chips.com>
2020-07-29 14:06:14 +08:00
Weiwen Chen
519ab0e6d1 ARM: dts: rv1126: add evb v12 spi nor board support
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: Ic80044efc0724e0f2219d21f9c7d4e2f04488bba
2020-07-29 14:05:56 +08:00
Weiwen Chen
0cbf4c62c6 ARM: configs: Add rv1126-spi-nor.config for spi nor
make ARCH=arm rv1126_defconfig rv1126-spi-nor.config

Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: Ic56c0b1395791ba7241cd877e82ac759b61330b8
2020-07-29 14:05:56 +08:00
Finley Xiao
caedae4931 ARM: dts: rv1126: Add rockchip,bin-scaling-sel for NPU
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Ifcb916dbdb83745087e194bdbb0f5543997d964d
2020-07-29 14:04:46 +08:00
Lin Jianhua
6cb3d8a7a1 ARM: configs: rv1126-facial-gate: enable gc2053
Signed-off-by: Lin Jianhua <linjh@rock-chips.com>
Change-Id: Ib5785dfd3877f848bf9d0acd2327538421e86cfd
2020-07-29 09:16:08 +08:00
Sugar Zhang
85611904e5 ARM: dts: rv1126: Add cpu info
This patch add cpu info node for rv1126.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I2fe434f7fe654739f0ffc790e1589578fc0b38fc
2020-07-28 18:16:30 +08:00
Sugar Zhang
be4980df16 soc: rockchip: cpuinfo: Add support for rv1126/rv1109
This patch add support for rv1126/rv1109 soc.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Id27ce5bd3dd5c4e4f3273e09fbebcfd6a5d5f085
2020-07-28 18:16:30 +08:00
Sugar Zhang
ffb82a0e28 soc: rockchip: cpuinfo: Add support for cpu code parse
This patch add cpu code parse from otp or efuse.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I550eb01725ba265d5eb47caaf1d0e66656cfb4b0
2020-07-28 18:16:30 +08:00
Liang Chen
1669d97751 cpufreq: interactive: make sure governor is ready for task boost
enqueue_task() may call cpufreq_task_boost() before governor is initial,
so enable_sem and speedchange_task is not initial, then do not boost.

Fixes: 2d367d61e8 (cpufreq: interactive: introduce boost cpufreq interface for task)
Change-Id: I68ec027299fa46e7749efd43b44af6e476753ac5
Signed-off-by: Liang Chen <cl@rock-chips.com>
2020-07-28 17:14:30 +08:00
Andy Yan
5229082f0f drm/rockchip: vop: fix typo
bland should be blend.

Change-Id: If8bcc4804b6da9c6604e448f98b98071aa4d3c77
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
2020-07-28 15:29:54 +08:00
Wang Panzhenzhuan
fc617ee07a media: i2c: gc2155: fix compile mistakes
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: I187bcbd53d1c1e04046507e07baa494efc940046
2020-07-28 15:02:34 +08:00
Nickey Yang
95ae23413f media: i2c: ov2718: add some controls support
this patch add V4L2_CID_HFLIP and V4L2_CID_VFLIP support
and fixed error in setting HDRAE_EXP

Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
Change-Id: If92dfa4b09aff13ddf0be8498898ad8bc6a45950
2020-07-28 11:09:02 +08:00
Andy Yan
5c9dcafb33 drm/rockchip: vop: check state->crtc for plane status
We found a situation where state->visible is true but
the plane is disabled, and state->fb is null.

According to the documentation of struct drm_plane_state,
the member crtc can truly describe the plane enable/active
state. So we check state->crtc instead of plane->visible here.

Change-Id: I9f9e8912c7279c1c68c8370014b08c7ba6bae72c
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
2020-07-28 09:29:02 +08:00
Finley Xiao
e1d81708df soc: rockchip: system_monitor: limit frequency at different temperature
This adds support to limit frequency at multiple temperature zones, but
the frequency will be also changed by thermal framework if the device is
a cooling device.

Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I609cede78fce7e0a264fb961b422f05a45a7c949
2020-07-28 09:27:56 +08:00
Zefa Chen
d61224d724 media: i2c: add imx307 camera driver.
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I1eebca022bb5bc478fc892fe922b649bf4066df4
2020-07-27 18:04:20 +08:00
Wang Panzhenzhuan
331715230f media: i2c: add sensor gc2375h
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: Iedaaeb2ed7b260d42f3e533c14d8b3b4b77c6477
2020-07-27 18:02:19 +08:00
Wang Panzhenzhuan
68fb893b10 media: i2c: add sensor gc5024
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: I2d1f7d2ced3418486e40daf4c3ef67a887296f40
2020-07-27 18:01:13 +08:00
Wang Panzhenzhuan
1abde36b74 media: i2c: imx219: fix imx219_enum_mbus_code fmt error
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: Ifb6ba6a8adba5b900380bc82a5df6fc7170820a8
2020-07-27 18:00:52 +08:00