Commit Graph

854829 Commits

Author SHA1 Message Date
Allon Huang
4f705d7e64 ARM: dts: rv1126: fix vicap reg size as 0x8000
Signed-off-by: Allon Huang <allon.huang@rock-chips.com>
Change-Id: I8871ca0b7ccb1d8d0cd88789f6ba31d074544c61
2020-09-08 15:21:57 +08:00
Sugar Zhang
ab2220d5d8 ARM: dts: rv1126: Add codec digital node
Change-Id: I84e1d9d86830f53698c2e845a6373cc4d3a04ce5
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2020-09-08 14:23:31 +08:00
Sugar Zhang
5d33c809c3 ASoC: codecs: Add support for rockchip codec digital interface
This patch adds support for rockchip codec digital interface,
which is used to communicate with external codec analog part
with pdm link.

Change-Id: I9ea7020d904b63f7a34696b0f538accd8c700076
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2020-09-08 14:23:31 +08:00
Sugar Zhang
7fe2a9bb56 dt-bindings: sound: rockchip: Add binding for rockchip codec digital
It's mainly composed of digital ADC and digital DAC. The digital ADC
converts PDM data into PCM data and then sends them out through I2S.
The digital DAC receives PCM data from I2S and then converts them into
PDM data.

Change-Id: I46533228b67c127e6fa70d45d4152763fa7290e0
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2020-09-08 14:23:31 +08:00
Mark Huang
0bd3266c20 ARM: dts: rockchip: rv1126-ai-cam-ddr3-v1-spi-nand: modify rootfs to mtd:2
The UBIFS file system does not need misc partition,
So modify the mtd of rootfs to 2.

Change-Id: I7f74cace5963dc0b5aafc6da6ab16a1a520b0257
Signed-off-by: Mark Huang <huangjc@rock-chips.com>
2020-09-08 14:20:45 +08:00
Ziyuan Xu
64c6466115 mmc: dw_mmc: imporove thunder boot
Make the hclk_mmc is available before accessing the registers.

Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
Change-Id: I2ab1556eb2376c77d8e05a66eb64cb367c7919d3
2020-09-08 14:20:17 +08:00
Nickey Yang
dbeeafd8b4 ARM: dts: rockchip: update battery info for rv1126-bat-ipc-v10
Update battery configuration information

Change-Id: I5a77113d3c000baf11b1f581e617c9f1756cbcc6
Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
2020-09-08 14:16:25 +08:00
Ziyuan Xu
b4cc27fd25 ARM: dts: rockchip: enable AP6203(sdio-wifi lp) for rv1126-bat-ipc-v10 board
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
Change-Id: I0f055ed9c2c74110bd0940bfd985c201c4f4c425
2020-09-08 14:12:44 +08:00
Ziyuan Xu
fad577fd55 ARM: dts: rockchip: enable encoder for rv1126-bat-ipc-v10 board
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
Change-Id: I52847e19d12c88109ad62831839724ef9043ad8c
2020-09-08 14:11:00 +08:00
Ziyuan Xu
da98f7c38a ARM: dts: rockchip: enable ov2718 with ir_cut on rv1126-bat-ipc-v10 board
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
Change-Id: I50e2536f804a9ac451ccc40e36f5d57d7b46862e
2020-09-08 14:10:52 +08:00
Weiwen Chen
cf03fa0c26 ARM: dts: rv1126-38x38-v10-emmc: enable uart3
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: I5d3201acbe023c2440446003e872cbd0600d2872
2020-09-08 09:25:24 +08:00
Weiwen Chen
32d161b6f3 ARM: dts: rv1126-38x38-v10-emmc: set thermal_zones's soc critical temperature
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: I2c6c36296b039f2b1349f43b1492dd8c559b5586
2020-09-08 09:22:20 +08:00
Weiwen Chen
3d82f5e796 ARM: dts: rv1126-38x38-v10-emmc: npu: disable 800MHz
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: I10cba167e93b0b5dde9a6dcb71d1a8372532ec88
2020-09-07 21:16:42 +08:00
Elaine Zhang
da78c4a700 thermal: rockchip: fix up the code to temp maybe overflow
For linear calculation, code needs to be converted to Int,
otherwise the calculated value may overflow at ultra-low temperature.

Change-Id: I64c45b1f5ebc86da853180ca7bb3cb83234f2a64
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2020-09-07 15:04:40 +08:00
Ziyuan Xu
6e875bbb8e ARM: configs: rv1126-tb.config: enable ov2718
Till now, the paired cameras for tb product:
- ov2718   1920x1080
- os04a10  2688x1520

Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
Change-Id: I431aafc5168a56c1d84bd4d11775b3edc9016ae4
2020-09-07 11:33:22 +08:00
Ziyuan Xu
40845f5fe9 ARM: dts: rockchip: make ramdisk space marginal for rv1126-thunder-boot
Support ramdisk size up to 48MB.

Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
Change-Id: I748d908fcb9bf9e4baa54812b741fdebd6cf4f16
2020-09-07 11:12:49 +08:00
Weiwen Chen
fda2c5d938 ARM: dts: rv1126-38x38-v10-emmc: fix vdd_logic_npu_vepu-fixed volt
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: I3d18115a6a5edec331fcdc3293ae200ed59e3a58
2020-09-04 19:47:32 +08:00
Wyon Bi
ac38a839f0 drm/bridge: analogix_dp: rework hpd gpio detection
Split the hpd gpio handling from the host irq handler.

Change-Id: I0d62201095ab82f5ed0ddcfd53abaef6089a2e9d
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2020-09-04 18:18:07 +08:00
Linus Walleij
28c91d70ac BACKPORT: drm/bridge: analogix_dp: Convert to GPIO descriptors
This converts the Analogix display port to use GPIO descriptors
instead of DT-extracted numbers.

Change-Id: I9e0d4fc49d50fb7c340688e70c8fa0984bff3c92
Cc: Douglas Anderson <dianders@chromium.org>
Cc: Sean Paul <seanpaul@chromium.org>
Cc: Marek Szyprowski <m.szyprowski@samsung.com>
Cc: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190609231339.22136-1-linus.walleij@linaro.org
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
(cherry picked from commit 5b038dcf9d)
2020-09-04 18:18:07 +08:00
Cai YiWei
a8998c8dee media: rockchip: isp and ispp version to v0.1.5
Change-Id: Ie3ce13831c7e7bf5a8cdd2b2095533cd130e2c9b
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2020-09-04 18:15:57 +08:00
Cai YiWei
c8cd134f49 media: rockchip: ispp: fix config err for stream switch
1.config first buf early otherwise maybe dma error.
2.vb2_is_streaming instead of vb2_is_busy to change
format if stream fd no close but no streaming.

Change-Id: I1cb67dbc975af5ef6974c1b099524d9e2ca7a494
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2020-09-04 18:15:57 +08:00
Weiwen Chen
5ea409e22d ARM: dts: rv1126: add 38x38 v10 emmc support
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: I1082549bd063afad3568d9ba2c6d7c3f56db893f
2020-09-04 17:50:08 +08:00
Weiwen Chen
03c1ff98d6 ARM: configs: add rv1126-emmc-drivers-modules.config
Update by:
    make ARCH=arm rv1126_defconfig
    cp .config rv1126.config
    make ARCH=arm rv1126_defconfig rv1126-emmc-drivers-modules.config
    make ARCH=arm menuconfig
    scripts/diffconfig -m rv1126.config .config > arch/arm/configs/rv1126-emmc-drivers-modules.config

Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: Ia540a341c6476c0c30a9ec58e30b2e6947c9ad5d
2020-09-04 17:50:08 +08:00
Hu Kejun
40a534a3b5 media: i2c: os04a10: fix initial value of pwdn is wrong in thunderboot
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
Change-Id: Ifbcb069d468ad741a03228f4a56e2e73fb18e70e
2020-09-04 15:04:05 +08:00
Hu Kejun
65e644fc2a media: rockchip: isp: fix stream failure in thunderboot mode
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
Change-Id: I561737c86ccc8fada74a7ab511daae017beb091b
2020-09-04 14:30:26 +08:00
Hu Kejun
b73d8332ac media: rockchip: cif: detach hw device when probe failure
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
Change-Id: Ibaa4a4d2cb41fe154a1bd02b6ac459ce29380663
2020-09-04 14:30:20 +08:00
Finley Xiao
6768f5febc ARM: dts: rv1126: Add rockchip,temp-freq-table
Add support to change cpu, npu and vepu frequencies according to
temperature.

Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Ib879164cf719858be7a2f7e1a67bd17d0a6657cc
2020-09-04 10:56:41 +08:00
Finley Xiao
1e8da00fbd ARM: dts: rv1126: Modify npu opp table
Add more test case for Vmin test, such as mobilenet_v1, ssd mobilenet v2,
style transfer.

Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Ibe5cdf6c27a28b1153e9d42e16f848b3699fc121
2020-09-04 10:56:15 +08:00
Hu Kejun
aa8dac8eab media: rockchip: isp: add iq part information to procfs
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
Change-Id: I3316d70c1bf22f9692628375d2d2b34452924864
2020-09-04 09:45:31 +08:00
Hu Kejun
1de49ba4e3 media: rockchip: ispp: add iq part information to procfs
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
Change-Id: I6ef9349470f497d3eaef27e48395ce3ebcd991f1
2020-09-04 09:45:31 +08:00
Zefa Chen
59930c7eaa media: i2c: imx415 fixed frame rate issue
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I3645efa6b16e6a3d5198064a33d0620d5ad853a0
2020-09-03 17:47:24 +08:00
Lin Jinhan
300660fb3b crypto: rockchip: add dma_wmb for hw_info->desc_dma
fix cache inconsistent bug on some cases.

Change-Id: I6666a461570e9b6f53428762245b546a18fa26ed
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
2020-09-03 15:48:16 +08:00
Hu Kejun
661a2c5254 media: platform: rockchip: cif: get frame interval from sensor directly
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
Change-Id: Ia9acffd54b5e7b0c801915921489ae93d2bd62ed
2020-09-03 15:42:49 +08:00
Sugar Zhang
61559b25ba ASoC: rockchip: i2s: Set clk rate when master mode
There is no need to set clk for slave mode.

Change-Id: I3004cea42cd1ce2a093502c13ca77e984964efc8
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2020-09-03 15:42:11 +08:00
Cai YiWei
01ffbdf420 media: rockchip: ispp: add proc fs
Change-Id: I0f68b978e39be3f8fded38fbcb2e02b4c9995376
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2020-09-03 15:40:01 +08:00
Cai YiWei
7059d79cec media: rockchip: isp: add proc fs
Change-Id: I4e8ca0c89275fae04c14ad4c1e1a7750758692fe
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2020-09-03 15:40:01 +08:00
Nickey Yang
248c2d90f6 ARM: dts: rv1109: update camera and ircut for 38 board
Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
Change-Id: I94a821a09662cc8b44cf0da241b47692e9d60df0
2020-09-03 15:39:27 +08:00
Xing Zheng
63e3b9fe89 ARM: configs: rv1126-battery.config: enable es8311 codec
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Change-Id: I391dddcffc6477881c3f1b7eaeb55b975227b8ca
2020-09-03 14:56:01 +08:00
Xing Zheng
ab638e72a5 ARM: dts: rockchip: add i2s0-sound with es8311 codec for rv1126-bat-ipc-v10
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Change-Id: I613cf79d7133e5f71b0a4713266b769a9d8c6630
2020-09-03 14:55:11 +08:00
William Wu
c0c1270789 usb: dwc3: gadget: clear HWO when move req to pending list
Clear the HWO of TRB belongs to the current req which will
be moved to the pending list, rather than clear the HWO
of previous TRB in the ring.

Fixes: 05c86e9eef ("usb: dwc3: gadget: fix bug of clac_trbs_left at isoc in transfer")
Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: If11c296db902631587cf36731242d12ddb5c4c28
2020-09-03 10:00:58 +08:00
Xing Zheng
3b13f64c6d ASoC: es8311: add support es8311 codec driver
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Change-Id: Iae35145535664754f3babf4245c9682077c1fc00
2020-09-03 09:17:13 +08:00
Xing Zheng
a0aa4a48fd dt-bindings: sound: es8311: Add bindings documentation for es8311 audio codec
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Change-Id: I96d5f780c907257f9b39e1ca879f2234e7623644
2020-09-03 09:17:13 +08:00
Jianqun Xu
9f2a89dd26 pinctrl: rockchip: enable pclk before access gpio controller
Change-Id: I9b47cfeb41546ec4c4925ed01a0c232c383a332c
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2020-09-02 14:48:29 +08:00
Jianqun Xu
dca21fc335 Revert "power/avs: rockchip-io-domain: rv1126 support to control vccio1"
This reverts commit df8465ab9d.

Change-Id: I62eb3f42bd4e4ada3ec16471ca8a9c4f5c3efc9d
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2020-09-02 14:04:36 +08:00
Sugar Zhang
686fae6782 Revert "ARM: dts: rockchip: rv1126 io-domain node add VCCIO1"
This reverts commit fae0c499d0.

VCCIO1 is controlled by pin GPIO0B3/FLASH_VOL_SEL:

* pullup for 1.8v
* float for 3.3v

so, we should not reconfigure it by software.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I0bc119cbb0355e9d8fd7ba3457bf436eba3d6e7a
2020-09-02 14:02:43 +08:00
Zhenke Fan
b12f031895 media: i2c: imx378 support mirror and flip
Signed-off-by: Zhenke Fan <fanzy.fan@rock-chips.com>
Change-Id: I664244bdf74a8a371784bfe45c35dee232aa550c
2020-09-01 17:41:36 +08:00
Zefa Chen
92fb989963 ARM: dts: rv1126: 38x38 board: modify label of flash-ir
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I5dab6fc23a9c48d48b3883fb984cc0899db847fe
2020-09-01 10:40:37 +08:00
Zefa Chen
81f2d6e688 leds: leds-rgb13h: Fix the bug that when pwm is disabled, the light cannot be turned off
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I0d6367045dad5ff6a7a2d1ee38c5dc41498f6013
2020-09-01 10:40:26 +08:00
Jon Lin
a63bb72f90 drivers: rkflash: Support GD5F1GQ5UEYIG
Change-Id: I8fd961f02a1155e1c4f7579f665a55fe754ad210
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2020-09-01 08:59:04 +08:00
Zhenke Fan
11831ab0de ARM: configs: rv1126_defconfig: enable imx378 camera
Signed-off-by: Zhenke Fan <fanzy.fan@rock-chips.com>
Change-Id: I89748d0e4fc07735d917add282efb495a49a16c0
2020-08-31 17:44:07 +08:00