normal mode also use tmo module now, so we should set tmo bit in gain by tmo enable
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
Change-Id: I35395cf20c53ab92645b419a5d162a23f65c5274
Plan A: MIPI/LVDS-->VICAP-->ISP-->ISPP
Plan B: MIPI/LVDS-->ISP-->ISPP
The performance of Plan B is enough for 1080P sensor. Moreover, it saves
about 12+mw than Plan A.
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
Change-Id: I5abbc76e831625b822c6b15b90f0b2c8e530483d
RK3568 is a Soc from Rockchip, which embedded with quad
ARM Cortex-A55.
This patch add basic core dtsi file for RK3568.
Change-Id: Ib555d4402e4dceb4dcd59989c3a8ee14c8bfbe76
Signed-off-by: Liang Chen <cl@rock-chips.com>
We use strlcpy instead of strcpy to ensure that array won't out
of bounds.
Fixes: a322b6c50d (FROMLIST: usb: gadget: f_uac*: Support multiple sampling rates)
Signed-off-by: Ren Jianing <jianing.ren@rock-chips.com>
Change-Id: Iebda94fea94dc929320273c16de996ff0d2d6397
This patch fixes the issue that a pointer is used as the parameter
of sizeof.
Fixes: 9de5fa6df1 (FROMLIST: usb: gadget: f_uac*: Reduce code duplication)
Signed-off-by: Ren Jianing <jianing.ren@rock-chips.com>
Change-Id: I66bfc58e71c498dd8a82f9b5045f851585e1f441
remove the buf[0] & HYM8563_SEC_VL, it's unsuitable for some hym8563.
set rtc init time for first power on.
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: Iaa207d554d9df9ad8f138fc2f196c8a7a991b141
This submit supports to compile rockchip pvtm into a module.
Change-Id: Id32b2dad80af8657b28e308d155539e3c7dac48a
Signed-off-by: Liang Chen <cl@rock-chips.com>
Fix the name of gpio bank to be more general, make it with bank index
instead of node name.
Change-Id: Ia7e61e2eaa2cdd8f3ff0482cfc7c857f2a505935
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
This feature is conflict with Android 11 which has the generic ramdisk
and the vendor ramdisk.
Fixes: c44194873a ("HACK: get ramdisk correct size with rk bootloader")
Change-Id: I4d158862398973f3ca205fbbbaa48022c2903936
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
The RTC has a valid bit in the seconds register that indicates whether
power was lost since the pevious time set. This bit is currently read
once at probe time, cached and updated with set_time.
Howeever, caching the bit may prevent detecting power loss at runtime
(which can happen if the RTC's supply is distinct from the the platform's).
Writing the seconds register when setting time will clear the bit,
so there should be no downside in reading the bit directly instead of
caching it.
Change-Id: I85d1dcfb32b12ed24d5f42f67fb9beb5d8d03876
Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Link: https://lore.kernel.org/r/20191212153111.966923-2-paul.kocialkowski@bootlin.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
(cherry picked from commit e2ed7507ae)
Add delay to enable oneframe signal complete, when gc2145 stream off.
For uncompleted frame signal may cause rkisp1: CIF_ISP_PIC_SIZE_ERROR,
when gc2145 switch to new resolutions.
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: I6be22471fabfba5da2cac9806d634837d6a08fb9
This driver is modified to support RK3568 SoCs.
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I5895cedad8c8e89f0657276c913e6e99d9544762
Add binding documentation for the power domains
found on Rockchip RK3568 SoCs.
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I7544a643096948e75f59fb8126201b0de142440d
According to a description from TRM, add all the power domains.
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I7205cbf6e38c9d5abb1ef58e45641cc27fcf6ec9
Move the dmc timing from rockchip_dmc.c to rockchip_dmc_timing.h.
In order to be able to reuse them.
Change-Id: I03edf68c68b78c08100ffa1c149d70d4d7d4ee6e
Signed-off-by: YouMin Chen <cym@rock-chips.com>
Remove gpiochip related codes from pinctrl driver, but populate gpio
platform devices from device tree data.
Change-Id: I347acaac2998a972e4c3be5c8827f77f468a7ad2
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
This gpio driver codes mostly are copied from pinctrl-rockchip.c with
module fixes. Also it supports the old dt nodes.
Change-Id: I7f26b5fe0827c16e2146a40e035a81de74284191
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>