Commit Graph

854710 Commits

Author SHA1 Message Date
Wang Panzhenzhuan
e6f03e192b media: i2c: gc8034 optimize drivers for cts issues
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: I942e5690acd729aacf9b3d39925a3166ec1c9695
2020-08-24 10:55:36 +08:00
Wang Panzhenzhuan
8b82f490da media: i2c: gc5035 optimize drivers for cts issues
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: I84f2cd30efe770ccedf3f43ee97e5062981ce603
2020-08-24 10:55:36 +08:00
Wang Panzhenzhuan
00ffc1d2b4 media: i2c: gc5025 optimize drivers for cts issues
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: I0ab557b5844ff593cea2df9666efe2e2a7d515a9
2020-08-24 10:55:36 +08:00
Hu Kejun
478c67e24b media: rockchip: isp: fix picture of hdr is abnormal in muti-visual isp when run second time
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
Change-Id: I73b0c38bbf889005a67157da2c85c29c9a489cd8
2020-08-24 10:26:55 +08:00
Hu Kejun
4cdd2bc3a1 phy: rockchip: mipi-dphy-rx: change dphy selection when stream start for rk1126
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
Change-Id: Ied1b01617e6ac07ef665a5ad08d31812f98e997b
2020-08-24 10:26:33 +08:00
Hu Kejun
300943521d media: rockchip: cif: fix link to mipi and lvds is enabled at the same time
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
Change-Id: I1d1006e05ffb444175c1f59fb2fdd872da748699
2020-08-24 10:26:33 +08:00
Hu Kejun
87cf1277ad ARM: dts: rv1109-evb-ddr3-v12-facial-gate: add interface node for cif and isp
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
Change-Id: Ie840233820d738c7efa8b7ede88e9877ce6f366c
2020-08-24 10:26:33 +08:00
Hu Kejun
e17b1344e8 ARM: dts: rv1126: add interface node for isp
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
Change-Id: Icdcdd40860ae6a124ca0c13e0ea5f2aadfaa5acf
2020-08-24 10:26:33 +08:00
Hu Kejun
1f22d94a8b media: rockchip: isp: support link with interface of cif
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
Change-Id: If41b2b1e8e789f1045c55ed30ce5573c28052257
2020-08-24 10:26:33 +08:00
Hu Kejun
a45d41dcd5 media: rockchip: cif: add subdev as interface for isp
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
Change-Id: Iebf7545485a84a7817c76f9b3c81884aeac5a974
2020-08-24 10:26:33 +08:00
Hu Kejun
38f83bebce ARM: dts: rv1126-evb-v10.dtsi: add rkcif_dvp/rkcif_mipi_lvds node
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
Change-Id: Ib79da479fcef0d882b7b47ca4e4906c5e9f76635
2020-08-24 10:26:33 +08:00
Hu Kejun
fc971da1ca ARM: dts: rv1126: add rkcif_dvp/rkcif_mipi_lvds/rkcif_lite_mipi_lvds node
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
Change-Id: I31bcd3442256af0aa7e1cc7ab859d3abca05899c
2020-08-24 10:26:33 +08:00
Hu Kejun
cc5404b8c7 media: rockchip: cif: support dvp and mipi/lvds run simultaneously
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
Change-Id: Iebccf4645232253b9b76dc597a8c038c16bc6221
2020-08-24 10:26:33 +08:00
Finley Xiao
448df7903c cpufreq: rockchip: Add support to adjust bin according to customer demand
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Ic180fa265cfc4c6cde1bef5ef56b1a0bc103bb7d
2020-08-24 10:24:46 +08:00
Finley Xiao
8aeccf838d arm64: dts: rockchip: rk3399: Add definition of customer demand for cpu
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I77363fc3532d076e5026ad9e95d46426c0b2f77c
2020-08-24 10:24:46 +08:00
Zefa Chen
8449988470 media: i2c: imx415 support 12bit 3840x2160@20fps HDR DOL3
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Ifa8086a4c3cec6a762bce54eaaee394ccdfbc385
2020-08-24 10:22:12 +08:00
Yu YongZhen
18d7b6df0b ARM: configs: rv1126-spi-nor.config: add led RGB13H driver
Signed-off-by: Yu YongZhen <yuyz@rock-chips.com>
Change-Id: I5a6e41b174762c8f75b1796a43e7437e9dbf8819
2020-08-24 09:56:07 +08:00
Yu YongZhen
5a7a3668be ARM: dts: rv1126: 38x38 board: add ir flash for camera
Signed-off-by: Yu YongZhen <yuyz@rock-chips.com>
Change-Id: Ic10524fd1e1308c626e63cad2472d19eeafce12d
2020-08-24 09:55:46 +08:00
William Wu
d4037f52e2 usb: dwc3: gadget: fix fifo number for txfifo resize
If the dep resoure is assigned to an EP-IN, and the EP-IN
has not yet be enabled, we need to increase the fifo number
rather than skip out directly.

Fixes: 49b5c0d29f ("usb: dwc3: gadget: fix ep init for unequal num of in/out eps")
Change-Id: I6d45f859edda52542d421e1711138f69050dd90f
Signed-off-by: William Wu <william.wu@rock-chips.com>
2020-08-22 16:40:45 +08:00
Nickey Yang
82a3ccbb1c ARM: dts: rockchip: add peripherals support for rv1126 bat board
add rtc and  battery support

Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
Change-Id: I735b99dd27001a7352217bbb554f97640065f083
2020-08-21 18:14:23 +08:00
Nickey Yang
e80932a284 ARM: configs: add rv1126-battery.config
add this config for demo products with battery.

Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
Change-Id: Ie1ef5540fa277e4bda1410b2ac2c98be9ed1139e
2020-08-21 18:09:53 +08:00
Ding Wei
86871bddb2 video: rockchip: mpp: modify the means of default_max_load value equal 0
tips: when default_max_load is 0, means not have advanced clk_mode,
use normal clk_mode instead.

Change-Id: I1933a6af29789fbb54b5163a750fc4d5f058b7ee
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
2020-08-21 09:10:29 +08:00
Zhichao Yu
5ff57575c9 ARM: dts: rockchip: decrease isp reserved memory size for rv1126-evb-thunder-boot
We don't need so much isp reserved memory for thunder boot.
The default value is 256MB.

Signed-off-by: Zhichao Yu <zhichao.yu@rock-chips.com>
Change-Id: Ife84c37b24ae5bd882b6cbdeb612b51e7aff3db7
2020-08-20 16:49:00 +08:00
Yu Qiaowei
7ff0530f7b video/rockchip: rga2: Compatible with kernel module
rga2 will be compiled into a kernel object, because cmd_buf
is a global variable and the address is stored in the modules
section, which makes it unable to obtain the physical address
through virt_to_phy(), so the local variable cmd_reg is used.

Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I3c088e727365fa8d515238ad88b2edaaee2b9a2b
2020-08-20 14:34:46 +08:00
Hu Kejun
29f6b4c722 media: rockchip: isp1: fix compile error when config with module
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
Change-Id: Icd3c90ba5d270dfe99672c9b2e4baba4fcd8b21f
2020-08-20 10:04:27 +08:00
Shunqian Zheng
859860806e media: i2c: add imx335 driver
imx335 can output 2592x1944 HDR/linear frames in 30fps.

Change-Id: I48233f21cdae26e9b575c5ec7c55345fdb55ddbb
Signed-off-by: Shunqian Zheng <zhengsq@rock-chips.com>
2020-08-20 10:03:35 +08:00
Sandy Huang
699c8ff653 drm/rockchip: init unplug in connector status
As like TVE connector, it's unsupported hot plug, so the connector status is
always connected, this will lead to print waring log when show kernel logo.

Change-Id: Ie1b0ff1630e5f5f425844b550cd7c88cd26c29d8
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2020-08-19 16:08:01 +08:00
Zefa Chen
46cff32208 leds: leds-rgb13h add pwm control
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Id8800dc98543d4e082182a027f3fb25dbd30295c
2020-08-19 15:08:57 +08:00
David Wu
6118bbac7b ARM: dts: rv1126: Rename the name of clock "mac_ref"
Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: I2c0812b50432e30fb120664495022f5858dc6ea7
2020-08-19 14:21:13 +08:00
Sandy Huang
6c617d0d97 arm64: rk1808 config: disable rockchip drm debug by default
Change-Id: I952990931b3ce102f6c680a8a4f6b7006983df56
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2020-08-19 14:11:13 +08:00
Sandy Huang
8f3b2b1421 arm64: rockchip_defconfig: disable rockchip drm debug by default
Change-Id: I872ccca955004ba0c9a84cbd86fc1aa926a721d5
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2020-08-19 14:11:13 +08:00
Sandy Huang
3c22df3839 arm64: rockchip_linux_defconfig: disable rockchip drm debug by default
Change-Id: I18aece07bb14c62c2e083993be2094d423e9ac80
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2020-08-19 14:11:13 +08:00
Lin Huang
0f45d926cb ARM: configs: rv1126-facial-gate.config: enable USB HIDDEV
Change-Id: I2f47893d9fc39213fe5dfcdbf18197530588f490
Signed-off-by: Lin Huang <hl@rock-chips.com>
2020-08-18 20:08:03 +08:00
Nickey Yang
cf702e207b ARM: dts: rockchip: add missing regulator settling time up property for rv1126 board
For PWM regulator, adjust voltage needs waiting time to be stable

Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
Change-Id: I8586ece1e109f3c8ab6a3f5da8ee4e298371ef01
2020-08-18 16:39:17 +08:00
Lin Jianhua
4821deb3a5 ARM: dts: rockchip: rv1109-evb-ddr3-v12-facial-gate: modify power supply for gc2053
The reference hardware circuit of RV1109 Facial Gate using separation of
the power supply for IR camera, so modify dts

Signed-off-by: Lin Jianhua <linjh@rock-chips.com>
Change-Id: I3165d5582788a674f814ef23db3e26c6654716d0
2020-08-18 14:05:50 +08:00
Zefa Chen
46e4dbc2fd media: i2c: gc2053 add power-gpios
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Ibdf6400e56b72378a41c2ef1cc6e4f2a56ea2a7e
2020-08-18 14:05:21 +08:00
Allon Huang
52cf176411 media: rockchip: cif: add device attr for debugging memory compact
Signed-off-by: Allon Huang <allon.huang@rock-chips.com>
Change-Id: Iba084e61d50d966a15607afcc625ed95c153aecb
2020-08-18 11:20:34 +08:00
Allon Huang
5452fec4f4 media: rockchip: cif: let memory compact mode can be set from user space
Signed-off-by: Allon Huang <allon.huang@rock-chips.com>
Change-Id: Id0e6bd0b9992215a8d1c4169b83e2c4765a697b1
2020-08-18 11:08:29 +08:00
Allon Huang
962eb1e143 media: rockchip: cif: add get/set selection for cropping
Signed-off-by: Allon Huang <allon.huang@rock-chips.com>
Change-Id: I6c05cd6ab63b479a8b72b172afc0413f0775e209
2020-08-18 11:06:51 +08:00
Weiwen Chen
78dcb6aee1 ARM: dts: rv1126: 38x38 board: fix cpu dvfs regulator settling time up
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: I79d743e212c72bee009a60b339a225b1a8368cf9
2020-08-17 20:40:11 +08:00
Sugar Zhang
5b3c68ea53 ARM: dts: rv1126-ipc: Enable otp
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I3fa4dffb272617584b13b465cbc761bc5cda917f
2020-08-17 20:40:11 +08:00
Jianqun Xu
2142fd6e03 pinctrl: rockchip: fix crash issue if gpio bank invalid
Change-Id: Ia4609c3045b5df7879beab3c15d791ff54a1f49b
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2020-08-17 15:17:37 +08:00
Zhenke Fan
10f39dbd4d media: i2c: gc4c33 support mirror and flip
Signed-off-by: Zhenke Fan <fanzy.fan@rock-chips.com>
Change-Id: Id3af324970734d5f7214aaded117f033bc190d91
2020-08-17 15:17:22 +08:00
Weiwen Chen
7592de62d7 ARM: dts: rv1126: 38x38 board: fix sdmmc level strength
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: Ia00e1f61b283cbd2c1727c5439fe9f392ec28a82
2020-08-15 17:06:59 +08:00
Weiwen Chen
b2b9d1d8a9 ARM: dts: rv1126: 38x38 board: fix regulator level status
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: Ib2d72f2623bce342847465a843f3bae6bf609daf
2020-08-15 16:06:50 +08:00
Finley Xiao
e176b506e6 video: rockchip: mpp: rkvenc: Add system monitor support
Add support to change frequency by system monitor.

Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I8370c4dc168368cdcdf36fbca0555aae84eb3cbe
2020-08-14 17:37:10 +08:00
Lin Jinhan
ed6e17cd56 crypto: rockchip: fix bugs on multithreading support
Add mutex to prevent race conditions.

Change-Id: I5e0f10c308ee7ce58b2622ede955472e2f6dface
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
2020-08-14 15:17:56 +08:00
Lin Jinhan
c4a01182b3 crypto: rockchip: drop needless dma_sync_single_for_device
hw_info->desc is allocated by dma_alloc_coherent, there is needless
to call dma_sync_single_for_device.

Change-Id: Ibd6c834c6f772727a829381dd4b0c95ceb39e5cd
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
2020-08-14 14:59:19 +08:00
Hu Kejun
6968bab0cd media: rockchip: isp/ispp/cif/camera: add api version in common header
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
Change-Id: I59a68acb068131483c80da5865cdbe4800b59975
2020-08-14 14:58:13 +08:00
Lin Jianhua
847b71b4e0 ARM: dts: rockchip: rv1109-evb-ddr3-v12-facial-gate: modify isp cma buffer size from 256M to 92M
rv1109 facial gate use dual camera that resolution is 1080P,
so only need 92M buffer.

Signed-off-by: Lin Jianhua <linjh@rock-chips.com>
Change-Id: I9a53468b1bf544dbc253ca19907d4ebbdde67e98
2020-08-14 14:47:46 +08:00