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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
This adds the necessary data for handling efuse on the rk1808.
Change-Id: I78b66db1fdc22430ab93b07ad3c7cea3355a7f6e
Signed-off-by: Liang Chen <cl@rock-chips.com>