DVP powers are controlled by sensor itself, removing always-on
propertity.
Meanwhile, the vcc_sd is boot-on according to schematic.
Change-Id: I5dbd1eb7a90c589434198d152cc2b9883c8acd24
Signed-off-by: Shunqian Zheng <zhengsq@rock-chips.com>
DVP powers are controlled by sensor itself, removing always-on
propertity.
Meanwhile, the vcc_sd is boot-on according to schematic.
Change-Id: I74809672b9ec7ae250243e47e7e700236d5b0839
Signed-off-by: Shunqian Zheng <zhengsq@rock-chips.com>
mmc sample shift should be 1 for rk3228, or it will fail
if we enable mmc tuning for rk3228.
Change-Id: I301c2a7d33de8d519d7c288aef03a82531016373
Signed-off-by: Chen Lei <lei.chen@rock-chips.com>
Init resolution 3840x720 and bus format MEDIA_BUS_FMT_SBGGR8_1X8
for virtual camera.
Change-Id: Id45f7deb3896ca230cfd3fc44238c0d62d79416a
Signed-off-by: Wenlong Zhuang <daisen.zhuang@rock-chips.com>
This patch adds a virtual camera to simulate a actual sensor,
in order to power up CIF and MIPI CSI DPHY without connecting
a actual sensor.
The virtual camera include following feature:
- Format: SBGGR8_1X8,SGBRG8_1X8,SGRBG8_1X8,SRGGB8_1X8,
SBGGR10_1X10,SGBRG10_1X10,SGRBG10_1X10,SRGGB10_1X10,
RGB888_1X24
- Resolution: 1280x720,1920x1080,3840x720,3840x2160,5120x2880
- Link-frequency: 100000000,150000000,200000000,250000000,
300000000,350000000,400000000,500000000,
600000000,700000000,800000000,900000000,
1000000000
Change-Id: I81c9a1ba0271800e38a8f51c9a08e8076ef94d0d
Signed-off-by: Wenlong Zhuang <daisen.zhuang@rock-chips.com>
the time get from do_gettimeofday and rtc_read_time
is different, and more than 80000 seconds.
so after resume the battery level jump down a lot.
Change-Id: Ica616240ce03dff73a65e6f724c28910e1786c81
Signed-off-by: Shunqing Chen <csq@rock-chips.com>
Return ERR_PTR(-ENODEV) if rockchip_combphy_xlate fails to
set phy type. This fixes the usb dwc3 controller probe fail
if the phy type has been set to PCIe. With this patch, the
rk1808 can support PCIe and USB 2.0 at the same time.
Change-Id: I1cd58f720cb361e606f5e2ac761b9ca71ddaa67e
Signed-off-by: William Wu <william.wu@rock-chips.com>
tested on rk3288-evb-rk808-linux.
The resistance R1036 maybe NC on RK_EVB_RK3288_LPDDR3_V1x
Please check it if you want use the hdmi cec function.
Change-Id: I2533351ea5741b501b25c4c0485dc9246adf11bb
Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
Not all the rk3399 boards use gpio4_c7 pin for edp_hpd.
So this pin should be specified in the board dts.
Without this patch we see below pin conflict when hdmi-cec and edp enabled.
[ 0.969331] rockchip-pinctrl pinctrl: pin gpio4-23 already requested by
ff940000.hdmi; cannot claim for ff970000.edp
[ 0.969350] rockchip-pinctrl pinctrl: pin-151 (ff970000.edp) status -22
[ 0.969361] rockchip-pinctrl pinctrl: could not request pin 151 (gpio4-23)
from group edp-hpd on device rockchip-pinctrl
Change-Id: I324f28ea9f995ee4b84869ac369ab63e0c141cfa
Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
GPIO4_C7 is used for hdmi-cec since rk3399-sapphire-excavator-v12.
Change-Id: I8c26debdcb1827e067b7a95acf6151160b61e03d
Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
All the CEC ioctls are compatible, and they are only implemented
in one driver, so we can simply let this driver handle them
natively.
Change-Id: I04136c171777d5ab23760e20162f0a6197090ca8
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
(cherry picked from commit e6c8320648)
Accroding to the datasheet, the pin of gpio3b4 needs to be
recalculated for iomux selecting.
Change-Id: I62cc16cae96fe2f9624d9c5940f9c34b304eaed7
Signed-off-by: David Wu <david.wu@rock-chips.com>
RK1808 PCIe share pd with others, add pd reference in case being
turned off by others
Change-Id: I899eb7524ae9aaada3cc161a63434113a3a1768e
Signed-off-by: Simon Xue <xxm@rock-chips.com>
different board have different key definition, so move adc key label
to specific board dts.
Change-Id: I71da316c639ca0fd063c1ec5c2e303f1a824ed71
Signed-off-by: Lin Huang <hl@rock-chips.com>
This patch simplifies the mclk calculation to 128fs, which
is generally required in some receivers.
Change-Id: I2914ab57453ee5f764885fa8fa9dacd44a67e775
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
The usage of slew rate is needed to config it at DTS,
such as:
fast speed: slew-rate = <1>;
slew speed: slew-rate = <0>;
Change-Id: Iefa9c15a35c6c1e94f716f5d6dd7e30d20a7293f
Signed-off-by: David Wu <david.wu@rock-chips.com>