Commit Graph

596558 Commits

Author SHA1 Message Date
wenping.zhang
9c7c33cc41 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>
2016-09-02 20:31:54 +08:00
Zorro Liu
f30d7c620d arm64: dts: rockchip: enable dp for sapphire-excavator-edp board
Change-Id: I7097592d124952bf12677c69146576525a125bbe
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
2016-09-02 20:30:54 +08:00
lanshh
14f9b39d4c 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>
2016-09-02 17:20:23 +08:00
lanshh
a07dd2733d 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>
2016-09-02 17:19:44 +08:00
wuliangqing
0eacb88fb9 ARM64: dts: rockchip: rk3399-tablet: modify the gpu's opp table
Change-Id: I42aa5514b64882b5c0b7eabcc01e2c908321e1a8
signed-off-by: Wu Liangqing <wlq@rock-chips.com>
2016-09-02 17:14:24 +08:00
Zorro Liu
c4a1de271d arm64: dts: rockchip: enable typec0 for Sapphire board
Change-Id: I9a32472307329ed6d7121359f77aa1aaba501821
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
2016-09-02 17:13:56 +08:00
xuhuicong
96d2abbde3 ARM64: dts: rk3399: enable cdn_dp_fb for box
Change-Id: Idf28d25381b20e1a92193a3a825405a6ef41dfa5
Signed-off-by: xuhuicong <xhc@rock-chips.com>
2016-09-02 10:22:49 +08:00
xuhuicong
871bfa3462 video: rockchip: dp: fix sound problam when disconnect to dp
Change-Id: I49b96426939f0c9d1c016ca00cc5df1f43cbf848
Signed-off-by: xuhuicong <xhc@rock-chips.com>
2016-09-02 10:22:42 +08:00
Zhaoyifeng
b7f65d40f7 soc: rockchip: mmc: add emmc vendor storage
Change-Id: I3996cccaed265af2295dbc1ee77746928e1beec5
Signed-off-by: Zhaoyifeng <zyf@rock-chips.com>
2016-09-02 10:20:39 +08:00
Nickey Yang
b09fdacf28 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>
2016-09-01 21:03:11 +08:00
Nickey Yang
30eb97ec5a 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>
2016-09-01 21:02:42 +08:00
chenzhen
46b99d8fb3 MALI: midgard: RK: fix compiling fail without CONFIG_REGULATOR defined
Change-Id: I4eb6fcae00d934c1fc2cbffc888a88c2fda9c22d
Signed-off-by: chenzhen <chenzhen@rock-chips.com>
2016-09-01 21:00:59 +08:00
wuliangqing
916f671c48 ARM64: dts: rockchip: rk3399-vr: set syr827 pwm mode
Change-Id: I8916c1f34f5dd39c500e0e18fe174ce1c62607b4
signed-off-by: Wu Liangqing <wlq@rock-chips.com>
2016-09-01 16:22:50 +08:00
Jianqun Xu
3cbdd7169b 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>
2016-09-01 16:13:35 +08:00
Zhou weixin
6633ff603d 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>
2016-09-01 16:12:42 +08:00
wuliangqing
3d401a2cf2 arm64: dts: rk3399-vr: modify the cpu's opp table
Change-Id: I7f659dd159188205c6f8ee12bd0d2c189854cf34
signed-off-by: Wu Liangqing <wlq@rock-chips.com>
2016-09-01 16:10:42 +08:00
wuliangqing
0bbc7c694f arm64: dts: rk3399-vr: modify the gpu's opp table
Change-Id: I52483fd8fd85d97ff8bef1908a1a370fb8b62aec
signed-off-by: Wu Liangqing <wlq@rock-chips.com>
2016-09-01 16:01:53 +08:00
wenping.zhang
7636cd2d50 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>
2016-09-01 15:56:31 +08:00
lanshh
5ae6a5184d arm64: rockchip_defconfig: add CONFIG_HID_RKVR for rkvr
Change-Id: I67b1a1af3756b78773a9e7a0853e6c22faac11c5
Signed-off-by: lanshh <lsh@rock-chips.com>
2016-09-01 15:51:35 +08:00
lanshh
31a98d75e4 sound: usb: add USB ID for nanoc audio codec
Change-Id: I3c25691a74c9cf66e587fd4a5dcb6cef46040eec
Signed-off-by: lanshh <lsh@rock-chips.com>
2016-09-01 15:51:07 +08:00
Zorro Liu
2dfe139d52 ARM64: dts: rk3399: add support-hw-poweroff for mpu6500 node
Change-Id: I49f25a362f43f3e36787125389c81e565b4aff6b
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
2016-09-01 15:50:21 +08:00
Zorro Liu
5bfcbbd799 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>
2016-09-01 15:49:55 +08:00
lanshh
ff83b530e9 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>
2016-09-01 15:49:25 +08:00
lanshh
bb21b20985 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>
2016-09-01 15:48:37 +08:00
Wu Liang feng
7b9548efe6 usb: dwc3: fix possible NULL pointer dereference for rockchip plat
Change-Id: I2afb1fa38ae6e76b8db397bda59fd9fbafe9a53b
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
2016-09-01 12:01:04 +08:00
Wu Liang feng
05b4496284 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>
2016-09-01 11:58:40 +08:00
Wu Liang feng
c1dea417c7 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>
2016-09-01 11:57:54 +08:00
Zhangbin Tong
f3c4a8082b 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>
2016-09-01 11:28:42 +08:00
wuliangqing
512272a814 ARM64: dts: rockchip: rk3399: vr: adjust temperature
Change-Id: Ifef9ff7092a6f80e805bfcb249ed41c4a5c7a4fa
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
2016-09-01 11:26:31 +08:00
wuliangqing
51dc5b3de7 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>
2016-09-01 11:26:14 +08:00
Binyuan Lan
078afbc833 power: rk818: add power on/off source print
Change-Id: I4ea6cff9ecd0ebe87fb454cd26945c252f342e1f
Signed-off-by: Binyuan Lan <lby@rock-chips.com>
2016-09-01 11:22:12 +08:00
Finley Xiao
f19160ef1c 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>
2016-09-01 11:21:53 +08:00
Zhou weixin
f0ca5a2c13 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>
2016-09-01 11:13:21 +08:00
Weilong Gao
25cca9ca64 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>
2016-09-01 11:11:03 +08:00
Jianqun Xu
a92d1b947f 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>
2016-09-01 10:03:12 +08:00
Shawn Lin
68ffa69929 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>
2016-08-31 14:02:04 +08:00
Jacob Chen
9d02460ccb 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>
2016-08-31 14:01:23 +08:00
Jacob Chen
8407f6daed arm64: dts: rockchip: enable the backlight device node for Sapphire-linux
Change-Id: I6b9fe6d2563975a5524262aa3c32ebd37741f33c
Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
2016-08-31 14:01:13 +08:00
Huang Jiachai
e4ae32ab8d 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>
2016-08-31 14:00:00 +08:00
David Wu
7bef813023 pwm: rockchip: add rk_fb config_done for voppwm
Change-Id: Iea012bfcec972f4b722950ea06713d2df4690242
Signed-off-by: David Wu <david.wu@rock-chips.com>
2016-08-31 13:57:58 +08:00
wenping.zhang
914ca81004 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>
2016-08-31 09:46:27 +08:00
wenping.zhang
9c80b56db4 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>
2016-08-31 09:42:12 +08:00
Elaine Zhang
3517f21ca6 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>
2016-08-30 15:21:10 +08:00
Elaine Zhang
4336ef5f14 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>
2016-08-30 15:21:02 +08:00
Zhou weixin
e54b749e80 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>
2016-08-30 10:47:21 +08:00
Herman Chen
d16a8c7220 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>
2016-08-29 19:46:26 +08:00
Shengqin.Zhang
849db440c5 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>
2016-08-29 17:57:58 +08:00
Huang, Tao
9274f2a4fc Revert "arm64: Increase the max granular size"
This reverts commit 9730348075.

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>
2016-08-29 15:46:12 +08:00
Elaine Zhang
f873212d3e 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>
2016-08-29 15:17:14 +08:00
Jianqun Xu
0f75dc4209 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>
2016-08-29 14:58:21 +08:00