In order to achieve 1080P30 performance in the presence of MJPEG
decoding and H264 encoding, it is necessary to raise the clk_core
to 300M.
Change-Id: Ifc9861d02694ce55d1176d5d4ad41c40a1d4e034
Signed-off-by: Rimon Xu <rimon.xu@rock-chips.com>
1.If the validation fails, the data is discarded and the data is
restored to avoid the abnormal data written when the power lost
leading to system crash.
Change-Id: I83590ed44d98b02c3fc2eee108a38b46275613c0
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
PX30 vopb have win0, win1 and win2 layers.the formats they support below:
Win0: XR24 AR24 XB24 AB24 RG24 BG24 RG16 BG16 NV12 NV16 NV24 NA12 NA16 NA24
Win1/2: XR24 AR24 XB24 AB24 RG24 BG24 RG16 BG16
Only the win0 layer support NV12 format(video decode format).
So change to use win0 for video overlay layer and win1 for ui layer.
Change-Id: I7ef8bda4be908188700ca4d3f1df23a6336e02b2
Signed-off-by: Leo Wen <leo.wen@rock-chips.com>
This patch tried to define the rootfs type as the squashfs for robot linux sdk
Change-Id: I5357dfe46ec3a8c3feb7b8acfdacb29d935f80e8
Signed-off-by: Leo Wen <leo.wen@rock-chips.com>
This patch adds support for generic phy as an optional.
Change-Id: Idcb30be4a88a688be839b45a96d3b78258d63a7d
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
This patch adds support for generic phy as an optional.
Change-Id: I3274d8f50fb5f06912d1f46cfb70252722b72223
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
The Innosilicon Video Combo PHY not only supports MIPI DSI,
but also LVDS and TTL functions with small die size and low
pin count. Customers can choose according to their own applications.
Change-Id: I0e4a5f69af5cc967b5df0fb17a51c43cef9ea33f
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
This patch adds more generic PHY modes to the phy_mode enum, to
allow configuring generic PHYs to the MIPI/LVDS/TTL mode by
using the set_mode callback.
Change-Id: Ib6966828011aa52f1f133449f69df46c2001a57b
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
The power consumption is no visible difference between RKPM_SLP_ARMOFF_LOGPD
mode and RKPM_SLP_ARMOFF mode. But RKPM_SLP_ARMOFF_LOGPD mode will cost
more time in suspend/resume flow. So we'd better use RKPM_SLP_ARMOFF in
most products. Here, we change RKPM_SLP_ARMOFF_LOGPD to RKPM_SLP_ARMOFF
in dtsi, that's a good way to make most products to use RKPM_SLP_ARMOFF.
Change-Id: Iec541a6831022ded2dad4298fc470bec7bd978f6
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
clock-freq-min-max is deprecated, replacing with max-frequency.
changing "ciu-drv" to "ciu-drive", appears to be a typo.
Change-Id: I40218e6ea800aa983f22007e23e04e6364635dbe
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Based on the TSADC Tshut mode to select pinctrl,
instead of setting pinctrl based on architecture
(Not depends on pinctrl setting by "init" or "default").
And it requires setting the tshut polarity before select pinctrl.
Change-Id: Iac9ca05073b0181ee13b0048d0c2a54204f82bca
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
The vccio_sd keepon in suspend will causes 10ma power consumption to
increase if there is no serial cable connection.
Set vccio_sd and vcc_sd power off in suspend for rk3399pro evb v10/v11.
Change-Id: I935de4028bea5d03a0397b81bd63c99757155b4d
Signed-off-by: Weixin Zhou <zwx@rock-chips.com>
Add static inline for sip_smc_lastlog_request() when
CONFIG_ROCKCHIP_SIP is not enabled.
Change-Id: I8fe46c36b115b4aa8a71a4101a7829e64aa08103
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
A “battery fuel gauge” is integrated in the RK809. Using
the proprietary algorithms and the sensed battery current
and voltage, the gauge can accurately calculate the battery
capacity based on the charging/discharging characteristics
of the battery preloaded in the system. The gauge then sends
the battery capacity information to the processor through
the I2C interface.
Change-Id: I0be1f9ef48285c17d599753d65161e79b0a4c95a
Signed-off-by: Shengfei Xu <xsf@rock-chips.com>
There is no need to judge hpd status in atomic_begin and atomic_flush.
And this judgment may cause display error if TV make hpd status change
frequently.
Change-Id: I2ed87ef42b78a8faadc4bcc5b6b16d9390644903
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Some HW connect to peripheral reset circuit,
but uboot first select set pinctrl mode to default,
it result system reboot.
Change-Id: I79453dd4839e846138130e6488aca9c0f419fb38
Signed-off-by: Lin Jianhua <linjh@rock-chips.com>
The rockchip saradc controller is too scanty for some products that is
requires at least x10 channels ADC. Generally, we can use a CMOS analog
switch to extend a multi-channel ADC, eg.sgm3699. It's a quad,
bidirectional, single-pole/double-throw (SPDT) CMOS analog siwtch.
This patch implements a multiplexer ADC controller using a number of
gpio pins and parent ADC channel. It's compatible with most of CMOS
analog switch. And it provides a direct mode to get a raw data of each
muxadc channel.
/sys/bus/iio/devices/iio:device1/
|-- in_voltage_adc_brush_raw
|-- in_voltage_adc_mid_brush_raw
|-- in_voltage_adc_move_l_raw
|-- in_voltage_adc_move_r_raw
|-- in_voltage_qyxs_raw
|-- in_voltage_qzxs_raw
|-- in_voltage_yxs_raw
|-- in_voltage_zxs_raw
Change-Id: If71636d45543430e616299e6a6b91084f4f315e6
Signed-off-by: Ziyuan Xu <xzy.xu@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: 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>