Commit Graph

606763 Commits

Author SHA1 Message Date
Zhou weixin
64ef3da372 arm64: dts: rockchip: add io-domain config for px30/rk3326
Change-Id: I8b0c76dfc388068782f613285f3b0c5e5314cd32
Signed-off-by: Weixin Zhou <zwx@rock-chips.com>
2018-02-05 15:45:09 +08:00
tony.xie
bffbb0ee12 arm64: dts: rockchip: add rk817 config for rk3326
Change-Id: Ia7c18fddccb02148c997659f4684b25d3d1ce5c8
Signed-off-by: Tony Xie <tony.xie@rock-chips.com>
2018-02-05 15:44:09 +08:00
Tony Xie
f6ee06ee9c arm64: dts: rockchip: add rk809 config for px30
Change-Id: I800930de092077f96873304b17aa218fa791813a
Signed-off-by: Tony Xie <tony.xie@rock-chips.com>
2018-02-05 15:40:59 +08:00
Zhen Chen
142f58d546 MALI: rockchip: add arm release of Bifrost DDK r8p0-01rel0
Change-Id: If8d2c3a903a205e3a7c101c4383735940439c9d0
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
2018-02-05 14:28:39 +08:00
Zhangbin Tong
5e64a923d9 ARM: dts: rockchip: Add android board dts file for rk3229 evb
Change-Id: Ic6459c66119e5c8e1785cf2f47dfc12c20560f2e
Signed-off-by: Zhangbin Tong <zebulun.tong@rock-chips.com>
2018-02-05 10:59:34 +08:00
Zhangbin Tong
8c9400b3a1 ARM: dts: rk322x-android: Add ramoops and drm-logo
Change-Id: Ia6bf599215ca8639ad7f407743f3868b89782efc
Signed-off-by: Zhangbin Tong <zebulun.tong@rock-chips.com>
2018-02-05 10:59:23 +08:00
Zhangbin Tong
13e8708f28 ARM: dts: rk322x-android: add partitions specified by fstab in device tree
Change-Id: I334ee5e8f4e0cbfa274bc72173aa89ac44a0c727
Signed-off-by: Zhangbin Tong <zebulun.tong@rock-chips.com>
2018-02-05 10:58:02 +08:00
Zhangbin Tong
0777e17b91 ARM: dts: rk322x: add lable for display-subsystem
Change-Id: I05d469eb8da0a9241f0ec3eff039039211c4b656
Signed-off-by: Zhangbin Tong <zebulun.tong@rock-chips.com>
2018-02-05 10:57:27 +08:00
Zhangbin Tong
05bfe0c86a ARM: dts: rk322x: add capture interrupts for pwm3
Change-Id: I38995345de2401b151e42a0c047ee3d31d72402e
Signed-off-by: Zhangbin Tong <zebulun.tong@rock-chips.com>
2018-02-05 10:57:06 +08:00
Zhangbin Tong
151d396a6f ARM: dts: rk322x: Fix typo for pwm3 #pwm-cells
Change-Id: Iefdd1b9838b7a6f633476634c7bef53fdcfba923
Signed-off-by: Zhangbin Tong <zebulun.tong@rock-chips.com>
2018-02-05 10:56:41 +08:00
Zhangbin Tong
cb3339cafb ARM: dts: rk322x: add rockchip,rk3228-grf compatible to grf
Change-Id: I8bf76e140150f90bd2656053ab27ddfec6361da3
Signed-off-by: Zhangbin Tong <zebulun.tong@rock-chips.com>
2018-02-05 10:56:35 +08:00
Finley Xiao
a198c95b94 clk: rockchip: rk3228: Fix armclk parent
Change-Id: I09830d96b37cca600f1782b9013b25e043467f97
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-02-05 10:05:24 +08:00
Tao Huang
e7f55d159a printk: add support show process information on printks
Change-Id: I34cf76388ceb2e1f6b6417638c82bf774641ebac
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-02-02 19:26:07 +08:00
Tao Huang
707eebb0c9 regulator: debugfs: Adding debugfs functions into regulator framework
This change allows the user to read and edit regulator information
in user space through the debugfs file system.

Base on msm work.

Change-Id: I4b40d4fd662e3d3d0856127e8e030fa60e938df9
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-02-02 19:21:32 +08:00
Finley Xiao
6cd300f795 clk: rockchip: rk3128: Fix aclk_peri_src parent
Change-Id: Id679e7235f78635233dc4d6bd59c75ce05dfc99e
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-02-02 19:09:29 +08:00
Zheng Yang
ea56866919 drm: bridge: synopsys: update more hdmi status in dw_hdmi_bind
If hdmi is enabled in uboot, hdmi->disabled and bridge_is_on and
phy status need to be updated.

Change-Id: Ib21d894b673bf12b46a271c91d3e08fe7475ea89
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
2018-02-02 19:09:12 +08:00
Zorro Liu
3726b810fe drivers: input: sensors: reset sensor rate
Change-Id: I3fc1fbe5c054867fe6ce93f64bc2dc14f6abeb9c
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
2018-02-02 19:06:30 +08:00
Algea Cao
21c38316b3 drm/rockchip: Support tve uboot logo
Add tve connector port. If uboot logo is enabled,
dac will not be disabled when tve bind.

Change-Id: I5d87f9d1afc05481968dc34b0bd09dd82719a933
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2018-02-02 18:55:50 +08:00
David Wu
9d155c640f power: avs: rockchip-io-domain: Change the name from vccio0 to vccio6 for px30
Checked with ic colleague, the name should be same as the datasheet,
so need to change the name, they also change it at trm.

Change-Id: Ie98ba5397cf0e5a2dba4e07fc0ca31a3330f05a6
Signed-off-by: David Wu <david.wu@rock-chips.com>
2018-02-02 18:51:52 +08:00
Zhou weixin
3bc1d7d06f arm64: dts: rockchip: Auto match emmc and nand devices for px30/rk3326
Change-Id: I787e0cefdf8bc7d0f5ae1483233017edafa7ee31
Signed-off-by: Weixin Zhou <zwx@rock-chips.com>
2018-02-02 18:49:57 +08:00
Finley Xiao
588ae5977e clk: rockchip: Adjust the order of cpu boost
Change-Id: I5fe78b451f9afaff276aeb251d68daf780c1eecf
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-02-02 18:36:40 +08:00
Finley Xiao
fe53e62332 clk: rockchip: px30: Fix boost mask
Change-Id: I507efe5bf432556a9e603275f03c81a5a8ef96ed
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-02-02 18:33:59 +08:00
Finley Xiao
f1ae3d9c5a clk: rockchip: px30: Fix wait boost recovery idle
Change-Id: If407926c5fedd1e91b1223a3926f3bb98f4cb17c
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-02-02 18:33:36 +08:00
Finley Xiao
b503ff5697 clk: rockchip: rk3368: Add clock id for tsp
Change-Id: I79a423f93f991aab43922e58ce34eac1754304e2
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-02-02 09:46:34 +08:00
Jung Zhao
5f049afc2c arm64: dts: rockchip: px30: add core reset
Change-Id: I7a3bf6d6098fdd12f71d5b2a51e898dc8ed24e12
Signed-off-by: Jung Zhao <jung.zhao@rock-chips.com>
2018-02-02 09:44:16 +08:00
Weiguo Hu
623a187bd8 net: phy: rockchip: optimize for long cable
Change-Id: I125fb3a325946e82ccf021b02df194282b9d60f0
Signed-off-by: Weiguo Hu <hwg@rock-chips.com>
2018-02-01 19:13:45 +08:00
Algea Cao
793ca73b39 media: cec: Fix crash if HPD is occurred before adapt allocated.
Change-Id: I4d546cdbbecfd124c7cd6a985f0843879037b6dc
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2018-02-01 19:10:59 +08:00
Wu Liangqing
7e0c9d357c ARM: dts:rk3126-bnd-d70: enabled emmc default
Change-Id: Id41ec3b9262091775a0494447e2ca8a34763ed8f
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
2018-02-01 19:10:31 +08:00
Zheng Yang
3a61ef4874 drm: bridge: synopsys: update mc_clkdis in dw_hdmi_bind
If vop return error when showing kernel logo, connector atomic flush
will not be call, and mc_clkdis can not be updated.

This patch update mc_clkdis in the dw_hdmi_bind, when phy clock is
locked and HPD is connected.

Change-Id: I1498d787a993961fe75236c309ecc3c898d611a4
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
2018-02-01 15:18:41 +08:00
Douglas Anderson
8ebe023800 UPSTREAM: usb: dwc2: host: Don't retry NAKed transactions right away
On rk3288-veyron devices on Chrome OS it was found that plugging in an
Arduino-based USB device could cause the system to lockup, especially
if the CPU Frequency was at one of the slower operating points (like
100 MHz / 200 MHz).

Upon tracing, I found that the following was happening:
* The USB device (full speed) was connected to a high speed hub and
  then to the rk3288.  Thus, we were dealing with split transactions,
  which is all handled in software on dwc2.
* Userspace was initiating a BULK IN transfer
* When we sent the SSPLIT (to start the split transaction), we got an
  ACK.  Good.  Then we issued the CSPLIT.
* When we sent the CSPLIT, we got back a NAK.  We immediately (from
  the interrupt handler) started to retry and sent another SSPLIT.
* The device kept NAKing our CSPLIT, so we kept ping-ponging between
  sending a SSPLIT and a CSPLIT, each time sending from the interrupt
  handler.
* The handling of the interrupts was (because of the low CPU speed and
  the inefficiency of the dwc2 interrupt handler) was actually taking
  _longer_ than it took the other side to send the ACK/NAK.  Thus we
  were _always_ in the USB interrupt routine.
* The fact that USB interrupts were always going off was preventing
  other things from happening in the system.  This included preventing
  the system from being able to transition to a higher CPU frequency.

As I understand it, there is no requirement to retry super quickly
after a NAK, we just have to retry sometime in the future.  Thus one
solution to the above is to just add a delay between getting a NAK and
retrying the transmission.  If this delay is sufficiently long to get
out of the interrupt routine then the rest of the system will be able
to make forward progress.  Even a 25 us delay would probably be
enough, but we'll be extra conservative and try to delay 1 ms (the
exact amount depends on HZ and the accuracy of the jiffy and how close
the current jiffy is to ticking, but could be as much as 20 ms or as
little as 1 ms).

Presumably adding a delay like this could impact the USB throughput,
so we only add the delay with repeated NAKs.

NOTE: Upon further testing of a pl2303 serial adapter, I found that
this fix may help with problems there.  Specifically I found that the
pl2303 serial adapters tend to respond with a NAK when they have
nothing to say and thus we end with this same sequence.

Change-Id: Ie9306eeef2694ceb59a07658905223f698b74e9a
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Tested-by: Stefan Wahren <stefan.wahren@i2se.com>
Acked-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git next
 commit 38d2b5fb75)
2018-02-01 11:30:44 +08:00
xxh
1ee5e73c0e net: wireless: rockchip_wlan: fix bcmdhd driver for GTS
Change-Id: I63173d9c83a2cd2e722dc279f18b226aff3595bf
Signed-off-by: Xu Xuehui <xxh@rock-chips.com>
2018-02-01 10:02:44 +08:00
Zhou weixin
ec33359b7f arm64: dts: rockchip: enable vpu_combo for 3326/px30 board
Change-Id: I1f4f8800945e9c329b5e5fe87acf032cf5fe163b
Signed-off-by: Weixin Zhou <zwx@rock-chips.com>
2018-02-01 10:01:36 +08:00
Tao Huang
f9eefeeaa7 rk: add SPDX license identifier to files with no license
Change-Id: I754250669891307b0deab2bdab1bd01512713f79
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-01-31 20:56:06 +08:00
Zhen Chen
cc941b22d4 MALI Utgard: rk.c: change licence announcement to use GPLv2
Change-Id: I1230425dd33b48b7dc3d8b49d8912713ebb97ca5
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
2018-01-31 20:45:39 +08:00
Zhen Chen
469e3ee54b MALI Utgard: RK: remove unused files with proprietary announcement
Change-Id: Iffe6df7c406dff1efad10934fc09ca7fd2f101ec
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
2018-01-31 20:45:25 +08:00
Tao Huang
878bfd1fe6 sound/soc/codecs: remove unused rt5625.c.enc
Change-Id: Id5ea219c9faae173096fb4532772f90238ea53b8
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-01-31 20:33:03 +08:00
Sandy Huang
11905fc191 drm/rockchip: fix hdmi kernel logo display error
when have two connector, show_loader_logo() must free the
unused connect resources.

Change-Id: Ic0ad98988d7dbae8143087cf00e3c5914281188a
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2018-01-31 19:22:29 +08:00
Tao Huang
9be9564661 drivers/media/video: remove unused icatch7002
Change-Id: Iba11051d729b3546b279eccb14d981c85332d38d
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-01-31 19:21:09 +08:00
Tao Huang
62bf938f08 drivers/base: remove unused devices_filter.h
Change-Id: I50622b8c2d59addd303d897b57ee48b691e59b33
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-01-31 19:20:57 +08:00
Rocky Hao
41decf17a9 soc: rockchip: pm_test: fix memleak bug
Change-Id: If484e4e8d18b860c32fbd2389c59db971b212d80
Signed-off-by: Rocky Hao <rocky.hao@rock-chips.com>
2018-01-31 19:12:38 +08:00
Sandy Huang
62779bcb89 drm/rockchip: backlight: fix compile warning
warning: Access to field 'dev' results in a dereference of a null
pointer (loaded from variable 'panel')

Change-Id: I0f4224b47b3b7c16a9022e19f8de28df66784a7f
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2018-01-31 18:39:26 +08:00
Finley Xiao
7bd13a986e clk: rockchip: px30: Modify SRST ID according to latest document
Change-Id: Idb6b845581a18082f851c4b67e1ef5bd3a5bc886
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-01-31 17:11:06 +08:00
Finley Xiao
401c07e068 clk: rockchip: px30: Fix div_core_mask
Change-Id: I985d27841de00ec7e6f9ca3454c0c4c4f8debacb
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-01-31 16:05:50 +08:00
Kaige Li
345820113a ARM64: dts: rockchip: rk3368-px5-evb-android: add gpio detection node
Change-Id: Ifb002c1211e1e92d759fbd2cc9ac3eb649167701
Signed-off-by: Kaige Li <kevin.li@rock-chips.com>
2018-01-31 09:53:42 +08:00
Sandy Huang
e680ddfb70 drm/rockchip: vop: correct register config
Change-Id: I5923580552d14dc25b61524e500b7449401b1cca
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2018-01-31 09:42:57 +08:00
Kaige Li
c27c194267 misc: fixed gpio-detection error
This patch can fix the following issue:
The gpio is not invalid when configured as active low.

Change-Id: Idc0618db3c20534ad5c952a4c9b4d4a366599cbf
Signed-off-by: Kaige Li <kevin.li@rock-chips.com>
2018-01-31 08:53:27 +08:00
Wyon Bi
1414eb5ed8 ARM: dts: rockchip: rk3128-fireprime: Fix lvds pinctrl-names
Change-Id: I0b1ba2f930bfe6b8541f5e980ec114240460f877
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2018-01-30 21:02:56 +08:00
Wyon Bi
3e0cd87ecd ARM: dts: rockchip: rk3126-evb: Fix lvds pinctrl-names
Change-Id: Iebb49608373efd4927b11f55f901c43017502f94
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2018-01-30 21:02:47 +08:00
Wyon Bi
5aca9d69ac ARM: dts: rockchip: rk3288-popmetal-android-vga: add pinctrl settings for lvds node
Change-Id: I75466dc63ba9f0761c64df30c9fd7288cfd8fe8b
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2018-01-30 21:02:33 +08:00
Wyon Bi
df99532769 ARM: dts: rockchip: rk3288-popmetal-android: add pinctrl settings for lvds node
Change-Id: I435afb883ec6d3ee07523e1e933dfb3c564cd504
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2018-01-30 21:02:23 +08:00