Commit Graph

610578 Commits

Author SHA1 Message Date
Brian Norris
efaa77053d UPSTREAM: arm64: dts: rockchip: set rk3399 dynamic CPU power coefficients
Provide the dynamic power coefficient of the big and little CPU
clusters. These numbers are currently in use on the Samsung Chromebook
Plus ("Kevin").

The power allocator thermal governor doesn't know how to do anything if
it doesn't get power parameters from its cooling devices (in this case,
CPUfreq). So this effectively enables the power-allocator governor.

Signed-off-by: Brian Norris <briannorris@chromium.org>
[set the property in each core node]
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
(Cherry-picked from f4697bd702)

Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>

Conflicts:
	arch/arm64/boot/dts/rockchip/rk3399.dtsi

Change-Id: I8899a2224fe6cbf6e6f874006bf115eee62b7041
2018-07-26 09:36:00 +08:00
Jianqun Xu
dc368751a3 ARM64: dts: rockchip: reorder some codes
Patch reorder some codes to sync with upstream codes

Change-Id: Iba1971dcee9b5cfb25b62e8bfa2135f0576398e9
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2018-07-26 09:34:26 +08:00
Heiko Stuebner
00ef2e68af UPSTREAM: clk: rockchip: convert manually created factor clocks to the new type
Clean up the init code and move the creation of factor clocks to the
appropriate positions coming from the clock architecture diagrams.

This also unifies the artificial separation of the hclk_vcodec etc clocks
again.

We do keep the separate definition of some watchdog and usb480m pseudo
clocks for now, as they're not real factor clocks from the clock-tree
but placeholders for fixes to come (usb480m gets supplied by the
missing driver for the new usbphy type and the watchdog-gate is sitting
somewhere else together which we cannot model currently).

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
(cherry picked from commit 36714529f8)

Change-Id: I43b579b4d0b16b191e220a1748b6d11c7a30b4be
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2018-07-26 09:33:50 +08:00
Hu Kejun
c59e589ac4 media: soc_camera: add "rockchip,pwr-2nd-gpio"/"rockchip,pwr-3rd-gpio"
Change-Id: I742f85643f6c324b0ef1a9f55b15f73787eaaa1d
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
2018-07-26 09:20:52 +08:00
Shawn Lin
2bcfc1b1f4 UPSTREAM: clk: rockchip: don't return NULL when failing to register ddrclk branch
rockchip_clk_register_ddrclk should not return NULL when failing
to call clk_register, otherwise rockchip_clk_register_branches
prints "unknown clock type". The actual case is that it's a known
clock type but we fail to register it, which may makes user confuse
the reason of failure. And the pr_err here is pointless as
rockchip_clk_register_branches will also print the similar message.

Change-Id: Id09f496979ab839d04b5ec4cf5c623fde9215440
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
(cherry picked from commit 4a262b14c5)
2018-07-25 18:23:57 +08:00
huweiguo
22099e51c7 net: wireless: rockchip_wlan: support ssv6051 wifi
Change-Id: I936a05f2c2b6b29298f1a1eb945ec3a2fedc5262
Signed-off-by: huweiguo <hwg@rock-chips.com>
2018-07-25 18:17:45 +08:00
Cai YiWei
f03f0892aa ARM64: config: enable cif and gc2155 for rk3326_linux_defconfig
Change-Id: I2d09fd1025bfbe9dec93e25598d3dd38f07748a5
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2018-07-25 16:16:13 +08:00
Cai YiWei
b2def18653 ARM64: dts: rockchip: add cif and gc2155 for rk3326-evb-lp3-v10-linux
Change-Id: I96aa0405ea7c0a71587d14306c5c23d594ec42f3
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2018-07-25 16:16:13 +08:00
Cai YiWei
ed6f3f2568 media: rockchip/cif: match px30 and modif resets
Change-Id: Ic8e6899064a6b19f23542af128d20f89d319a5f6
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2018-07-25 16:16:13 +08:00
Hu Kejun
9e93e6ba45 camera: rockchip: merge modification of rv1108 isp11
camera: rockchip: add sensor ioctl and max gain.
1. add RK_VIDIOC_SENSOR_CONFIGINFO;
2. add RK_VIDIOC_SENSOR_REG_ACCESS;
3. add max_exp_gain_h/max_exp_gain_l;

camera: rockchip: merge isp11: rockchip: v0.1.7
isp11: rockchip: v0.1.7
1. Direct config isp lsc table size in cifisp_lsc_config.
   Because active_lsc_width is not same with isp register
   after isp reset.
2. Support separate config sensor gain and shutter time
   for some sensor which gain and shutter isn't valid at
   the same time. for example ov2710.
   ov4689:v0.1.0;
   ov2710:v0.1.1;
   imx323:v0.1.0;

camera: rockchip: Support v4l2 subdev api
ov2710: v0.1.2
ov4689: v0.1.1
imx323: v0.1.2

camera: rockchip: add lock for stream/aec
hold reg in AEC will affect stream reg, if asynchronous.

camera: rockchip: fix sensor timing
if fps changed, vts changed, update to timing.

camera: rockchip: support set flip api

camera: rockchip: support get flip api

camera: rockchip: fix release bug
should be free pdata at the end

camera: rockchip: imx323
fix s_fmt failed for imx323 v0.1.2;

camera: rockchip: fix s_frame_interval failed

fix s_frame_interval failed when frame interval is match
active config frame interval.

camera: rockchip: imx,aptina,ov
Check xxx_camera_module_init return value in PLTFRM_CIFCAM_ATTACH

camera: rockchip: release sensor if init fail

camera: rockchip: imx,aptina,ov
support mirror/flip conifg in dts for imx323/ov4689

camera: rockchip: add s_frame_interval/g_frame_interval
camera: rockchip: ov, aptina, imx
add s_frame_interval/g_frame_interval

camera: rockchip: imx,ov,aptina
1.imx,ov: fix g_timing error if s_frame_interval before stream_on,
  because vts_cur is update in stream_on;
2.aptina: fix compile error;

camera: rockchip: imx,ov,aptina
1. fix calc vts wrong in xxx_camera_module_s_stream

Change-Id: I5a6e75f2ce3c50d69c51af9792232c60b6982128
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
2018-07-25 14:52:52 +08:00
Hu Kejun
6ffc8e398a media: rk-isp10: update to v0.1.f
fix MI_CTRL and MI_XTD_FORMAT_CTRL register is not correct
merge isp11: rockchip: v0.2.4 and isp11: rockchip: v0.2.5
merge isp11: Support Y8 for AEC
merge isp11: rockchip: v0.2.7
merge isp11: rockchip: v0.2.9 & v0.2.8
merge isp11: print version
merge isp11: rockchip: v0.2.b
merge isp11: rockchip: v0.2.c
merge isp11: rockchip: v0.3.2
merge isp11: rockchip: v0.3.4
merge isp11: rockchip: modify for debugfs
merge isp11: rockchip: v0.1.7
merge isp11: rockchip: v0.1.8
merge isp11: rockchip: v0.1.9
merge isp11: rockchip: v0.1.d
merge isp11: send afm meas data alone

Change-Id: I00c9181849addf5dd44c0deea2bb39ac02ff999d
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
2018-07-25 14:52:52 +08:00
Eddie Cai
244bf7dea0 UPSTREAM: clk: rockchip: add ids for rk3399 testclks used for camera handling
clk_testout1 and clk_testout2 are used for camera handling, so add their ids.

Signed-off-by: Eddie Cai <eddie.cai.linux@gmail.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
(cherry picked from commit 25fb42b1cf)

Change-Id: I8000e84264b032835cc3d11a6810264967f4248e
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2018-07-25 14:46:43 +08:00
Eddie Cai
109d953e7c UPSTREAM: clk: rockchip: add ids for camera on rk3399
we use SCLK_TESTCLKOUT1 and SCLK_TESTCLKOUT2 for camera, so add those ids.

Signed-off-by: Eddie Cai <eddie.cai.linux@gmail.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
(cherry picked from commit f22e4359cd)

Change-Id: Ibbdb8e9dabd8c955ef3745c0f49c20f4c763e870
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2018-07-25 14:46:35 +08:00
Chris Zhong
7738401fb0 UPSTREAM: clk: rockchip: fix rk3399 aclk_vio gate bit
Fix incorrect rk3399 aclk_vio gating bit, it should be 0, not 10.

Fixes: 115510053e ("clk: rockchip: add clock controller for the RK3399")
Signed-off-by: Chris Zhong <zyw@rock-chips.com>
Reviewed-by: Xing Zheng <zhengxing@rock-chips.com>
Reviewed-by: Guenter Roeck <groeck@chromium.org>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
(cherry picked from commit a3f457d963)

Change-Id: I6e962f61a7f918e7945ac93dca6a039e90a0df3c
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2018-07-25 14:46:09 +08:00
Yakir Yang
5e64ddee62 UPSTREAM: clk: rockchip: use the dclk_vop_frac clock ids on rk3399
Export the dclk_vop_frac out, so we can set the dclk_vop as the
child of dclk_vop_frac, and then we can start to take use of
the fractional dividers.

Signed-off-by: Yakir Yang <ykk@rock-chips.com>
Signed-off-by: Chris Zhong <zyw@rock-chips.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
(cherry picked from commit 7b0f9e357a)

Change-Id: I08686f8ecbcfb5de7bc99aadd314f6e35ac22995
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2018-07-25 14:43:59 +08:00
Yakir Yang
c39ba9451b UPSTREAM: clk: rockchip: add dclk_vop_frac ids for rk3399 vop
Export the dclk_vop_frac out, so we can set the dclk_vop as the
child of dclk_vop_frac, and then we can start to take use of
the fractional dividers.

Signed-off-by: Yakir Yang <ykk@rock-chips.com>
Signed-off-by: Chris Zhong <zyw@rock-chips.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
(cherry picked from commit e33075db73)

Change-Id: I3d47c6aecc338de45b48414f0d0327c17e6d2b15
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2018-07-25 14:43:59 +08:00
Douglas Anderson
8bef41f00c UPSTREAM: clk: rockchip: drop CLK_SET_RATE_PARENT from rk3399 fractional dividers
Currently the fractional divider clock time can't handle the
CLK_SET_RATE_PARENT flag. This is because, unlike normal dividers,
there is no clk_divider_bestdiv() function to try speeding up the parent
to see if it helps things.

Eventually someone could try to figure out how to make fractional
dividers able to use CLK_SET_RATE_PARENT, but until they do let's not
confuse the common clock framework (and anyone using it) by setting the
flag.

Signed-off-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Chris Zhong <zyw@rock-chips.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
(cherry picked from commit 29edeccb44)

Change-Id: Ic7fa067ed80767c937dd9c8506d2d1e86ee1c93a
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2018-07-25 14:43:59 +08:00
Xing Zheng
49d2f9f2a7 UPSTREAM: clk: rockchip: add 533.25MHz to rk3399 clock rates table
We need to get the accurate 533.25MHz for the DP display.

Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
(cherry picked from commit 5c1c63f634)

Change-Id: Ib945c80451d52081683488fe410c5200622fb1c3
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2018-07-25 14:43:59 +08:00
Xing Zheng
25c7cb783d UPSTREAM: clk: rockchip: optimize 800MHz and 1GHz pll rates on RK3399
Usually, the 800MHz and 1GHz are supplied for CPLL and NPLL in the RK3399.
But dues to the carelessly copying from RK3036 when the RK3399 bringing up,
the refdiv == 6, it will increase the lock time, and it is not an optimal
configuration.

Let's fix them for the lock time and jitter are lower:
800 MHz:
- FVCO == 2.4 GHz, revdiv == 1.
1 GHz:
- FVCO == 3 GHz, revdiv == 1.

Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
(cherry picked from commit 1dfbec3905)

Change-Id: I725e8cb542afa7caf7cbb5ff6f747f65d48c5ced
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2018-07-25 14:43:59 +08:00
Xing Zheng
913ae6b724 UPSTREAM: clk: rockchip: fix the incorrect pclk_edp div width for RK3399
The range of the  pclk_edp_div_con is [13:8] and 6 bits, not 5.

Reported-by: Lin Huang <hl@rock-chips.com>
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Tested-by: Lin Huang <hl@rock-chips.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
(cherry picked from commit 3e1531dbc3)

Change-Id: Ieffcad3f6d44c71d83b7ed00dd30a4bd45995bb2
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2018-07-25 14:43:59 +08:00
Douglas Anderson
dee1e02869 UPSTREAM: clk: rockchip: Set "ignore unused" for PMU M0 clocks on rk3399
The PMU Cortex M0 on rk3399 is intended to be used for things like
DDRFreq transitions, suspend/resume, and other things that are the
purview of ARM Trusted Firmware and not the kernel.  As such, the
kernel shouldn't be messing with the clocks.  Add CLK_IGNORE_UNUSED to
these clocks.

Without this change, the following was observed on a Chromebook with a
rk3399 (using not-yet-upstream ARM Trusted Firmware code and
not-yet-upstream kernel code based on kernel-4.4):

1. We init the clock framework.

2. We start up "DDRFreq", which causes ATF to occasionally fire up the
   M0 for transitions.  Each time ATF fires up the M0 it will turn on
   these clocks and each time it is done it will turn them off.

3. We finally get to the the part of the kernel that calls
   clk_disable_unused() and we disables the clocks.

You can see the race above.  Basically everything is fine as long as
ARM Trusted Firmware isn't starting up the M0 at exactly the same time
that the kernel is disabling unused clocks.  ...but if the race
happens then we go boom.

Signed-off-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
(cherry picked from commit 60aadea57e)

Change-Id: I2a78c74edc9bc5d5b4f26224ebdb34eb83afb022
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2018-07-25 14:43:24 +08:00
Derek Basehore
77a209b4ae UPSTREAM: clk: rockchip: Add 1.6GHz PLL rate for rk3399
We need this rate to generate 100, 200, and 228.57MHz from the same
PLL. 228.57MHz is useful for a pixel clock when the VPLL is used for
an external display.

Signed-off-by: Derek Basehore <dbasehore@chromium.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
(cherry picked from commit 4ee3fd4abe)

Change-Id: I118c877882d694b358697470225d8d94cb1271b5
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2018-07-25 14:43:24 +08:00
Alberto Panizzo
e73ac0e248 UPSTREAM: clk: rockchip: fix clk_i2sout parent selection bits on rk3399
Register, shift and mask were wrong according to datasheet.

Fixes: 115510053e ("clk: rockchip: add clock controller for the RK3399")
Cc: stable@vger.kernel.org
Signed-off-by: Alberto Panizzo <alberto@amarulasolutions.com>
Signed-off-by: Anthony Brandon <anthony@amarulasolutions.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
(cherry picked from commit a64ad00898)

Change-Id: I5d26dd7073cc14125a37cd02bdf964548248c60b
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2018-07-25 14:43:24 +08:00
Xing Zheng
3bbf75c4ed ASoC: rk3308_codec: increase de-pop loop delay
There is a bit of headphone pop during power on, we
need to increase delay time (200us per loop step).

It looks fine that it may take 200us*128=25.6ms here.

Change-Id: Idbc5b235fd55c26cd71f4693cce98fccce60368f
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2018-07-25 11:55:19 +08:00
Hu Kejun
9cbb7a269a media: rk-isp10: update to v0.1.e
Change-Id: I84abcfb5f49c0acd0c16616321d49d01ad1c89aa
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
2018-07-24 15:26:40 +08:00
Hu Kejun
18f87aa6b8 media: rk-isp10: add module parameter for dumpsys
Change-Id: I7ab56cbdcc5a0ce1441c972a1daa044593e6eb9f
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
2018-07-24 15:25:20 +08:00
Hu Kejun
51bbf5c3aa camera: rockchip: Add VTS when setting exposure
Change-Id: Ia06631238bd99d8736ccfed9cb98e3f8fcb319d8
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
2018-07-24 15:24:18 +08:00
Hu Kejun
49050da367 camera: rockchip: modify for af function
Change-Id: I0d4b0d2059c8cbf173dd337b0e6e92b3be44a8b0
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
2018-07-24 15:22:27 +08:00
Alex Zhao
307cd59745 net: wireless: rockchip_wlan: fix bcmdhd driver crash when doing recovery test
kernel log:
<6>[50762.063251] Task dump for CPU 3:
<6>[50762.063256] dhd_eventd      R running      0   966      2 0x00000002
<4>[50762.063284] [<c0a5015c>] (__schedule) from [<c110394c>] (__stack_chk_guard+0x0/0x4)

Change-Id: I552df4a8cd9ee2da2a93d2d38a9f85b458ac866a
Signed-off-by: Alex Zhao <zzc@rock-chips.com>
2018-07-24 14:24:03 +08:00
Finley Xiao
106471a6e4 soc: rockchip: pm_test: Add support for dvfs_table_scan
Change-Id: Ie03ed876661286d19b57029f32fe5365c0b60415
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-07-23 15:26:47 +08:00
Zhang Yunlong
9d76b2eb09 camera: rockchip: camsys_drv: v0.0x30.0
rk3326 and other platform power management implementation

Change-Id: I34b9c773cfee1e684e833cdbcf687ac54cd8d88a
Signed-off-by: Zhang Yunlong <dalon.zhang@rock-chips.com>
2018-07-23 15:14:14 +08:00
Lin Jianhua
a1065a4d6c arm: dts: rockchip: add dot v10 dts for rk3308
Change-Id: I0acc3c964183db0bdcbeacd3abf9c7885f0b9584
Signed-off-by: Lin Jianhua <linjh@rock-chips.com>
2018-07-23 14:53:32 +08:00
Cai YiWei
b4539c7dad ARM64: dts: rockchip: add a new cif node for px30
Change-Id: Ibfe9412ebaaede23168c1afe0104fad32a9d7882
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2018-07-23 14:44:26 +08:00
Cai YiWei
3d08292719 dt-bindings: Document add px30 to Rockchip CIF bindings
Change-Id: I63c267a738d5fc23d989c686045d76db09f95ef6
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2018-07-23 14:44:11 +08:00
Dingqiang Lin
f091fa7c6f rockchip: rkflash: adjust vendor part design for rkflash
1.Using internal vendor strategy for slc nand and spi nand storage;
2.Using outernal vendor strategy for spi nor;
3.Rejust rkflash_debug design.
4.Remove gcc -g

Change-Id: Ib5eca61a7a600f99d438448e4b7f03dd3dddb5f2
Signed-off-by: Dingqiang Lin <jon.lin@rock-chips.com>
2018-07-23 14:43:13 +08:00
Cai YiWei
c5e0b1b35a media: i2c: add gc2155 driver
Change-Id: I8c7ab7abf9ca2b3d33b3bdae3593f727d61955dc
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2018-07-23 14:42:10 +08:00
Wyon Bi
e800c52921 drm/rockchip: vop: Fix grf_dclk_inv register field definitions
Fixes: c2b587fa35 ("drm/rockchip: vop: config dclk invert from grf register")
Change-Id: I113f9d4c8c58389307d1e03eee2ccbba5c95b2c1
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2018-07-23 14:41:55 +08:00
Zhen Chen
94f98e877c Mali: midgard: add an error handling pass in kbase_mmu_interrupt()
For RK redmine Defect #168230.

Change-Id: I3cd6544dd23b833138e4cc700a8f2cdd627ff592
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
2018-07-23 11:19:08 +08:00
Cliff Chen
7dc1699c5d f2fs: modify f_blocks for statfs
The f_blocks of statfs include file system overhead,it is not normal
usage of Posix.

Change-Id: If481626b08c05290626938586e2dc721690f1a91
Signed-off-by: Cliff Chen <cliff.chen@rock-chips.com>
2018-07-23 11:03:47 +08:00
shengfei Xu
c0ce1fa016 power: rk817-battery: optimize charging curve
Change-Id: I3a11593324be523649f6c5b12872336fb24a5283
Signed-off-by: shengfei Xu <xsf@rock-chips.com>
2018-07-20 17:11:21 +08:00
Yifeng Zhao
80cc682ae7 drivers: rk_nand: zftl: fix hynix F16 64Gb NAND multi plane prog error issue
3326: fix hynix F16 64Gb NAND multi plane prog error issue
bug:
[   15.257968] hynix RR 12 row=2000, count 12, status=-1
[   15.257985] flash_complete_page_read 0 2000 error_ecc -1 1
[   15.258000] blk= 20, page=0, ppa = 2000, status = ffffffff

Change-Id: I7e6b6d4dd966bd671b0dcd46f3ee9b6f6e8c8bff
Signed-off-by: Yifeng Zhao <zyf@rock-chips.com>
2018-07-20 17:09:16 +08:00
William Wu
34ef2afe59 arm64: dts: rockchip: add usic node for rk3399
Add usic node for rk3399 USB 2.0 EHCI controller
with usic phy.

Change-Id: Ibb4179ff1479816daa3b8455b0229f8a7a05bbdf
Signed-off-by: William Wu <william.wu@rock-chips.com>
2018-07-19 18:37:43 +08:00
William Wu
e5708aad7f USB: ehci-platform: support EHCIs with usic phy
Some EHCI controllers use usic phy (e.g rk3399/rk3288),
in order to enable these controllers, we need to set
some additional EHCI vendor-specific registers.

Support this feature in device tree when using the ehci
platform driver by adding a new property for it.

Change-Id: I279ccfdb5866df49828825bfd41b39fcd58a2832
Signed-off-by: William Wu <william.wu@rock-chips.com>
2018-07-19 18:37:43 +08:00
William Wu
8c47ad3c7b usb: dwc3: rockchip: Don't reset otg logic if device connect
During dwc3 resume, it shoudn't reset otg controller logic
if device is connecting with the otg port, because it will
cause device to be reenumerated. More seriously, it may
cause the otg_work to enter disconnect process and power
down usb3 controller power domain, at the same time, if
the xHCI driver is accessing the controller asynchronously,
it will cause system hang.

Change-Id: Id546277bd4082b7baeff830788643a800330ae8e
Signed-off-by: William Wu <william.wu@rock-chips.com>
2018-07-19 18:28:43 +08:00
William Wu
04da766284 usb: dwc3: Don't reset core in host mode
When do core init, only reset the core for device mode.
Becasue in host mode, xHCI driver will reset the core
and its host block via usbcmd.hcrst. If we do core reset
in dwc3_core_init() for host mode, it will reset both
the dwc3 core registers and xHCI registers, and cause
device to be reenumerated when usb suspend/resume.

Change-Id: If723ce8a771975e9757d28cb2c114d6269581677
Signed-off-by: William Wu <william.wu@rock-chips.com>
2018-07-19 18:28:43 +08:00
Xing Zheng
46dcb4d5f8 arm64: dts: rockchip: enable Bluetooth PCM sound for RK3308 EVB Boards
By default, only using lrck_tx for PCM by hardware,
therefore, we need to use I2S_CKR_TRCM_TXONLY.

Change-Id: I6c4077e7e7e65b8a3a21416fd61d5900b3b72f42
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2018-07-19 16:17:50 +08:00
Xing Zheng
3e056d403d arm64: dts: rockchip: add bluetooth pcm node for RK3308 EVB V10/V11
This patch using PCM rising late1 and slave mode for
Bluetooth HFP.

Change-Id: I4a0188134d7d0ef0690c6c7c9f94fc8ec50c1671
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2018-07-19 16:17:50 +08:00
Xing Zheng
1dc24c8e2c ASoC: rockchip: i2s: add 'rockchip,clk-trcm' property
Change-Id: I0756185c677b5cb9512ff25b69ceba5b248ec031
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2018-07-19 16:17:50 +08:00
Xing Zheng
b73b288508 ASoC: rockchip: i2s: add support 'rockchip,clk-trcm' property
If there is only one lrck (tx or rx) by hardware, we need to
use 'rockchip,clk-trcm' specify which lrck can be used.

Change-Id: I3bf8d87a6bc8c45e183040012d87d8be21a4c133
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2018-07-19 16:17:50 +08:00
Hu Kejun
bb7bcb0a02 media: rk-isp10: modify for af function
add af funtion first time

Change-Id: I91fc8c532e47987cc63694b242f5bac7ef1bc59c
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
2018-07-19 14:44:39 +08:00