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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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)
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Shawn Lin [Tue, 23 Aug 2016 07:39:42 +0000 (15:39 +0800)]
arm64: dts: rockchip: fix pcie and pcie-phy support for rk3399
Fix them for matching what the new drivers want.
Change-Id: I6ce43379ab9cf3d274b6b414ec014e431db588b7
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Shawn Lin [Tue, 23 Aug 2016 07:35:31 +0000 (15:35 +0800)]
PCI: rockchip: Add Rockchip PCIe controller support
Add support for the Rockchip PCIe controller found on RK3399 SoC platform.
Change-Id: Ic924a0defaef195575beba4dfc92c33b6b5bc3e7
[Shawn: manually backport to 4.4 with some minor changes]
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Brian Norris <briannorris@chromium.org>
Bjorn Helgaas [Sat, 28 May 2016 23:09:16 +0000 (18:09 -0500)]
UPSTREAM: PCI: Add devm_request_pci_bus_resources()
Several host bridge drivers iterate through the list of bridge windows to
request resources. Several others don't request the window resources at
all.
Add a devm_request_pci_bus_resources() interface to make it easier for
drivers to request all the window resources. Export to GPL modules (from
Arnd Bergmann <arnd@arndb.de>).
Change-Id: I4b89f0739d66d6027bfd2a01e9e93f5218ade617
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
(cherry picked from commit
950334bcf17a6ab55ce13d3bdf050f7b429320d5)
Shawn Lin [Tue, 23 Aug 2016 07:31:35 +0000 (15:31 +0800)]
phy: add a driver for the Rockchip SoC internal PCIe PHY
This patch to add a generic PHY driver for rockchip PCIe PHY.
Access the PHY via registers provided by GRF (general register
files) module.
Change-Id: Ieba96d9cdf0d96302f38d29789615e2ec93f3440
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Nickey Yang [Tue, 23 Aug 2016 10:38:36 +0000 (18:38 +0800)]
ARM: dts: rockchip: fix i2s&spdif interrupts on rk3288
These must be translated from the values in the TRM by subtracting 32,
which has not been done.
Change-Id: I8d26bd63d39009b60b310e7ccbcd5de814863861
Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
buluess.li [Wed, 3 Aug 2016 07:45:56 +0000 (15:45 +0800)]
ARM64: dts: rk3399-evb: add gsl3673 node for rk3399-evb
Change-Id: I8b8232dd280a436e330292794b36f617ae3c0a9d
Signed-off-by: buluess.li <buluess.li@rock-chips.com>
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Meng Dongyang [Mon, 15 Aug 2016 04:25:57 +0000 (12:25 +0800)]
mfd: fusb302: change to host when connect type-c to standard-a cable
When connected with type-c to standard-a cable, inno phy will
generate an interrupt before setting the state of typec to host,
which result in detecting of battery charger. This patch change
the state to host before interrupt happen.
Change-Id: I6a2e15c264bd6729c3b8d23af23ad15145559b20
Signed-off-by: Meng Dongyang <daniel.meng@rock-chips.com>
Xu Xuehui [Wed, 17 Aug 2016 09:41:08 +0000 (17:41 +0800)]
bluetooth: rfkill-bt: enalbe 32K for ap6356
Change-Id: I71a14f38ab1d46bbf3bfc991140a20d8c6a27eec
Signed-off-by: Xu Xuehui <xxh@rock-chips.com>
Shawn Lin [Tue, 23 Aug 2016 07:33:28 +0000 (15:33 +0800)]
dt-bindings: PCI: rockchip: Add DT bindings for Rockchip PCIe controller
Add a binding that describes the Rockchip PCIe controller found on Rockchip
SoCs PCIe interface.
Change-Id: Ifb84320315c06759612f2b3d9b2b6ff3e1e5cb1e
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Brian Norris <briannorris@chromium.org>
Acked-by: Rob Herring <robh@kernel.org>
Shawn Lin [Tue, 23 Aug 2016 07:30:51 +0000 (15:30 +0800)]
Documentation: bindings: add dt documentation for Rockchip PCIe PHY
This patch adds a binding that describes the Rockchip PCIe PHY found
on Rockchip SoCs PCIe interface.
Change-Id: I18940e940e0c951d3e2d6bb3b2131a37727a430d
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Zhou weixin [Wed, 17 Aug 2016 02:18:30 +0000 (10:18 +0800)]
pwm: rockchip: Make pwm polarity to be configured correctly
If pwm polarity was configured with different values at uboot,
the enable_conf would not be configured correctly.
Change-Id: I55b9ccc262382951a8a82810f1be74ce9460f266
Signed-off-by: Zhou weixin <zwx@rock-chips.com>
Zorro Liu [Wed, 24 Aug 2016 02:27:45 +0000 (10:27 +0800)]
driver,mpu6500: modify _RATE_DEBUG
Change-Id: Iaa1f9c099db659aa7ef9f05efb99c4279569bcf8
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
Zorro Liu [Tue, 23 Aug 2016 07:00:00 +0000 (15:00 +0800)]
driver,mpu6500: improve readfifo
while (fifo_count == 0) && (kfifo_len(&st->timestamps) > 0) then flush fifo
Change-Id: I9b4ab975d708ee1bb02435bca933ce8f3b55e037
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
Wu Liang feng [Tue, 23 Aug 2016 09:41:41 +0000 (17:41 +0800)]
arm64: dts: rockchip: optimize clks for rk3399 dwc3
1. modify clock-names, according to Heiko's suggestion, clock names
should always be in the scope of the device block (named after what
it supplies), and clock-names are always meant from the perspective
of the individual ip-block.
2. remove unnecessary clocks, refer to rk3399 TRM, aclk_usb3 is the
parent of aclk_usb3otg0/1 and aclk_usb3_grf, and we will enable
aclk_usb3otg0/1 and aclk_usb3_grf, so don't need to enable aclk_usb3
again. In addition, the aclk_usb3_rksoc_axi_perf clk is used for usb3
performance monitor module which we don't use now, so don't need to
enable it.
Change-Id: I1d50a72d1523b8b70f1e5f388dc357807131dd7c
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
Huang, Tao [Tue, 23 Aug 2016 06:10:09 +0000 (14:10 +0800)]
arm64: rockchip_defconfig: update by savedefconfig
Change-Id: Ic222560c0d8ea4af2e9a7a5429f2f49abe7e8a52
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
David Wu [Tue, 23 Aug 2016 09:23:04 +0000 (17:23 +0800)]
ARM64: dts: rockchip: add pinctrl gpio config for rk3399
Change-Id: I84800a35a95d1de61e3ddce6e7db92efb24bbf59
Signed-off-by: David Wu <david.wu@rock-chips.com>
Wu Liang feng [Tue, 23 Aug 2016 06:46:35 +0000 (14:46 +0800)]
Revert "HACK: phy: rockchip-inno-usb2: disable otg phy suspend for rk3399"
This reverts commit
d7d2a689d4b29796018e72eb050bc3d8c61fbf37.
Change-Id: I937498b790c048bcd49269f258bf59b1946e9bbd
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>