Commit Graph

615265 Commits

Author SHA1 Message Date
Xing Zheng
0017828bbc dt-bindings: sound: rk3308_codec: add 'rockchip,internal-micbias' property
Change-Id: I3a9f528f07386394e397e3be6701221ce62f31d9
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2019-01-24 09:12:19 +08:00
Xing Zheng
c010707ce1 ASoC: rk3308_codec: handle micbias and optimize codec power
Change-Id: I0e21dac2b89230250b70de217afc28447501a906
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2019-01-24 09:12:19 +08:00
Finley Xiao
1b7c3fcb5b arm64: dts: rockchip: rk3399pro: Add vop-pn-msch-readlatency for dmc
Change-Id: I1a13a9c5c6d861ec419ca4db41bc3058b15e9051
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2019-01-23 18:40:06 +08:00
Finley Xiao
b5d345b2e8 PM / devfreq: rockchip_dmc: Change readlatency according to plane number
Change-Id: Ie0340c80c693c86fed90a155104cf2f8ca6ce16e
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2019-01-23 18:39:42 +08:00
Finley Xiao
85115a5899 PM / devfreq: rockchip_dmc: Implement rk3399_set_msch_readlatency()
The ATF must contain the following commit:
cd61876e275e ("plat: rk3399: ddr: add support adjust noc read latency")

Change-Id: I322f8c9d454fb1234b042438c85521275ceda4bc
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2019-01-23 18:39:16 +08:00
Finley Xiao
65848fcd25 drm/rockchip: vop: Add support to calculate plane number
Change-Id: I9bad1743d5965724d403a27dc5e27ec28d872815
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2019-01-23 18:38:55 +08:00
Shunqian Zheng
99797bc22a arm64: dts: rockchip: add robot dts for rk3326 with/-out gpu
Change-Id: I5fd2fad0d14b24dfaa1f90de7b554496495140cd
Signed-off-by: Shunqian Zheng <zhengsq@rock-chips.com>
2019-01-23 14:08:18 +08:00
Shunqian Zheng
91de9561f4 arm64: configs: add rk3326 defconfig for robot boards
Change-Id: Ic39bb0f95d5173caafc6ec167588362d425df700
Signed-off-by: Shunqian Zheng <zhengsq@rock-chips.com>
2019-01-23 14:05:59 +08:00
Shunqian Zheng
68546583a4 arm64: dts: rockchip: add robot dts for px30 with/-out gpu
Change-Id: Idb68ad9e4cc981f938fc5460f77c5bb2183046d8
Signed-off-by: Shunqian Zheng <zhengsq@rock-chips.com>
2019-01-23 14:05:41 +08:00
Caesar Wang
07a50840fe ARM64: config: enable rga2 for rockchip_linux_defconfig
Change-Id: I7d73f9f9ec6dc34786d92d51200d54c32bdd4b8f
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
2019-01-23 14:03:27 +08:00
Caesar Wang
790521ed70 arm64: dts: rockchip: add rk3399pro evb v11 DTS for linux
Evb is part of a family of boards called rk3399pro. As best as possible, the
properties shared by the rk3399pro family are placed in rk3399pro.dtsi, while
Evb-linux specific bits are in rk3399pro-evb-v11-linux.dts. This does not add full
support for the base Evb board.

Working and tested (to some extent):
    * cluster cpu/gpu support -- including frequency, performance
    * UART / console
    * Thermal
    * Touchscreen
    * EDP
    * Wifi
    * Bluetooth / Webcam
    * SD card
    * eMMC
    * USB2/USB3
    * Backlight
    * DVFS: included cpu/gpu/ddr
    * CAMERA: had tested the ov13850 camera
    * VIDEO: tested the h264 video source
    * AUDIO: play and mic music
    * NPU
    * HDMI
    * GMAC
    Not tested:
    * Pcie
    * MIPI
    Not working:
    * SD CARD: no sure, maybe the board sd card is broken by hardware.

Change-Id: I0c17880f69956cae38d1c83467dd946e7b5de058
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
2019-01-23 14:03:27 +08:00
Caesar Wang
b6f547bdcd arm64: dts: rockchip: add rk3399pro evb v10 board support for linux
Added this patch to support the v10 board before, as the most people used
the rk3399pro v11 board for now.

Note: this patch had *not* verified the all functions, it can bringup for
v10 board and some basic functions.
(included wifi/bt, camera, display, video, usb...and so on.)

Change-Id: I6da3edd89e2d85fc75e519ef931727903991c6b7
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
2019-01-23 14:03:27 +08:00
Wyon Bi
35c77451c5 Revert "drm/bridge: analogix_dp: Fix unbalanced phy_power_on"
This reverts commit e82ecb98b4.

Change-Id: Ice373a612fdd7fa457ca0ce18026128b83edcc1f
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2019-01-23 11:35:18 +08:00
Shunqian Zheng
2847572fdb arm64: dts: rockchip: add robot dtsi for px30 & rk3326
With minimal interfaces, the robot dts can with or without
gpu enabled, running in bad thermal environment.

Change-Id: Ia7f65941d932e88c33ef33f0d7877efa6a444852
Signed-off-by: Shunqian Zheng <zhengsq@rock-chips.com>
2019-01-23 11:27:48 +08:00
Shunqian Zheng
0842ad011a arm64: configs: add px30 defconfig for robot boards
The robot defconfig is for cpu-intensive, w/o displays and
only minimal interfaces are enabled.

Change-Id: I08c11b4eaf1d4bc8b23470643beaab7487bafb3a
Signed-off-by: Shunqian Zheng <zhengsq@rock-chips.com>
2019-01-23 11:27:29 +08:00
Elaine Zhang
4ea26dfab6 arm64: dts: rockchip: rk3368: Add armclkl/b clk init
Change-Id: I1b62e8075e2567b67468e44114193c4929b8ed61
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2019-01-22 17:01:34 +08:00
William Wu
a94285268a usb: xhci: fix issues introduced by enable TRB ENT
This patch fixes two bugs introduced by commit c0bd48bb3e
("usb: xhci: set xhci trb ent quirk based on platform data").

1. Connect with VFAT USB 3.0 disk, do "mount" command cause
   the error log:

   usb 8-1: reset SuperSpeed USB device number 2 using xhci-hcd
   sd 0:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
   sd 0:0:0:0: [sda] tag#0 CDB: Read(10) 28 00 00 00 0d a9 00 00 f0 00
   blk_update_request: I/O error, dev sda, sector 3497

2. Connect with USB 3.0 disks which support UAS mode, mount
   fail with the error log:

   xhci-hcd xhci-hcd.12.auto: ERROR Transfer event for disabled endpoint slot 1 ep 7 or incorrect stream ring
   xhci-hcd xhci-hcd.12.auto: @00000000f704d1c0 00000000 00000000 0a000000 01088000
   sd 0:0:0:0: [sda] tag#1 uas_eh_abort_handler 0 uas-tag 2 inflight: CMD OUT
   sd 0:0:0:0: [sda] tag#1 CDB: Write(10) 2a 00 00 60 08 06 00 00 02 00
   sd 0:0:0:0: [sda] tag#0 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD OUT
   sd 0:0:0:0: [sda] tag#0 CDB: Write(10) 2a 00 00 00 08 16 00 00 02 00
   scsi host0: uas_eh_bus_reset_handler start
   xhci-hcd xhci-hcd.12.auto: ERROR Transfer event for disabled endpoint slot 1 ep 4 or incorrect stream ring

It's because that in the above two cases, the transfer length
of the first TRB in the URB maybe not an integer multiple of
the EP maxpacket, and if we enable the ENT flag in the any
TRB of the URB, it will cause xHCI babble error.

This patch avoids to enable the ENT flag if the transfer
length of the first TRB isn't an integer multiple of the
EP maxpacket, or if the EP support bulk streaming protocol.

Fixes: c0bd48bb3e ("usb: xhci: set xhci trb ent quirk based on platform data")
Change-Id: I07fef2903bd1024f6e5aa1e253cb86f538083e31
Signed-off-by: William Wu <william.wu@rock-chips.com>
2019-01-22 14:07:54 +08:00
Sandy Huang
afb13c8c81 media/i2c: virtual-camera: add more frequency
add 4096x2048 for 512 pixel align
add 5760x1080 equal to rgb888 1920*3 x 1080

Change-Id: I03e9ecc77524fe27b1b17608458c14d368e14ad8
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2019-01-22 10:47:31 +08:00
Sandy Huang
86c809d4c4 arm64: dts: rockchip: update rk1808 x4 board default timing
Change-Id: I5722072ffd0bfb69a685dd0500236e4e0dee6e1d
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2019-01-22 10:20:39 +08:00
Sandy Huang
0a454d0d02 arm64: dts: rockchip: add RK3399 Excavator Board for Linux RK1808 cascade
support the following path:
    VOP0 -> eDP  -> panel for display
    	 -> HDMI -> TV for display
    VOP1 -> DSI TX DPHY -> RK1808 DPHY -> CSI RX -> CIF

Change-Id: Icc3444e3cceee273e808fd5b91b838ef341f7cb4
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2019-01-22 10:02:29 +08:00
Wenlong Zhuang
c0bad62acd phy/rockchip: mipi-rx: add support maximum clock frequency
Also fix configure settle count failed for rk1808.

Change-Id: I61be26eb322901c66ccfd358ef18fbe4f48947ef
Signed-off-by: Wenlong Zhuang <daisen.zhuang@rock-chips.com>
2019-01-21 09:13:36 +08:00
Sandy Huang
1dcc7058e8 phy/rockchip: mipi-dphy: set default vod as max range for mipi cts
Change-Id: I9788d9afa9526f8b1a0c5ebd59ef70746e75f3bf
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2019-01-21 09:12:27 +08:00
Sandy Huang
85d90ab40f drm/rockchip: csi tx: use cru reset instead of controller reset
Change-Id: I56bb4379123e8c134872a56392b8b1879f800953
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2019-01-21 09:12:02 +08:00
Sandy Huang
ebb698f0bf arm64: dts: rockchip: rk1808: add csi tx reset config
Change-Id: I99d390a24ad2f4c92789025e2a3abe5133c0d278
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2019-01-21 09:11:39 +08:00
Sandy Huang
5778016ed8 phy/rockchip: mipi-dphy: leave move margin for clk post time
Change-Id: I64dc251fb7e0efea1e1cf8d7ce05f792187a5c4d
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2019-01-21 09:11:18 +08:00
Sandy Huang
172be0a141 drm/rockchip: vop raw: update rk1808 max input and output resolution
Change-Id: Ia4688950d135b754a28b5622dceb31fd58d2525b
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2019-01-21 09:10:55 +08:00
Shunqing Chen
268d47af69 drm/rockchip: rk618: if hpd status is disconnected, not to read edid
If dual display, software assumes the hpd status is always connected,
so if hpd status on hardware is disconnected, not to read edid.

Change-Id: I43b08b8f7a605089eac4cae6622a8830e2dd17c2
Signed-off-by: Shunqing Chen <csq@rock-chips.com>
2019-01-18 18:32:24 +08:00
Wenlong Zhuang
2078e9f763 media/cif: add csi host error interrupt handler for RK1808
Change-Id: I934cf09325fcb916c4a0fcffcf01ef869602d48f
Signed-off-by: Wenlong Zhuang <daisen.zhuang@rock-chips.com>
2019-01-18 16:06:03 +08:00
Wenlong Zhuang
3dc4f31060 arm64: dts: rockchip: rk1808 add csi host interrupt
Change-Id: Ic56e5052e244ffaa27456be6b8c5564fdbdb945b
Signed-off-by: Wenlong Zhuang <daisen.zhuang@rock-chips.com>
2019-01-18 16:05:30 +08:00
Wenlong Zhuang
d664b37548 media/i2c: virtual-camera: add a critical link frequency
Change-Id: I8c1faef80b0bb74a8711645bb697dcf4b87a4691
Signed-off-by: Wenlong Zhuang <daisen.zhuang@rock-chips.com>
2019-01-18 16:05:04 +08:00
Weixin Zhou
df807bb866 arm64: dts: rockchip: px30: add wide temperature config
Change-Id: I99af054eb795ac396f024595c83783669bef101d
Signed-off-by: Weixin Zhou <zwx@rock-chips.com>
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2019-01-18 15:37:11 +08:00
Wyon Bi
8e891e4751 drm/rockchip/rk618: dsi: Fix incorrect display mode in clone mode
Change-Id: Iaf89f600aa20c09710f3f8c634aeb5c4b34c236b
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2019-01-18 15:35:52 +08:00
XiaoDong Huang
41b139417f arm64: dts: rockchip: rk1808: config RKPM_SLP_PMIC_LP
Change-Id: I8797d4259d948cb684ac346ea8c9dd8b94fe7a70
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
2019-01-18 15:33:45 +08:00
Cai YiWei
48f87cc06c arm64: dts: rockchip: rk3368: add rkisp1 and mipi_dphy node
Change-Id: I2f355d4763a912787600814e5f7df1eb5f38d7b9
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2019-01-18 15:32:03 +08:00
Cai YiWei
7ab3ea22e0 media: rockchip: isp1: Support for RK3368
Change-Id: Ia28e7981a5644a1d8e909a8efc5960645e2fb75a
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2019-01-18 15:32:03 +08:00
Cai YiWei
ea5e2659fe dt-bindings: media: add rkisp1 for rk3368
Change-Id: I13e3baa69921c9db6e88e987aff84cbbbdc9974f
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2019-01-18 15:32:03 +08:00
Cai YiWei
22e77c9842 phy: rockchip: mipi-dphy-rx: support for rk3368
Change-Id: I51cc5c4015bb3567bb19c08f0fb4ea422b13e937
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2019-01-18 15:32:03 +08:00
Cai YiWei
85702184a4 dt-bindings: media: add mipi rx dphy for rk3368
Change-Id: I39d531ef96e5abffa6071e4fd40b94d00a7cafc5
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2019-01-18 15:32:03 +08:00
Simon Xue
af717260c4 PCI: rockchip: disable RIE in DMA Write Channel Control 1 Register
After comparing the test results with RIE enabled and disabled,enable
RIE may cause PCIe dma interrupt work unnormal.

More works need to dig it out

Change-Id: Ia25022332de92cf21287df155cd514a160d140bc
Signed-off-by: Simon Xue <xxm@rock-chips.com>
2019-01-16 16:56:31 +08:00
Huibin Hong
1963f0ca19 serial: 8250_dw: new baud rate and clk solution
baud rate <=1500000, except 1152000, use 24MHz
baud rate > 1500000, and 1152000 use pll

Change-Id: I9f52fcafdf8cc3d32be78f8408ab75873ffff680
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
2019-01-16 16:25:42 +08:00
Huibin Hong
6d93f4b6f8 serial: 8250_dw: uart wake up
Add wakeup-source to uart dts node to enable uart
wake up system when it receives data.

Change-Id: If4e82a4d3dbaca708209553dc3693089864c782f
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
2019-01-16 15:04:30 +08:00
Finley Xiao
4276a57f58 arm64: dts: rockchip: rk3399-evb-rev3-android-lp4: Change 1080P to 400MHz
Change-Id: I1396e6fd4eb1f89292379b659c1c4f1d18f138a8
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2019-01-15 21:11:04 +08:00
Xing Zheng
5b3a80e61e ASoC: rk3308_codec: fix some skip grps errors
If we use the channels which are less than en_always_grps_num,
we don't need to set the flag to skip_grps which are not used.
And, the skip grps need to refer to mapped_grps

For example, if:
  rockchip,en-always-grps = <1 2 3>;
  rockchip,adc-grps-route = <2 1 3 0>;

The DUT startup and capture 2ch at first, we just open grp2
and set skip_grp[2]=1.
Then, if we capture 4ch, we just skip grp2, open grp1, and
set skip_grp[1]=1.
To capture 6ch: we skip grp2/grp1, open grp3 and set skip_grp[3]=1.
To capture 8ch: we skip grp2/grp1/grp3 and open grp0.

Change-Id: I88c0b220ce0e714abafda1be3c895ad1c5c9ddca
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2019-01-15 18:32:06 +08:00
Chen Jinsen
2cca713bde ARM: dts: rk3288: update rk3288-evb-android-rk808-edp and rk3288-th804 boards
- Separate android firmware node to dts files
- Add rk3288-evb-android-rk808-edp-avb.dts and rk3288-th804-avb.dts Android P

Change-Id: I9436ff0bd60fd15d2e669f08e1585cda27973414
Signed-off-by: Chen Jinsen <kevin.chen@rock-chips.com>
2019-01-15 14:08:23 +08:00
William Wu
ae184efcee usb: uas: ignore UAS for Seagate Expansion Portable Drive
The Seagate Expansion Portable Drive HDD (idVendor=0bc2, idProduct=2321)
is reported to fail to work on rockchip platforms with the following error
message when do read/write operation by dd command:

xhci-hcd xhci-hcd.11.auto: Ring expansion failed

According to tkaiser's suggestion[1], we can try to increase the kernel's
coherent-pool memory size to fix this issue. The kernel coherent-pool memory
size was limited at 256KB by default. When set the DEFAULT_DMA_COHERENT_POOL_SIZE
to 1MB, the error "Ring expansion failed" can be fixed, but it still not
work with the other error message:

xhci-hcd xhci-hcd.12.auto: ERROR Unknown event condition 34 for slot 1 ep 3 , HC probably busted
sd 0:0:0:0: [sda] tag#16 uas_eh_abort_handler 0 uas-tag 17 inflight: CMD OUT
...
scsi host0: uas_eh_bus_reset_handler start
xhci-hcd xhci-hcd.12.auto: ERROR Transfer event for disabled endpoint slot 1 ep 6 or incorrect stream ring

Falling back to USB mass storage can solve this problem, so ignore UAS
function of this HDD.

[1] https://forum.armbian.com/topic/4811-uas-mainline-kernel-coherent-pool-memory-size/

Change-Id: I0d817cc3aaea548c2060b323c3077c6cbbd3bb6e
Signed-off-by: William Wu <william.wu@rock-chips.com>
2019-01-14 16:28:14 +08:00
Nickey Yang
5fb9572e8c arm64: defconfig: enable inno comobo phy for rk3326 linux
Change-Id: I54a7a8ffc3869deadf41143d01540392ff5fb179
Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
2019-01-14 10:26:04 +08:00
Nickey Yang
e8b4cd6b4c arm64: defconfig: enable inno comobo phy for px30 linux
Change-Id: I90d349e2b5f94a5d00b7c48af4b2a542ad9a4850
Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
2019-01-14 10:26:04 +08:00
Liang Chen
ae16222939 arm64: dts: rockchip: add efuse node and info for RK1808 SoCs
Change-Id: I5ab0c408e7db0cb12c002c3e52fd3ac57bcb5c21
Signed-off-by: Liang Chen <cl@rock-chips.com>
2019-01-11 14:58:57 +08:00
Liang Chen
e7daa24b40 nvmem: rockchip-efuse: add support for rk1808-efuse
This adds the necessary data for handling efuse on the rk1808.

Change-Id: I78b66db1fdc22430ab93b07ad3c7cea3355a7f6e
Signed-off-by: Liang Chen <cl@rock-chips.com>
2019-01-11 14:42:16 +08:00
Liang Chen
1dcb4dabcf dt-bindings: nvmem: rockchip-efuse: add description for RK1808 SoCs
Change-Id: I76c56b0c9709d849c87a059d7e67d67ae98ddbb5
Signed-off-by: Liang Chen <cl@rock-chips.com>
2019-01-11 14:42:16 +08:00