Commit Graph

600772 Commits

Author SHA1 Message Date
Meng Dongyang
d64f8eb01b phy: rockchip-inno-usb2: tuning USB 2.0 PHY when resume
The USB 2.0 PHY may lose tuning config after resume if the
PD turn off its power when suspend. So we need to tune USB
2.0 PHY again when resume.

Change-Id: Ib34de165ccd7d22598e77e5ac0fed1233e7adba0
Signed-off-by: Meng Dongyang <daniel.meng@rock-chips.com>
2017-04-18 15:54:42 +08:00
Mark Yao
52849e6d66 drm/rockchip: logo: fix logo memory end on free
It's mistake using logo size as logo memory end, and that would cause:

[    8.443899] BUG: Bad page state in process recovery  pfn:7dcc3
[    8.443903] page:effb3860 count:0 mapcount:3 mapping:eebdf784 index:0x15
[    8.443907] flags: 0x4004007c(referenced|uptodate|dirty|lru|active|swapbacked)
[    8.443918] page dumped because: PAGE_FLAGS_CHECK_AT_FREE flag(s) set
[    8.443922] bad because of flags:
[    8.443924] flags: 0x60(lru|active)
[    8.443930] Modules linked in:
[    8.443935] CPU: 0 PID: 170 Comm: recovery Tainted: G    B           4.4.55 #70
[    8.443939] Hardware name: Rockchip (Device Tree)
[    8.443947] [<c010f55c>] (unwind_backtrace) from [<c010b7ec>] (show_stack+0x10/0x14)
[    8.443955] [<c010b7ec>] (show_stack) from [<c03bc3a8>] (dump_stack+0x7c/0x9c)
[    8.443963] [<c03bc3a8>] (dump_stack) from [<c01eb430>] (bad_page+0xe4/0x114)
[    8.443971] [<c01eb430>] (bad_page) from [<c01eb550>] (free_pages_prepare+0xf0/0x294)
[    8.443978] [<c01eb550>] (free_pages_prepare) from [<c01ed654>] (free_hot_cold_page+0x28/0x14c)
[    8.443987] [<c01ed654>] (free_hot_cold_page) from [<c01ed954>] (free_reserved_area+0x90/0xdc)
[    8.443996] [<c01ed954>] (free_reserved_area) from [<c04749f4>] (rockchip_free_loader_memory+0xf0/0x118)
[    8.444006] [<c04749f4>] (rockchip_free_loader_memory) from [<c0475b14>] (rockchip_drm_fb_destroy+0xbc/0xd0)
[    8.444015] [<c0475b14>] (rockchip_drm_fb_destroy) from [<c04581e0>] (drm_mode_set_config_internal+0xa8/0xc4)
[    8.444024] [<c04581e0>] (drm_mode_set_config_internal) from [<c045ce24>] (drm_mode_setcrtc+0x3a8/0x464)
[    8.444032] [<c045ce24>] (drm_mode_setcrtc) from [<c044f634>] (drm_ioctl+0x278/0x43c)
[    8.444039] [<c044f634>] (drm_ioctl) from [<c023ea58>] (do_vfs_ioctl+0x564/0x6a0)
[    8.444047] [<c023ea58>] (do_vfs_ioctl) from [<c023ebe0>] (SyS_ioctl+0x4c/0x74)
[    8.444055] [<c023ebe0>] (SyS_ioctl) from [<c0107180>] (ret_fast_syscall+0x0/0x3c

Change-Id: I833a27464d9d33f6864039faa61e7500a3b936b3
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
2017-04-18 15:43:03 +08:00
Elaine Zhang
1b0d1af073 clk: rockchip: rk3288: fix up the hclk_vio register
fix up the hclk_vio register order,
before setting clk critical.

Change-Id: Ia3a4d2fcb8ee8164dfe621d2d081076000a30937
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2017-04-18 14:59:33 +08:00
Jianqun Xu
c4a0af4e08 arm: dts: rk3288-evb: remove limit usage for vopb
There are many notes - Don't use vopb for HDMI, save it for eDP,
let's remove them for kinds of products.

Change-Id: Id8ef9ec8ac853e7b68527f59a9a8870b5a45d8f2
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2017-04-18 14:14:55 +08:00
Meng Dongyang
fc6a791259 phy: rockchip-inno-usb2: tuning USB 2.0 squelch detection threshold
According to USB 2.0 Spec Table 7-7, the High-speed squelch
detection threshold Min 100mV and Max 150mV, and we set USB
2.0 PHY0 and PHY1 squelch detection threshold to 150mV by
default, so if the amplitude of differential voltage envelope
is < 150 mV, the USB 2.0 PHYs envelope detector will indicate
it as squelch.

On RK3399 box, if we connect usb device with a 4 meter cable,
we can see that the impedance of U2 cable is too big according
to the eye-diagram test report, and this cause serious signal
attenuation at the end of receiver, the amplitude of differential
voltage falls below 150mV.

This patch aims to reduce the PHY0 and PHY1 otg-ports squelch
detection threshold to 125mV (host-ports still use 150mV by
default), this is helpful to increase USB 2.0 PHY compatibility.

Change-Id: Iec8b4043a3440d6f2a5fb18ff59ac0f4988019e9
Signed-off-by: Meng Dongyang <daniel.meng@rock-chips.com>
2017-04-17 18:06:18 +08:00
Jianqun Xu
dd9460f593 video: rockchip: rk322x_lcdc: fix error condition
Change-Id: I1c28a815beb74a7566886aef666454ec1513970b
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2017-04-17 17:04:13 +08:00
xuhuicong
1319af9010 drm/rockchip: fix hdmi no display when resume or switch resolution
spelling mistake cause hdmi phy configure error, now correct it

Change-Id: I548d76dd44e8d39e35b95138ec3d25b358cf3376
Signed-off-by: xuhuicong <xhc@rock-chips.com>
2017-04-17 15:49:42 +08:00
Sugar Zhang
49c16833b7 ARM64: configs: rockchip_linux: enable rk3328 internal codec
Change-Id: I03ad95e771a4b506d6462be5dade0553eb121fcc
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2017-04-17 15:10:40 +08:00
Sugar Zhang
fd873ff52c ARM64: dts: rk3328-evb: add spdif sound
Change-Id: I76adc6286d831f513da3f5547975d7fcd3c392e9
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2017-04-17 15:10:15 +08:00
Sugar Zhang
03880d566f ARM64: configs: rockchip: enable rk3328 internal codec
Change-Id: I7c71d81e768fcd58b935f9f40d71c5834d04573d
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2017-04-17 15:09:53 +08:00
Sugar Zhang
398dc60dc5 ARM64: dts: rk3328-evb: add support for internal codec sound
Change-Id: I8b1705f592d42e2f1d351ce5a7880993f7757b94
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2017-04-17 15:09:34 +08:00
Sugar Zhang
02b29fc8d1 ARM64: dts: rk3328: add acodec node
Change-Id: I5d564066fa1d399c2c4fabf753eb6f698136a52c
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2017-04-17 15:08:56 +08:00
Sugar Zhang
cdcc1fe8ec ASoC: codecs: add support for rk3328
Change-Id: I66ff61c18fe70135fd7ac0569954263743263a3a
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2017-04-17 15:08:47 +08:00
WeiYong Bi
f99b018e7b drm/panel: Change dlen from u16 to u8
U8_MAX payload length can meet most requirements

Change-Id: I77e5780bde72b4229ab36d961dc7498f7c78a468
Signed-off-by: WeiYong Bi <bivvy.bi@rock-chips.com>
2017-04-17 15:06:02 +08:00
Mark Yao
14c0ac3240 drm/bridge: analogix: fix edid not works
Change-Id: I1a964b51d0d137e66ad5d073a2eef2fb22770bba
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
2017-04-17 15:04:44 +08:00
Finley Xiao
8f68cd86d5 ARM: rockchip_defconfig: enable DEVFREQ_GOV_SIMPLE_ONDEMAND
Change-Id: I3cdcceca0f5c743b84ab1ec159bb576a7a5ab5a5
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2017-04-17 11:16:45 +08:00
Huang, Tao
8fe5cad774 ARM: rockchip_defconfig: update by savedefconfig
Change-Id: I4b5ec60a8beeb014754855a4865bc7fc26f2fddd
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
2017-04-17 11:14:57 +08:00
WeiYong Bi
1616bc22bd drm/panel: support transmit DSI packet
Change-Id: I6115479eebc05b44a8c01cd72919db0e5a6cb1f9
Signed-off-by: WeiYong Bi <bivvy.bi@rock-chips.com>
2017-04-17 11:08:04 +08:00
WeiYong Bi
8e8535815e phy: rockchip-inno-mipi-dphy: Add fixed timing param table
Change-Id: Ia6a92833f4b597ac5f9af694644714a7b71b3375
Signed-off-by: WeiYong Bi <bivvy.bi@rock-chips.com>
2017-04-17 11:07:11 +08:00
LuoXiaoTan
758b9ce53b ASoC: rockchip: add rt5651_tc358749x driver
add rockchip_rt5651_tc358749x machine driver to
support HDMIIn function

Change-Id: Ieb0e046bec60ea0a27ee49ce1204b032ad646724
Signed-off-by: LuoXiaoTan <lxt@rock-chips.com>
2017-04-17 11:04:36 +08:00
LuoXiaoTan
80eba80559 ASoC: codecs: add tc358749x codec driver
add tc358749x codec driver for hdmiin function

Change-Id: I819ac80ced59b5d81d547f7ba2c7ebc7bee7f845
Signed-off-by: LuoXiaoTan <lxt@rock-chips.com>
2017-04-17 11:04:26 +08:00
Jianqun Xu
cd13e47893 arm: dts: rk3288-evb-rk818: set tsadc default pinctrl to gpio
When rockchip,hw-tshut-mode is 0, means that tshut mode is CRU,
then the pinctrl should default to be GPIO.

If the tshut mode is GPIO, then the pinctrl should default to be
OTP_OUT.

Change-Id: Ic6e53a96823baf4671f9bad261ed34586512634f
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2017-04-17 10:57:42 +08:00
Jianqun Xu
cdf6fc302e arm: dts: rk3288-android: set PWM_POLARITY_INVERTED to 0
Change-Id: I47623781f93f2f325f76e1fa4a7ffe515623064e
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2017-04-17 10:57:25 +08:00
William Wu
9a47b6de54 usb: dwc_otg_310: support vbus controlled by both gpio and pmic
On some rockchip platforms (e.g. rk3368), usb vbus 5v is controlled
by both gpio and pmic at the same time. So we need to set gpio and
pmic when enable/disable usb vbus power.

Change-Id: I327a87f16662026eaab1b6577d0b0116c4b2671f
Signed-off-by: William Wu <wulf@rock-chips.com>
2017-04-17 08:54:22 +08:00
xiaoyao
b4e7e31d6a arm64: dts: rk3368: fix string error for sdio
Change-Id: Ia7a122bd52d71442c31f71677ae24c52c83631cd
Signed-off-by: xiaoyao <xiaoyao@rock-chips.com>
2017-04-17 08:42:15 +08:00
Sugar Zhang
9fbf7a2507 ARM64: configs: update rockchip_linux_defconfig by savedefconfig
Change-Id: I82e2827c8356e0577bd6426d7275339ef6a83152
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2017-04-14 18:00:32 +08:00
LuoXiaoTan
5318fc6afb arm64: rockchip_defconfig: enable RT5651_TC358749
enable CONFIG_SND_SOC_ROCKCHIP_RT5651_TC358749
for HDMIIn function

Change-Id: I5c77b3f03d75ea1c51a89a2396ff6472554025a5
Signed-off-by: LuoXiaoTan <lxt@rock-chips.com>
2017-04-14 17:10:18 +08:00
LuoXiaoTan
802ee8a489 ASoC: rt5651: add alc5651 ASRC switch for HDMIIn
Change-Id: I447228656d5ee56b2c4b04c515ad71f34e107ba0
Signed-off-by: LuoXiaoTan <lxt@rock-chips.com>
2017-04-14 17:09:46 +08:00
LuoXiaoTan
0d8e573c30 arm64: dts: rk3399-sapphire: enable isp0 isp1
Enable isp0 & isp1 for HDMIIn video function

Change-Id: I1f46c413f198acdce7a08702c42f0142d6eabfd6
Signed-off-by: LuoXiaoTan <lxt@rock-chips.com>
2017-04-14 17:05:42 +08:00
LuoXiaoTan
b1a14b3056 arm64: dts: rk3399-sapphire: add HDMIIn sound dev
sable rt5651 simple-audio-card and we will write
a machine driver for rt5651 tc358749x HDMIIn function.
And add rt5651-tc358749x-sound for HDMIIn function

Change-Id: I983fa9171bfa1fb3bf0ab492354e471046c08e93
Signed-off-by: LuoXiaoTan <lxt@rock-chips.com>
2017-04-14 17:04:44 +08:00
LuoXiaoTan
e527707a34 arm64: dts: rk3399-sapphire: add tc358749x device
add tc358749x i2c dev & pin control for HDMIIn function
base on board (RK_EXCAVATOR_MAIN_V12_2016_11_11_FZB)

Change-Id: I5548a31d78e4d7cc9ecae0dc89f2ee2dcd0e75b4
Signed-off-by: LuoXiaoTan <lxt@rock-chips.com>
2017-04-14 17:04:03 +08:00
LuoXiaoTan
36d23688b0 arm64: dts: rk3399-sapphire: add iomux for hdmiin
add pinctrl for tc358749x power control

Change-Id: I4e72b936fb7190791f13d83799155f80e257a117
Signed-off-by: LuoXiaoTan <lxt@rock-chips.com>
2017-04-14 17:02:03 +08:00
LuoXiaoTan
cd8c7b5b05 Documentation: DT: ASoC: add toshiba tc358749x
Change-Id: Id03458c15f5f87aeeacb21645d37bb95978ee57f
Signed-off-by: LuoXiaoTan <lxt@rock-chips.com>
2017-04-14 16:59:51 +08:00
LuoXiaoTan
949f0095eb Documentation: DT: ASoC: add for rockchip HDMIIn
Change-Id: I984999e66ae24919335b2aef5c732022e78c7e47
Signed-off-by: LuoXiaoTan <lxt@rock-chips.com>
2017-04-13 23:22:38 -07:00
buluess.li
005290906c arm64: dts: rk3399-box: compatible for rev2 board which cpu_b's vdd gpio is different
Change-Id: Ie7088b526a1a384435136933a5f57c957e2bb5b0
Signed-off-by: buluess.li <buluess.li@rock-chips.com>
2017-04-13 19:37:07 +08:00
huweiguo
19e1695794 arm64: rockchip_defconfig: enable TCP SYN_COOKIES
solve some vst video apk can't play video with kmsg:
"TCP: request_sock_TCP: Possible SYN flooding on port 9000. Dropping request.  Check SNMP counters."

Change-Id: I4fc94307195464c8e8180217eccb9a590eb3c5b6
Signed-off-by: huweiguo <hwg@rock-chips.com>
2017-04-13 19:24:11 +08:00
Sugar Zhang
de66d99263 ARM64: dts: rk3399-android: change i2s2 bclk to 128fs for hdmi
Change-Id: I6345cf044aaf5d617f4a7cd77eca98c473eb9195
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2017-04-13 19:20:21 +08:00
Sugar Zhang
924f480383 drm: bridge/dw-hdmi: add support for hdmi bitstream audio
Change-Id: Ib1f6c5dba6451f3fbb029b5472dbfbf5694cff68
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2017-04-13 19:20:03 +08:00
Sugar Zhang
3fc90c1a8b ASoC: codec: hdmi-codec: add support for audio mode config
Change-Id: I4813e6204fee894ef4f40b3e3b768a1ad94d0a29
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2017-04-13 19:19:08 +08:00
Sugar Zhang
8cc5459b00 ASoC: rockchip: hdmi_dp: add support for 192k
Change-Id: Ib50106f9c44ef86f2e20cf2b2206b54c8c966a29
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2017-04-13 19:18:45 +08:00
Sugar Zhang
c216735099 ASoC: rockchip: i2s: increase dma maxburst to 16
Change-Id: I84898fced94141b29e88f2e8f8f9328881090c25
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2017-04-13 19:18:37 +08:00
algea.cao
58594a8042 drm: bridge: dw-hdmi: optimize edid reading process
1.change SDA high level holding time to 3us.
2.when plug in,add timer to avoid unstable state.

Change-Id: Idc6faec710137ac9f8e589d75cbc1b85f7a45faf
Signed-off-by: algea.cao <algea.cao@rock-chips.com>
2017-04-13 16:27:08 +08:00
wlq
fd415d5e07 arm64: dts: rk3399-mid: rk818 enabled boost_otg fix ota vcc5v poweroff when susppend
Change-Id: I2d11a76a21d7a8fe18124312c68b744f4364f4fd
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
2017-04-12 18:34:55 +08:00
wlq
7e34feaf7a arm64: dts: rk3368: rk818 enabled boost_otg fix ota vcc5v poweroff when susppend
Change-Id: I0626a47da5487d34c0701d2b21cfab5b9b3fb425
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
2017-04-12 18:34:47 +08:00
Huang, Tao
e84c207ab2 arm64: dts: rockchip: add L2 cache node for rk3368
This patch adds the L2 cache topology on RK3368.
RK3368 has two clusters, each cluster has its own L2 cache.

Change-Id: Ibee5a39889d4924e439c9b0c249df052f63e9242
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
2017-04-12 15:01:20 +08:00
Huang, Tao
7a970d72b2 arm64: dts: rockchip: remove unneeded idle-states for rk3368
ATF and Linux support system suspend, so we don't need define
idle-states to support suspend. RK3368 don't support any
idle state other then WFI. Just remove it.

Change-Id: Ifa95862b4998287560cd2214ff6b5763a9d6ce02
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
2017-04-12 15:01:12 +08:00
Jacob Chen
10f1d169d9 arm: configs: enable some touchscreen driver
Change-Id: I44cc2ef0a230dea6c60cddf2e6aa7195985468ed
Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
2017-04-12 10:33:34 +08:00
Jacob Chen
44f988df9d arm: configs: linux: enable wifi load driver when boot kernel
if we don't enable it, driver init order might be wrong

Change-Id: I0d75b6fcdb762a77f8c27111da642cdba255fc4e
Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
2017-04-12 10:33:27 +08:00
algea.cao
d7679438f0 drm/sysfs: fix up memory leak problem
Change-Id: I2b4617412b0d5b2897c3cce2ef612a11a9762ba2
Signed-off-by: algea.cao <algea.cao@rock-chips.com>
2017-04-12 10:08:03 +08:00
Rocky Hao
d282005732 arm: dts: rockchip: update thermal config for rk3288
add cpus' dynamic power coefficient. rename the thermal zone's config
and make it more readable. update temperature pooling interval and
make the temperature control more effective.

Change-Id: I75d21601b7e3f41a32d10bbcbb1fa9b47ed7da0f
Signed-off-by: Rocky Hao <rocky.hao@rock-chips.com>
2017-04-11 18:31:10 +08:00