Commit Graph

608857 Commits

Author SHA1 Message Date
Tao Huang
57da81b29f PM / devfreq: rockchip_dmc: make rockchip_find_video_info static
Change-Id: I13eb60038410592dc1eab14cf3db8f30d01fc56b
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-05-04 20:11:48 +08:00
Bin Yang
7cccd28135 input: touchscreen: gslx680: compatible with more TP
Each product needs to create a new driver code, even if
they are using the same TP chip. This creates a lot of
code redundant.

Change-Id: I3d7d9982d98deba0ea4067c9adb76fe2a09ab659
Signed-off-by: Bin Yang <yangbin@rock-chips.com>
2018-05-04 20:09:36 +08:00
Elaine Zhang
0984fde1d7 soc: rockchip: power-domain: add panic when wait status timeout
Change-Id: Ic0ce83068091313942f9277ba56abffa525da1d2
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2018-05-04 19:13:15 +08:00
Randy Li
8373cf713d clk: rockchip: rk3036: export the sfc clocks
The serial Flash controller on the rk3036 would request
two clock nodes.

Change-Id: Iaa50c4a25602a68241b0b9b2f186e4c7e55bc3da
Signed-off-by: Randy Li <randy.li@rock-chips.com>
2018-05-04 19:12:31 +08:00
Binyuan Lan
8a4fa02d9d arm64: dts: rockchip: Enable dmc for rk3326-evb-ai-va
Change-Id: I83ff4a926aef6b11107b9a3723a425bb450b8b9e
Signed-off-by: Binyuan Lan <lby@rock-chips.com>
2018-05-04 19:11:37 +08:00
Sugar Zhang
3e49f3aec4 arm64: dts: rockchip: px30: fixup i2s0 node
Change-Id: Ibf4f59d2f85dad9e7343d9d02c723891a5b7adbd
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2018-05-04 15:53:40 +08:00
Tao Huang
2d32260be1 arm64: rockchip_defconfig: update by savedefconfig
Change-Id: Ia05e25f8c7e9675260e5417bce503937ce0cea2f
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-05-04 14:01:48 +08:00
Joseph Chen
e6d758f352 soc: rockchip: fiq debugger: rename notify callbacks
1. rename callbacks to make them more clearly to be understood;
2. add description for intention;

Change-Id: Ic0e28aa98793495c01f531331e9d5dc816ee0820
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-05-04 13:53:43 +08:00
shengfei Xu
daa327cbb0 power: rk817-battery: improve the storage accuracy of dsoc
The save dosc accuracy is not enough to cause the display soc
to be reduced by 1 when system reboot.

Change-Id: Iefd29a0ce16b9975be3d90260d1793ba322db303
Signed-off-by: shengfei Xu <xsf@rock-chips.com>
2018-05-04 11:49:00 +08:00
Zhou weixin
dfb23b6072 arm64: dts: rockchip: disable kpti for px30
The cpu will block if the CONFIG_RANDOMIZE_BASE\rockchip-dmc\kpti
are enabled, and the kpti will reduced system performance.

Change-Id: Icd054a4a9cbbea20bd8f8c33a6db64c6fd304fd0
Signed-off-by: Weixin Zhou <zwx@rock-chips.com>
2018-05-04 11:48:13 +08:00
Yu YongZhen
418662ad19 arm64: dts: rockchip: rk3308-evb-amic-v10: fix is31fl3236 reg to 0x3f
Change-Id: I961f0fab7c6af8e357bb95c7d30ca2e9f5702f90
Signed-off-by: Yu YongZhen <yuyz@rock-chips.com>
2018-05-03 20:42:13 +08:00
XiaoDong Huang
3a13a2ae52 arm64: dts: rockchip: px30: disable cpu CLUSTER_SLEEP
Change-Id: I240d47f2c8f665af9d2b4c0cc87bf70ecd420bc4
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
2018-05-03 19:54:45 +08:00
Tony Xie
c71109b38b arm64: configs: rockchip_defconfig: enable CONFIG_ARM_ROCKCHIP_BUS_DEVFREQ
Change-Id: I37ff6d6a689f74f907500f3611e5e0c8107b7d56
Signed-off-by: Tony Xie <tony.xie@rock-chips.com>
2018-05-03 19:54:14 +08:00
Tony Xie
486b994199 arm64: dts: rockchip: add soc_bus support for px30.
Change-Id: I22c0865b2624c43e2b338dd055c266b4562c8213
Signed-off-by: Tony Xie <tony.xie@rock-chips.com>
2018-05-03 19:53:51 +08:00
Tony Xie
b66148ef0d PM / devfreq: rockchip_bus: support soc bus devfreq.
Change-Id: Iba750d4522b99e88c16c8e4a77d3367fbb2a0d82
Signed-off-by: Tony Xie <tony.xie@rock-chips.com>
2018-05-03 19:53:43 +08:00
Cliff Chen
501046621d crypto: fix NEON bit sliced AES decryption error
The Neon bit sliced AES decryption store the key schedule in BS_KEY struct,
it introduces a competitive risk,such as dm-crypt without samecpu option.
So backport from linux stable version 4.14.13.

Change-Id: I8c728669ae626f56b38c24ed391aa3078a60f623
Signed-off-by: Cliff Chen <cliff.chen@rock-chips.com>
2018-05-03 15:18:59 +08:00
Sugar Zhang
015775bc79 clk: rockchip: rk3308: fixup clk_audio_src
Change-Id: I83cc0f1260e101681746c3847e1ec046d596fd7c
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2018-05-03 11:56:00 +08:00
Xing Zheng
cfb4b8e9b2 ASoC: rk3308_codec: fix the incorrect description for ADC1/ADC2
From the broken spec from vendor, the PGA GAIN description
for MIC-IN should be like this:
 * 0x0 - MIC1~MIC8 0dB
 * 0x1 - MIC1~MIC2 are invalid, MIC3~MIC8 6.6dB
 * 0x2 - MIC1~MIC2 are invalid, MIC3~MIC8 13dB
 * 0x3 - MIC1~MIC8 20dB

Therefore, we need to update the MIC-INs dapm controls:

- MIC1 / MIC2:
numid=25,iface=MIXER,name='ADC MIC Group 0 Left Volume'
  ; type=INTEGER,access=rw---R--,values=1,min=0,max=3,step=0
  : values=0
  | dBrange-
    rangemin=0,,rangemax=0
      | dBminmax-min=0.00dB,max=0.00dB
    rangemin=3,,rangemax=3
      | dBminmax-min=20.00dB,max=20.00dB

- MIC3 ~ MIC8:
numid=27,iface=MIXER,name='ADC MIC Group 1 Left Volume'
  ; type=INTEGER,access=rw---R--,values=1,min=0,max=3,step=0
  : values=0
  | dBrange-
    rangemin=0,,rangemax=0
      | dBminmax-min=0.00dB,max=0.00dB
    rangemin=1,,rangemax=1
      | dBminmax-min=6.60dB,max=6.60dB
    rangemin=2,,rangemax=2
      | dBminmax-min=13.00dB,max=13.00dB
    rangemin=3,,rangemax=3
      | dBminmax-min=20.00dB,max=20.00dB

Change-Id: I977179fdf33d6bb7e27708baef37cc308c3d0a71
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2018-05-03 10:52:36 +08:00
Tony Xie
686e6dfc50 regulator: rk808: DCDC_REG5 registers early.
If a regulator is supplied by the DCDC_REG5, and the regulator registers
behind the DCDC_REG5, then some devices can not have the regulator_get()
because the regulator has not get its suplly. The case happen in
rdev_init_debugfs() typically.

Change-Id: I02e336ad97e956c53351ca18af6c651126b3149d
Signed-off-by: Tony Xie <tony.xie@rock-chips.com>
2018-05-03 10:51:53 +08:00
David Wu
ffc12e054c i2c: rk3x: Add "suspended" flag to forbid access I2C bus during suspend/resume noirq
Add "suspended" flag in suspend_noirq()/resume_noirq() callback
to prevent new i2c job started, and use i2c_lock_adapter() to wait
for current i2c transfer finished.

If any i2c client try to access I2C after suspend_noirq() or
before resume_noirq() callback, return the error, and they
should fix it, not to start i2c access at this moment.

Change-Id: Idd1142058d10547d085895a498201c2ade6b9e96
Signed-off-by: David Wu <david.wu@rock-chips.com>
2018-05-03 09:53:01 +08:00
chenzhen
91842c9d8b MALI: rockchip: upgrade midgard DDK to r18p0-01rel0
with following modifications :
	fix some compile errors when ARCH=arm;
	replace "mali_base" with "midgard_base" in Kbuild files;
	fix a compile error when MALI_PWRSOFT_765 enabled;
	set "default n" for MALI_KUTF and MALI_IRQ_LATENCY.

Change-Id: I858c72aab939002c8e6241cd75fa8877ebbf6c35
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
2018-05-02 20:32:05 +08:00
Sugar Zhang
17138ba258 arm64: dts: rockchip: rk3308-evb-dmic-pdm-v10: add pdm-vad sound
Change-Id: Ideed6aa1961396206ba7b55fcbcdd392d59e92e4
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2018-05-02 19:51:17 +08:00
Sugar Zhang
d25bfd1af9 arm64: dts: rockchip: rk3308-evb-dmic-i2s-v10: add i2s-vad sound
Change-Id: I52f0312327547827a6bd72f68f5ba98cbe3abc83
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2018-05-02 17:48:11 +08:00
Sugar Zhang
a260f656a4 ASoC: rockchip: pdm: add default regs
Change-Id: I0453d04c035b8b6d6f084b5bac434ada64ea6e73
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2018-05-02 17:46:44 +08:00
Sugar Zhang
a8affcb419 ASoC: rockchip: vad: fixup total channel num
Change-Id: I88fcde558d48d39d8ea75ac564e1f9fcd8588efd
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2018-05-02 17:46:44 +08:00
Finley Xiao
4f2a3c9ff9 regulator: core: Update voltage only when other consumer set min_uV or max_uV
Change-Id: I95655978680610d47b8078a5f9c2fd8794f478b2
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-05-02 17:45:31 +08:00
Algea Cao
7690fe3886 drm/rockchip: tve: Get tve preferred mode from dts
Change-Id: I597328fd9a02ffd774d452497ae378c9d8204a21
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2018-05-02 14:19:32 +08:00
Sugar Zhang
c917c8e6c2 arm64: dts: rockchip: rk3308-evb-amic-v10: add vad-acodec sound
Change-Id: Ic1c82db03d6e0fe3e0f7caf52717879f80e0eefc
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2018-04-28 21:20:19 +08:00
Sugar Zhang
162ecad769 arm64: dts: rockchip: rk3308-evb-v10: add alias for acodec sound
Change-Id: I895c490f419760a176af993867106af7faf73b3d
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2018-04-28 21:20:05 +08:00
Sugar Zhang
694fdd8cba ALSA: pcm: add support for vad
Change-Id: I092ee1fb4b5e8c621cc00fc5c57a147eec23ea08
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2018-04-28 21:19:28 +08:00
Sugar Zhang
2372a65091 arm64: configs: rk3308_linux_defconfig: enable vad
Change-Id: I6ae2c80e5c83a02929f8fecacad98274389605ee
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2018-04-28 21:00:59 +08:00
Sugar Zhang
dc6319ec6f arm64: dts: rockchip: rk3308: remove unused property for vad
Change-Id: I37c48be7c47834a0157be5a5136cf691e0301bcb
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2018-04-28 21:00:44 +08:00
Sugar Zhang
f9cbc2829b ASoC: rockchip: add support for vad
This patch add support for rockchip voice activity detection.
The vad is used to detect the amplitude of voice which is
received by analog mic, i2s digital mic or pdm digital mic
when soc is in low power mode. if the amplitude of voice is
over threshold, the vad will assert interrupt to wake up soc,
then soc will exit low power mode.

Change-Id: Idb7a3adb87ec4c07274eefd82da4672d493c7627
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2018-04-28 21:00:38 +08:00
Xu Xuehui
d5f0ca9988 ARM64: dts: rk3328-evb-android: decrease frequency sdio clk to 125M
Change-Id: I3cbbdbdcd97b18ec099a766ed3e08e8514f4932f
Signed-off-by: Xu Xuehui <xxh@rock-chips.com>
2018-04-28 20:08:30 +08:00
Wu Liangqing
da1506cbf5 camera: rockchip: set system status SYS_STATUS_ISP when camera on/off
Change-Id: Ibc576b351b3db877a427ddd78c008182f1d78a56
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
2018-04-28 16:54:22 +08:00
Wu Liangqing
9b4e4e1209 arm64: dts: rockchip: px30: dmc set SYS_STATUS_ISP
Change-Id: Ib0c9b3ac6ec85aa7e05c1c7389e644d0bca4ffc8
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
2018-04-28 16:54:13 +08:00
Finley Xiao
09b5dcfc98 PM / devfreq: rockchip_dmc: Limit rate when system_status is isp
Change-Id: Ia3ebe8210522d7d06854eea14094ba45b8e62a8b
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-04-28 16:51:52 +08:00
Finley Xiao
a21ea58ee3 clk: rockchip: px30: Make uart2 clocks critical
Change-Id: I6efeb6cee633c9bc39dec43a64a025a4790a6e3d
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-04-28 12:04:52 +08:00
Finley Xiao
b075e3b123 Revert "clk: rockchip: rk3399: Fix clk_cifout and clk_cifout_src"
This reverts commit 44822b1031.

Change-Id: I4cc331caf0e6cd853099a770f438276762a219f3
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-04-28 09:19:57 +08:00
Tao Huang
72e0d7d1d8 arm64: rk3308_linux_defconfig: enable HARDLOCKUP_PANIC/PANIC_ON_OOPS and PANIC_TIMEOUT=1
Make sure kernel panic and reboot when something wrong.

Change-Id: Iaed051431fa4ae2fb5bdd952737deb07a24a33c1
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-04-28 09:05:54 +08:00
Finley Xiao
bf5b40adf7 arm64: dts: rockchip: Enable dmc for rk3308-evb-10 board
The ATF must contain the following commit:
35e0de42e8ac ("plat: rk3308: dfs: add ddr_get_rate implement")

Change-Id: Idf22418b830c9a1f4ebd2c9b19dc7345bc4cf1c6
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-04-27 18:43:16 +08:00
Xinhuang Li
fcac9a5dc4 arm64: dts: rockchip: rk3368: add spdif node
Change-Id: Ife612c36f3249cc44a97525eff9f4d3c3d751812
Signed-off-by: Xinhuang Li <buluess.li@rock-chips.com>
2018-04-27 18:40:20 +08:00
Shixiang Zheng
03194abddb arm64: rockchip_defconfig: enable vop dump buf debug node
Change-Id: I4149982d553b11fc9dedc51d45df5864880ffca0
Signed-off-by: Shixiang Zheng <shixiang.zheng@rock-chips.com>
2018-04-27 18:39:31 +08:00
Zhen Chen
887e65731d arm: rockchip_linux_defconfig: enable MALI_PWRSOFT_765 for midgard DDK r18
Change-Id: Ic2e643dfa991bf24a6be509b42fa4056c794f699
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
2018-04-27 18:38:56 +08:00
Finley Xiao
f1671758fc arm: dts: rockchip: Change cpu opp-microvolt form one entry to three
Single entry is for target voltage and three entries are for
<target min max> voltages. Change cpu opp-microvolt form one entry to
three entries and set maximum acceptable voltage to a high value so that
regulator device can supply multiple consumers at the same time.

Change-Id: I3a0dc4e161bae33e36b232c36a0a05a3102359ef
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-04-27 17:03:13 +08:00
Jason Song
7872d76144 ARM64: dts: rockchip: px5: fix pmu and ddr configs.
Change-Id: I7bed4caac70b430752bc6338d15554901892144a
Signed-off-by: Jason Song <sxj@rock-chips.com>
2018-04-27 14:32:17 +08:00
Jason Song
17b13ccea0 ARM64: dts: rockchip: add ramoops support for rk3368-android
Change-Id: If570260ce12fd2afc678cefcbfe1a2641b5253d9
Signed-off-by: Jason Song <sxj@rock-chips.com>
2018-04-27 14:31:32 +08:00
Shixiang Zheng
9fd9c79820 drm/rockchip: add a debug node to dump buf from application
dump path: /data/vop_buf
debug nod: d/dri/0/ff900000.vop/vop_dump/dump
echo dump    > dump to dump one frame
echo dumpon  > dump to start vop keep dumping
echo dumpoff > dump to stop keep dumping
echo dumpn   > dump n is the number of dump times
if fd err -3 try rm -r /data/vopbuf echo dump1 > dump can fix it
if fd err -28 save needed data try rm -r /data/vopbuf

Change-Id: Id5fefa428db1b5669ceae418cd8bddfa52e52f61
Signed-off-by: Shixiang Zheng <shixiang.zheng@rock-chips.com>
2018-04-27 10:43:43 +08:00
Caesar Wang
1c40af5de0 arm64: dts: rockchip: rk3326-evb-linux-lp3-v10: add the ov5695 for rk3326 mipi
This patch adds the ov5695 releated configure with rk3326 mipi/isp.

Change-Id: I62d6d8854d7e66fac521b3fea0f4dd35dc2799c4
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
2018-04-27 10:33:44 +08:00
Hu Kejun
a657b85fc1 media: i2c: ov5695: initialize sensor driver after io_domain
Change-Id: Ia0d754d941ba9bda874efe787a985f00cf1be779
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
2018-04-27 10:32:57 +08:00