Commit Graph

863194 Commits

Author SHA1 Message Date
Fenrir Lin
d6db4040f4 media: platform: rockchip: cif: avoid initcall later than isp
Signed-off-by: Fenrir Lin <fenrir.lin@rock-chips.com>
Change-Id: Ic69f50d9d2c9b87d1e701badab6d2538f5c191ed
2021-05-07 17:19:57 +08:00
Sandy Huang
6cbc8aefdc drm/rockchip: drv: add support bcsh read from loader
Change-Id: I181f0d9066b4a1dbfdfe076a5b18a8d4cd639230
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2021-05-06 20:48:55 +08:00
Sandy Huang
fb57e7e357 drm/rockchip: vop2: add support cubic lut from loader
Change-Id: I11d65477364dc9ff4fb34d038179d5702faeb484
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2021-05-06 20:48:55 +08:00
Sandy Huang
9dafae176b arm64: dts: rockchip: rk3568: add reserved memory for cubic lut
Change-Id: I68bc3fb2e3955383652fd1e583728becbfca744b
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2021-05-06 20:48:55 +08:00
Sandy Huang
dbb3122b77 drm/rockchip: vop2: add consider three display pending done bit
Change-Id: I9e2fe62cff31153a1b16faaaa11f9a49b8051975
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2021-05-06 20:48:49 +08:00
Sandy Huang
a103f1595b drm/rockchip: vop2: add parse plane mask policy from uboot or dts file
Change-Id: I8608dfeb44ab02717d64da151aefe1f9548c936b
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2021-05-06 20:40:29 +08:00
Weixin Zhou
6f9d003a83 arm64: dts: rockchip: rk3566-eink: setting sleep_sta_ctl on in ultra sleep only
Signed-off-by: Weixin Zhou <zwx@rock-chips.com>
Change-Id: I40484a87ef97429649620adebdc466cfadad4dc3
2021-05-06 20:22:40 +08:00
Sandy Huang
c176649809 arm64: dts: rockchip: rk3568: set display endpoint default as disabled
Change-Id: I3e8544ca6764aaa6c4327ad58e227a5e091e7dc9
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2021-05-06 15:19:52 +08:00
Sandy Huang
8584171ed1 arm64: dts: rockchip: rk3568: VOP: export VP to other dts file
Change-Id: I4172f4af7818f0fb5e49d438600debbd4bce2a0a
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2021-05-06 15:19:52 +08:00
Sandy Huang
55bd4c4147 drm/rockchip: vop2: add to get more bus format from dri sunmmary
Change-Id: I58d505fb5abe9f71ab7dd747a0345b226aa46855
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2021-05-01 17:54:49 +08:00
Sandy Huang
c22203c149 drm/rockchip: vop: add to get more bus format from dri sunmmary
Change-Id: Id90f5734f431d2ff70a3196e3e600be426cfeae4
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2021-05-01 17:54:49 +08:00
Jianqun Xu
6ea9c8f968 arm64: dts: rockchip: rk3568-pinctrl fix node name to gpio-func
From gpio-consumer.yaml

properties:
  gpios:
    $ref: "/schemas/types.yaml#/definitions/phandle-array"
patternProperties:
  "(?<!,nr)-gpios?$":
    $ref: "/schemas/types.yaml#/definitions/phandle-array"

This patch try to avoid anything with gpio.

Change-Id: I0c32b585aaefcaa5d0e985b3ada1887019e006c7
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2021-04-30 18:33:14 +08:00
Meiyou Chen
ecb02a3dca staging: android: ion: support get physical address
Signed-off-by: Meiyou Chen <cmy@rock-chips.com>
Change-Id: I002b94215de5a34580c5b291932ddba0d4ac33bf
2021-04-30 17:31:36 +08:00
Jianqun Xu
59541c84bb arm64: configs: rockchip_defconfig enable ION_FORCE_DMA_SYNC
Enable ION_FORCE_DMA_SYNC for Rockchip platform.

Change-Id: I989b4a2fdaf3b7878f63336805479ec52fcf1ffe
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2021-04-30 15:16:57 +08:00
Jianqun Xu
646b9fca8f staging: android: ion: add FORCE SYNC for ion heap
Do dma sync after sg table created during ion alloc.

Since dma sync api requires a device, this patch also create a platform
device for ion.

The sg_phys will be filled after buffer mapped, but someone may need to
do sync without map/unmap operation, this patch also fills the sg_phys
after the sg_table created.

Change-Id: I2110f7727dbee55f7498c8d3376efcb7cd869b3a
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2021-04-30 15:16:57 +08:00
Jianqun Xu
835aee8692 Revert "staging: android: ion: set dma ops for platform device"
This reverts commit 6a40ead69f.

The old patch only do sync for pages first allocated from system to page
pools which have memset operation.

In that case, the sg table hasn't been created, so the sg_phy should be
filled extra.

After this revert, a new patch will push to do sync after sg table
created, and use a common device from ion driver, which is required by
dma_sync api.

Change-Id: I9712136a532f64ff3224308f48d59efb87fd5be2
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2021-04-30 15:16:57 +08:00
Jianqun Xu
0f4763b1c6 dma-buf: add DMA_BUF_IOCTL_SYNC_PARTIAL support
Add DMA_BUF_IOCTL_SYNC_PARTIAL support for user to sync dma-buf with
offset and len.

Change-Id: I03d2d2e10e48d32aa83c31abade57e0931e1be49
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2021-04-30 15:16:57 +08:00
Tao Huang
454d65eb27 arm64: dts: rockchip: Disable CPU_SLEEP idle state on rk3568-nvr
Reduce wake up latency.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I704c359338e2ef556f56af63875be54335974b52
2021-04-30 15:03:19 +08:00
Tao Huang
6409cc339e arm64: dts: rockchip: rkvdec use 64KB sram on rk3568-nvr
Without DDR freq, rkvdec can use all sram.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I17ddd8715ffff524613ba0a2f906d51ec12f4a94
2021-04-30 15:03:19 +08:00
Tao Huang
02c875c876 Revert "arm64: dts: rockchip: rk3568-nvr: remove rcb reference properties"
This reverts commit fc2f74ccdd.

Use sram can reduce the memory bandwidth usage.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I5fae577671a905348239d0a40299d69e4cd8e6bb
2021-04-30 15:03:19 +08:00
Jianqun Xu
62618bd61d arm64: configs: rockchip_defconfig select ION_CMA_HEAP
This patch selects the ION_CMA_HEAP, for userspace to allocate continuous
memory area from ion cma-heap allocator.

Change-Id: I501f097cf8005bc7ecad8a0a23706f11b1987d3e
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2021-04-30 14:44:50 +08:00
Jianqun Xu
975372e2cb staging: android: ion: support partial cpu access
Change-Id: I8250c0bb26b776b8c8f5e4c3ee0cb71e26445743
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2021-04-30 08:29:06 +08:00
Alex Zhao
d37b518b0e arm64: dts: rockchip: rk356x board: give wifi some time after power-on.
Signed-off-by: Alex Zhao <zzc@rock-chips.com>
Change-Id: I29503ce3f328862361fda1c192aaff5d3b3781cb
2021-04-29 17:15:57 +08:00
Wyon Bi
075f963442 drm/bridge: analogix_dp: set correct dpms mode in loader_protect callback
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: I2e99a3fac5ab51e94990d2e3e4720f1e885ff045
2021-04-28 16:06:04 +08:00
Wyon Bi
0311e832b5 Revert "arm64: rockchip_defconfig: enable CONFIG_PHY_ROCKCHIP_DP"
This reverts commit 621fa3942d.

Change-Id: If3f9ff54e0b1c2fc518c2f93b225b0382a5e0133
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2021-04-28 16:06:04 +08:00
Wyon Bi
84e9a413b9 ARM: rockchip_defconfig: remove CONFIG_PHY_ROCKCHIP_DP
The driver is gone, stop selecting it.

Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: I3f618e97ea5f2d2fed643ef090262bf6a905b8b9
2021-04-28 16:06:04 +08:00
Wyon Bi
4d65711cc6 arm64: dts: rockchip: rk3368: Fix edp node
Change-Id: I96c3579d1772653ea04f4a3febf1b97ac0402047
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2021-04-28 16:06:04 +08:00
Wyon Bi
756ee85799 arm64: dts: rockchip: rk3399: Fix edp node
Change-Id: I84cb4bc0954d4d249a094b34512cd6558d2a58b9
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2021-04-28 16:05:35 +08:00
Joshua
63f7ae0482 media: i2c: add s5k4h7 camera driver.
Change-Id: Id291ef9cbeb48401e546e0c1be8c49845d96bf92
Signed-off-by: Joshua <joshua.huang@rock-chips.com>
2021-04-28 14:42:44 +08:00
Joshua
ba44eef6c6 media: i2c: add s5kgm1 camera driver.
Change-Id: I1b1e044af4be17cbcd19c6d480963c304b214696
Signed-off-by: Joshua <joshua.huang@rock-chips.com>
2021-04-28 14:41:28 +08:00
Caesar Wang
687c246020 arm64: configs: enable optee for rockchip_linux_defconfig
Enable the configs and had TEE information as below:

root@linaro-alip:~# dmesg |grep optee
[    0.181303] TEE core: Alloc the misc device "opteearmtz00" (id=0)
[    0.181507] TEE Core: Register the misc device "opteearmtz00" (id=0,minor=63)
[    0.848626] optee: probing for conduit method from DT.
[    0.848657] optee: revision 3.6 (c38b1925)
[    0.849045] optee: initialized driver

root@linaro-alip:~# realpath /dev/tee*
/dev/tee0
/dev/teepriv0

Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Change-Id: I2e818978c2b3203d859e169f10b86bee1bdac125
2021-04-28 11:01:06 +08:00
Finley Xiao
cd4f956b82 ARM: dts: rv1126: Adjust opp table for low performance chips
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Ib8eb3392050b25c3ac8e969348e1cca85a212d08
2021-04-28 10:08:33 +08:00
Zefa Chen
b149896cbb media: i2c: imx415 add HDR exposure exception handling
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I76dea27e13442d5907cead4c7d7bd9d8b6e0696b
2021-04-28 10:05:57 +08:00
Zefa Chen
eac935caac media: i2c: add camera driver imx464
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Iae18497edac0c4fdd24bd2f74a5348aa5271f4e4
2021-04-28 09:48:41 +08:00
Zefa Chen
6725889649 media: i2c: support get dcg ratio from sensor
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I47e07dc1bb282e0fb24db87f3802dd3ef93907a8
2021-04-28 09:45:04 +08:00
Yu Qiaowei
4d505d61eb video/rockchip: rga2: Add new features in compat_ioctl.
Some features are not updated to compat_ioctl, so add them.

Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: Id89a0826a4125af97398200f7ce6e3cc73de4342
2021-04-27 17:45:49 +08:00
Yu Qiaowei
f598231499 video/rockchip: rga2: Fix the wrong judgment of err_get_sg.
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: Iec9ac3492642bb00e212b9c2862bf9fa1d8a964c
2021-04-27 17:45:49 +08:00
Xiao Ya peng
f158169dc7 arm64: dts: rockchip: rk3568-nvr-demo-v10-spi-nand: disabled pcie for v10 borad
Signed-off-by: Xiao Ya peng <yp.xiao@rock-chips.com>
Change-Id: If25306404edc6bad153ed48a1b3786f14f71dc76
2021-04-27 17:03:49 +08:00
Nickey Yang
58eb535459 arm64: rockchip_linux_defconfig: Enable CONFIG_ENERGY_MODE
Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
Change-Id: I058c64e5fefa0d4f8d01c5645f886b596cec20fd
2021-04-27 17:02:31 +08:00
Finley Xiao
7dc0f80427 clk: rockchip: rv1126: Fix ispp parents' name
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I5bb9437320835a2a0cdb16c039aabd846bf1d682
2021-04-27 15:52:36 +08:00
Sandy Huang
0b9a779825 drm/rockchip: vop: fix rk3399 y2r csc coe error
Change-Id: I3767e90335ff9e2509ca45048807b8fd4f649801
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2021-04-27 14:24:22 +08:00
David Wu
4715f67919 ARM: dts: rk312x: Add ethernet alias for uboot write MAC address
Now we use U-Boot to write the MAC address into DTB, to
solve the problem of getting the MAC address in the vendor
partition too late at the kernel level, so the Ethernet
alias is added for U-Boot to quickly find the gmac DTB node.

Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: Ibeae8b4cc09bbf3cfb7b64e51f6f6aa35820bf0d
2021-04-26 16:49:04 +08:00
David Wu
5b77836aba ARM: dts: rk322x: Add ethernet alias for uboot write MAC address
Now we use U-Boot to write the MAC address into DTB, to
solve the problem of getting the MAC address in the vendor
partition too late at the kernel level, so the Ethernet
alias is added for U-Boot to quickly find the gmac DTB node.

Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: I603946b27ab4668ed5ff4dbb629f3ed9b8741b08
2021-04-26 16:47:53 +08:00
David Wu
4ac088b60f arm64: dts: rockchip: rk1808: Add ethernet alias for uboot write MAC address
Now we use U-Boot to write the MAC address into DTB, to
solve the problem of getting the MAC address in the vendor
partition too late at the kernel level, so the Ethernet
alias is added for U-Boot to quickly find the gmac DTB node.

Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: Ie7ec87208811e2fd7a217558d97e0f1bd46d122d
2021-04-26 16:46:29 +08:00
David Wu
47f179e528 ARM: dts: rv1126: Add ethernet alias for uboot write MAC address
Now we use U-Boot to write the MAC address into DTB, to
solve the problem of getting the MAC address in the vendor
partition too late at the kernel level, so the Ethernet
alias is added for U-Boot to quickly find the gmac DTB node.

Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: Ic12cdbf3f4116a5f20b7aeb8b1c665be229c5e32
2021-04-26 16:40:16 +08:00
Xing Zheng
bfccb20a08 dt-bindings: sound: rockchip: Add an optional properties 'rockchip,pa-ctl-delay-ms'
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Change-Id: Ib1d05daf82127544137215136f7e4cd4505172ce
2021-04-26 15:28:41 +08:00
Xing Zheng
9cbbdcfaf4 ASoC: codecs: rk_codec_digital: add pa-ctl on startup/shutdown
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Change-Id: Iac08054b117652a838412a816714a025b8928d24
2021-04-26 15:28:41 +08:00
Vicent Chi
f444508fb0 media: platform: cif: hotplug reset add quick stream opt
Change-Id: I7934ddc2fe13cdf7fe4e0b763ba3286203c24741
Signed-off-by: Vicent Chi <vicent.chi@rock-chips.com>
2021-04-26 14:57:02 +08:00
Jianqun Xu
da6f4621d7 staging: ion: ion_system_heap implement ION_FLAG_DMA32
Change-Id: I580b9cc9f256252b16bbb1211a116bf31c9eacd8
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2021-04-26 10:38:00 +08:00
Jianqun Xu
781ccbba7a staging: ion: uapi: add ION_FLAG_DMA32 flag
Add a new flag for system heap to allocat pages in normal zone.

Change-Id: I851b7fa412c181a6c3222aeadffddc84aba74c1e
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2021-04-26 10:38:00 +08:00