Commit Graph

613740 Commits

Author SHA1 Message Date
Weixin Zhou
959beb17c8 arm64: dts: rockchip: rk3399: add gpio drive strength 10ma
Change-Id: Iff6303af2e87425b0509fd962b9e6b2fca8eb896
Signed-off-by: Weixin Zhou <zwx@rock-chips.com>
2018-11-23 17:47:05 +08:00
Zhangbin Tong
c83f890fe9 arm64: dts: rockchip: rk3328-box-liantong: Add sleep mode configuration
The board is adjusted with pwm regulator for logic and arm voltage.

The regulator sleep mode is notified by the GPIO pin issued by the soc
The pwm regulator has no pin control for sleep switching, and needs to
notify the soc pmu special processing.

Change-Id: Id2c22f26abcdae427a8e30716afbcaab471ea183
Signed-off-by: Zhangbin Tong <zebulun.tong@rock-chips.com>
2018-11-23 17:46:03 +08:00
XiaoDong Huang
f466d1ed8f arm64: dts: rockchip: rk3328: initialize sleep_mode_config
Change-Id: I7e54b5b4ba55a85f967a03bc990640c5d3bdf2e1
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
2018-11-23 17:45:10 +08:00
XiaoDong Huang
62e6d82613 dt-bindings: suspend: rk3328: add sleep mode config defines
Change-Id: Idb7c031061f5fe115b3a206ce82830e8c024a4c2
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
2018-11-23 17:44:13 +08:00
Weixin Zhou
f85d9e08a3 arm64: dts: rockchip: rk3399pro-evb-v10: add sdcrad uhs config
Change-Id: I22ba12a1562be3635769894324c84db282ff6568
Signed-off-by: Weixin Zhou <zwx@rock-chips.com>
2018-11-23 11:17:48 +08:00
Mathias Nyman
a2dc6f6438 UPSTREAM: xhci: fix endpoint context tracer output
Fix incorrent values showed for max Primary stream and
Linear stream array (LSA) values in the endpoint context
decoder.

Change-Id: I05bffa3801f2ff5919d5434c9bbc93711806d424
Fixes: 19a7d0d65c ("usb: host: xhci: add Slot and EP Context tracers")
Cc: <stable@vger.kernel.org> # v4.12+
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 97ef0faf57)
2018-11-22 17:06:59 +08:00
Mathias Nyman
75223156e9 UPSTREAM: xhci: trace slot context when calling xhci_configure_endpoint()
Add trace showing content of input slot context for
configure endpoint and evaluate context commands

Change-Id: I0c6af9e1528edd5d8c36629a28a7969190a2a572
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 e3a78ff022)
2018-11-22 17:06:59 +08:00
Lu Baolu
fca1672f58 UPSTREAM: usb: xhci: Add debugfs interface for xHCI driver
This adds debugfs consumer for xHCI driver. The debugfs entries
read all host registers, device/endpoint contexts, command ring,
event ring and various endpoint rings. With these entries, users
can check the registers and memory spaces used by a host during
run time, or save all the information with a simple 'cp -r' for
post-mortem programs.

The file hierarchy looks like this.

[root of debugfs]
|__usb
|____[e,u,o]hci                 <---------[root for other HCIs]
|____xhci                       <---------------[root for xHCI]
|______0000:00:14.0             <--------------[xHCI host name]
|________reg-cap                <--------[capability registers]
|________reg-op                 <-------[operational registers]
|________reg-runtime            <-----------[runtime registers]
|________reg-ext-#cap_name      <----[extended capability regs]
|________command-ring           <-------[root for command ring]
|__________cycle                <------------------[ring cycle]
|__________dequeue              <--------[ring dequeue pointer]
|__________enqueue              <--------[ring enqueue pointer]
|__________trbs                 <-------------------[ring trbs]
|________event-ring             <---------[root for event ring]
|__________cycle                <------------------[ring cycle]
|__________dequeue              <--------[ring dequeue pointer]
|__________enqueue              <--------[ring enqueue pointer]
|__________trbs                 <-------------------[ring trbs]
|________devices                <------------[root for devices]
|__________#slot_id             <-----------[root for a device]
|____________name               <-----------------[device name]
|____________slot-context       <----------------[slot context]
|____________ep-context         <-----------[endpoint contexts]
|____________ep#ep_index        <--------[root for an endpoint]
|______________cycle            <------------------[ring cycle]
|______________dequeue          <--------[ring dequeue pointer]
|______________enqueue          <--------[ring enqueue pointer]
|______________trbs             <-------------------[ring trbs]

Change-Id: I61b412883e547a257bffc1234ee42fd221b940a6
Signed-off-by: Lu Baolu <baolu.lu@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 02b6fdc2a1)
2018-11-22 17:06:59 +08:00
Mathias Nyman
0ccd5573b8 UPSTREAM: xhci: add port status tracing
Track the port status in a human readble way each time we get a
port status change event

Change-Id: I14ac1a720e0faca54c694d3b0eb52eac42bccd5d
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 8ca1358bd9)
2018-11-22 17:06:59 +08:00
Mathias Nyman
6ef65af130 UPSTREAM: xhci: Add port status decoder for tracing purposes
Add PORTSC Port status and control register decoder to
show human readable tracing of portsc register

Change-Id: I617493712e58546197748c01eea3f6b33b6dd377
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 2e77a8253d)
2018-11-22 17:06:59 +08:00
Mathias Nyman
70bbbbfe94 UPSTREAM: xhci: add definitions for all port link states
Add definitions for all port link states defined in xhci
specification for PORTSC register.

Will be needed for human readable port status tracing

Change-Id: I1de382f7e45c0a6a5481b92eabb2cf3b3fc68419
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 7344ee328c)
2018-11-22 17:06:59 +08:00
Mathias Nyman
f5137e89e0 UPSTREAM: xhci: rename temp and temp1 variables
temp and temp1 variables are used for port status (portsc) and
command register. Give them more descriptive names

No functional changes

Change-Id: Ic278965bbf21910b36404c90da955c74df69fc95
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 76a0f32b28)
2018-11-22 17:06:58 +08:00
Lu Baolu
57877a9606 UPSTREAM: usb: xhci: refine xhci_decode_trb()
Replace 'TRB_FIELD_TO_TYPE(field3)' with 'type' to simplify
code.

Change-Id: I0553a13c372bf130c195706e597701c691885093
Signed-off-by: Lu Baolu <baolu.lu@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 d2561626b9)
2018-11-22 17:06:58 +08:00
Lu Baolu
3a3260b23f UPSTREAM: usb: xhci: fix link trb decoding
xhci_decode_trb() treats a link trb in the same way as that for
an event trb. This patch fixes this by decoding the link trb
according to the spec.

Change-Id: Ia582395d828b0823c6279c45247fdcec89a19680
Signed-off-by: Lu Baolu <baolu.lu@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 96d9a6eb97)
2018-11-22 17:06:58 +08:00
Lu Baolu
b733c7bbe4 UPSTREAM: usb: xhci: remove xhci_dbg_ctx()
XHCI context changes have already been traced by the trace
events. It's unnecessary to put the same message in kernel
log. This patch removes the use of xhci_dbg_ctx().

Change-Id: I0279d03a772ee06965b146b42937ca74f74ffb75
Signed-off-by: Lu Baolu <baolu.lu@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 c8844f2ddb)
2018-11-22 17:06:58 +08:00
Lu Baolu
b63494bd47 UPSTREAM: usb: xhci: remove xhci_debug_trb()
Every XHCI TRB has already been traced by the trb trace events.
It is unnecessary to put the same message in kernel log. This
patch removes xhci_debug_trb().

Change-Id: I0e5c452f2c133fb4cb8ec62bd5a9c3ef4163a1f2
Signed-off-by: Lu Baolu <baolu.lu@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 8c10152ec5)
2018-11-22 17:06:58 +08:00
Lu Baolu
b7529e9a64 UPSTREAM: usb: xhci: remove ring debugging code
XHCI ring changes have already been traced by the ring trace
events. It's unnecessary to put the same messages in kernel
log. This patch removes the debugging code for a ring.

Change-Id: Ie15a464c9e82e61adf2e18167c145e78fb1d1fe8
Signed-off-by: Lu Baolu <baolu.lu@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 121dcf1190)
2018-11-22 17:06:58 +08:00
Lu Baolu
7478583db7 UPSTREAM: usb: xhci: remove xhci_dbg_ep_rings()
xhci_dbg_ep_rings() isn't used in xhci driver anymore. Remove
it to reduce the module binary size.

Change-Id: Ib6c0bf47e60f643f2219c6b01d14ab13f6f6c726
Signed-off-by: Lu Baolu <baolu.lu@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 b7d09fe863)
2018-11-22 17:06:58 +08:00
Lu Baolu
4423e25cae UPSTREAM: usb: xhci: add xhci_log_ring trace events
This patch creates a new event class called xhci_log_ring, and
defines the events used for tracing the change of all kinds of
rings used by an xhci host. An xHCI ring is basically a memory
block shared between software and hardware. By tracing changes
of rings, it makes the life easier for debugging hardware or
software problems.

This info can be used, later, to print, in a human readable way,
the life cycle of an xHCI ring using the trace-cmd tool and the
appropriate plugin.

Change-Id: Ib5934eed68e044054305b1f15925751a870b93a8
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-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 b2d6edbb95)
2018-11-22 17:06:58 +08:00
Zhengjun Xing
0da0fff6c6 UPSTREAM: xhci: add slot and endpoint numbers to debug messages in handle_tx_event
There's one annoyance in how xhci prints debug messages, we often
get logs with messages but it's hard to say from which device and
endpoint the message originates. Add slot_id, ep_index messages
in handle_tx_event.

Change-Id: I0d4fd42e95d8f85a5ba7de0a7ad45d4a2858a78a
Signed-off-by: Zhengjun Xing <zhengjun.xing@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 b7f769ae1b)
2018-11-22 17:06:58 +08:00
Felipe Balbi
034f4bd85b UPSTREAM: usb: host: xhci: fix up Control Transfer TRB decoder
Format for each TRB in each control transfer stage differs. Let's make
sure we correctly pretty print these fields to avoid confusion.

Change-Id: I643c3f5ada8c36d5ef972fb821f971fe81168bd2
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 5d062aba0d)
2018-11-22 17:06:58 +08:00
Felipe Balbi
e104a0dd63 UPSTREAM: usb: host: xhci: add Slot and EP Context tracers
With these, we can track what's happening with the HW while executing
each and every command. It will give us visibility into how the
different contexts are being modified by xHC which can bring insight
into problems while debugging.

Change-Id: I0d38de2b751416414fcd0feb85c163e0b24c3014
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 19a7d0d65c)
2018-11-22 17:06:58 +08:00
Felipe Balbi
e2fcb9338b UPSTREAM: usb: host: xhci: extract xhci_slot_state_string()
By extracting and exposing xhci_slot_state_string() in a header file, we
can re-use it to print Slot Context State from our tracepoints, which
can aid in tracking down problems related to command execution.

Change-Id: I65d812e5d1137a56da74bde0b846f9ad03ff2234
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 52407729fb)
2018-11-22 17:06:58 +08:00
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