This is needed by rk3566-rk817-tablet-rkg11 with mic array
Signed-off-by: Binyuan Lan <lby@rock-chips.com>
Change-Id: I6c1083b402273bfa1492c9a2f851a76a5c71ab7d
ydsoc error can lead to charge or discharge become slow.
Signed-off-by: Shunqing Chen <csq@rock-chips.com>
Change-Id: Ie17f0064eda3723378f49caef08bca212c322d70
This patch adds a new function rockchip_combphy_parse_dt()
to parse devicetree for combphy, and get reset properties
for later reset control.
Change-Id: I41821ec9c99a866b04c4514f0fbca55d118b7175
Signed-off-by: William Wu <william.wu@rock-chips.com>
ES7210 is a 4-ch ADC with I2S interface for Microphone Array
Signed-off-by: Binyuan Lan <lby@rock-chips.com>
Change-Id: I71faf344eb8b058349a7a889eae296115cc788c8
sound/soc/codecs/cx2072x.c:778:3: warning: comparison of distinct pointer types ('typeof ((frac_num)) *' (aka 'unsigned long *') and 'uint64_t *' (aka 'unsigned long long *')) [-Wcompare-distinct-pointer-types]
do_div(frac_num, 7);
^~~~~~~~~~~~~~~~~~~
sound/soc/codecs/cx2072x.c:1001:9: warning: comparison of distinct pointer types ('typeof ((div)) *' (aka 'unsigned long *') and 'uint64_t *' (aka 'unsigned long long *')) [-Wcompare-distinct-pointer-types]
mod = do_div(div, bclk_rate);
^~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Iab3ff22c4bea8144fd566b6fe64da6c1aef24455
sound/soc/codecs/es8323.c:139:27: warning: variable 'es8323_pga_sel' is not needed and will not be emitted [-Wunneeded-internal-declaration]
static const char * const es8323_pga_sel[] = {
^
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Id17a0005cc933317e906107a51b22696020c0a51
This patch creates an usb2 phy attribute group and
provides an attribute "otg_mode" for otg port to
force otg mode independently of the voltage of otg
id pin.
In order to implement the force mode function, we can
select otg plug indicator output (AKA iddig) from GRF,
and set GRF USB otg plug indicator to "0" or "1" to
control iddig status.
Attention, we set iddig to "0" by disable idpullup rather
than set GRF, the otg_suspendm will be set to 1 to enable
the disconnect detection module, and the LS_PAR_EN will be
set to 1 to enable low speed device enumerate.
Usage:
[1] Force host mode
echo host > /sys/devices/platform/<u2phy dev name>/otg_mode
[2] Force peripheral mode
echo peripheral > /sys/devices/platform/<u2phy dev name>/otg_mode
[3] Force otg mode
echo otg > /sys/devices/platform/<u2phy dev name>/otg_mode
For RV1109 and RV1126 EVB, the <u2phy dev name> is ff4c0000.usb2-phy.
Change-Id: Icba5e4a3d2aae6cd1df5435d64fd0caea4348ec2
Signed-off-by: Ren Jianing <jianing.ren@rock-chips.com>
Signed-off-by: William Wu <william.wu@rock-chips.com>
NVR demo board use DCLK_VOP1 drive VGA monitor, which should
as accuracy as possible.
Change-Id: Ie19174cf2b0c951216c8f5e1850758a9df66be0b
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
In order to make loopback slave into LPBK.Active state,
we add "rockchip,lpbk-master" for DTU to force it as a
remote loopback master device. Nothing needed for slave.
Change-Id: Id851ad8e34e29939f12f76cb132d942bc059a811
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
This is workaround solution for IC design:
esmart can't support scale down when actual_w % 16 == 1.
Change-Id: I0fa090c5e28b79e644ef31ea1184b724b9d32ffa
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
No rule to make target 'drivers/input/sensors/compass/mmc328x.c',
needed by 'drivers/input/sensors/compass/mmc328x.o'.
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ic29c4ebfb85f482470e7e5d24f2e6429187fda37
up_read() may wakeup some tasks, so do not call up_read() in scheduler,
or it will cause deadlock as below:
Thread #4 5 (Name: cpu3, state: debug-request) (Suspended : Container)
queued_spin_lock_slowpath() at qspinlock.c:369 0xffffff8008119120
queued_spin_lock() at qspinlock.h:88 0xffffff8008f0a470
do_raw_spin_lock() at spinlock.h:180 0xffffff8008f0a470
__raw_spin_lock() at spinlock_api_smp.h:143 0xffffff8008f0a470
_raw_spin_lock() at spinlock.c:144 0xffffff8008f0a470
rq_lock() at sched.h:1,244 0xffffff80080f2f4c
ttwu_queue() at core.c:2,442 0xffffff80080f2f4c
try_to_wake_up() at core.c:2,658 0xffffff80080eb998
wake_up_q() at core.c:450 0xffffff80080eb6a8
rwsem_wake() at rwsem-xadd.c:703 0xffffff800811a44c
__up_read() at rwsem.h:107 0xffffff8008118930
up_read() at rwsem.c:122 0xffffff8008118930
cpufreq_task_boost() at cpufreq_interactive.c:1,449 0xffffff8008a4bdb4
enqueue_task_fair() at fair.c:5,285 0xffffff80080f7814
enqueue_task() at core.c:1,324 0xffffff80080ec15c
activate_task() at core.c:1,346 0xffffff80080ec15c
ttwu_activate() at core.c:2,240 0xffffff80080f2fc0
ttwu_do_activate() at core.c:2,299 0xffffff80080f2fc0
ttwu_queue() at core.c:2,444 0xffffff80080f2fc0
try_to_wake_up() at core.c:2,658 0xffffff80080eb998
wake_up_q() at core.c:450 0xffffff80080eb6a8
futex_wake() at futex.c:1,636 0xffffff8008159e78
do_futex() at futex.c:3,714 0xffffff8008158fb0
__do_sys_futex() at futex.c:3,770 0xffffff800815bd98
__se_sys_futex() at futex.c:3,738 0xffffff800815bd98
__arm64_sys_futex() at futex.c:3,738 0xffffff800815bd98
__invoke_syscall() at syscall.c:36 0xffffff8008098d6c
invoke_syscall() at syscall.c:48 0xffffff8008098d6c
el0_svc_common() at syscall.c:117 0xffffff8008098d6c
el0_svc_handler() at syscall.c:163 0xffffff8008098ccc
el0_svc() at entry.S:940 0xffffff8008083d08
Fixes: 2d367d61e8 (cpufreq: interactive: introduce boost cpufreq interface for task)
Change-Id: I9607faa5ede3a662e7f2f55da29b08fc328f4d43
Signed-off-by: Liang Chen <cl@rock-chips.com>
restore vcm_config ioctl deleted by commit a3907e42d2 ("media: add motor driver of MP6507 for camera IRIS/FOCUS/ZOOM")
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
Change-Id: I391ec77a31291c65fbb04da1915647be25dcf4b5
fix compile error: implicit declaration of function 'rkisp_ioctl'
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
Change-Id: Ic4822eb6697d300c76d0845d90284ae5940caa4a
Test:
CtsAppExitTestCases
android.app.cts.ActivityManagerAppExitInfoTest#testLmkdKill
Android R Go's lmkd needs this configuration to correctly match vmstat,
enable it to make lmkd work properly.
Signed-off-by: Bian Jin chen <kenjc.bian@rock-chips.com>
Change-Id: I0b88921d9fadb33b91512a9dd911bca811c4bc31
Test:
CtsAppExitTestCases
android.app.cts.ActivityManagerAppExitInfoTest#testLmkdKill
Android R Go's lmkd needs this configuration to correctly match vmstat,
enable it to make lmkd work properly.
Signed-off-by: Bian Jin chen <kenjc.bian@rock-chips.com>
Change-Id: I57ee648f70f7b44755f7ddb0d8bb3082273e926b
RK808\RK818 have November 31st,Other chips fixed the problem.
Fixes: f076ef44a4 ("rtc: rk808: Compensate for Rockchip calendar
deviation on November 31st")
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: I8977a14abcc3973728b5941951d17d493b3955d4
Add device tree binding documentation for the OV12D2Q sensor.
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Id73ef1715af9f25b6c333fbcec1177fc450c0d13
Add device tree binding documentation for the OV2775 sensor.
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I17d6b0ef08e59289768b0155b9cec43f2d08943e