Commit Graph

110776 Commits

Author SHA1 Message Date
Zefa Chen
3e0d014bd0 media: i2c: imx347 fixed exposure issue
Fix HDR frame rate, correct Tline
support conversion gain control

Change-Id: I7c9c8a6b81206f46d2d3f3f4e0580e7831b32fd3
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
2020-05-25 18:20:38 +08:00
Zefa Chen
e34fc5b233 include: rk-camera-module: add cmd for conversion gain
Change-Id: If756567d63696131e8c67d14fd08d751f58c443d
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
2020-05-25 18:20:38 +08:00
Tony Xie
d0a76dd65c PM / devfreq: rockchip_bus: remove the autocs keyword.
1、remove the autocs keyword.
2、use cfg-val instead of timer-us in rk1808.dtsi
3、remove bus-soc node in px30.dtsi

Signed-off-by: Tony Xie <tony.xie@rock-chips.com>
Change-Id: I0f4563476ad7e08ba8dd9d02097eb4448d024ecd
2020-05-25 18:20:34 +08:00
XiaoDong Huang
4702a46f04 dt-bindings: suspend: rv1126: add sleep mode config defines
Change-Id: I795ada46df0ecba55d675d709dcf2bf61265b43e
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
2020-05-25 18:20:33 +08:00
Hu Kejun
c9a04358e5 media: rockchip: ispp: change fec mesh number
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
Change-Id: I68bf7bfdd080486083b5177ade48ed2dcb8d1fd9
2020-05-25 18:20:31 +08:00
Hu Kejun
8d1d0cfb64 media: rockchip: isp: change ldch mesh number
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
Change-Id: I2ce3fb8f996347d26ddd398e9066d9dc82707429
2020-05-25 18:20:31 +08:00
Simon Xue
0c85ec84d1 init: defer free large memblock to Buddy allocator
The physical memory of a system is divided into several types, like
memory reserved for device, for kernel pagetable, etc. The remaining
area is for Buddy allocator. Normally, The memory for Buddy is consist
of different size blocks, so, under meeting the memory request of kernel
booting, we can defer free the large block size to Buddy which can be
done later in work queue in parallel to other kernel threads, and the
size of the large block can be defined in kernel command line

Save boot time about 6ms on 512MB rv1126 evb.

Change-Id: Ie7a8d3122d8d92ad918e8bf680f5949412709f37
Signed-off-by: Simon Xue <xxm@rock-chips.com>
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2020-05-25 18:20:29 +08:00
Hu Kejun
7c60625d66 media: rockchip: isp: config iq param on different place
rdbk mode:
1. config iq param effecting immediately before each stream start;
2. config iq param effecting on next frame at last v start of current frame;

other mode:
1. config iq param on each frame end;

Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
Change-Id: I10178c2f62fe6792b359434324e16e307cdf7620
2020-05-25 18:20:28 +08:00
Finley Xiao
70cde67391 clk: rockchip: rv1126: Fix capture pwm clock name
Change-Id: I80ae5054d2f7cb0f8e627501e9921bc4dca63c1e
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2020-05-25 18:20:27 +08:00
Cai YiWei
f6061a0b51 media: rockchip: ispp: add module_init_ens to decide which function on
Change-Id: Ie6412446cc9b0fd54c6dc6fb277e1564c538da62
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2020-05-25 18:20:26 +08:00
Finley Xiao
58a5dd3e46 dt-bindings: clock: rv1126-cru: Rename some srst according to TRM V1.0
Change-Id: I869e5ebbf73fd1fc621aac176588c21b3a87f889
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2020-05-25 18:20:26 +08:00
Tao Huang
98672933b6 init: Introduce call initcall async
Support call same level initcall async in kthread.
Introduce kernel parameter "initcall_nr_threads" control how many threads.
initcall_nr_threads default is 0, which disable intcall async.
initcall_nr_threads=-1, auto selected the number of threads.

Save boot time about 29ms on rk3126-bnd-d708 board.

Change-Id: I04663d22500bc1d65ca5841fb08e4b57083d6b5e
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2020-05-25 18:20:26 +08:00
Simon Xue
15b2671e28 init: Add support directly parse cpio data decompressed by hardware decompressor
The working flow of new feature is:
->bootloader decompress ramdisk.gz to cpio data first and start kernel.
  ->decompressor driver notify initramfs that cpio data ready.
    ->initramfs continue to flush cpio data to rootfs.

Change-Id: I9cd5708fc93270ce77376c26d9da5a5c219996c1
Signed-off-by: Simon Xue <xxm@rock-chips.com>
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2020-05-25 18:20:26 +08:00
Finley Xiao
06488ce217 clk: rockchip: rv1126: Rename i2s clocks
Change-Id: I20693ef5b39f6f944a560d0526c6a4ff204dd506
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2020-05-25 18:20:10 +08:00
Cai YiWei
389b672b3e media: camera: add ioctl for get/set hdr mode
Change-Id: I4d0a891be7ee9afa14e9bb977be7a075e85c5365
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2020-05-25 18:20:08 +08:00
Hu Kejun
d9b92139e5 media: rockchip: isp: fix some awb bug
1. fix awb gain is not enabled when use rawawb only;
2. add new register of rawawb;

Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
Change-Id: Ieb59732e42acc5bd326982b3128a5cb4781e4ee2
2020-05-25 18:20:06 +08:00
Hu Kejun
4f4b86c75b media: rockchip: isp: change ae/hst name to match datasheet
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
Change-Id: Ie8e3944977f47903e72b36c4c793ecb537ff283d
2020-05-25 18:20:04 +08:00
Hu Kejun
4b9158e03a media: v4l: add dataformat for rockchip luma/ispp stat
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
Change-Id: I3e883b8066f27003bd50ce830aeb662dd4dc861f
2020-05-25 18:20:02 +08:00
Hu Kejun
c1642123fd media: rockchip: ispp: adjust interface struct to speed cpu access
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
Change-Id: I831829066ed2d8862cd76bab3b00cd9219f8018b
2020-05-25 18:20:00 +08:00
Cai YiWei
e980b4f14d media: rockchip: ispp: add more format and module control
Change-Id: I982d4d8529ac2b55dc4a695456554f6ca7c4985c
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2020-05-25 18:20:00 +08:00
Hu Kejun
758952fbac media: rockchip: ispp: fix some iq params error
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
Change-Id: Ib45a8ee9588406bb049944787d9c64fedc84dd04
2020-05-25 18:20:00 +08:00
Cai YiWei
242510a98e media: v4l: add rockchip fbc format
Change-Id: I0dd89290f23c412d4656583f554e220af66f9704
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2020-05-25 18:19:59 +08:00
Finley Xiao
f684c31670 clk: rockchip: rv1126: Change SRST_MAC_PTPREF to SRST_GMAC_A
Change-Id: I216da6218d43d7150f23a1acbc86f98d153c4485
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2020-05-25 18:19:58 +08:00
Cai YiWei
998e9cd43f media: rockchip: isp: add csi tx/rx memory mode API
Change-Id: I289b1c57889e65d5220462d9509f96287b3fb81a
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2020-05-25 18:19:57 +08:00
Cai YiWei
6109c9a423 media: rockchip: isp: add read back frame id
read back frame id to sync frame isp input and output

Change-Id: I739cdf04d8a9f1efa8c70e818329ae80ad606a90
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2020-05-25 18:19:57 +08:00
Hu Kejun
47984bb964 media: rockchip: isp: add other iq config function
Change-Id: I79d6aab382eb79489f0aee19812233b34f012b72
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
2020-05-25 18:19:57 +08:00
Hu Kejun
45fd20585f media: rockchip: isp: support get y statics from csirx
Change-Id: I7a69c63c8b42b1144a82e7efdd12b176e3b2090c
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2020-05-25 18:19:57 +08:00
Finley Xiao
9dd115ef8c clk: rockchip: rv1126: Add support for otp
Change-Id: I5ec48815522decfba8cbd9be7ec015019744a63e
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2020-05-25 18:19:55 +08:00
Finley Xiao
1758971897 clk: rockchip: rv1126: Fix usb clock names
Change-Id: Ic281de5a3d0feeddddaa509eb721dc6f0b584f6b
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2020-05-25 18:19:54 +08:00
Cai YiWei
b59278f203 media: rockchip: ispp: init ispp
Change-Id: I20a6eee6157eccee6ac117b561a472474ce36b9f
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2020-05-25 18:19:54 +08:00
YouMin Chen
39394614c1 dt-bindings: clock: rv1126-cru: add clock ID SCLK_DDRCLK
Change-Id: I837a9501b0fa353d149c2c8b60004583e3671b4b
Signed-off-by: YouMin Chen <cym@rock-chips.com>
2020-05-25 18:19:53 +08:00
YouMin Chen
71f94bb370 dt-bindings: memory: add header to define DRAM for rv1126
Change-Id: I19707013b3bc6600838a4dc20228467ba66ff0d8
Signed-off-by: YouMin Chen <cym@rock-chips.com>
2020-05-25 18:19:52 +08:00
Cai YiWei
a1473fa729 media: rockchip: isp: add isp2.0 rawrd read back API
Change-Id: I0ffab0e90b3eaebfad949826eee8601f80e01caf
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2020-05-25 18:19:52 +08:00
Cai YiWei
e631e47fe7 media: rockchip: isp: support 3a part of isp2.0
Change-Id: I5650286494b09e9d0dbda651d84761327621de11
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2020-05-25 18:19:52 +08:00
Cai YiWei
8d2efa7f5e media: rockchip: isp: init isp2.0
Change-Id: Ia22c5eefc931280dca77201dea420aff622f1e82
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2020-05-25 18:19:51 +08:00
Elaine Zhang
231ff8eb4a soc: rockchip: power-domain: add power domain support for rv1126
This driver is modified to support RV1126 SoC.

Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: I1a3c87d9b17b198e5cf5408b732b2a53363f4ef1
2020-05-25 18:19:51 +08:00
Finley Xiao
7f7d18ba2d clk: rockchip: Add clock controller for the RV1126
Add the clock tree definition for the new RV1126 SoC.

Change-Id: I4a329d27d3a84f43a0ae956bce16597706eeb1ae
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2020-05-25 18:19:50 +08:00
Finley Xiao
8001749f9c clk: composite: Add support to change brother clock rate
Some composite clocks may have the same parent clock, if one clock change
the parent clock rate, the other clock rate may too large, so add a
brother clock in composite that the other clock also can be changed when
parent rate is changed.

Change-Id: I2c6749e578b76d6780cecdcd9ff1b5fd4f25a0ba
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2020-05-25 18:19:49 +08:00
Finley Xiao
f5463b5262 Revert "clk: fractional-divider: check parent rate only if flag is set"
This reverts commit d13501a2be.

This patch causes 32768Hz can't be divided from 24MHz.

Change-Id: I1e86c2b0c96be0d1a80de83d1ac5e5909becbde1
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2020-05-25 18:19:49 +08:00
Elaine Zhang
eb1731965c regulator: fan53555: add support for Rockchip RK860X regulators
Rockchip RK860X regulators share the exact same functionality and
register layout as the Fairchild FAN53555 regulators.
Therefore extend the driver to add support for them.

Both types use the same vendor id in their ID1 register, so it's not
possible to distinguish them automatically.

Similarly, the types also do not match. Type 8 used by the RK8603
and RK8604 start at 500mV and increment in 6.25mv steps,
while the FAN53555 type 8 starts at 600mV and increments in 10mV steps.
And the en register is also differences.

Change-Id: Id93f85de91b79a1922b1efc27771f30dd7bc8bcb
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2020-05-25 18:19:48 +08:00
Wu Liangqing
844ba815a5 intput: sensors: accel: add sc7a30 support
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
Change-Id: I7727b6bf642b9f2f2a1ee53e7de283c4f818d7f9
2020-05-08 20:34:48 +08:00
Elaine Zhang
840eb062cc clk: rockchip: add a COMPOSITE_DCLK clock-type
The CLK_SET_RATE_PARENT flag make the parent clock and the child clk is 1:1.
If the DCLK frequency is too low, the PLL frequency will be very
low, which will affect the output waveform quality of PLL, and PLL
locking may be abnormal, so add a new COMPOSITE_DCLK clock-type to handle
that.

Change-Id: If9bee9ebf157fcf034aed246b3aa1cff503ef9cf
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2020-05-06 16:09:33 +08:00
Finley Xiao
e5d2ff986f soc: rockchip: pvtm: rename ch to id and sub_ch to ring_sel
Make the name remain consistent with TRM.

Change-Id: Iedf837ca45f4cb54e1a61a32015deeb3c5e7276e
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2020-04-27 18:44:49 +08:00
Mark Salyzyn
e77ca8f9c9 Revert "BACKPORT: mm: move zone watermark accesses behind an accessor"
This reverts commit acfb1c608b.

Reason for revert: revert customized code
Bug: 140544941
Test: boot
Signed-off-by: Minchan Kim <minchan@google.com>
Signed-off-by: Martin Liu <liumartin@google.com>
Signed-off-by: Mark Salyzyn <salyzyn@google.com>
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: I4988ddf1fc24579d4fc478de1de6e45b870f7bcd
2020-04-22 14:10:19 +08:00
Mark Salyzyn
240610c486 Revert "BACKPORT: mm: reclaim small amounts of memory when an external fragmentation event occurs"
This reverts commit 5cbbeadd5a.

Reason for revert: revert customized code
Bug: 140544941
Test: boot
Signed-off-by: Minchan Kim <minchan@google.com>
Signed-off-by: Martin Liu <liumartin@google.com>
Signed-off-by: Mark Salyzyn <salyzyn@google.com>
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: I65735f27f6a44a112957bcec07e2f63f2d8ccff6
2020-04-22 14:10:19 +08:00
Mark Salyzyn
bea61f8995 Revert "BACKPORT: mm, compaction: be selective about what pageblocks to clear skip hints"
This reverts commit fd9c71c06b.

Reason for revert: revert customized code
Bug: 140544941
Test: boot
Signed-off-by: Minchan Kim <minchan@google.com>
Signed-off-by: Martin Liu <liumartin@google.com>
Signed-off-by: Mark Salyzyn <salyzyn@google.com>
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: I58d978c6f74f8a1a04b17fa6d3890ddc4f1988c0
2020-04-22 14:10:19 +08:00
Wang Jie
16be479deb drivers: input: sensor: add mxc6655xa gsensor support.
Change-Id: I0d3c70cd5ee917b8a64f2ffb4e63615edda33cf9
Signed-off-by: Wang Jie <dave.wang@rock-chips.com>
2020-04-17 18:28:28 +08:00
Zeng Tao
66cb0608ac FROMLIST: usb: gadget: uvc: configfs: add framebased format support
As we know, The framebased format can be used to support a lot of
formats other than YUV and MJPEG, for example: H264 or H265.
And Nowadays, the H264 and H265 is used more and more compared to the
MJPEG, so there is a need to support such usecase, although the new UVC
1.5 and the UVC1.1 extensions already support H264, but they are much
more expensive and most of the time, what we need is just a channel to
stream the video frames.

In this patch, we implement the framebased format and set it to H264 by
default, and the users could change the video format as they need through
the guid configfs attribute node.

Change-Id: Ie1c62f5fb4fa57c24a2878f9992c982e9deb302e
Signed-off-by: Zeng Tao <prime.zeng@hisilicon.com>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(am from https://patchwork.kernel.org/patch/10722957/)
2020-04-08 11:45:11 +08:00
Sandy Huang
4492caa259 drm/modes: add dclk invert config parse
Change-Id: I386159201bc44f02c3aa6862f222910c801cfbac
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2020-04-01 16:39:59 +08:00
Jianqun Xu
d9ed60476f dt-bindings: pinctrl: rockchip support RK_FUNC_{5,15}
Change-Id: Ic328589e110c5968b67742d055cdb18269153954
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2020-03-30 14:11:06 +08:00