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)
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)
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>
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>
Add support for DW PCIe controller found on RK1808 SoC platform
Change-Id: Ic6d638782d1f55f965d663f73eee14bafa392740
Signed-off-by: Simon Xue <xxm@rock-chips.com>
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>
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>
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>
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>
Make the default configuration support 2048x1536 panel.
Change-Id: Idbcb6628b5697a067b3fa08be082019a1ae011f2
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
we can power off the bandgap to reduce power consumption.
Change-Id: I13be04116cce098e5a3606659a64bc4d96093b44
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
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>
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>
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>
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>
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)
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)
Add regulator driver for the device TI TPS65132 which is single
inductor - dual output power supply device. TPS65132 device is
designed to support general positive/negative driven applications
like TFT display panels.
TPS65132 regulator driver supports to enable/disable and set voltage
on its output.
Change-Id: Ia3b6fac8a596657635c1e45e7feb7b99dc25acd3
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Signed-off-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 77c129bfef)
This patch adds support to calculate the static power in milliwatts
consumed by devices.
Change-Id: Ied4ba5adecea45ff34b372a6e23c70882000aef3
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
add usb2 and usb3 qos node,
set qos_pcie\qos_usb2\qos_usb3 status = "disabled" by default.
Change-Id: I20653cc485c4c923b3b89af8e801634f4d7447a3
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
drm_panel_attach() return EBUSY if panel->connector already set,
which indicate that panel and connector are already bound.
Because the .bind() function might call multiple times, so it is
unnecessary to check its return value.
Change-Id: I45e82983dc177825561ff4796e585dafe0f7c201
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>