firefly-linux-kernel-4.4.55.git
5 years agoMALI: utgard: RK: use late_initcall_sync instead of module_init
chenzhen [Wed, 30 Nov 2016 00:48:43 +0000 (08:48 +0800)]
MALI: utgard: RK: use late_initcall_sync instead of module_init

Some dependences of mali device driver should be initialized first.

Change-Id: I76f1d8b029345801bf0a68266889ec1c5a28b524
Signed-off-by: chenzhen <chenzhen@rock-chips.com>
5 years agoMALI: utgard: RK: fix compile errors under arm64
chenzhen [Thu, 10 Nov 2016 06:52:57 +0000 (14:52 +0800)]
MALI: utgard: RK: fix compile errors under arm64

Change-Id: I88df540e9822f148703aa07f74fbea59fbbf3350
Signed-off-by: chenzhen <chenzhen@rock-chips.com>
5 years agoarm: dts: rockchip: rk3288-android delete rk timer
Jianqun Xu [Wed, 5 Apr 2017 08:55:03 +0000 (16:55 +0800)]
arm: dts: rockchip: rk3288-android delete rk timer

Change-Id: Icf045a05ea07c735200d1a54aa7b2576ada82609
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
5 years agoarm64: rockchip_linux_defconfig: enable CONFIG_USB_UAS
William Wu [Wed, 5 Apr 2017 08:21:22 +0000 (16:21 +0800)]
arm64: rockchip_linux_defconfig: enable CONFIG_USB_UAS

Some rockchip platforms (e.g. rk3399, rk3328) xHCI controller
support stream for UASP (USB Attached SCSI PROTOCOL), use of
UAS generally provides faster transfers compared to the older
USB Mass Storage Bulk-Only Transport (BOT) drivers.

Change-Id: I67ce5cdb821413d3c4d018be31c892d20d831470
Signed-off-by: William Wu <wulf@rock-chips.com>
5 years agoarm64: rockchip_defconfig: enable CONFIG_USB_UAS
William Wu [Wed, 5 Apr 2017 08:11:08 +0000 (16:11 +0800)]
arm64: rockchip_defconfig: enable CONFIG_USB_UAS

Some rockchip platforms (e.g. rk3399, rk3328) xHCI controller
support stream for UASP (USB Attached SCSI PROTOCOL), use of
UAS generally provides faster transfers compared to the older
USB Mass Storage Bulk-Only Transport (BOT) drivers.

Change-Id: I69e10d3f55c03c411cd9efcef9a7fd9f8ccb9a53
Signed-off-by: William Wu <wulf@rock-chips.com>
5 years agoarm: dts: rockchip: rk3288 use android dtsi
Jianqun Xu [Wed, 5 Apr 2017 07:59:39 +0000 (15:59 +0800)]
arm: dts: rockchip: rk3288 use android dtsi

Change-Id: I7ec75cca855d6c4a697584cec33cb0ac45f00364
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
5 years agosoc: rockchip: amend rk3368-mbox related *.h to soc/rockchip
Frank Wang [Wed, 5 Apr 2017 01:35:37 +0000 (09:35 +0800)]
soc: rockchip: amend rk3368-mbox related *.h to soc/rockchip

This adds move rk3368-mbox related *.h files from linux/rockchip
to soc/rockchip.

Change-Id: I2d57b6baa64d531e89766a5384d8c217cf347ebf
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
5 years agoCHROMIUM: drm: bridge/dw_hdmi: assign CD field to zero
Yakir Yang [Mon, 23 Mar 2015 02:44:12 +0000 (10:44 +0800)]
CHROMIUM: drm: bridge/dw_hdmi: assign CD field to zero

When the color depth is 24 bits per pixel video, the CD
field in General Control Packet should be "Color Depth
not indicated", then the colordepth in register vp_pr_cd
& csc_scale should assign to zero.

Signed-off-by: Yakir Yang <ykk@rock-chips.com>
BUG=chrome-os-partner:38212
TEST=speedy board, Test with Agilent Technologies U4002A
     HDMI Protocal Analyzer

Change-Id: Ifd5767d339fdbff11e234ec0891c8f3df1dd66a5
Reviewed-on: https://chromium-review.googlesource.com/261850
Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>
Tested-by: Yakir Yang <ykk@rock-chips.com>
Commit-Queue: Yakir Yang <ykk@rock-chips.com>
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
5 years agoarm64: dts: rockchip: Modify rockchip_suspend config for rk3399-mid
Hao Xiaowei [Sat, 1 Apr 2017 01:01:53 +0000 (09:01 +0800)]
arm64: dts: rockchip: Modify rockchip_suspend config for rk3399-mid

Change-Id: I0db8c1ab12cc1e76e0e5730b65dffb4f203e5c37
Signed-off-by: Hao Xiaowei <hxw@rock-chips.com>
5 years agoarm: dts: rockchip: add mpu6050 to rk3288-evb-act8846
Zhangbin Tong [Wed, 5 Apr 2017 02:53:41 +0000 (10:53 +0800)]
arm: dts: rockchip: add mpu6050 to rk3288-evb-act8846

The evaluation board using the mpu6050 as the sensor, which
combine a 3-axis gyroscope and a 3-axis accelerometer

Change-Id: Ia41d2c038e38de3cb6d24d81d4b018670935d39a
Signed-off-by: Zhangbin Tong <zebulun.tong@rock-chips.com>
5 years agoarm: configs: rockchip_defconfig select CONFIG_RTC_DRV_HYM8563
Xu Jianqun [Sat, 1 Apr 2017 03:44:36 +0000 (11:44 +0800)]
arm: configs: rockchip_defconfig select CONFIG_RTC_DRV_HYM8563

Change-Id: I0510946469bd10a7ec2f3439505e7b3b7851f4b7
Signed-off-by: Xu Jianqun <jay.xu@rock-chips.com>
5 years agoARM: dts: rockchip: enable 1000Mbps of rk3288
Randy Li [Sat, 1 Apr 2017 02:55:07 +0000 (10:55 +0800)]
ARM: dts: rockchip: enable 1000Mbps of rk3288

Because of the bad quality of EVB board, its phy will
fail at the GMAC mode. While I have verified the ASUS
tinker, it doesn't have such problem.

Change-Id: I3306b918363dff513e279762482f1ce1eaa30df8
Signed-off-by: Randy Li <randy.li@rock-chips.com>
5 years agoarm: dts: rk3288-android: add psci v1.0 support
Jianqun Xu [Sat, 1 Apr 2017 01:08:14 +0000 (09:08 +0800)]
arm: dts: rk3288-android: add psci v1.0 support

Add psci v1.0 support to rk3288, support it to call into
secure world through psci APIs.

Change-Id: I1dc98fbdcc544a2bf0ec09544e946756757d2d80
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
5 years agodrm/rockchip: fix some loader logo bugs
Mark Yao [Fri, 31 Mar 2017 12:15:02 +0000 (20:15 +0800)]
drm/rockchip: fix some loader logo bugs

fix some bugs:
  1, If all connector failed to display, loader logo can't free.
  2, if first route failed to display, loder logo free unexpect,
     cause iommu crash.

Change-Id: I838c9fd6768a5ac48d8ce4175038b4620a95cd42
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
5 years agodrm/rockchip: dw-mipi: add power protect for loader logo
Mark Yao [Fri, 31 Mar 2017 10:07:55 +0000 (18:07 +0800)]
drm/rockchip: dw-mipi: add power protect for loader logo

Change-Id: I3bdd70d357324c8f526122dcab1bc44fe0ae0ff2
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
5 years agodrm/rockchip: don't restore to fbdev when display kernel logo
Mark Yao [Fri, 31 Mar 2017 09:58:45 +0000 (17:58 +0800)]
drm/rockchip: don't restore to fbdev when display kernel logo

Change-Id: Ie0f53364c51924feb589fa2e8550ef5b423bb4cd
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
5 years agodrm/rockchip: vop: rk3328: fix overlay abnormal
Mark Yao [Sat, 1 Apr 2017 09:14:16 +0000 (17:14 +0800)]
drm/rockchip: vop: rk3328: fix overlay abnormal

It's a hardware bug, all window's overlay channel reset
value is same, hardware overlay would be die.

so we must initial difference id for each overlay channel.

Change-Id: Ic0b744b2789a5aff2f6605199e7670cac1ea7214
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
5 years agodrm/rockchip: vop: correct rk3328 vop windows
Mark Yao [Fri, 31 Mar 2017 03:32:59 +0000 (11:32 +0800)]
drm/rockchip: vop: correct rk3328 vop windows

Rk3328 only have three windows, it's mistake add four windows.

Change-Id: I2a9495c6be407d12dbc9033f44a4cd6b2f54ff1a
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
5 years agodrm/rockchip: protect connector status with loader protect
Mark Yao [Fri, 31 Mar 2017 07:20:07 +0000 (15:20 +0800)]
drm/rockchip: protect connector status with loader protect

In order to keep display not flash, we cheat all connectors status
as power on, but actually the connector's driver think it's off.

So when power off connector, we need correct connector's status first.

Change-Id: I9fa09d184197c71220d33666564876fc3b1212a7
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
5 years agoRevert "drm/rockchip: fixup display reference count"
xuhuicong [Wed, 29 Mar 2017 01:20:53 +0000 (09:20 +0800)]
Revert "drm/rockchip: fixup display reference count"

fix display abnormal when enable uboot logo display

This reverts commit 6db46c9e7e25ca20ce891a117bf5128c66c0992c.

Change-Id: I85b60c1b90bef939427bcbb795f7dcca490cec46
Signed-off-by: xuhuicong <xhc@rock-chips.com>
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
5 years agoarm: dts: rk3288-android: use non-secure dmac
Jianqun Xu [Sat, 1 Apr 2017 01:05:16 +0000 (09:05 +0800)]
arm: dts: rk3288-android: use non-secure dmac

Use non-secure dmac instead of secure one.

Change-Id: I28605b1047177e4710ef417fc36631ff8d76295a
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
5 years agoarm: dts: rk3288-android: disable rockchip timer
Jianqun Xu [Sat, 1 Apr 2017 01:11:35 +0000 (09:11 +0800)]
arm: dts: rk3288-android: disable rockchip timer

Disable rockchip timer for rk3288 core dts file.

Change-Id: I684dacb78da8a40e37b9aff15eb456995c02f807
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
5 years agoarm: dts: rk3288-android: fix rga to rockchip,rga2
Jianqun Xu [Sat, 1 Apr 2017 08:52:13 +0000 (16:52 +0800)]
arm: dts: rk3288-android: fix rga to rockchip,rga2

Fix compatible of rga to "rockchip,rga2", and modify the clock names
to work fine with current driver.

Change-Id: Idfdae4f3bc2218472261546024b331c33bd3c270
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
5 years agodrm: bridge: analogix/dp: Fix the dead lock when disable bridge
Jacob Chen [Wed, 4 Jan 2017 06:01:02 +0000 (14:01 +0800)]
drm: bridge: analogix/dp: Fix the dead lock when disable bridge

dead lock :
IN --> drm_fb_helper_restore_fbdev_mode_unlocked
        1. Acquire mode_config lock
IN --> atomic commit
IN --> rockchip_atomic_commit_complete
IN --> drm_atomic_helper_commit_modeset_disables
IN --> bridge disable
IN --> analogix_dp_irq_thread
IN --> drm_helper_hpd_irq_event
3. Acquire mode_config lock (have been acquired)

[  363.054554] INFO: task irq/54-analogix:174 blocked for more than 120 seconds.
[  363.054612]       Not tainted 4.4.55 #31
[  363.054631] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[  363.054651] irq/54-analogix D ffffff8008084f98     0   174      2 0x00000000
[  363.054691] Call trace:
[  363.054726] [<ffffff8008084f98>] __switch_to+0xb4/0xc0
[  363.054759] [<ffffff8008b21308>] __schedule+0x3f0/0x670
[  363.054785] [<ffffff8008b2160c>] schedule+0x84/0xa4
[  363.054813] [<ffffff8008b21954>] schedule_preempt_disabled+0x20/0x38
[  363.054842] [<ffffff8008b23084>] __mutex_lock_slowpath+0xfc/0x178
[  363.054869] [<ffffff8008b2312c>] mutex_lock+0x2c/0x44
[  363.054897] [<ffffff800844419c>] drm_helper_hpd_irq_event+0x34/0x154
[  363.054929] [<ffffff800848e578>] analogix_dp_irq_thread+0x30/0x58
[  363.054957] [<ffffff80080eb198>] irq_thread_fn+0x28/0x68
[  363.054991] [<ffffff80080eb3ac>] irq_thread+0x10c/0x1ec
[  363.055016] [<ffffff80080b7e58>] kthread+0xe8/0xf0
[  363.055042] [<ffffff8008082690>] ret_from_fork+0x10/0x40
[  363.055097] INFO: task surfaceflinger:240 blocked for more than 120 seconds.
[  363.055119]       Not tainted 4.4.55 #31
[  363.055136] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[  363.055155] surfaceflinger  D ffffff8008084f98     0   240      1 0x00000009
[  363.055191] Call trace:
[  363.055214] [<ffffff8008084f98>] __switch_to+0xb4/0xc0
[  363.055241] [<ffffff8008b21308>] __schedule+0x3f0/0x670
[  363.055268] [<ffffff8008b2160c>] schedule+0x84/0xa4
[  363.055292] [<ffffff80080ea61c>] synchronize_irq+0x64/0x98
[  363.055316] [<ffffff80080eb9d8>] disable_irq+0x20/0x2c
[  363.055344] [<ffffff800848e224>] analogix_dp_bridge_disable+0x70/0xa8
[  363.055370] [<ffffff800846fabc>] drm_bridge_disable+0x2c/0x38
[  363.055403] [<ffffff800844b930>] drm_atomic_helper_commit_modeset_disables+0x120/0x39c
[  363.055432] [<ffffff800847e018>] rockchip_atomic_commit_complete+0x30/0x14c
[  363.055459] [<ffffff800847e1b0>] rockchip_drm_atomic_commit+0x7c/0x9c
[  363.055484] [<ffffff800846e898>] drm_atomic_commit+0x64/0x70
[  363.055511] [<ffffff800844ae28>] drm_atomic_helper_connector_dpms+0xf4/0x154
[  363.055541] [<ffffff800846398c>] drm_mode_obj_set_property_ioctl+0x148/0x204
[  363.055575] [<ffffff8008463a88>] drm_mode_connector_property_set_ioctl+0x40/0x60
[  363.055602] [<ffffff80084541a8>] drm_ioctl+0x27c/0x400
[  363.055630] [<ffffff80081ba1d4>] do_vfs_ioctl+0x4d0/0x5c0
[  363.055655] [<ffffff80081ba324>] SyS_ioctl+0x60/0x88
[  363.055680] [<ffffff80080826f0>] el0_svc_naked+0x24/0x28

Change-Id: I6d5eeb83b9640a54b33b1cad03c2207196a56e16
Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
5 years agoarm64: dts: rockchip: fix sdmmc1_bus4 pinctrl for rk3328
Shawn Lin [Sat, 1 Apr 2017 02:10:29 +0000 (10:10 +0800)]
arm64: dts: rockchip: fix sdmmc1_bus4 pinctrl for rk3328

Change-Id: I295022600b1834ca83029ae51634b90f241db432
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
5 years agoarm64: dts: rk3328-evb: add sdio and sdmmc support
Shawn Lin [Sat, 1 Apr 2017 02:08:27 +0000 (10:08 +0800)]
arm64: dts: rk3328-evb: add sdio and sdmmc support

Change-Id: Ic17d8aa5c2468685b7a5eb447b2578f410b0b47b
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
5 years agoarm64: dts: rockchip: disable gmac support for rk3328-evb
Hans Yang [Sat, 1 Apr 2017 07:14:05 +0000 (15:14 +0800)]
arm64: dts: rockchip: disable gmac support for rk3328-evb

Change-Id: I723bf633087713c3ebcfd92eb42e8c7005ecbe38
Signed-off-by: Hans Yang <yhx@rock-chips.com>
5 years agoarm64: dts add Rockchip RK3328 EVB board for wifi
Xu Xuehui [Sat, 1 Apr 2017 01:43:33 +0000 (09:43 +0800)]
arm64: dts add Rockchip RK3328 EVB board for wifi

Change-Id: Ia6588ebd31e34230ff137edc60cb7ffc433391e5
Signed-off-by: Xu Xuehui <xxh@rock-chips.com>
5 years agoarm: dts: rockchip: rk3288 add android.dtsi
Jianqun Xu [Fri, 31 Mar 2017 08:47:06 +0000 (16:47 +0800)]
arm: dts: rockchip: rk3288 add android.dtsi

Change-Id: I180b59363766938ed17e10fa4c574b2613f59c9a
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
5 years agodrm/bridge: dw_hdmi: set vdisplay for frame packing 3d mode
algea.cao [Mon, 27 Mar 2017 08:34:35 +0000 (16:34 +0800)]
drm/bridge: dw_hdmi: set vdisplay for frame packing 3d mode

This patch is only applicable to 3d frame packing
of progressive mode.
According to HDMI Specification 1.4b 8.2.3.2,
vertical toatal line is x2 of 2D vertical toatal line
and pixel clock frequency is x2 of 2D pixel clock frequency.

vdisplay += vtotal
mpixelclock *= 2

Change-Id: I097c25cd1a930635e33f0a7bc86797ad1c7ed607
Signed-off-by: algea.cao <algea.cao@rock-chips.com>
5 years agodrm/bridge: dw_hdmi: initialize hdmi i2c when system resume
algea.cao [Tue, 28 Mar 2017 00:58:10 +0000 (08:58 +0800)]
drm/bridge: dw_hdmi: initialize hdmi i2c when system resume

Change-Id: Ie9373517e255c91ded38a4e620d15d5cfd0bd9c4
Signed-off-by: algea.cao <algea.cao@rock-chips.com>
5 years agoARM64: dts: rk3399-box-rev2: enable hdmi uboot logo display
xuhuicong [Wed, 29 Mar 2017 07:01:40 +0000 (15:01 +0800)]
ARM64: dts: rk3399-box-rev2: enable hdmi uboot logo display

Change-Id: I90939866aafa8bac613d05528adfefcd6d88f711
Signed-off-by: xuhuicong <xhc@rock-chips.com>
5 years agodrm/rockchip: dw_hdmi: add power domain control
xuhuicong [Wed, 29 Mar 2017 03:39:26 +0000 (11:39 +0800)]
drm/rockchip: dw_hdmi: add power domain control

close pd when suspend, no when plug out because hotplug detect need it.

make hdmi probe before dp otherwise the shared power domain will be
close after dp probe and cause splash screen when starting kernel if
hdmi uboot logo display

Change-Id: I82ba1abdaf7567173df9ad900d57eca0e6be3932
Signed-off-by: xuhuicong <xhc@rock-chips.com>
5 years agoclk: rockchip: rk3399: Don't allow VPLL as aclk_cci clock source
Elaine Zhang [Fri, 31 Mar 2017 03:18:39 +0000 (11:18 +0800)]
clk: rockchip: rk3399: Don't allow VPLL as aclk_cci clock source

vpll is just for dclk_vop.
Don't allow are other child under the VPLL.

Change-Id: I755348b4104b532c693c6874127a25721187a4ad
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
5 years agothermal: rockchip: rk3368: fix efuse value of temp ajust code issue
Rocky Hao [Fri, 31 Mar 2017 09:02:39 +0000 (17:02 +0800)]
thermal: rockchip: rk3368: fix efuse value of temp ajust code issue

bit 7 of efuse value of temp ajust code indecates positive or negtive.
if bit 7 is set, it indecats a negtive ajust code.

Change-Id: I2b604b6b5e566df08b871c817cf25541292575bc
Signed-off-by: Rocky Hao <rocky.hao@rock-chips.com>
5 years agodrivers: video: rockchip: vcodec_dma_map_sg maybe fail
Jung Zhao [Thu, 30 Mar 2017 00:55:45 +0000 (00:55 +0000)]
drivers: video: rockchip: vcodec_dma_map_sg maybe fail

switching front and rear camera, maybe cause memory exhausted.
in this case, vpu driver must print a warning.

Change-Id: I60f3bfb662f42025624988a5a09ce7f69b358ea6
Signed-off-by: Jung Zhao <jung.zhao@rock-chips.com>
5 years agoarm64: dts: rk3368-android: enable iep default
Jung Zhao [Thu, 30 Mar 2017 03:17:32 +0000 (03:17 +0000)]
arm64: dts: rk3368-android: enable iep default

Change-Id: Ifcffd957c916b384c32915c4c23c1ad405e4e40e
Signed-off-by: Jung Zhao <jung.zhao@rock-chips.com>
5 years agoarm64: dts: rk3368: add iep device node
Jung Zhao [Thu, 30 Mar 2017 03:16:47 +0000 (03:16 +0000)]
arm64: dts: rk3368: add iep device node

Change-Id: I1ce93563fdb65c74ddd6afc73a1a96ed9353cfa6
Signed-off-by: Jung Zhao <jung.zhao@rock-chips.com>
5 years agoarm64: dts: rk3399-android: enable iep default
Jung Zhao [Thu, 30 Mar 2017 03:16:23 +0000 (03:16 +0000)]
arm64: dts: rk3399-android: enable iep default

Change-Id: Ic32c5d3f4332f5e0e548e4d0c75b8fd252ff10dc
Signed-off-by: Jung Zhao <jung.zhao@rock-chips.com>
5 years agoarm64: dts: rk3399-android-6.0: enable iep default
Jung Zhao [Thu, 30 Mar 2017 06:35:20 +0000 (06:35 +0000)]
arm64: dts: rk3399-android-6.0: enable iep default

Change-Id: Icb886247d24b631c2064481b1d6840e82d60c63e
Signed-off-by: Jung Zhao <jung.zhao@rock-chips.com>
5 years agoarm64: dts: rk3399: add iep device node
Jung Zhao [Thu, 30 Mar 2017 03:15:44 +0000 (03:15 +0000)]
arm64: dts: rk3399: add iep device node

Change-Id: I725d4668fd5fa29f94055d8ce36b81bcd29c2d52
Signed-off-by: Jung Zhao <jung.zhao@rock-chips.com>
5 years agoarm64: dts: rk3399-android-6.0: remove iep device node
Jung Zhao [Thu, 30 Mar 2017 06:39:33 +0000 (06:39 +0000)]
arm64: dts: rk3399-android-6.0: remove iep device node

Change-Id: I26bd7e659c929cba3d67ad623b09bfdad260b281
Signed-off-by: Jung Zhao <jung.zhao@rock-chips.com>
5 years agoarm64: dts: rockchip: rk3368 emmc add property 'mmc-hs200-1_8v'
Jianqun Xu [Fri, 31 Mar 2017 06:50:54 +0000 (14:50 +0800)]
arm64: dts: rockchip: rk3368 emmc add property 'mmc-hs200-1_8v'

Add property 'mmc-hs200-1_8v' for emmc, to support hs200, and
remove the unused property caps2-mmc-hs200.

Change-Id: I9040d004bf78987d5bed7e49ad891c47a47970a9
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
5 years agovideo: rockchip: iep: add drm support
Jung Zhao [Fri, 25 Nov 2016 07:41:33 +0000 (15:41 +0800)]
video: rockchip: iep: add drm support

iep drm support is similar with vcodec drm support. change the allocator
part from ion to drm.

Change-Id: I67c7ac795b768c85e80817262a947a20e9804ec8
Signed-off-by: Jung Zhao <jung.zhao@rock-chips.com>
5 years agovideo/rockchip: rga2: use axi safe reset
Mark Yao [Thu, 30 Mar 2017 12:23:53 +0000 (20:23 +0800)]
video/rockchip: rga2: use axi safe reset

RGA2_SYS_CTRL bit[6] a safe reset, it would be ensure all
axi write/read operation into completion

Change-Id: I39a5a6a9f10883d355c428e9dbaa89778682c49b
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
5 years agork: gcc-wrapper.py ignore memcontrol.c:5337
Huang, Tao [Fri, 31 Mar 2017 07:15:45 +0000 (15:15 +0800)]
rk: gcc-wrapper.py ignore memcontrol.c:5337

Change-Id: I3052d1659e45c7c2b36578abf3d52b97a32c8af3
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
5 years agoMerge tag 'lsk-v4.4-17.03-android' of git://git.linaro.org/kernel/linux-linaro-stable.git
Huang, Tao [Fri, 31 Mar 2017 03:43:47 +0000 (11:43 +0800)]
Merge tag 'lsk-v4.4-17.03-android' of git://git.linaro.org/kernel/linux-linaro-stable.git

LSK 17.03 v4.4-android

* tag 'lsk-v4.4-17.03-android': (166 commits)
  Linux 4.4.55
  ext4: don't BUG when truncating encrypted inodes on the orphan list
  dm: flush queued bios when process blocks to avoid deadlock
  nfit, libnvdimm: fix interleave set cookie calculation
  s390/kdump: Use "LINUX" ELF note name instead of "CORE"
  KVM: s390: Fix guest migration for huge guests resulting in panic
  mvsas: fix misleading indentation
  serial: samsung: Continue to work if DMA request fails
  USB: serial: io_ti: fix information leak in completion handler
  USB: serial: io_ti: fix NULL-deref in interrupt callback
  USB: iowarrior: fix NULL-deref in write
  USB: iowarrior: fix NULL-deref at probe
  USB: serial: omninet: fix reference leaks at open
  USB: serial: safe_serial: fix information leak in completion handler
  usb: host: xhci-plat: Fix timeout on removal of hot pluggable xhci controllers
  usb: host: xhci-dbg: HCIVERSION should be a binary number
  usb: gadget: function: f_fs: pass companion descriptor along
  usb: dwc3: gadget: make Set Endpoint Configuration macros safe
  usb: gadget: dummy_hcd: clear usb_gadget region before registration
  powerpc: Emulation support for load/store instructions on LE
  ...

Change-Id: I4db95bbe5b2523e19ddf22b3f65863f7f6d46632

5 years agoarm64: dts: rockchip: rk3368 emmc add property 'caps2-mmc-hs200'
Jianqun Xu [Fri, 31 Mar 2017 01:59:16 +0000 (09:59 +0800)]
arm64: dts: rockchip: rk3368 emmc add property 'caps2-mmc-hs200'

Change-Id: I5735f2168de63abe2a00ef550495f6561bfde1cb
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
5 years agoARM64: dts: rk3399-android: set ddc scl clock rate to 50KHz
Zheng Yang [Wed, 29 Mar 2017 02:24:21 +0000 (10:24 +0800)]
ARM64: dts: rk3399-android: set ddc scl clock rate to 50KHz

Change-Id: I2549164b5b8e0e255b87445082e173ae809ab49c
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
5 years agodrm: bridge: dw-hdmi: set ddc scl clock rate according to dts
Zheng Yang [Tue, 28 Mar 2017 10:28:16 +0000 (18:28 +0800)]
drm: bridge: dw-hdmi: set ddc scl clock rate according to dts

To set dw hdmi i2c bus adapter scl clock rate, we introduce two device
tree parameter, ddc-i2c-scl-high-time-ns and ddc-i2c-scl-low-time-ns.

ddc-i2c-scl-high-time-ns: how many ns SCL hold high
ddc-i2c-scl-low-time-ns: how many ns SCL hold low

After measurement, 50KHz scl clock rate recommended configuration is:

&hdmi {
ddc-i2c-scl-high-time-ns = <9625>;
ddc-i2c-scl-low-time-ns = <10000>;
};

100KHz recommended configuration is:
&hdmi {
        ddc-i2c-scl-high-time-ns = <4708>;
        ddc-i2c-scl-low-time-ns = <4916>;
};

If dts parameter is not available, the default scl rate is 100KHz.

Change-Id: I6f6b0bf1694ab59e70da789ead99e15a53c93e4d
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
5 years agousb: dwc_otg_310: add rk3288 usb otg support
Frank Wang [Tue, 28 Mar 2017 09:32:36 +0000 (17:32 +0800)]
usb: dwc_otg_310: add rk3288 usb otg support

This adds amend usb otg driver to support rk3328-evb board.

Change-Id: I152bedb64367ddf9c556e330b31c018f385c3fd7
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
5 years agoARM64: dts: rk3328: add pdm node
Sugar Zhang [Thu, 30 Mar 2017 03:00:34 +0000 (11:00 +0800)]
ARM64: dts: rk3328: add pdm node

Change-Id: Ib3ae44d970e889d512cb89a738b2dd633dbc9a7f
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
5 years agoASoC: rockchip: add support for pdm controller
Sugar Zhang [Thu, 30 Mar 2017 02:59:34 +0000 (10:59 +0800)]
ASoC: rockchip: add support for pdm controller

Change-Id: Id031c9a1b29fbf7b67d9feb7c8e20daabb0d32d9
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
5 years agovideo/rockchip: rga2: retry 10 times when timeout
Mark Yao [Thu, 30 Mar 2017 12:17:35 +0000 (20:17 +0800)]
video/rockchip: rga2: retry 10 times when timeout

Change-Id: I06b55f282c73735e4a0a5fa4e96f042f8b017646
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
5 years agovideo/rockchip: rga2: reduce work timeout to 100ms
Mark Yao [Thu, 30 Mar 2017 10:44:47 +0000 (18:44 +0800)]
video/rockchip: rga2: reduce work timeout to 100ms

100ms timeout is enough, 2 second timeout is too long.

Change-Id: I02f37280733dae307e81b417d9f3f547ba50259d
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
5 years agoarm: dts: rk3288-evb: add rockchip-relinquish-port quirk for ehci
Frank Wang [Wed, 29 Mar 2017 10:34:10 +0000 (18:34 +0800)]
arm: dts: rk3288-evb: add rockchip-relinquish-port quirk for ehci

This adds force abnormal ohci relinquish port owner
and back to ehci on rk3288 SoC.

Change-Id: I33be55c08762be7e8a239f741a8c8dbb28522306
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
5 years agousb: ehci: add rockchip relinquishing port quirk support
Frank Wang [Wed, 29 Mar 2017 10:26:34 +0000 (18:26 +0800)]
usb: ehci: add rockchip relinquishing port quirk support

Add a quirk to support rockchip relinquishing port from abnormal ohci
to ehci when FS/LS devices plug in.

To support this function, the rockchip-relinquish-port property must be
specified in ehci node of dt.

Change-Id: I91b58905132282ef2a836d54a1c7ace1e334d119
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
5 years agoRevert "usb: ehci-platform: support no relinquishing port quirk"
Frank Wang [Wed, 29 Mar 2017 10:03:07 +0000 (18:03 +0800)]
Revert "usb: ehci-platform: support no relinquishing port quirk"

This reverts commit 0fd1853df055.

We found this commit just work well for HS devices, however,
ehci_hub_control will set port owner to companion according line
status bits when FS/LS device is plugged in, so revert this one
and introduce a new workaround.

Change-Id: Ifa856620672191c845abc53a76370cd5bf4097dc
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
5 years agoASoC: rockchip: add support for rk3328 spdif
Sugar Zhang [Thu, 30 Mar 2017 03:11:12 +0000 (11:11 +0800)]
ASoC: rockchip: add support for rk3328 spdif

Change-Id: Ia5eceaafed507e141d0de198839134c8c379d42b
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
5 years agommc: core: use default generic cmd6 timeout for flushing cache
Shawn Lin [Thu, 30 Mar 2017 01:30:50 +0000 (09:30 +0800)]
mmc: core: use default generic cmd6 timeout for flushing cache

We need a luxury timeout once needing some extra time to
wait for flushing cache.

Change-Id: I8cd4015f30fa45cacdb984f0461b1ad8ee6cba7d
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
5 years agopower: rk818-battery: fix charge voltage table define error
chenjh [Thu, 30 Mar 2017 01:30:22 +0000 (09:30 +0800)]
power: rk818-battery: fix charge voltage table define error

Change-Id: Ica6f1a11846a93485847406fdcd914d76662eda4
Signed-off-by: chenjh <chenjh@rock-chips.com>
5 years agoUPSTREAM: drm/edid: Extract SADs properly from multiple audio data blocks
Ville Syrjälä [Wed, 9 Mar 2016 20:07:46 +0000 (22:07 +0200)]
UPSTREAM: drm/edid: Extract SADs properly from multiple audio data blocks

SADs may span multiple CEA audio data blocks in the EDID.

CEA-861-E says:
"The order of the Data Blocks is not constrained. It is also possible
to have more than one of a specific type of data block if necessary to
include all of the descriptors needed to describe the sink’s capabilities."

Each audio data block can carry up to 10 SADs, whereas the ELD SAD limit
is 15 according to HDA 1.0a spec. So we should support at least two data
blocks. And apparently some devices take a more liberal interpretation
and stuff only one SAD per data block even when they would fit into one.

So let's try to extract all the SADs we can fit into the ELD even when
they span multiple data blocks.

While at it, toss in a comment to explain the 13 byte monitor name
string limit which confused me at first.

Cc: Arturo Pérez <artur999555@gmail.com>
Tested-by: Arturo Pérez <artur999555@gmail.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94197
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1457554066-8739-1-git-send-email-ville.syrjala@linux.intel.com
(cherry picked from commit 7c01878254daadbb91f5b1137b7404d952e3931b)
Change-Id: I18c5c64b69802a6a50de624d55b4b5217943b76e
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
5 years agoarm64: rockchip_defconfig: enable CONFIG_PHY_ROCKCHIP_DP
WeiYong Bi [Thu, 30 Mar 2017 00:30:13 +0000 (08:30 +0800)]
arm64: rockchip_defconfig: enable CONFIG_PHY_ROCKCHIP_DP

Change-Id: Icdaad2e5aa8b54b0b27a6770e9d6354b13822900
Signed-off-by: WeiYong Bi <bivvy.bi@rock-chips.com>
5 years agodrm: bridge: dw-hdmi: add debugfs node
Zheng Yang [Thu, 2 Mar 2017 09:38:50 +0000 (17:38 +0800)]
drm: bridge: dw-hdmi: add debugfs node

Create two debugfs node to debug hdmi controller and phy.

Use following command to debug:
Read hdmi controller register:
cat /d/dw-hdmi/ctrl
Read hdmi phy register:
cat /d/dw-hdmi/phy
Write hdmi controller register:
echo <reg> <val> > /d/dw-hdmi/ctrl
Write hdmi phy register:
echo <reg> <val> > /d/dw-hdmi/phy

<reg> and <val> is hexadecimal.

Change-Id: I02e40cc94aa651ff0734feddbfa7d816edcf222f
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
5 years agovideo: rockchip: vpu: clear mmu status when vpu reset
Jung Zhao [Mon, 27 Mar 2017 06:00:08 +0000 (14:00 +0800)]
video: rockchip: vpu: clear mmu status when vpu reset

Change-Id: I9c8f02e5275b2a5e286b4306a2390b8cbfdcbbe5
Signed-off-by: Jung Zhao <jung.zhao@rock-chips.com>
5 years agoARM: dts: rk3288: set simple_ondemand parameter for gpu
Jacob Chen [Thu, 23 Mar 2017 01:58:29 +0000 (09:58 +0800)]
ARM: dts: rk3288: set simple_ondemand parameter for gpu

Change-Id: If69037b42d424521abd9fb1f0826441068cfd94f
Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
5 years agoMALI: midgard: Linux: support custom ondemand_data
Jacob Chen [Thu, 23 Mar 2017 01:03:23 +0000 (09:03 +0800)]
MALI: midgard: Linux: support custom ondemand_data

get parameter from dts

Change-Id: Id1b11e3d6a5809cbd4f6f52b1595562e0fa66f70
Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
5 years agoclk: rockchip: add SCLK_DDRC id for rk3368 ddrc
Finley Xiao [Sat, 25 Mar 2017 10:31:25 +0000 (18:31 +0800)]
clk: rockchip: add SCLK_DDRC id for rk3368 ddrc

Add the needed id for the ddr clock.

Change-Id: Ib2a4d8dffef5b393e294df49a925577f14306e72
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
5 years agocamera: rockchip: camsys version 0.0x21.0xb
dalon.zhang [Fri, 24 Mar 2017 10:37:05 +0000 (18:37 +0800)]
camera: rockchip: camsys version 0.0x21.0xb

some log is so boring, set print level more high.

Change-Id: I8cfe16f535718a130fa03ee7173e4ef325239e06
Signed-off-by: dalon.zhang <dalon.zhang@rock-chips.com>
5 years agodrm: bridge/dw_hdmi: check is_hdmi2 in hdmi_config_AVI
Zheng Yang [Mon, 27 Mar 2017 03:32:45 +0000 (11:32 +0800)]
drm: bridge/dw_hdmi: check is_hdmi2 in hdmi_config_AVI

If a display support HDMI2.0, it must support SCDC or YCbCr420.
So we check the connector->scdc_present and mode->flags to
check the connected display is HDMI 2.0.

Change-Id: I3b868d43791089fcdef77f99ec90396553008b9a
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
5 years agoFROMLIST: drm: Add HDMI 2.0 VIC support for AVI info-frames
Zheng Yang [Mon, 27 Mar 2017 03:04:14 +0000 (11:04 +0800)]
FROMLIST: drm: Add HDMI 2.0 VIC support for AVI info-frames

HDMI 1.4b support the CEA video modes as per range of CEA-861-D (VIC 1-64).
For any other mode, the VIC filed in AVI infoframes should be 0.
HDMI 2.0 sinks, support video modes range as per CEA-861-F spec, which is
extended to (VIC 1-107).

This patch adds a bool input variable, which indicates if the connected
sink is a HDMI 2.0 sink or not. This will make sure that we don't pass a
HDMI 2.0 VIC to a HDMI 1.4 sink.

This patch touches all drm drivers, who are callers of this function
drm_hdmi_avi_infoframe_from_display_mode but to make sure there is
no change in current behavior, is_hdmi2 is kept as false.

In case of I915 driver, this patch checks the connector->display_info
to check if the connected display is HDMI 2.0.

Cc: Ville Syrjala <ville.syrjala@linux.intel.com>
Cc: Jose Abreu <jose.abreu@synopsys.com>
Cc: Andrzej Hajda <a.hajda@samsung.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: Daniel Vetter <daniel.vetter@intel.com>
PS: This patch touches a few lines in few files, which were
already above 80 char, so checkpatch gives 80 char warning again.
- gpu/drm/omapdrm/omap_encoder.c
- gpu/drm/i915/intel_sdvo.c

Signed-off-by: Shashank Sharma <shashank.sharma@intel.com>
(am from https://patchwork.kernel.org/patch/9641449)
Change-Id: I364cd0aed7eea0384ea9eddfff20c3fa86eb9ba2
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
5 years agoUPSTREAM: devfreq: rk3399_dmc: Remove dangling rcu_read_unlock()
Viresh Kumar [Thu, 1 Dec 2016 10:42:14 +0000 (16:12 +0530)]
UPSTREAM: devfreq: rk3399_dmc: Remove dangling rcu_read_unlock()

This call never had the rcu_read_lock() counterpart. Remove the unlock
part as well.

Change-Id: Ifc5abfd7cea9a245b6edc0f50e362963ac045b7f
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
(cherry picked from commit d8323de3d4062e1b5a5aa7e9c0f935138405a582)

5 years agoUPSTREAM: PM / devfreq: rk3399_dmc: Use the resource-managed function to add devfreq dev
Chanwoo Choi [Tue, 8 Nov 2016 09:13:27 +0000 (18:13 +0900)]
UPSTREAM: PM / devfreq: rk3399_dmc: Use the resource-managed function to add devfreq dev

This patch uses the resource-managed to add the devfreq device.
This function will make it easy to handle the devfreq device.

- struct devfreq *devm_devfreq_add_device(struct device *dev,
  struct devfreq_dev_profile *profile,
  const char *governor_name,
  void *data);

Conflicts:
        drivers/devfreq/rk3399_dmc.c

Change-Id: I2ba2779a1b944931dc240f0593824f0316d11985
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
(cherry picked from commit 927b75a628b1d80fef171420fbd694fc28d9b8e9)

5 years agoUPSTREAM: PM / devfreq: rk3399_dmc: Fix module autoload
Javier Martinez Canillas [Wed, 19 Oct 2016 21:06:24 +0000 (18:06 -0300)]
UPSTREAM: PM / devfreq: rk3399_dmc: Fix module autoload

If the driver is built as a module, autoload won't work because the module
alias information is not filled. So user-space can't match the registered
device with the corresponding module.

Export the module alias information using the MODULE_DEVICE_TABLE() macro.

Before this patch:

$ modinfo drivers/devfreq/rk3399_dmc.ko | grep alias
$

After this patch:

$ modinfo drivers/devfreq/rk3399_dmc.ko | grep alias
alias:          of:N*T*Crockchip,rk3399-dmcC*
alias:          of:N*T*Crockchip,rk3399-dmc

Change-Id: I4bffd86067bb487619ce8365532123938a0ca964
Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
(cherry picked from commit 2f3f1a261c0f4827bda86009f0059aefbe30ed11)

5 years agoUPSTREAM: PM / devfreq: rk3399_dmc: Remove explictly regulator_put call in .remove
Axel Lin [Sun, 18 Sep 2016 02:41:05 +0000 (10:41 +0800)]
UPSTREAM: PM / devfreq: rk3399_dmc: Remove explictly regulator_put call in .remove

Current code uses devm_regulator_get() in .probe so a regulator_put() will
be automatically called when unload the module. Remove the explictly
regulator_put() call and then we can also remove rk3399_dmcfreq_remove().

Change-Id: I56a62a76f06403aff9ad0478e7701862084a90b3
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
Acked-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
(cherry picked from commit da4a64481b3504a6f4f07c08ff03be8f08d9638d)

5 years agoclk: rockchip: rk3288: add gate id of hclk_usb_peri for usb otg
Frank Wang [Tue, 28 Mar 2017 09:27:01 +0000 (17:27 +0800)]
clk: rockchip: rk3288: add gate id of hclk_usb_peri for usb otg

Change-Id: Ib45f6d97ec81329ec9a4a19e9e836efa0ea61fe2
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
5 years agodrm: bridge: dw-hdmi-i2s-audio: enable INSERT_PCUV bit for LPCM
Zheng Yang [Mon, 27 Mar 2017 01:38:26 +0000 (09:38 +0800)]
drm: bridge: dw-hdmi-i2s-audio: enable INSERT_PCUV bit for LPCM

dw-hdmi introduced insert_pcuv bit in version 2.10a. When
set (1'b1), this bit enables the insertion of the PCUV
(Parity, Channel Status, User bit and Validity) bits on the
incoming audio stream (support limited to Linear PCM audio).

Change-Id: Ib12a50bf7064ac78dbf143f1ea35d7f68f861877
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
5 years agoARM: rockchip_defconfig: enable dwc2 driver
William Wu [Tue, 28 Mar 2017 07:24:20 +0000 (15:24 +0800)]
ARM: rockchip_defconfig: enable dwc2 driver

Change-Id: Ie84fb1d496f18114da988f52e1a9e4b240013844
Signed-off-by: William Wu <wulf@rock-chips.com>
5 years agoarm64: rockchip_linux_defconfig: enable PCIe config
hero.huang [Thu, 16 Mar 2017 09:09:27 +0000 (17:09 +0800)]
arm64: rockchip_linux_defconfig: enable PCIe config

Change-Id: I7be6a725eb0043d135d166939ecde3c6f47b24f9
Signed-off-by: hero.huang <hero.huang@rock-chips.com>
5 years agork808: rtc: set rtc stopped by default
Elaine Zhang [Mon, 27 Mar 2017 02:55:16 +0000 (10:55 +0800)]
rk808: rtc: set rtc stopped by default

set rtc stopped by default, start rtc in rtc device probe.
add rtc node, whether RTC need to initialize.

Change-Id: Ifab269786f316d33149a50a18e23af1b6206d57d
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
5 years agoarm64: dts: rockchip: enable pcie_phy for Sapphire board
hero.huang [Tue, 28 Mar 2017 01:01:00 +0000 (09:01 +0800)]
arm64: dts: rockchip: enable pcie_phy for Sapphire board

Change-Id: Ia59a697ee27d4f4848f3fceb344f362b7fdcae73
Signed-off-by: hero.huang <hero.huang@rock-chips.com>
5 years agoarm64: rockchip_defconfig: update by savedefconfig
Huang, Tao [Tue, 28 Mar 2017 03:08:32 +0000 (11:08 +0800)]
arm64: rockchip_defconfig: update by savedefconfig

Change-Id: I642605f12bb453b9b09dea3d199923a314fec844
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
5 years agophy: rockchip-dp: fix unexpected reset 24m clock
WeiYong Bi [Mon, 27 Mar 2017 23:51:03 +0000 (07:51 +0800)]
phy: rockchip-dp: fix unexpected reset 24m clock

Reset_control_assert/reset_control_deassert will not check whether
the incoming pointer is NULL, so we need to check it before using it.

Change-Id: Ib2aeeefcb2d5d7429031bc21bf7e3df1d897a6c9
Signed-off-by: WeiYong Bi <bivvy.bi@rock-chips.com>
5 years agoarm: dts: rk3288-evb: add ion support
Jianqun Xu [Tue, 28 Mar 2017 01:29:17 +0000 (09:29 +0800)]
arm: dts: rk3288-evb: add ion support

Change-Id: Icbdba5ef01681e4ab107a5af295cfa9e51215288
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
5 years agodrm/rockchip: rga: replace primitive api with dma sync api
Jacob Chen [Mon, 27 Mar 2017 08:15:11 +0000 (16:15 +0800)]
drm/rockchip: rga: replace primitive api with dma sync api

Since rga is a dma-coherent device, we have to use drm bus
 device to call sync api.

Change-Id: Ia12062293fabba083c8ab9c4f7457e3167807bb9
Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
5 years agousb: dwc_otg_310: remove unused configs
William Wu [Mon, 27 Mar 2017 08:29:25 +0000 (16:29 +0800)]
usb: dwc_otg_310: remove unused configs

The USB20_HOST_EN and USB20_OTG_EN configs are used
for rockchip dwc2 legacy driver, they are not needed
for dwc_otg_310 driver.

Change-Id: I4c16f0be5276b3c07429ab88cb063508b34ce007
Signed-off-by: William Wu <wulf@rock-chips.com>
5 years agoarm: rockchip_defconfig: enable dwc_otg_310 usb driver
Frank Wang [Mon, 27 Mar 2017 03:41:34 +0000 (11:41 +0800)]
arm: rockchip_defconfig: enable dwc_otg_310 usb driver

This adds enable dwc_otg_310 driver for dwc otg and host.

Change-Id: I779c663992b270015515d45a94e3fa4187368a93
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
5 years agousb: dwc_otg_310: fixed compilation error
Frank Wang [Mon, 27 Mar 2017 03:31:35 +0000 (11:31 +0800)]
usb: dwc_otg_310: fixed compilation error

Change-Id: I5f501184c11d25493f6855d994e32c1043371161
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
5 years agoARM64: dts: rockchip: configure EAS data for rk3368
Chen Liang [Mon, 27 Mar 2017 03:45:42 +0000 (11:45 +0800)]
ARM64: dts: rockchip: configure EAS data for rk3368

Change-Id: I3154b1ae060553b7919c213420782f7a1f5d36fc
Signed-off-by: Chen Liang <cl@rock-chips.com>
5 years agoarm64: dts: rk3368-android: Add eDP route node
WeiYong Bi [Mon, 27 Mar 2017 07:47:17 +0000 (15:47 +0800)]
arm64: dts: rk3368-android: Add eDP route node

Change-Id: I824d7a1c15cf7cddcb2e3f080498bd23e269be40
Signed-off-by: WeiYong Bi <bivvy.bi@rock-chips.com>
5 years agoarm64: dts: rockchip: Add eDP node for rk3368
WeiYong Bi [Sat, 25 Mar 2017 03:20:36 +0000 (11:20 +0800)]
arm64: dts: rockchip: Add eDP node for rk3368

Change-Id: I0fa5ddc12cdbb2bf1d9fb0667222ead15071bdec
Signed-off-by: WeiYong Bi <bivvy.bi@rock-chips.com>
5 years agophy: rockchip-dp: Add support for rk3368 Display Port PHY
WeiYong Bi [Sat, 25 Mar 2017 03:13:55 +0000 (11:13 +0800)]
phy: rockchip-dp: Add support for rk3368 Display Port PHY

Change-Id: Ic2134ba719dadba121dc2fcc944662ef06b2ecfa
Signed-off-by: WeiYong Bi <bivvy.bi@rock-chips.com>
5 years agodrm/rockchip: analogix_dp: Add support for RK3368 eDP
WeiYong Bi [Sat, 25 Mar 2017 02:14:05 +0000 (10:14 +0800)]
drm/rockchip: analogix_dp: Add support for RK3368 eDP

Change-Id: I738ddf122776081cf41adef2921644ddfc6e07dd
Signed-off-by: WeiYong Bi <bivvy.bi@rock-chips.com>
5 years agoclk: rockchip: rk3368: set hclk_vio_noc as critical clock
Elaine Zhang [Mon, 27 Mar 2017 09:28:04 +0000 (17:28 +0800)]
clk: rockchip: rk3368: set hclk_vio_noc as critical clock

to fix up the display shaking when uboot to kernel show.

Change-Id: I5f85028921d76a2dea752aafe7420b05b041bc8e
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
5 years agoarm: dts: rk3288-evb: add support for GSL3673
Jianqun Xu [Mon, 27 Mar 2017 08:51:50 +0000 (16:51 +0800)]
arm: dts: rk3288-evb: add support for GSL3673

GSL3673 is a touchscreen device, let support it.

Change-Id: I4bf302c395491ca49a1874c8984caa0b49cfb326
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
5 years agoarm: dts: rk3288: move i2c0 to the front of other i2c
Jianqun Xu [Mon, 27 Mar 2017 08:47:35 +0000 (16:47 +0800)]
arm: dts: rk3288: move i2c0 to the front of other i2c

Change-Id: I822622fc1f1ed41729851294858246cf6da8c202
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
5 years agoFROMLIST: drm: bridge: dw-hdmi: add HDMI vendor specific infoframe config
Nickey Yang [Mon, 20 Mar 2017 05:57:02 +0000 (13:57 +0800)]
FROMLIST: drm: bridge: dw-hdmi: add HDMI vendor specific infoframe config

Vendor specific infoframe is mandatory for 4K2K resolution
and stereoscopic 3D mode.
Without this, the HDMI protocol compliance fails.
(am from https://patchwork.kernel.org/patch/9636115/)

Change-Id: I97ebe1b139eff7fe69cc9f393b40426134588b91
Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
Reviewed-by: Jose Abreu <joabreu@synopsys.com>
5 years agoarm64: dts: rockchip: update thermal config and add gpu's parameters for rk3368
Rocky Hao [Fri, 24 Mar 2017 10:07:51 +0000 (18:07 +0800)]
arm64: dts: rockchip: update thermal config and add gpu's parameters for rk3368

add both static and dynamic power coefficient for gpu
module, and add gpu as a cooling device in the thermal zone.
rename the thermal zone's config and make it more readable.
update temperature pooling interval and make the temperature
control more effective.

Change-Id: I6e0939fe26ece9c611151ffbbb55e62b824a602f
Signed-off-by: Rocky Hao <rocky.hao@rock-chips.com>
5 years agoarm64: dts: rk3368-p9: fix backlight polarity err
Zorro Liu [Fri, 24 Mar 2017 08:18:44 +0000 (16:18 +0800)]
arm64: dts: rk3368-p9: fix backlight polarity err

Change-Id: I3dc9376b60f3c6acba67cfb379944c7c969b2ffc
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
5 years agodrm/rockchip: vop: correct rk3368/rk3366 feature
Mark Yao [Mon, 27 Mar 2017 01:14:44 +0000 (09:14 +0800)]
drm/rockchip: vop: correct rk3368/rk3366 feature

RK3368/RK3366 not support 10bit output

Change-Id: Ib5cdab237828236e7867ce784d0e7b208aeb1ed0
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>