Commit Graph

613717 Commits

Author SHA1 Message Date
Felipe Balbi
ea71b9c501 UPSTREAM: usb: host: xhci: print device slot from URB tracers
This will help us figuring out which device $this URB belongs to while
debugging.

Change-Id: Ie77b613a633ded54b6b14b291138a3b3274155e7
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit eaa9eb71a2)
2018-11-22 17:06:58 +08:00
Felipe Balbi
70721b95ba UPSTREAM: usb: host: xhci: add xhci_virt_device tracer
Let's start tracing at least part of an xhci_virt_device lifetime. We
might want to extend this tracepoint class later, but for now it already
exposes quite a bit of valuable information.

Change-Id: I9cf4b89292d5062c64bc96045692691f90834fe2
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit a711edeeb1)
2018-11-22 17:06:58 +08:00
Felipe Balbi
e0805af00c UPSTREAM: usb: host: xhci: remove newline from tracer
If we add that newline, the output will look like the following:

     kworker/2:1-42    [002] ....   169.811435: xhci_address_ctx:
ctx_64=0, ctx_type=2, ctx_dma=@153fbd000, ctx_va=@ffff880153fbd000

We would rather have that in a single line.

Change-Id: Ic01adda02391f919de3dcb8e9835f16acf41d7d0
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit d4d93e6c55)
2018-11-22 17:06:58 +08:00
Felipe Balbi
fad8c73d79 UPSTREAM: usb: host: xhci: add urb_enqueue/dequeue/giveback tracers
These three new tracers will help us tie TRBs into URBs by *also*
looking into URB lifetime.

Change-Id: I50f1ce0ade0d03a777d58992a933fdb7e4343ebb
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 5abdc2e6e1)
2018-11-22 17:06:58 +08:00
Felipe Balbi
3c08139536 UPSTREAM: usb: host: xhci: make a generic TRB tracer
instead of having a tracer that can only trace command completions,
let's promote this tracer so it can trace and decode any TRB.

With that, it will be easier to extrapolate the lifetime of any TRB
which might help debugging certain issues.

Change-Id: I9cbb163b1198893c1028f3c10a694efb3748f86a
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit a37c3f76e6)
2018-11-22 17:06:57 +08:00
Alexandr Ivanov
ca76ce6147 UPSTREAM: usb: xhci: remove duplicate function xhci_urb_to_transfer_ring
Remove duplicate function xhci_urb_to_transfer_ring from xhci.c.
We have same function in xhci-ring.c.

Change-Id: I1638a4d3be9d65a16ef59ce979619a7bf54e93e9
Signed-off-by: Alexandr Ivanov <alexandr.sky@gmail.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 75b040ec60)
2018-11-22 17:06:57 +08:00
Felipe Balbi
aad0548d6a UPSTREAM: usb: host: xhci: combine event TRB completion debugging messages
If we just provide a helper to convert completion code to string, we can
combine all debugging messages into a single print.

[keep the old debug messages, for warn and grep -Mathias]
Change-Id: Ie147da78006f5d244bd5f65a8011bf38e748bd34
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit ed6d643b14)
2018-11-22 17:06:57 +08:00
Felipe Balbi
0eeed4c5f7 UPSTREAM: usb: host: xhci: rename completion codes to match spec
Cleanup only. This patch is a mechaninal rename to make sure our macros
for TRB completion codes match what the specification uses to refer to
such errors. The idea behind this is that it makes it far easier to grep
the specification and match it with implementation.

Change-Id: I3f04cc262f5ecc8a6b36463070243511b1e14129
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 0b7c105a04)
2018-11-22 17:06:57 +08:00
Felipe Balbi
22d69adf78 UPSTREAM: usb: host: xhci: convert to list_for_each_entry_safe()
instead of using while(!list_empty()) followed by list_first_entry(), we
can actually use list_for_each_entry_safe().

Change-Id: Ib116234c6653f6700e6aea1fb1af3d08c83890c0
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit a54cfae3c7)
2018-11-22 17:06:57 +08:00
Bian Jin chen
66a9647b1a arm64: dts: rockchip: rk3326-evb-lp3-v10: Separate android firmware
Split DT source files to separate out android firmware for Android Pie & Oreo

Change-Id: I202f2350a3d8dcf8ef6762dd39784472a4ce7281
Signed-off-by: Bian Jin chen <kenjc.bian@rock-chips.com>
2018-11-22 16:58:06 +08:00
Chen Jinsen
44f0f5a15c ARM: dts: rk3288-evb-android-rk808-edp: modified compatible of edp_panel
Change-Id: I39fe3fa6cd277ef3b8d0a651b6dfe08985bf68f1
Signed-off-by: Chen Jinsen <kevin.chen@rock-chips.com>
2018-11-22 16:57:07 +08:00
Simon Xue
0b3009d751 arm64: dts: rockchip: rk1808: Add pmugrf to pcie0 node
To avoid PRSTN being drived when PCIe is working,switch to
PCIe_PRSTNm0 as a workaround.

Change-Id: I094be7a873d0bff301792edea6929e1199cc52a2
Signed-off-by: Simon Xue <xxm@rock-chips.com>
2018-11-21 16:32:33 +08:00
Simon Xue
7cca3e263b PCI: rockchip: Add Rockchip DW PCIe controller support
Add support for DW PCIe controller found on RK1808 SoC platform

Change-Id: Ic6d638782d1f55f965d663f73eee14bafa392740
Signed-off-by: Simon Xue <xxm@rock-chips.com>
2018-11-21 16:32:09 +08:00
Zheng Yang
0d5631a67b drm/edid: support parsing Hybrid Log-Gamma EOTF
Change-Id: Ia017bbd341dbd5e895336a98abe65bee3694085b
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
2018-11-21 10:57:53 +08:00
Caesar Wang
51a94209b8 net/rfkill: bt: improve to set the bt power
There is a bt power issue on Debian OS, the blueman app
will callback to enable the bluetooth power during the bringup.

As below log the system bringup about 10s.
[BT_RFKILL]: rfkill_rk_set_power: set bt wake_host pin output high!
[BT_RFKILL]: rfkill_rk_set_power: enable bt reset pin!
[BT_RFKILL]: ENABLE UART_RTS
[BT_RFKILL]: DISABLE UART_RTS
[BT_RFKILL]: bt turn on power
...

So the rfkill-bt driver should judge the power status, otherwise the
blueman app will cause the bluetoolth timeout error. e.g:
root@linaro-alip:/# bluetoothctl
[NEW] Controller 3B:A0:90:48:46:40 linaro-alip [default]
[bluetooth]# scan on
Discovery started
[   33.076522] Bluetooth: hci0 command 0x2005 tx timeout
[   35.080473] Bluetooth: hci0 command 0x200b tx timeout
[   37.084505] Bluetooth: hci0 command 0x200c tx timeout

Change-Id: Ib0dd99a83c64dbaf469c3eb7a9226a2d83c53e6f
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
2018-11-21 10:31:11 +08:00
Shunqing Chen
e96d623993 arm64: dts: rockchip: rk3399pro-evb: add hdmi phy table
Change-Id: I8f1308ab2cf37c60c14f15939a5270b75819a475
Signed-off-by: Shunqing Chen <csq@rock-chips.com>
2018-11-21 10:29:55 +08:00
Weixin Zhou
0c8c4b452a arm64: dts: rockchip: rk3399pro-evb: disable hdmiin/pcie/i2c5 by default
Change-Id: I0609cc2a3ad24a0c4dd8f201de8958eda36650c7
Signed-off-by: Weixin Zhou <zwx@rock-chips.com>
2018-11-20 18:30:10 +08:00
Cody Xie
1c3bf032dd arm64: dts: rockchip: Add l2 cache topology for rk3308
Commit 5d425c1865 ("arm64: kernel: add support for cpu cache
information") adds cacheinfo support for ARM64. Since there's no
architectural way of detecting the cpus that share particular cache,
device tree can be used and the core cacheinfo already supports the
same.

This patch adds the l2 cache topology on RK3308 SoC based boards.

Change-Id: Iaa0ddb11d02ba9cd42aea59406e02160affd32bf
Signed-off-by: Cody Xie <cody.xie@rock-chips.com>
2018-11-20 16:18:00 +08:00
Cody Xie
de5746740f ARM64: dts: rockchip: rk3308-evb-dmic-pdm-v11: Enable rk_timer_rtc
Change-Id: Ica312ae075cd81130a26ebe44f8d031f62d8fe48
Signed-off-by: Cody Xie <cody.xie@rock-chips.com>
2018-11-20 14:26:37 +08:00
Cody Xie
3c62410331 ARM64: configs: rk3308_linux: Enable RTC_DRV_RK_TIMER
Change-Id: Id4eda9e9b00313bdb74580836c396a32cc4159d5
Signed-off-by: Cody Xie <cody.xie@rock-chips.com>
2018-11-20 14:26:26 +08:00
Wang Panzhenzhuan
4883f31786 arm64: dts: rockchip: rk3399-sapphire-excavator-edp: distinguish isp relate nodes for Android 9.0 & 8.1
rk3399-sapphire-excavator-edp*:
isp0/1 for CameraHal1 in Android8.1 or lower version
rkisp1_0/1 & mipi_dphy_rx0/tx1rx1 for CameraHal3 in Android9.0

Change-Id: I6bae9306d22edaebc6aaf6a3f49129f26977e623
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
2018-11-20 14:24:12 +08:00
Shunqing Chen
fcf4c451bd power: rk816-battery: add POWER_SUPPLY_PROP_CHARGE_FULL for CTS.
Change-Id: Ibffd62eaafd42553f2b739bd5d2b9009ac705880
Signed-off-by: Shunqing Chen <csq@rock-chips.com>
2018-11-20 09:21:57 +08:00
Jianqun Xu
fcd3db3988 arm64: dts: rockchip: sdmmc clk pin driver strength to 4mA for rk1808
According to signal test result, sdmmc 0/1 clk pin driver strength
need to be 4mA.

Change-Id: Ifbd0515bcebe19423c4b110392c8ff8307431a23
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2018-11-19 16:22:31 +08:00
Leo Wen
d51fdb016c media: i2c: Change the format to MEDIA_BUS_FMT_Y10_1X10 for the ov7251.
Change-Id: I72e1f6d0169fd676f46899e36b7ff15ca0946c1a
Signed-off-by: Leo Wen <leo.wen@rock-chips.com>
2018-11-19 15:52:09 +08:00
Finley Xiao
db21313ab5 arm64: dts: rockchip: rk3399pro-npu-evb-v10: Modify vop-bw-dmc-freq
Make the default configuration support 2048x1536 panel.

Change-Id: Idbcb6628b5697a067b3fa08be082019a1ae011f2
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-11-19 09:32:55 +08:00
Hu Kejun
c95aac07a9 media: soc_camera: rockchip: add platform gpio initialization
Change-Id: I52adfa0fea44806754d8d825a04dd6358fb22381
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
2018-11-17 17:45:30 +08:00
Wyon Bi
27a168dc32 drm/rockchip: lvds: optimized power on/off sequences
we can power off the bandgap to reduce power consumption.

Change-Id: I13be04116cce098e5a3606659a64bc4d96093b44
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2018-11-16 19:14:32 +08:00
Feng Mingli
7ecb69d8af usb: dwc2: keep phy power on if current mode is host during probe
The commit e6f2f6d63e ("usb: dwc2: power on/off phy for
otg mode") aimed to control phy power for otg mode, but
it also introduced a new problem, so we fix it.

This patch keep phy power on for otg if current mode is
host during dwc2 probe, otherwise the enumeration will
fail with the following error log:

Cannot enable. Maybe the USB cable is bad?
Cannot enable. Maybe the USB cable is bad?
attempt power cycle
Cannot enable. Maybe the USB cable is bad?
Cannot enable. Maybe the USB cable is bad?
unable to enumerate USB device

Fixes: e6f2f6d63e ("usb: dwc2: power on/off phy for otg mode")
Change-Id: I17a4cab6f0337fdc0923989aea8613bfbe1a9e9b
Signed-off-by: Feng Mingli <fml@rock-chips.com>
2018-11-16 19:11:00 +08:00
YouMin Chen
30362bd199 arm64: dts: rockchip: add rk1808 ddr relate node
Change-Id: I06c40f6c5e2832f79626c3438bed74fbb0551c86
Signed-off-by: YouMin Chen <cym@rock-chips.com>
2018-11-16 15:36:06 +08:00
YouMin Chen
02747fd169 clk: rockchip: rk1808: fix SCLK_DDRCLK for dmc
Change-Id: Ib43c4aa3548609d35748fac23db7b5ec589d69dd
Signed-off-by: YouMin Chen <cym@rock-chips.com>
2018-11-16 15:09:54 +08:00
YouMin Chen
90cf7903d4 PM / devfreq: rockchip_dmc: add support for rk1808
Change-Id: If6a5230f84f8ea293f3d6c84f7586dbff3a02230
Signed-off-by: YouMin Chen <cym@rock-chips.com>
2018-11-16 15:09:32 +08:00
YouMin Chen
c475623bba dt-bindings: memory: add header to define DRAM for rk1808
Change-Id: I963b952d6b694d69b206ef76d09b89d742fb7936
Signed-off-by: YouMin Chen <cym@rock-chips.com>
2018-11-16 14:54:39 +08:00
YouMin Chen
7c5197315c dt-bindings: devfreq: rockchip_dmc: Add rk1808 support
Change-Id: I38d5ab66f5d5345e05db42d16e46ed79973bb4fc
Signed-off-by: YouMin Chen <cym@rock-chips.com>
2018-11-16 14:52:15 +08:00
Weixin Zhou
fd2d29a2ec arm64: dts: rockchip: rk3399pro-evb: fix deepsleep failed
Change-Id: Ibb3efedc073f73924a3c071ed9b5b34cf54eddc6
Signed-off-by: Weixin Zhou <zwx@rock-chips.com>
2018-11-16 10:57:36 +08:00
YouMin Chen
fa87c52fb6 PM / devfreq: rockchip-dfi: add support for rk1808 dfi
Change-Id: Id95eca244c666b103ce4f9676e2abbeb304196ac
Signed-off-by: YouMin Chen <cym@rock-chips.com>
2018-11-16 10:08:05 +08:00
YouMin Chen
c5c5b7490b dt-bindings: devfreq: rockchip_dfi: Add rk1808 support
Change-Id: I8bd056dcc93f3c9c94b1b490340f8b040bb77d43
Signed-off-by: YouMin Chen <cym@rock-chips.com>
2018-11-16 10:05:51 +08:00
Cai YiWei
0484eb3224 media: i2c: ov5695: set clk when power on
Prevention clk is changed by other sensor

Change-Id: I4249cfdc32f7250b8656b9d5787735370e63690d
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2018-11-15 17:40:27 +08:00
Sugar Zhang
8362db7ff4 ASoC: rockchip: multi_dais: add support for tdm slot set
Change-Id: I6867569d9dd9dd1a5137cded4f6aa21b802a53d7
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2018-11-15 17:40:00 +08:00
Cai YiWei
67de53da58 arm64: dts: rockchip: rk1808-evb: vdd1v5_dvp min to 1.2v
Change-Id: I82d9078dd82c78d4e6139bc15164e3ba70908d50
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2018-11-15 14:47:43 +08:00
Cai YiWei
ba37982efb arm64: dts: rockchip: rk1808: add cif iomux and grf to isp
Change-Id: I95f68b5151c76579a88d0ea743e97e55efad29af
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2018-11-15 14:47:05 +08:00
Andy Yan
094228aab4 ARM: config: rockchip_linux: enable DRM_DUMB_VGA_DAC
This enable VGA DAC Bridge support

Change-Id: Ic4795378ed2286de55907e1aa59b558ef493120c
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
2018-11-15 14:45:07 +08:00
Andy Yan
3e561bb4f2 ARM: dts: rockchip: Add RGB to VGA bridge nodes for rk3288-popmetal
Change-Id: I1b9af225b718e9b4b29e2720128807ece8bb8fc7
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
2018-11-15 14:45:07 +08:00
Wyon Bi
4865eb38b1 drm/rockchip: dsi: Add support for adapted command mode (Auto mode)
Three operating mode are available to convey the graphical data
to the display:
- Video mode streams over the high-speed link the RGB data and the
  associated synchronization signals directly generated by the LCDC.
  The streaming starts as soon as the DSI Host and the LCDC are enabled.
  This continuous refresh is the best way to interface with a display
  without Graphics RAM.
- APB command mode sends commands over the high-speed link for
  configuration as it is done using a legacy serial interface (SPI).
  The commands are launched using the DSI Host APB interface.
- Adapted command mode is the best way to interface with a display
  having its own internal Graphics RAM. The DSI Host captures only
  one full frame coming from the LCDC and transforms it into a series
  of write commands to update the display Graphics RAM.

Change-Id: Id2a9ccf71997f42126a3719bc349576013970158
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2018-11-15 14:25:37 +08:00
Wenlong Zhuang
7a93a3d8bf media: rockchip/cif: compatible with old dts config
Maybe not configure 'reg-names' property in dts file for px30/rk3128/rk3288.

Change-Id: I1f415baa51c13438237390794e8265e00bc29ee1
Signed-off-by: Wenlong Zhuang <daisen.zhuang@rock-chips.com>
2018-11-15 14:16:22 +08:00
Zhen Chen
e705e67167 MALI: utgard: RK: use '__GFP_ZERO | GFP_HIGHUSER' as 'flags' of alloc_page()
Just the same as in Midgard device driver.
This could resolve Defect #170228 and #184427 in RK redmine.

In addition, add err log for the case that alloc_page() returns NULL.

Change-Id: Ie1ddfae9429236900e4308e2cfecec2cd75a183a
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
2018-11-15 14:14:07 +08:00
Finley Xiao
e9466ededd clk: rockchip: rk3308: Set max parent rate of dclk_vop_frac for rk3308b
The max parent rate of dclk_vop_frac is improved to 800MHz on rk3308b.

Change-Id: Ie36120ac7048fc4c983547539a6bce34d737529d
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-11-15 12:41:01 +08:00
Rimon Xu
f387fa8ab2 video: rockchip: vpu: soft reset only in chip rk3399 rk3328 rk3229
Fixes: d96ea9d580 ("video: rockchip: vpu: add soft reset for rkvdec")
Change-Id: I852309fbf9ee30a2a1dde8364b3535927e3b47e5
Signed-off-by: Rimon Xu <rimon.xu@rock-chips.com>
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
2018-11-14 19:13:40 +08:00
kbuild test robot
774e76fa41 UPSTREAM: regulator: tps65132: fix platform_no_drv_owner.cocci warnings
drivers/regulator/tps65132-regulator.c:274:3-8: No need to set .owner here. The core will do it.

 Remove .owner field if calls are used which set it automatically

Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci

Change-Id: Ib866380f61097209fb04421a8c8b4a105ee3111f
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Acked-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
(cherry picked from commit 43594dd453)
2018-11-14 10:44:30 +08:00
Axel Lin
34a769640e UPSTREAM: regulator: tps65132: Fix off-by-one for .max_register setting
TPS65132_REG_CONTROL(0xFF) is the latest valid register.

Change-Id: Iac34a8a9b011664c74ce593e10a93416e308a6a9
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
(cherry picked from commit 5abca06c21)
2018-11-14 10:44:30 +08:00
Venkat Reddy Talla
0b2e1d8f68 UPSTREAM: regulator: tps65132: add device-tree binding
Add tps65132 regulator device-tree binding documentation

Change-Id: I176467cd3301e75b211ec76ae1af258ed2c7e33e
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
(cherry picked from commit 682d33c65c)
2018-11-14 10:44:30 +08:00