firefly-linux-kernel-4.4.55.git
7 years agoARM: dts: rk3288: remove nau8825 node for miniarm
Nickey Yang [Tue, 6 Sep 2016 08:44:46 +0000 (16:44 +0800)]
ARM: dts: rk3288: remove nau8825 node for miniarm

This patch remove nau8825 sound card node for rk3288-miniarm board,
because the change of hardware.

Change-Id: I2bc447bb247cbc5da9452591ee13dd3ae101c299
Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
7 years agoRevert "UPSTREAM: usb: dwc3: gadget: disable XFER_NOT_READY"
Wu Liang feng [Tue, 6 Sep 2016 03:35:57 +0000 (11:35 +0800)]
Revert "UPSTREAM: usb: dwc3: gadget: disable XFER_NOT_READY"

This reverts commit 2a1f2d1e890354821dd8a8e621998d532185061d.

Refer to DWC3 databook, Table 7-7 Device Endpoint-n Events(DEPEVT),
XferNotReady is generated when the core responds NRDY to the host
on the USB. It is useful in the beginning of a transfer when
software wants to wait for the host to start polling the endpoint
before setting up TRBs. And also refer to 8.2.4 Transfer Setup
Recommendations, when using on-demand transfers, the XferNotRead
event must be enabled.

TEST=Set usb gadget work as RNDIS, connect to win7/win10, check
the RNDIS function

Change-Id: I091cd3ff4a3c93e6cc02fcc6714511c8989786bf
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
7 years agovideo: rockchip: vop: 3366: add reg restore for interrupt register
Huang Jiachai [Mon, 5 Sep 2016 11:29:17 +0000 (19:29 +0800)]
video: rockchip: vop: 3366: add reg restore for interrupt register

Change-Id: I088d4ef85acc786f8e5ec123b73f6ed504c83dcd
Signed-off-by: Huang Jiachai <hjc@rock-chips.com>
7 years agoASoC: es8316: fix pop noise issue when shutdown and reboot
zhangjun [Fri, 2 Sep 2016 08:28:02 +0000 (16:28 +0800)]
ASoC: es8316: fix pop noise issue when shutdown and reboot

Change-Id: Iceb02b033803afd0e66ea34a4d04e02d4487a557
Signed-off-by: zhangjun <zhangjun@rock-chips.com>
7 years agoARM: dts: rockchip: add sdcard io-domain node for miniarm
Ziyuan Xu [Mon, 5 Sep 2016 10:08:51 +0000 (18:08 +0800)]
ARM: dts: rockchip: add sdcard io-domain node for miniarm

Both 3.3v and 1.8v are available on rk3288-miniarm board, so add sd
io-domain support in case need to deploy UHS speed mode.

Change-Id: I44a7c775620e32105c8c1b91219aac8b9d8b9e92
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
7 years agoASoC: rt5651: add codec driver
Huang zhibao [Fri, 26 Aug 2016 09:18:36 +0000 (17:18 +0800)]
ASoC: rt5651: add codec driver

Change-Id: Id538b6e4abb33fb6c01a5d7e89d1a0f269f29867
Signed-off-by: Huang zhibao <hzb@rock-chips.com>
7 years agoarm64: dts: rk3399: add reserved memory for drm loader display
Mark Yao [Thu, 18 Aug 2016 03:52:07 +0000 (11:52 +0800)]
arm64: dts: rk3399: add reserved memory for drm loader display

Change-Id: Icaccabf30f25605d35ae1d067b2576c8837a0aac
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
7 years agodrm/rockchip: optimize the loader display
Mark Yao [Thu, 18 Aug 2016 03:50:06 +0000 (11:50 +0800)]
drm/rockchip: optimize the loader display

Change-Id: Iaa3066a5f1eb2e76a30c887823aba489776cb68a
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
7 years agoinput: make light sensor cm32181 works on rk3399 tablet product
jerry.zhang [Wed, 17 Aug 2016 08:19:57 +0000 (16:19 +0800)]
input: make light sensor cm32181 works on rk3399 tablet product

Change-Id: I6a3e93ea5480ab66f2b67a826a88ac7e7f1416c8
Signed-off-by: jerry.zhang <jerry.zhang@rock-chips.com>
7 years agorockchip/vcodec: remove noisy log on encoder
Herman Chen [Mon, 5 Sep 2016 09:22:21 +0000 (17:22 +0800)]
rockchip/vcodec: remove noisy log on encoder

New user encoder will send larger register size to kernel with extra
info right after the register file. The extra information will specify
the offset patch for address registers. This behavior will cause a lot
of noisy log. So we need to disable it.

Change-Id: I32609be325482b445ee6e97f7f4a245d6d0dc9c2
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
7 years agodt-bindings: Add AUO H546DLB01 single channel MIPI screen dts
bivvy [Fri, 2 Sep 2016 08:41:29 +0000 (16:41 +0800)]
dt-bindings: Add AUO H546DLB01 single channel MIPI screen dts

H546dlb01 is a 5.46 inch OLED screen with resolution 1080x1920.

Change-Id: I977f355c53c58f6dba46c4581fc8190bfce04cf2
Signed-off-by: bivvy <bivvy.bi@rock-chips.com>
7 years agocpufreq: interactive: add touch boost and init some param on rockchip platform
Chen Liang [Fri, 2 Sep 2016 08:03:52 +0000 (16:03 +0800)]
cpufreq: interactive: add touch boost and init some param on rockchip platform

Change-Id: Iebc2edaedbeeb5a3a758b963230b5f95136b2af6
Signed-off-by: Chen Liang <cl@rock-chips.com>
7 years agoARM64: rockchip: cpufreq-dt: enable CPUFREQ_HAVE_GOVERNOR_PER_POLICY
Chen Liang [Fri, 2 Sep 2016 07:54:30 +0000 (15:54 +0800)]
ARM64: rockchip: cpufreq-dt: enable CPUFREQ_HAVE_GOVERNOR_PER_POLICY

The cpu class need independent governor tunables for big/little system.

Change-Id: I0c31f694b6790c05c18b0c3d5522fa75143f293e
Signed-off-by: Chen Liang <cl@rock-chips.com>
7 years agostaging: android: add timed gpio driver to present vibrator control interface to...
jerry.zhang [Thu, 18 Aug 2016 01:46:02 +0000 (09:46 +0800)]
staging: android: add timed gpio driver to present vibrator control interface to userspace

Change-Id: I725a8620669c4286dda5bcbbbd1b984843a6b006
Signed-off-by: jerry.zhang <jerry.zhang@rock-chips.com>
7 years agoarm64: dts: rockchip: add vibrator device node for rk3399 tablet product
jerry.zhang [Thu, 18 Aug 2016 01:42:10 +0000 (09:42 +0800)]
arm64: dts: rockchip: add vibrator device node for rk3399 tablet product

Change-Id: I932bd2e56c7addbb7b4f725ad5c31779125dfc57
Signed-off-by: jerry.zhang <jerry.zhang@rock-chips.com>
7 years agoARM64: dts: rockchip: rk3399-tablet/vr: disabled cpu_l 1.5G
wuliangqing [Sat, 3 Sep 2016 02:10:14 +0000 (10:10 +0800)]
ARM64: dts: rockchip: rk3399-tablet/vr: disabled cpu_l 1.5G

Change-Id: Iddaea7efc29d513d547d30f73f5cfee054605153
signed-off-by: Wu Liangqing <wlq@rock-chips.com>

7 years agovideo: rockchip: dp: fix dp bugs when dp probing and connecting.
wenping.zhang [Fri, 2 Sep 2016 11:10:46 +0000 (19:10 +0800)]
video: rockchip: dp: fix dp bugs when dp probing and connecting.

set port->cap_lanes to 0 when dp connected error last time, and allow
dp go on probing if there is only one fusb302.

Change-Id: I90169f77ac02a94f42da96f20aacfd51b898de09
Signed-off-by: wenping.zhang <wenping.zhang@rock-chips.com>
7 years agoarm64: dts: rockchip: enable dp for sapphire-excavator-edp board
Zorro Liu [Fri, 2 Sep 2016 09:30:32 +0000 (17:30 +0800)]
arm64: dts: rockchip: enable dp for sapphire-excavator-edp board

Change-Id: I7097592d124952bf12677c69146576525a125bbe
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
7 years agodrivers: iio: imu: add sync attribute in sysfs,for HAL sending sync message to nanoc
lanshh [Fri, 2 Sep 2016 02:37:33 +0000 (10:37 +0800)]
drivers: iio: imu: add sync attribute in sysfs,for HAL sending sync message to nanoc

Change-Id: I1ab3e116207e88fa380e90ffcc84866ffcec01ce
Signed-off-by: lanshh <lsh@rock-chips.com>
7 years agohid: rkvr: add sync process before start snesor data transfer if sync_string no empty
lanshh [Fri, 2 Sep 2016 02:34:32 +0000 (10:34 +0800)]
hid: rkvr: add sync process before start snesor data transfer if sync_string no empty

Change-Id: Ifd20949963171fff4df694b58b629065a37ea492
Signed-off-by: lanshh <lsh@rock-chips.com>
7 years agoARM64: dts: rockchip: rk3399-tablet: modify the gpu's opp table
wuliangqing [Fri, 2 Sep 2016 07:36:43 +0000 (15:36 +0800)]
ARM64: dts: rockchip: rk3399-tablet: modify the gpu's opp table

Change-Id: I42aa5514b64882b5c0b7eabcc01e2c908321e1a8
signed-off-by: Wu Liangqing <wlq@rock-chips.com>

7 years agoarm64: dts: rockchip: enable typec0 for Sapphire board
Zorro Liu [Thu, 1 Sep 2016 12:21:36 +0000 (20:21 +0800)]
arm64: dts: rockchip: enable typec0 for Sapphire board

Change-Id: I9a32472307329ed6d7121359f77aa1aaba501821
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
7 years agoARM64: dts: rk3399: enable cdn_dp_fb for box
xuhuicong [Wed, 24 Aug 2016 14:56:17 +0000 (22:56 +0800)]
ARM64: dts: rk3399: enable cdn_dp_fb for box

Change-Id: Idf28d25381b20e1a92193a3a825405a6ef41dfa5
Signed-off-by: xuhuicong <xhc@rock-chips.com>
7 years agovideo: rockchip: dp: fix sound problam when disconnect to dp
xuhuicong [Thu, 1 Sep 2016 03:52:01 +0000 (11:52 +0800)]
video: rockchip: dp: fix sound problam when disconnect to dp

Change-Id: I49b96426939f0c9d1c016ca00cc5df1f43cbf848
Signed-off-by: xuhuicong <xhc@rock-chips.com>
7 years agosoc: rockchip: mmc: add emmc vendor storage
Zhaoyifeng [Tue, 2 Aug 2016 03:30:36 +0000 (11:30 +0800)]
soc: rockchip: mmc: add emmc vendor storage

Change-Id: I3996cccaed265af2295dbc1ee77746928e1beec5
Signed-off-by: Zhaoyifeng <zyf@rock-chips.com>
7 years agoARM: dts: rockchip: Add SPDIF optical out on rk3288-firefly
Nickey Yang [Thu, 1 Sep 2016 10:02:23 +0000 (18:02 +0800)]
ARM: dts: rockchip: Add SPDIF optical out on rk3288-firefly

Enable the SPDIF optical output on rk3288-firefly boards.

Change-Id: I84701df1b193e69673a963045cbd9fb4069e9741
Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
7 years agoARM: dts: rockchip: make vcca_33 always on in firefly board
Nickey Yang [Thu, 1 Sep 2016 09:10:31 +0000 (17:10 +0800)]
ARM: dts: rockchip: make vcca_33 always on in firefly board

rk3288-firefly board needs vcca_33 to be always on.

Change-Id: Iffde1a2857b92d10bf8f306c2257480fdf7f091c
Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
7 years agoMALI: midgard: RK: fix compiling fail without CONFIG_REGULATOR defined
chenzhen [Thu, 1 Sep 2016 08:16:15 +0000 (16:16 +0800)]
MALI: midgard: RK: fix compiling fail without CONFIG_REGULATOR defined

Change-Id: I4eb6fcae00d934c1fc2cbffc888a88c2fda9c22d
Signed-off-by: chenzhen <chenzhen@rock-chips.com>
7 years agoARM64: dts: rockchip: rk3399-vr: set syr827 pwm mode
wuliangqing [Thu, 1 Sep 2016 08:20:46 +0000 (16:20 +0800)]
ARM64: dts: rockchip: rk3399-vr: set syr827 pwm mode

Change-Id: I8916c1f34f5dd39c500e0e18fe174ce1c62607b4
signed-off-by: Wu Liangqing <wlq@rock-chips.com>

7 years agoARM64: dts: rk3399-mid: ajust eas parameter
Jianqun Xu [Tue, 30 Aug 2016 08:39:21 +0000 (16:39 +0800)]
ARM64: dts: rk3399-mid: ajust eas parameter

Ajust eas parameter to match opp table.

Change-Id: I752b5271ab1bffb009135708250694ac2d3c5e1c
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
7 years agobacklight: move the backlight off operation to the front of the LCD
Zhou weixin [Wed, 31 Aug 2016 12:58:15 +0000 (20:58 +0800)]
backlight: move the backlight off operation to the front of the LCD

The backlight pwm operation depends on vop module if vop_pwm enabled.

Change-Id: I5b87e4dabb4ef3767344a60e7e324d23fbbbc1cd
Signed-off-by: Zhou weixin <zwx@rock-chips.com>
7 years agoarm64: dts: rk3399-vr: modify the cpu's opp table
wuliangqing [Thu, 1 Sep 2016 03:39:43 +0000 (11:39 +0800)]
arm64: dts: rk3399-vr: modify the cpu's opp table

Change-Id: I7f659dd159188205c6f8ee12bd0d2c189854cf34
signed-off-by: Wu Liangqing <wlq@rock-chips.com>

7 years agoarm64: dts: rk3399-vr: modify the gpu's opp table
wuliangqing [Thu, 1 Sep 2016 03:46:22 +0000 (11:46 +0800)]
arm64: dts: rk3399-vr: modify the gpu's opp table

Change-Id: I52483fd8fd85d97ff8bef1908a1a370fb8b62aec
signed-off-by: Wu Liangqing <wlq@rock-chips.com>

7 years agovideo: rockchip: dp: add support for nanoc discret vr device.
wenping.zhang [Thu, 1 Sep 2016 05:25:02 +0000 (13:25 +0800)]
video: rockchip: dp: add support for nanoc discret vr device.

add feature of SUPPORT_RK_DISCRETE_VR for discrete vr device in dp,
and add sync code for nanoc vr device.

Change-Id: I5fe1f29ede8ac35f99b62e524bf541a7aaee4307
Signed-off-by: wenping.zhang <wenping.zhang@rock-chips.com>
7 years agoarm64: rockchip_defconfig: add CONFIG_HID_RKVR for rkvr
lanshh [Sun, 28 Aug 2016 11:21:33 +0000 (19:21 +0800)]
arm64: rockchip_defconfig: add CONFIG_HID_RKVR for rkvr

Change-Id: I67b1a1af3756b78773a9e7a0853e6c22faac11c5
Signed-off-by: lanshh <lsh@rock-chips.com>
7 years agosound: usb: add USB ID for nanoc audio codec
lanshh [Sun, 28 Aug 2016 10:32:15 +0000 (18:32 +0800)]
sound: usb: add USB ID for nanoc audio codec

Change-Id: I3c25691a74c9cf66e587fd4a5dcb6cef46040eec
Signed-off-by: lanshh <lsh@rock-chips.com>
7 years agoARM64: dts: rk3399: add support-hw-poweroff for mpu6500 node
Zorro Liu [Wed, 31 Aug 2016 07:47:29 +0000 (15:47 +0800)]
ARM64: dts: rk3399: add support-hw-poweroff for mpu6500 node

Change-Id: I49f25a362f43f3e36787125389c81e565b4aff6b
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
7 years agodriver, inv_mpu: store register suspend and recover register resume, if hardware...
Zorro Liu [Wed, 31 Aug 2016 07:33:19 +0000 (15:33 +0800)]
driver, inv_mpu: store register suspend and recover register resume, if hardware poweroff when suspend

Change-Id: I758be101acfd7a3a756c75bd4f13542daef850d1
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
7 years agoiio: imu: add usb sensor driver to support rkvr
lanshh [Sun, 28 Aug 2016 11:08:55 +0000 (19:08 +0800)]
iio: imu: add usb sensor driver to support rkvr

Change-Id: I7aeaba5a90f427304b0debf0e0063685fa2f6f09
Signed-off-by: lanshh <lsh@rock-chips.com>
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
7 years agohid: add usb hid driver for rockchip discrete vr device.
lanshh [Sun, 28 Aug 2016 10:55:53 +0000 (18:55 +0800)]
hid: add usb hid driver for rockchip discrete vr device.

repor key event and send sensor data to iio driver

Change-Id: I6fdaa1eb88e8974675550061f022ce506e00f28e
Signed-off-by: lanshh <lsh@rock-chips.com>
7 years agousb: dwc3: fix possible NULL pointer dereference for rockchip plat
Wu Liang feng [Thu, 25 Aug 2016 12:37:33 +0000 (20:37 +0800)]
usb: dwc3: fix possible NULL pointer dereference for rockchip plat

Change-Id: I2afb1fa38ae6e76b8db397bda59fd9fbafe9a53b
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
7 years agousb: dwc3: gadget: stop gadget even if fail to stop ctrl
Wu Liang feng [Thu, 25 Aug 2016 12:08:00 +0000 (20:08 +0800)]
usb: dwc3: gadget: stop gadget even if fail to stop ctrl

In dwc3_gadget_suspend(), if fail to stop DWC3 controller,
and return without do __dwc3_gadget_stop(), it will not
disable ep0 and ep1, and the dep->flags stays in the state
DWC3_EP_ENABLED, this will casue gadget connect failed.

A typical case is:
DWC3 works as DRD mode, fist plug in OTG HOST cable and
works as HOST mode, then plug out HOST calbe, after this
operation, it will do runtime supend -> dwc3_gadget_suspend()
-> dwc3_gadget_run_stop() fail -> return without stop gadget,
and then plug in OTG device cable, fail to connect with PC.

Change-Id: I79daff8a9e8175cd13ac57e2abc63d4e5f694b1c
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
7 years agousb: dwc3: support runtime power management for rockchip platform
Wu Liang feng [Wed, 24 Aug 2016 07:08:19 +0000 (15:08 +0800)]
usb: dwc3: support runtime power management for rockchip platform

This patch adds runtime power management support for rockchip platform.
It depends on extcon notifier to do runtime resume and runtime suspend.
And since the dwc3 core dev is the only child of dwc3 rockchip dev, so
we need to ensure dwc3 core dev enter runtime suspend befer put dwc3
rockchip dev in runtime suspend. And after do runtime resume dwc3 core
dev, the PM core will resume dwc3 rockchip dev prior to dwc3 core dev
resume. With this patch, we can power off USB3 power domain and disable
clocks in runtime suspend.

Change-Id: Ib529889a8603d12dcdce80e9e0716be44c028bd3
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
7 years agoarm64: dts: rk3399-box: vdd_gpu force PWM mode via regulator mode
Zhangbin Tong [Wed, 24 Aug 2016 09:14:57 +0000 (17:14 +0800)]
arm64: dts: rk3399-box: vdd_gpu force PWM mode via regulator mode

Change-Id: I20552fb4896cc6de20b7729a6ec42447c447c01c
Signed-off-by: Zhangbin Tong <zebulun.tong@rock-chips.com>
7 years agoARM64: dts: rockchip: rk3399: vr: adjust temperature
wuliangqing [Wed, 31 Aug 2016 03:46:45 +0000 (11:46 +0800)]
ARM64: dts: rockchip: rk3399: vr: adjust temperature

Change-Id: Ifef9ff7092a6f80e805bfcb249ed41c4a5c7a4fa
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
7 years agoARM64: dts: rockchip: rk3399: vr: add io for syr828/827 sleep off contrl
wuliangqing [Wed, 31 Aug 2016 03:33:23 +0000 (11:33 +0800)]
ARM64: dts: rockchip: rk3399: vr: add io for syr828/827 sleep off contrl

Change-Id: Ibc9419b86c0038217a69e14a2b7dd511ebe58f5d
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
7 years agopower: rk818: add power on/off source print
Binyuan Lan [Thu, 25 Aug 2016 09:17:38 +0000 (17:17 +0800)]
power: rk818: add power on/off source print

Change-Id: I4ea6cff9ecd0ebe87fb454cd26945c252f342e1f
Signed-off-by: Binyuan Lan <lby@rock-chips.com>
7 years agoarm64: dts: rk3399-rev3: modify the cpu's opp table
Finley Xiao [Wed, 31 Aug 2016 11:55:20 +0000 (04:55 -0700)]
arm64: dts: rk3399-rev3: modify the cpu's opp table

The opp table can cover the chips whose leakage is between 30mA and 60mA.

Change-Id: I50be3923eb6016cba6309380006ce902d22fe123
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
7 years agoarm64: dts: rockchip: enable dmc and set A53 1.5G voltage to 1.1V on rk3399 mid
Zhou weixin [Thu, 1 Sep 2016 02:57:29 +0000 (10:57 +0800)]
arm64: dts: rockchip: enable dmc and set A53 1.5G voltage to 1.1V on rk3399 mid

Change-Id: Iba037b12276f2f4db22611e6cb944643056345c6
Signed-off-by: Zhou weixin <zwx@rock-chips.com>
7 years agoarm64: dts: rockchip: add 32.768K clk node for BT on rk3399 evb/mid/vr board
Weilong Gao [Thu, 1 Sep 2016 02:59:14 +0000 (10:59 +0800)]
arm64: dts: rockchip: add 32.768K clk node for BT on rk3399 evb/mid/vr board

Change-Id: I712fa3915e7fa071d136cdf157dceee6b1f18994
Signed-off-by: Weilong Gao <gwl@rock-chips.com>
7 years agoARM64: dts: rk3399-android: add ddr devfreq nodes for rkfb
Jianqun Xu [Thu, 1 Sep 2016 01:56:13 +0000 (09:56 +0800)]
ARM64: dts: rk3399-android: add ddr devfreq nodes for rkfb

Devfreq will register notify to rkfb, to handle vop during ddr
changing frequency.

Change-Id: I22365597054b2155ef1b9754d6ecac243520b3ee
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
7 years agoPCI: rockchip: fix wrong clr for phy interrupt
Shawn Lin [Wed, 31 Aug 2016 01:19:46 +0000 (09:19 +0800)]
PCI: rockchip: fix wrong clr for phy interrupt

We probably didn't notice this as we still use
evb-rev1 to test our SSD with PCIe on which
the client interrput is broken actually.

Change-Id: I70e2644b9017cc5cd1b7445efb24fa69e22e0901
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
7 years agoarm64: rockchip_linux_defconfig: add some driver config according to cros
Jacob Chen [Wed, 31 Aug 2016 02:47:44 +0000 (10:47 +0800)]
arm64: rockchip_linux_defconfig: add some driver config according to cros

Some changes is made by savedefconfig

Change-Id: I19ac249e4510368299e8376bfbda30a34ade7b59
Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
7 years agoarm64: dts: rockchip: enable the backlight device node for Sapphire-linux
Jacob Chen [Wed, 31 Aug 2016 01:44:15 +0000 (09:44 +0800)]
arm64: dts: rockchip: enable the backlight device node for Sapphire-linux

Change-Id: I6b9fe6d2563975a5524262aa3c32ebd37741f33c
Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
7 years agovideo: rockchip: fb: add car_reversing for px5
Huang Jiachai [Thu, 25 Aug 2016 10:01:27 +0000 (18:01 +0800)]
video: rockchip: fb: add car_reversing for px5

if userspace set car_reversing 1, rk fb will ignore
buffer from hwc.

Change-Id: Ib3bb9a105a8d6b7a2cc0e71c21bf8cc208b4ffd3
Signed-off-by: Huang Jiachai <hjc@rock-chips.com>
7 years agopwm: rockchip: add rk_fb config_done for voppwm
David Wu [Wed, 24 Aug 2016 03:12:58 +0000 (11:12 +0800)]
pwm: rockchip: add rk_fb config_done for voppwm

Change-Id: Iea012bfcec972f4b722950ea06713d2df4690242
Signed-off-by: David Wu <david.wu@rock-chips.com>
7 years agovideo: rockchip: hdmi: add new hdmi resolution mode support for discrete vr device.
wenping.zhang [Mon, 29 Aug 2016 01:19:58 +0000 (09:19 +0800)]
video: rockchip: hdmi: add new hdmi resolution mode support for discrete vr device.

For some special hdmi pixclock we should add support for this clock in hdmi phy mpll table.

Add new format SUPPORT_RK_DISCRETE_VR for rockchip discrete vr device,if hdmi device
is rockchip discrete vr device, please set the vic = HDMI_VIDEO_DISCRETE_VR in hdmi timing.

Change-Id: I820f967a84fbb7737cd9e1c2951b89df63863298
Signed-off-by: wenping.zhang <wenping.zhang@rock-chips.com>
7 years agovideo: rockchip: hdmi: add SUPPORT_VESA_DMT feature support for rk3399 hdmi.
wenping.zhang [Mon, 29 Aug 2016 01:27:34 +0000 (09:27 +0800)]
video: rockchip: hdmi: add SUPPORT_VESA_DMT feature support for rk3399 hdmi.

Change-Id: Idafd772831593285af864eb3adf045e99f3c8d4a
Signed-off-by: wenping.zhang <wenping.zhang@rock-chips.com>
7 years agoARM64: dts: rk3399: syr82x: support vsel pin to en/disable dcdc
Elaine Zhang [Tue, 16 Aug 2016 10:45:39 +0000 (18:45 +0800)]
ARM64: dts: rk3399: syr82x: support vsel pin to en/disable dcdc

Set vsel pin to active to disable DCDC,
Set vsel pin to inactive to enable DCDC.

Change-Id: Ie7d98730e5f59ffe38f0b88388cfb5b852316fe3
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
7 years agoregulator: fan53555: fix up the dcdc is disabled when reboot
Elaine Zhang [Tue, 16 Aug 2016 10:44:04 +0000 (18:44 +0800)]
regulator: fan53555: fix up the dcdc is disabled when reboot

Before reboot if the DCDC is disabled,
the DCDC is still disabled after restart.
We have an method to workaround:
Use vsel pin to switch the voltage between value in FAN53555_VSEL0
and FAN53555_VSEL1. If VSEL pin is inactive, the voltage of DCDC
are controlled by FAN53555_VSEL0, when we pull vsel pin to active,
they would be controlled by FAN53555_VSEL1.
In this case, we can set FAN53555_VSEL1 to disable dcdc,
So we can make vsel pin to active to disable dcdc,
VSEL pin is inactive to enable DCDC.

Change-Id: I14c823ed11dc3369044ad2ed0b53a6027acbccd0
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
7 years agoarm64: dts: rockchip: set gpu and cpu power control in suspend on rk3399 mid
Zhou weixin [Mon, 29 Aug 2016 08:38:12 +0000 (16:38 +0800)]
arm64: dts: rockchip: set gpu and cpu power control in suspend on rk3399 mid

Change-Id: I0c96ccc04f18c3a5df3a045dde62c7741acbbfbd
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Signed-off-by: Zhou weixin <zwx@rock-chips.com>
7 years agorockchip/vcodec: fix crash on decoder buffer empty
Herman Chen [Mon, 29 Aug 2016 10:04:44 +0000 (18:04 +0800)]
rockchip/vcodec: fix crash on decoder buffer empty

On vpu2 register separate interrupt bit and enable bit to different
register. When decoder found a buffer empty error which means the input
stream is not enough for one complete frame decoder will not stop
reading input stream buffer until it reach the end of buffer. This will
cause mmu fault on the buffer end.

In order to avoid this case decoder need to clear the enable bit in the
enable register to stop decoder from reading.

Change-Id: I6133aa4611fab03f6545b4775e8ee2320552445f
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
7 years agorockchip/rga: add src1 mmu table config when ABB mode
Shengqin.Zhang [Mon, 21 Mar 2016 10:16:46 +0000 (18:16 +0800)]
rockchip/rga: add src1 mmu table config when ABB mode

when rga2 use alpha under mmu, it must config src1
mmu addr for src1 channel will read mmu table

Change-Id: I6131a546421a5195bf3ae183f6fc7cb50fb09cfc
Signed-off-by: Shengqin.Zhang <zsq@rock-chips.com>
Signed-off-by: Zhiqin Wei <wzq@rock-chips.com>
7 years agoRevert "arm64: Increase the max granular size"
Huang, Tao [Thu, 25 Aug 2016 12:03:25 +0000 (20:03 +0800)]
Revert "arm64: Increase the max granular size"

This reverts commit 97303480753e48fb313dc0e15daaf11b0451cdb8.

All Rockchip SoCs only have 64 bytes cache line length, so
it is not need this patch, which increase memory consumption.

Change-Id: Idf684189e7f7011562337a70dc7d26c8dceee7a6
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
7 years agoregulator: fan53555: add regulator-initial-mode to set default mode
Elaine Zhang [Mon, 22 Aug 2016 02:03:38 +0000 (10:03 +0800)]
regulator: fan53555: add regulator-initial-mode to set default mode

regulator-initial-mode: default mode to set on startup
regulator-initial-mode is set as:
        REGULATOR_MODE_FAST                     0x1
        REGULATOR_MODE_NORMAL                   0x2
Example:
 vdd_cpu_b: syr827@40 {
                compatible = "silergy,syr827";
                reg = <0x40>;
                vin-supply = <&vcc5v0_sys>;
                regulator-compatible = "fan53555-reg";
                regulator-name = "vdd_cpu_b";
                regulator-min-microvolt = <712500>;
                regulator-max-microvolt = <1500000>;
                regulator-ramp-delay = <1000>;
                fcs,suspend-voltage-selector = <1>;
                regulator-always-on;
                regulator-boot-on;
                regulator-initial-state = <3>;
                regulator-initial-mode = <1>;/*1:pwm 2: auto mode*/
                        regulator-state-mem {
                        regulator-off-in-suspend;
                };
        };

Change-Id: I4d3bbd50fd40531113f2cc6fe63905e24888a752
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
7 years agoPM / devfreq: add to show current load of device
Jianqun Xu [Wed, 17 Aug 2016 08:43:57 +0000 (16:43 +0800)]
PM / devfreq: add to show current load of device

Calculate current load with busytime / totaltime from status,
also show the current frequency.

Change-Id: Ic310035db9c5478aa3d0b1e526b47c451fe09d23
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
7 years agocamera: rockchip: camsys driver 0.0x21.5
dalon.zhang [Wed, 24 Aug 2016 11:10:49 +0000 (19:10 +0800)]
camera: rockchip: camsys driver 0.0x21.5

Change-Id: I4855b2e31fff158ae4690781ccc8e0ab0a20273c
Signed-off-by: dalon.zhang <dalon.zhang@rock-chips.com>
7 years agoHACK: lib/kobject_uevent.c: ignore thermal uevent when suspend
Huang, Tao [Fri, 26 Aug 2016 11:19:04 +0000 (19:19 +0800)]
HACK: lib/kobject_uevent.c: ignore thermal uevent when suspend

Android healthd try to listen power_supply subsystem uevent,
but which will block system from suspend on big.LITTLE system
because thermal_cooling_device_unregister will called when
cpufreq_exit. So ignore this uevent when suspend.

Change-Id: I35948498916560d5ec75fe561c9e9d588663ad22
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
7 years agothermal: rockchip: add temperature dump when panic
Rocky Hao [Wed, 17 Aug 2016 10:44:12 +0000 (18:44 +0800)]
thermal: rockchip: add temperature dump when panic

Change-Id: I8cf3bbaea76d379dcfd1c89482254854df62cfea
Signed-off-by: Rocky Hao <rocky.hao@rock-chips.com>
7 years agoARM64: dts: rk3399: add pd control for i2s, spdif
Sugar Zhang [Fri, 26 Aug 2016 08:51:37 +0000 (16:51 +0800)]
ARM64: dts: rk3399: add pd control for i2s, spdif

Change-Id: Ifdf9b9432f66d54ce99888e41f86bd773df86dbb
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
7 years agoUPSTREAM: ASoC: simple-card: Add pm callbacks to platform driver
Peter Ujfalusi [Mon, 9 May 2016 10:38:10 +0000 (13:38 +0300)]
UPSTREAM: ASoC: simple-card: Add pm callbacks to platform driver

Set snd_soc_pm_ops for the pm ops to make sure that the ASoC level of PM
operations are going to happen. This is needed to get suspend/resume
working correctly when the audio is using simple-card.

Change-Id: Id0355673bc89456fedd3d035cbfd0f7f8f51d1da
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
(cherry picked from commit 7c3767115a04bc7aa87bdbd3352d1801d4bbeea4)

7 years agoARM: dts: rockchip: vr-android: add spi1 sleep pinctrl
Zorro Liu [Thu, 25 Aug 2016 09:59:23 +0000 (17:59 +0800)]
ARM: dts: rockchip: vr-android: add spi1 sleep pinctrl

Change-Id: Ie3a4d8ea56dc2343a749ccc035002f0b25a356a3
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
7 years agopower: rk818-battery: remove zero algorithm init and add dump info
Jianhong Chen [Thu, 25 Aug 2016 13:11:22 +0000 (21:11 +0800)]
power: rk818-battery: remove zero algorithm init and add dump info

Change-Id: I47c02b4ac383de1b6943cd63a397fc99f594c9b9
Signed-off-by: Jianhong Chen <chenjh@rock-chips.com>
7 years agoarm64: dts: rockchip: add cdn-dp-fb node for rk3399 android
xuhuicong [Thu, 4 Aug 2016 05:43:10 +0000 (13:43 +0800)]
arm64: dts: rockchip: add cdn-dp-fb node for rk3399 android

Change-Id: Ie9651babf59d29547f6b506356cce5cd2618e5ae
Signed-off-by: xuhuicong <xhc@rock-chips.com>
7 years agoarm64: rockchip: rockchip_defconfig enable dp with rk fb
xuhuicong [Thu, 4 Aug 2016 03:52:17 +0000 (11:52 +0800)]
arm64: rockchip: rockchip_defconfig enable dp with rk fb

Change-Id: I3208244641cb95fd14c6b814efe2cc6af214affd
Signed-off-by: xuhuicong <xhc@rock-chips.com>
7 years agovideo: rockchip: dp: add cdn DP support for rk3399 with rk fb
xuhuicong [Wed, 3 Aug 2016 01:11:20 +0000 (09:11 +0800)]
video: rockchip: dp: add cdn DP support for rk3399 with rk fb

Change-Id: Iaa36594e15d19e939f0929e2d6ee2ae99b6ce799
Signed-off-by: xuhuicong <xhc@rock-chips.com>
7 years agoARM64: dts: rk3399: add dmc and dfi node
Lin Huang [Fri, 22 Jul 2016 07:37:17 +0000 (15:37 +0800)]
ARM64: dts: rk3399: add dmc and dfi node

To support ddr frequency scaling function, we need
enable dmc and dfi node.

Change-Id: I84ea6bff679365d86937ff10bcdf466ea31901fb
Signed-off-by: Lin Huang <hl@rock-chips.com>
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
7 years agospi: rockchip: set pinctrl state when suspend and resume
Huibin Hong [Wed, 24 Aug 2016 09:10:57 +0000 (17:10 +0800)]
spi: rockchip: set pinctrl state when suspend and resume

Change-Id: I3bfd641513dc8ad0112cb718383eb458c7659a84
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
7 years agoARM64: dts: rk3399: fix error address for wdt0
Jianqun Xu [Fri, 26 Aug 2016 02:25:29 +0000 (10:25 +0800)]
ARM64: dts: rk3399: fix error address for wdt0

The address of wdt0 and wdt1 are swapped, let's fix it.

Change-Id: I715d181b8984a72ad234d4c1389154f15b60738a
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
7 years agovideo: rockchip: lcdc: add support dmc
Huang Jiachai [Fri, 5 Aug 2016 08:50:16 +0000 (16:50 +0800)]
video: rockchip: lcdc: add support dmc

Register dmc notify after than dmc driver.

Change-Id: I11c7daee1b4882da87d209854f0bda980c14551b
Signed-off-by: Huang Jiachai <hjc@rock-chips.com>
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
7 years agoarm64: dts: rockchip: modify l-sensor node for rk3399 tablet product
jerry.zhang [Wed, 17 Aug 2016 08:15:18 +0000 (16:15 +0800)]
arm64: dts: rockchip: modify l-sensor node for rk3399 tablet product

Change-Id: I41c90b8d24b79009cbb1320e19de2e4a1a400a97
Signed-off-by: jerry.zhang <jerry.zhang@rock-chips.com>
7 years agoarm64: dts: rockchip: change N key to home for rk3399 VR product
jerry.zhang [Wed, 3 Aug 2016 09:05:16 +0000 (17:05 +0800)]
arm64: dts: rockchip: change N key to home for rk3399 VR product

Change-Id: Ie173ee9fedec12cc1ef19e90673488d54e887807
Signed-off-by: jerry.zhang <jerry.zhang@rock-chips.com>
7 years agoARM64: configs: rockchip_defconfig: enable rk3399 dmc
Jianqun Xu [Mon, 8 Aug 2016 00:46:28 +0000 (08:46 +0800)]
ARM64: configs: rockchip_defconfig: enable rk3399 dmc

Change-Id: I1e9a35d65d44a5f82c36546e5520ea5072b2231d
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
7 years agoPM / devfreq: rockchip-dfi: disable irqs during accessing ddr monitor
Jianqun Xu [Fri, 19 Aug 2016 07:44:14 +0000 (15:44 +0800)]
PM / devfreq: rockchip-dfi: disable irqs during accessing ddr monitor

Change-Id: Ie4817a77fcb1283f37f41ab097f02ed7dc9cd18c
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
7 years agoPM / devfreq: rockchip: rk3399 dmc get opp table from dts
Jianqun Xu [Fri, 12 Aug 2016 10:25:39 +0000 (18:25 +0800)]
PM / devfreq: rockchip: rk3399 dmc get opp table from dts

Get opp table from device node for rk3399 dmc table.

Change-Id: I689078d60ebdadf0954b60de70d05bc56a8d6597
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
7 years agoFROMLIST: PM / devfreq: rockchip: add devfreq driver for rk3399 dmc
huang lin [Mon, 22 Aug 2016 03:36:23 +0000 (11:36 +0800)]
FROMLIST: PM / devfreq: rockchip: add devfreq driver for rk3399 dmc

Base on dfi result, we do ddr frequency scaling, register
dmc driver to devfreq framework, and use simple-ondemand
policy.

Change-Id: I4cc6bd9218f6fe0ae09d79c23516c6dbdaa59af2
Signed-off-by: Lin Huang <hl@rock-chips.com>
Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
7 years agoFROMLIST: Documentation: bindings: add dt documentation for rk3399 dmc
huang lin [Mon, 22 Aug 2016 03:36:22 +0000 (11:36 +0800)]
FROMLIST: Documentation: bindings: add dt documentation for rk3399 dmc

This patch adds the documentation for rockchip rk3399 dmc driver.

Change-Id: Icaff8fa2173ded5c64a08e877d32a8eca1a0c3be
Signed-off-by: Lin Huang <hl@rock-chips.com>
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
7 years agoFROMLIST: PM / devfreq: event: support rockchip dfi controller
huang lin [Mon, 22 Aug 2016 03:36:21 +0000 (11:36 +0800)]
FROMLIST: PM / devfreq: event: support rockchip dfi controller

on rk3399 platform, there is dfi conroller can monitor
ddr load, base on this result, we can do ddr freqency
scaling.

Change-Id: I85efe7f626e636606508fdd171b14275591c0612
Signed-off-by: Lin Huang <hl@rock-chips.com>
Acked-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
7 years agoFROMLIST: Documentation: bindings: add dt documentation for dfi controller
huang lin [Mon, 22 Aug 2016 03:36:20 +0000 (11:36 +0800)]
FROMLIST: Documentation: bindings: add dt documentation for dfi controller

This patch adds the documentation for rockchip dfi devfreq-event driver.

Change-Id: Ib5704cdef0c7a53abe3afda126cb1a1adba43b3a
Signed-off-by: Lin Huang <hl@rock-chips.com>
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
7 years agoFROMLIST: clk: rockchip: rk3399: add ddrc clock support
huang lin [Mon, 22 Aug 2016 03:36:19 +0000 (11:36 +0800)]
FROMLIST: clk: rockchip: rk3399: add ddrc clock support

Add ddrc clock setting, so we can do ddr frequency
scaling on rk3399 platform in future.

Change-Id: Ib743ffb642fe0c7c0a3b7db14389803595d868b3
Signed-off-by: Lin Huang <hl@rock-chips.com>
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
7 years agoFROMLIST: clk: rockchip: add new clock-type for the ddrclk
huang lin [Mon, 22 Aug 2016 03:36:17 +0000 (11:36 +0800)]
FROMLIST: clk: rockchip: add new clock-type for the ddrclk

On new rockchip platform(rk3399 etc), there have dcf controller to
do ddr frequency scaling, and this controller will implement in
arm-trust-firmware. We add a special clock-type to handle that.

Change-Id: I9e15dd9e01ab1c51a639a6a59391cd5e0de383b7
Signed-off-by: Lin Huang <hl@rock-chips.com>
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
7 years agoarm64: dts: rockchip: disable ldo8 and center in suspend on rk3399 mid
Zhou weixin [Thu, 25 Aug 2016 06:21:56 +0000 (14:21 +0800)]
arm64: dts: rockchip: disable ldo8 and center in suspend on rk3399 mid

Change-Id: I5e269cc3827a203bc1e11a344557515aa57fe1c2
Signed-off-by: Yankun Zheng <zyk@rock-chips.com>
Signed-off-by: Zhou weixin <zwx@rock-chips.com>
7 years agoARM64: dts: rk3399-evb2: ajust cpu opp table to make evb2 more stable
Jianqun Xu [Thu, 25 Aug 2016 06:09:36 +0000 (14:09 +0800)]
ARM64: dts: rk3399-evb2: ajust cpu opp table to make evb2 more stable

Since evb2 couple with ES1, the power consumption is large enough to
shutdown device in some case.

Let's reduce it's support lists to make things simple.

Change-Id: I145aa0c6a21e41b3c8e6ff32fd15839baa15f81e
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
7 years agoarm64: dts: rockchip: remove unused usb node for rk3399 mid
Bin Yang [Thu, 25 Aug 2016 01:26:39 +0000 (09:26 +0800)]
arm64: dts: rockchip: remove unused usb node for rk3399 mid

Change-Id: Ie8883d36a829b08d0963cbd7dbe183404b761093
Signed-off-by: Bin Yang <yangbin@rock-chips.com>
7 years agoethernet: rockchip: add pd_gmac support for rk3399
David Wu [Mon, 1 Aug 2016 08:38:28 +0000 (16:38 +0800)]
ethernet: rockchip: add pd_gmac support for rk3399

Change-Id: I990e02f585ae9b2ecf99a7e996cd23041ca19a2b
Signed-off-by: David Wu <david.wu@rock-chips.com>
7 years agoARM: dts: rockchip: enable tsadc for fennec
Jacob Chen [Wed, 24 Aug 2016 05:17:39 +0000 (13:17 +0800)]
ARM: dts: rockchip: enable tsadc for fennec

Change-Id: Id177ffb022046e569c23bf46a5546ac64450e801
Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
7 years agoarm64: dts: rockchip: use vop_pwm on rk3399-mid-818-android
Zhou weixin [Wed, 24 Aug 2016 07:26:46 +0000 (15:26 +0800)]
arm64: dts: rockchip: use vop_pwm on rk3399-mid-818-android

To control backlight for support cabc.

Change-Id: I8f980174e57c91e264f0ddfb754a670196649b62
Signed-off-by: Zhou weixin <zwx@rock-chips.com>
7 years agovideo: rockchip: vop: 3399: cabc mode indicate whether cabc enable or not
Huang Jiachai [Tue, 23 Aug 2016 12:27:41 +0000 (20:27 +0800)]
video: rockchip: vop: 3399: cabc mode indicate whether cabc enable or not

Change-Id: Ia4911d746c934b91a887881660373e4b4824f314
Signed-off-by: Huang Jiachai <hjc@rock-chips.com>
7 years agovideo: rockchip: fb: add function for vop pwm config done
Huang Jiachai [Tue, 23 Aug 2016 03:11:46 +0000 (11:11 +0800)]
video: rockchip: fb: add function for vop pwm config done

Change-Id: I80350293c644fc0db1f613b3de14e34b7f3bc0f2
Signed-off-by: Huang Jiachai <hjc@rock-chips.com>
7 years agoarm64: dts: rockchip: disable PCIe and PCIe-phy on rk3399-evb
Shawn Lin [Tue, 23 Aug 2016 07:40:49 +0000 (15:40 +0800)]
arm64: dts: rockchip: disable PCIe and PCIe-phy on rk3399-evb

Let's disable it as the auto link training of PCIe
take quite long time without add-in card or M.2
devices available.

Change-Id: I4a48a44574b68da75845a6e614a9970bb5d6685b
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>