Commit Graph

854597 Commits

Author SHA1 Message Date
Weiwen Chen
5bb742c67c ARM: dts: rv1126: 38x38 board: fix IQ filename
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: I0f2a1d8aa009c87b6fae6d7256f5978419ee426c
2020-08-08 17:38:10 +08:00
Weiwen Chen
5483387397 ARM: dts: rv1126: 38x38 board: add flash led
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: I2210c9d2229ebbb9390c3904b3b0c63c4dda9a20
2020-08-08 17:38:10 +08:00
Frank Liu
01b6dd0124 media: i2c: gc2053 output grbg bayer format
Optimize the stripe problem under strong light

Signed-off-by: Frank Liu <frank.liu@rock-chips.com>
Change-Id: Ia74dd4644518aaa7e12537771234f97de73bad80
2020-08-07 18:30:04 +08:00
Tao Huang
8d2597e064 ARM: configs: rv1126-facial-gate.config: Update by diffconfig
Change-Id: Ib90a44a24c6bb1dc2039e69805fffbe9c01ace95
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2020-08-07 18:08:34 +08:00
Xing Zheng
10e1db95c9 ARM: configs: rv1126-spi-nor.config: add module for wm8974 codec driver
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Change-Id: I6bb2c532b8e36aada4ac1843745040eab83a2a6c
2020-08-07 17:23:53 +08:00
Xing Zheng
12073b53f6 ARM: dts: rv1126: 38x38 board: add i2s0-sound via wm8974 codec
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Change-Id: I010aee682e8183e194d4b62a1516389f3ea6d72c
2020-08-07 17:23:49 +08:00
Xing Zheng
e1275e3bb1 ASoC: wm8974: add support enable/disable external mclk on runtime
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Change-Id: I6711bf6ca1406036eafe3755e9595414bfedcb3f
2020-08-07 17:21:01 +08:00
Xing Zheng
ff6fa35d18 ASoC: wm8974: add support enable/disable micbias during capturing
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Change-Id: I3696c0c73db6550795d192442d6bba41cea5086d
2020-08-07 17:21:01 +08:00
Weiwen Chen
4368c0b9a6 ARM: configs: rv1126-spi-nor.config: add iep2 module
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: Id6fe223f6174de0fae5bb314ad839e902dcddfc4
2020-08-07 14:36:09 +08:00
Tao Huang
6104a6618d ARM: configs: rv1126-spi-nor.config: Update by diffconfig
Change-Id: I1ea10d8cedafc7ac6d94a362b9d62a6b57fc4596
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2020-08-07 14:27:21 +08:00
Weiwen Chen
d1d7bc9dc2 ARM: dts: rv1126: 38x38 board: add sdcard support
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: Iff6d641fecd69baf0e022d96992b4b4ebf9cf73a
2020-08-07 12:11:51 +08:00
Algea Cao
db1d765195 drm/bridge: synopsys: dw-hdmi: use default mode list when no edid
For compatibility with GKI, drm_display_mode_from_vic_index() can't
be export function. So we use use default mode list when edid can't
be got.

Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: Ic7d046e4ccf36981449d36067efd8bb2388e27e4
2020-08-07 10:32:54 +08:00
Tao Huang
80d1e37696 ARM: dts: rockchip: rename rv11xx to rv1126
rv11xx-evb-v13.dtsi -> rv1126-evb-v13.dtsi
rv11xx-evb-v12.dtsi -> rv1126-evb-v12.dtsi
rv11xx-evb-v10.dtsi -> rv1126-evb-v10.dtsi
rv11xx-evb-v10-robot.dtsi -> rv1126-evb-v10-robot.dtsi
rv11xx-thunder-boot-emmc.dtsi -> rv1126-thunder-boot-emmc.dtsi
rv11xx-thunder-boot-spi-nor.dtsi -> rv1126-thunder-boot-spi-nor.dtsi
rv11xx-thunder-boot.dtsi -> rv1126-thunder-boot.dtsi
rv11xx-ai-cam.dtsi -> rv1126-ai-cam.dtsi
rv11xx-evb-thunder-boot.dtsi -> rv1126-evb-thunder-boot.dtsi
rv11xx-ipc.dtsi -> rv1126-ipc.dtsi

Change-Id: I815b0d1b471c9b14d627cff7fad961290c7f043f
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2020-08-06 17:55:28 +08:00
Weiwen Chen
15a54e8d8c media: i2c: imx415: fix power on timing
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: If6857d0f7e4a1c8614c39fafdbb927f4d3465991
2020-08-06 17:26:25 +08:00
Nickey Yang
e0a4fef684 ARM: dts: rv1126: add evb tb robot dts of V13 board
add the support of v13 for evb tb and robot product forms.

Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
Change-Id: I45cc935579997210805b4c5d41415dd06b468b4f
2020-08-06 16:22:56 +08:00
Nickey Yang
e6fee67715 ARM: dts: rv1109: remove the dts repeated with rv1126
Now the code has realized compatible with rv1109 and rv1126.
It is no longer need these duplicate dts of rv1109.
At the same time, the configuration of LP3 and DDR3 is the same.
Remove them together for reduces maintenance work.

Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
Change-Id: Ie732509aa821d37376a725fc12c358915c7d6869
2020-08-06 16:17:55 +08:00
Nickey Yang
b4f903cb10 ARM: dts: rockchip: rv1126: add version in model name on evb board
uboot will parse and print model name, add version information
for debug.

Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
Change-Id: I380548037a56321f78d1c24e1877f06a098330e0
2020-08-06 16:14:29 +08:00
Sandy Huang
cde7e5ca77 Revert "drm/sysfs: add current display mode to sysfs"
This reverts commit 6b6e9cabe9.
We can get the current mode from cat /d/dri/0/summary for debug.

Change-Id: I13396986a8c996678fb831731063f4d02776b297
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2020-08-06 10:57:14 +08:00
Jason Zhu
8d2474c477 ARM: configs: Rename rv1126-tb-emmc.config to rv1126-tb.config
It is not need to separate storages with emmc, spi-nor and so on in
defconfig. Separate them in dts.

Update by:
make ARCH=arm rv1126_defconfig
cp .config rv1126.config
make ARCH=arm rv1126_defconfig rv1126-tb.config
make ARCH=arm menuconfig
scripts/diffconfig -m rv1126.config .config > arch/arm/configs/rv1126-tb.config

Usage:
make ARCH=arm rv1126_defconfig rv1126-tb.config

Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I328091889c45ca1d09d2b2ce894b5a1d317d806d
2020-08-05 18:17:38 +08:00
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