Commit Graph

603840 Commits

Author SHA1 Message Date
shengfei Xu
dce2f990d7 regulator: rk808: fix the regulator control value in system suspend for rk816
set 1 if the regulator is enabled in system suspend, 0 if not.

Change-Id: I8d51ac685bbd2417f440842d010fe47946c9f567
Signed-off-by: shengfei Xu <xsf@rock-chips.com>
2017-10-26 10:07:42 +08:00
Tao Huang
26f7f90fa4 ARM: rockchip_defconfig: disable DEVKMEM
42019da52a ("android: base-cfg: turn off /dev/mem and /dev/kmem")

Change-Id: I2d34d76b6ed85fbd590be2e0c445c19f253bc2c4
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2017-10-25 15:51:43 +08:00
Tao Huang
3770f6c8a5 arm64: rockchip_defconfig: disable DEVKMEM and DEVPORT
42019da52a ("android: base-cfg: turn off /dev/mem and /dev/kmem")
870f86b79c85 ("Unsetting DEVPORT from marlin configurations.")

Change-Id: I03610d55f3af2e9398b02e36d1d6c05a2eda9657
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2017-10-25 15:42:12 +08:00
Joseph Chen
7c45c0ad21 ARM: dts: rk3126-evb: add rk816 battery node
Change-Id: I334d5ae872a4b72f04e65fad94abf73bc0cb061c
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2017-10-25 14:39:11 +08:00
Joseph Chen
45a046e864 regulator: rk808: delete rk816 boost and otg switch regulator
Due to hardware issue, boost and otg switch must be conctrolled
with special timing carefully by rk816 battery driver. Otherwise
boost maybe burn off.

Change-Id: Id28208c5b9757e1ff0e57ec5d26f1ac0afb88ad5
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2017-10-25 14:38:42 +08:00
Joseph Chen
029f5a92bc mfd: rk808: add rk816-battery child cell of rk816s
Change-Id: I6a6a1c05be947f9084f80e7357b32b1708b27c57
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2017-10-25 14:38:27 +08:00
Joseph Chen
248c73b6b3 mfd: rk808: add rk816 battery regmap irq chip
Due to different irq_reg_stride of register, add individual
irq chip for battery.

Change-Id: Ic37b136ebc543d4f7bd22d5748b59df73526ccbe
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2017-10-25 14:38:02 +08:00
Joseph Chen
ac440f018e mfd: rk808.h: add fuel gauge register definition
Change-Id: I9ef7ed807f21959fd1c9f5696378785dd920d1b0
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2017-10-25 14:37:32 +08:00
Joseph Chen
73c05faa7f power: rk818-battery: fix TS1 adc issue
Due to hardware design, "Vdelta = (R_sample + R_other) * I_avg"
will be included into TS1 adc value. We must subtract it to get
correct adc value.

Change-Id: I71eb0b53d1a9ef14efb2c4a798f4cf8c8b49e950
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2017-10-25 14:37:17 +08:00
Rocky Hao
a9e988c63a thermal: rockchip: rk3288: fix temperature-jump issue
Due to 32k clock jitter, tsadc will wrongly report a very
high temperature, that is a temperature-jump. This may lead
to an abnormal OS reboot. A filter function is added to
predict the true temperature.

Change-Id: I5b5641efe8e64b4058a604f274350b1e94584fa6
Signed-off-by: Rocky Hao <rocky.hao@rock-chips.com>
2017-10-25 14:35:31 +08:00
Tao Huang
646e27e0f5 rk: Makefile: rm kernel.img and resource.img when make clean
Change-Id: I79d53d683cdff51c2077d77e049bc533c79b76f1
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2017-10-24 19:55:29 +08:00
Tao Huang
30b9a5e323 rk: .gitignore: ignore kernel.img and resource.img
Change-Id: Icfd5518a10fef49c76164f4943f6451877c32f99
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2017-10-24 19:39:16 +08:00
Sandy Huang
0fc389f0d1 drm/panel: simple: fix regulator reference count be set to 2
when power invert and power on:
	->loader_protect[on]->disable regulator(ref count is 0)
	  -> panel_simple_prepare[on]->disable regulator(ref count is 0)
	    ->loader_protect[off]->enable regulator(ref count is 1)
	      ->suspend->enable regulator(ref count is 2)
	        ->resume->disable regulator faild(ref count is 1)

Fixes: 7a91ba36d80 ("drm/panel: panel: add power-invert for some special hardwre")
Change-Id: I43f1cef2410316faec24238cd3f8d2bc1fe38335
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2017-10-24 16:36:25 +08:00
Mark Yao
7af58fc74e drm/rockchip: make multi-display independent on synchronous commit
Previous atomic commit force wait for old commit finish, it
would make performance bad, if we have two outputs committing
at the same time, the two commit will block each other, make
things bad.

with this patch, difference output commits can be independent,
they can commit at the same time.

TEST: before this patch: HDMI + MIPI: 40-55fps
      after this patch: HDMI + MIPI: 60fps

Change-Id: Ie6c80f908080a40986d0193af5aff52f1bead455
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
2017-10-24 15:12:29 +08:00
Mark Yao
8f4d032130 drm/atomic-helper: fixup atomit commit backport
Change-Id: I7a8dc2552a1738eb3837e7bfffb82872627340c9
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
2017-10-24 15:12:16 +08:00
Daniel Vetter
6d2f104013 UPSTREAM: drm/atomic-helper: roll out commit synchronization
To facilitate easier reviewing this is split out from the overall
nonblocking commit rework. It just rolls out the helper functions
and uses them in the main drm_atomic_helper_commit() function
to make it clear where in the flow they're used.

The next patch will actually split drm_atomic_helper_commit() into
2 pieces, with the tail being run asynchronously from a worker.

v2: Improve kerneldocs (Maarten).

v3: Don't convert ERESTARTSYS to EINTR (Maarten). Also don't fail if
the wait succeed in stall_check - we need to convert that case (it
returns the remaining jiffies) to 0 for success.

v4: Switch to long for wait_for_completion_timeout return value
everywhere (Maarten).

v5: Fix miscaped function in kerneldoc (Maarten).

Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Tested-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Tomeu Vizoso <tomeu.vizoso@gmail.com>
Cc: Daniel Stone <daniels@collabora.com>
Tested-by: Liviu Dudau <Liviu.Dudau@arm.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1465398936-22305-1-git-send-email-daniel.vetter@ffwll.ch
(cherry picked from commit a095caa7f5)

Change-Id: I116ef7f1196534159dd75d75e9bfa712ca869249
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
2017-10-24 15:12:06 +08:00
Daniel Vetter
3428c0783f UPSTREAM: drm/atomic-helper: use for_each_*_in_state more
This avois leaking drm_atomic_state internals into the helpers. The
only place where this still happens after this patch is drm_atomic_helper_swap_state().
It's unavoidable there, and maybe a good indicator we should actually
move that function into drm_atomic.c.

Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1464818821-5736-2-git-send-email-daniel.vetter@ffwll.ch
(cherry picked from commit be9174a482)

Change-Id: I524c17d896ac9a816429599403ecf3384d537fb5
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
2017-10-24 15:11:55 +08:00
Daniel Vetter
8b97ee27fd UPSTREAM: drm/atomic: Add struct drm_crtc_commit to track async updates
Split out from my big nonblocking atomic commit helper code as prep
work. While add it, also add some neat asciiart to document how it's
supposed to be used.

v2: Resurrect misplaced hunk in the kerneldoc.

v3: Wording improvements from Liviu.

Tested-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Tomeu Vizoso <tomeu.vizoso@gmail.com>
Cc: Daniel Stone <daniels@collabora.com>
Tested-by: Liviu Dudau <Liviu.Dudau@arm.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1465388359-8070-8-git-send-email-daniel.vetter@ffwll.ch
(cherry picked from commit 3b24f7d675)

Change-Id: I3c8ffa0d3defc915bac9127944ebb962b04806ad
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
2017-10-24 15:11:44 +08:00
Daniel Vetter
8862c8b101 UPSTREAM: drm: Create drm_send_event helpers
Use them in the core vblank code and exynos/vmwgfx drivers.

Note that the difference between wake_up_all and _interruptible in
vmwgfx doesn't matter since the only waiter is the core code in
drm_fops.c. And that is interruptible.

v2: Adjust existing kerneldoc too.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com> (v1)
Acked-by: Daniel Stone <daniels@collabora.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: Thomas Hellstrom <thellstrom@vmware.com>
Cc: Inki Dae <inki.dae@samsung.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1452548477-15905-6-git-send-email-daniel.vetter@ffwll.ch
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
[danvet: Squash in compile fixup, spotted by 0-day.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>

(cherry picked from commit fb740cf249)

Change-Id: I249350864b0b236b6289d2badbbdf32bd4607f36
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
2017-10-24 15:11:28 +08:00
Daniel Vetter
092d14f0b8 UPSTREAM: drm: Add functions to setup/tear down drm_events.
An attempt at not spreading out the file_priv->event_space stuff out
quite so far and wide.  And I think fixes something in ipp_get_event()
that is broken (or if they are doing something more weird/subtle, then
breaks it in a fun way).

Based upon a patch from Rob Clark, rebased and polished.

v2: Spelling fixes (Alex).

Cc: Alex Deucher <alexdeucher@gmail.com>
Acked-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Cc: Rob Clark <robdclark@gmail.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1452548477-15905-3-git-send-email-daniel.vetter@ffwll.ch
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
(cherry picked from commit 2dd500f187)

Change-Id: I8d42c34f019cf6e4eb0617646e887431c0aa455f
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
2017-10-24 15:11:20 +08:00
Wu Liang feng
62b2a34a21 uvcvideo: add quirk for devices with broken auto suspend
We found that some usb cameras(e.g. Manufacturer: HD Camera
Manufacturer, idVendor=05a3, idProduct=9230) can't support
auto-suspend well on rockchip platforms. With auto-suspend,
these usb cameras MJPEG will display abnormally on all usb
controllers(DWC2/DWC3/EHCI). So we need to disable auto
suspend for these special usb cameras.

Change-Id: Ibf50ed77edff0012a112dc42f09e022055908829
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
2017-10-24 14:29:53 +08:00
Zhaoyifeng
7462adc4d8 drivers: rk_nand: update nand driver to support vendor storage
Change-Id: Iaf70005f5f3864c923d35ce89332e95f0e7ed459
Signed-off-by: Zhaoyifeng <zyf@rock-chips.com>
2017-10-24 14:28:20 +08:00
Wenping Zhang
6f370e318a ARM: dts: rk3229-gva: change the emmc mode to ddr 52Mhz.
the maximam frequece supported of rk3229 is 125Mhz, so we change
the emmc mode from hs200 to ddr 52Mhz.

Change-Id: I9d6f2a4bc7651cea897f0ff63de571f5492f6c1e
Signed-off-by: Wenping Zhang <wenping.zhang@rock-chips.com>
2017-10-24 10:28:21 +08:00
Shuyu Wei
6befa07813 FROMLIST: net: arc/emac: Move arc_emac_tx_clean() into arc_emac_tx() and disable tx interrut
Doing tx_clean() inside poll() may scramble the tx ring buffer if
tx() is running. This will cause tx to stop working, which can be
reproduced by simultaneously downloading two large files at high speed.

Moving tx_clean() into tx() will prevent this. And tx interrupt is no
longer needed now.

Picked the Shuyu's patch up, the patch is sent on
https://patchwork.kernel.org/patch/8356821/, since that make sense for
rockchip platform.
Note: Many people feedback the cransh problems with rk3036/rk3188 emac when
download the heavy loading and this patch is indeed can fix the crash.

The crash log as the followings:
...
[ 2191.996127 ] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.4.0-rc6 #114
[ 2192.002475 ] Hardware name: Rockchip (Device Tree)
[ 2192.007174 ] Backtrace:
[ 2192.009658 ] [<c00134d4>] (dump_backtrace) from [<c0013680>]
    (show_stack+0x18/0x1c)
[ 2192.017220 ]  r7:c051c4f8 r6:ef463180 r5:c05b7000 r4:00000000
[ 2192.022948 ] [<c0013668>] (show_stack) from [<c0219d90>]
    (dump_stack+0x90/0xa0)
[ 2192.030176 ] [<c0219d00>] (dump_stack) from [<c00b2cd4>]
    (bad_page+0xdc/0x12c)
[ 2192.037302 ]  r5:c059a100 r4:c05f430c
[ 2192.040913 ] [<c00b2bf8>] (bad_page) from [<c00b606c>]
    (get_page_from_freelist+0x388/0x95c)
[ 2192.049166 ]  r9:00000008 r8:ef463180 r7:c051c4d0 r6:00000000
    r5:00000000 r4:c051c4e4
[ 2192.056982 ] [<c00b5ce4>] (get_page_from_freelist) from
[<c00b6880>] (__alloc_pages_nodemask+0xd8/0x8e8)
[ 2192.066362 ]  r10:c001b068 r9:00000000 r8:ee0b02b0 r7:60000113
    r6:00000003 r5:02095220
[ 2192.074254 ]  r4:c05ca1c0
[ 2192.076809 ] [<c00b67a8>] (__alloc_pages_nodemask) from
[<c00b7140>] (__alloc_page_frag+0xb0/0x160)
[ 2192.085757 ]  r10:c001b068 r9:00000000 r8:ee0b02b0 r7:60000113
    r6:02080020 r5:00000740
[ 2192.093650 ]  r4:eedbc884
[ 2192.096207 ] [<c00b7090>] (__alloc_page_frag) from [<c03273b4>]
    (__netdev_alloc_skb+0xa0/0x104)
[ 2192.104806 ]  r7:60000113 r6:eedbc884 r5:ee0b0000 r4:00000740
[ 2192.110525 ] [<c0327314>] (__netdev_alloc_skb) from [<c02aac00>]
    (arc_emac_poll+0x318/0x57c)
[ 2192.118865 ]  r9:00000000 r8:ee0b02b0 r7:0000019c r6:ee163780
    r5:00000670 r4:ee0b0000
[ 2192.126683 ] [<c02aa8e8>] (arc_emac_poll) from [<c0339ed8>]
    (net_rx_action+0x1f0/0x2ec)
[ 2192.134590 ]  r10:c0599df8 r9:c059a100 r8:00073760 r7:0000012c
    r6:00000028 r5:c02aa8e8
[ 2192.142483 ]  r4:ee0b04e0
[ 2192.145040 ] [<c0339ce8>] (net_rx_action) from [<c0026f5c>]
    (__do_softirq+0x134/0x258)
[ 2192.152860 ]  r10:c059a080 r9:40000003 r8:00000003 r7:00000100
    r6:c0598000 r5:c059a08c
[ 2192.160751 ]  r4:00000000
...

Change-Id: Ie7c161809d511bda5d65af7b48fefffff30c07e8
Signed-off-by: Shuyu Wei <sy.w@outlook.com>
Tested-by: Michael Niewoehner <linux@mniewoehner.de>
Tested-by: Xing Zheng <zhengxing@rock-chips.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Alexander Kochetkov <al.kochet@gmail.com>
Cc: netdev@vger.kernel.org
(am from https://patchwork.kernel.org/patch/9032581/)
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
2017-10-23 19:11:06 +08:00
Shawn Lin
b57b7d3e58 arm64: dts: rockchip: move PCIe configuarion into rk3399-excavator-sapphire.dtsi
So all the variant boards will benefit from it and no need
to copy and paste this everywhere.

Change-Id: Id27355bb6f780ead76b8661693c32a452d3f8e61
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
2017-10-23 15:10:08 +08:00
Shawn Lin
a7e81131d2 arm64: dts: rockchip: remove assigning ref clock of PCIe for Sapphire board
Change-Id: I84c55f4b7d7c7394d511e3714e6021cafac55ec4
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
2017-10-23 15:10:04 +08:00
Caesar Wang
529190e011 ARM: dts: rk3036: add the opp table for rk3036
In order to save power and improve the performance, we can add the opp
table for rk3036 SoCs.

Also, make sure the codec works happily, we should ensure the arm/logic
voltage is greater than 1v.

Change-Id: I9aa17be547eb21e5a83c09780356436c3075bae6
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
2017-10-23 11:44:24 +08:00
Caesar Wang
2e2a36fadc clk: rockchip: add the needed cpuclk for rk3036
As the rk3036 supported the cpu opp table, we need add the related
frequency rates.

Change-Id: If50ed0fc02d3c8d0971d99bf392210616f1748c0
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
2017-10-23 11:44:09 +08:00
ldq
fc81a90cf4 arm64: rockchip_defconfig: enable es8396 codec
Change-Id: If1992277c3f9f3ee97bd22c380dd6d41a8e11814
Signed-off-by: Li Dongqiang <david.li@rock-chips.com>
2017-10-23 11:05:04 +08:00
Wyon Bi
2a21a01636 drm/rockchip: dsi: add control of h2p bridge clock for rk3128
Change-Id: I16671a884d3d91b8f2e8cb0b11ba7ad0c0504df6
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2017-10-23 10:46:36 +08:00
Wyon Bi
0980cd2d00 ARM: dts: rockchip: rk312x: add h2p clock for dsi
Change-Id: I5a2291333a76d59a559fb8c014c2271c897fb066
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2017-10-23 10:46:21 +08:00
Alex Zhao
ab82abc4c1 net: wireless: rockchip_wlan: update bcmdhd driver to 1.579.77.41.2 (r)
1.add android 8.0 support
2.add VTS support

Change-Id: I19b99383e2b2cab243c2acfe0f9f175cde2bdf86
Signed-off-by: Alex Zhao <zzc@rock-chips.com>
2017-10-23 10:45:19 +08:00
wlq
75f1d399fa ARM: rockchip_defconfig: add gslx680_d708 config
replace TOUCHSCREEN_GSLX680_VR

Change-Id: I7f85d53420b07b368787388c8fc388826811a56d
Signed-off-by: WuLiangqing <wlq@rock-chips.com>
2017-10-23 10:23:30 +08:00
Wyon Bi
ec52654825 ARM: dts: rockchip: rk3126-bnd-d708: correct init sequence for panel
Change-Id: Ibe6734721aad4250ea05a437935f1ca23a3ecf88
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2017-10-23 10:19:07 +08:00
Peng Zhou
bfd8339bc2 arm64: dts: rockchip: make rk3368 cru syscon
Change-Id: I5585401276ac1230c50b699e7e550fdbaa394f1e
Signed-off-by: Peng Zhou <benjo.zhou@rock-chips.com>
2017-10-23 10:09:16 +08:00
wlq
fd66488313 driver: input: touchscreen: add gslx680 for rk3126c d708
Change-Id: I59594bf83d2de744eb187fe0570366ddb56d8386
Signed-off-by: wlq <wlq@rock-chips.com>
2017-10-20 18:16:35 +08:00
Elaine Zhang
44288a2f13 clk: rockchip: rk3128: fix up the hclk_vio clk description
set hclk_vio_niu as critical clock.

Change-Id: Ib9e182ac93038df34eadae502fc18df5c0854ef9
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2017-10-20 18:10:11 +08:00
Randy Li
278e91efa2 clk: rockchip: rk3036: export the hevc core clock
The clock hevc core will be used to drive the hevc decoder.

Change-Id: Ic1298ce1edd07f86e5c243e3a2c9876481f4cba9
Signed-off-by: Randy Li <randy.li@rock-chips.com>
2017-10-20 17:48:34 +08:00
langlang.wang
3ad1abbd51 arm64: dts: rockchip: rk3368-px5-evb-android add sensors for px5
Change-Id: Iad9ad2468a54e77bcf5b106c31168fc16f7aff2b
Signed-off-by: Wang, Langlang <langlang.wang@rock-chips.com>
2017-10-20 16:49:56 +08:00
Caesar Wang
b044448555 ARM: dts: rk3036: support wifi/bt for kylin
In order to support the ap6212 module with rockchip wlan driver,
the kylin dts has to change the below for working.

1) We should add the 'supports-sdio' property for mmc tuning,
that's the rockchip private property, not on the upstream.

2) We should add the wifi power control pin and wifi/bt data for dts,
Maybe the history issue, they like the old driver for power
contronlling, the upstream didn't need these for working. we should
remove it in the future.

Change-Id: Id49de7ad77b8658a551a07659a8a2ddc9691874c
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
2017-10-20 16:45:44 +08:00
Caesar Wang
ee4db4e2a3 ARM: dts: rk3036: add the aclk for hdmi
As the inno-hdmi driver introduced this clock, add it for dts supporting.

Change-Id: I43328a25f0ac72d5a5b7631cc8ff6ce98b78669a
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
2017-10-20 16:42:36 +08:00
Caesar Wang
6b8580eca3 drm/rockchip: inno_hdmi: support the aclk_vio clock for rk3036
The aclk_vio is the vio noc, the HDMI accessed the register need this clock
enabled first.

Change-Id: Ib3073b73020e46c7d31b09225dd2bd39a289a4cc
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
2017-10-20 16:32:46 +08:00
zain wang
fc19dcd36a mfd: fusb302: bring softreset to completion
Change-Id: I27e10b8b9197e6526d3fb59d0a88c28414637a9a
Signed-off-by: zain wang <wzz@rock-chips.com>
2017-10-20 16:22:38 +08:00
zain wang
a026f64e8b mfd: fusb302: Don't send hardreset when hot reset
FUSB302 default cc status is UFP. If we reset the UFP system,
the UFP PD status would be reset, but the DPF can't detecte
the disconnection since cc status did not changed. Reset UFP
would send hardreset to DPF due to wait power caps timeout.
And that would cause the power reset.

So, let's use softreset instead of hardreset in this case.

Change-Id: Ic896597569adb125bea3bf145c5c93712fa77539
Signed-off-by: zain wang <wzz@rock-chips.com>
2017-10-20 16:22:25 +08:00
wlq
ab66f809e9 ARM: dts: rockhip: rk3126c: add rk3126-bnd-d708.dts
Change-Id: I9dc96a187a102afc8af872c70f01f59de2f35a2e
Signed-off-by: wlq <wlq@rock-chips.com>
2017-10-20 16:22:12 +08:00
David Wu
3aa37c8fff pinctrl: rockchip: rk3328: Fix the correct routing config
If the gmac-m1 optimization(bit10) is selected, the gpio function
of gmac pins is not valid. We may use the rmii mode for gmac interface,
the pins such as rx_d2, rx_d3, which the rgmii mode used, but rmii not
used could be taken as gpio function. So gmac_rxd0m1 selects the bit2,
and gmac_rxd0m3 select bit10 is more correct.

Change-Id: I781bd29f2ce64ba0e8c1b139ac117fe124410d87
Signed-off-by: David Wu <david.wu@rock-chips.com>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2017-10-20 15:57:32 +08:00
David Wu
2fd80b1e06 pinctrl: rockchip: Fix the rk3399 gpio0 and gpio1 banks' drv_offset at pmu grf
The offset of gpio0 and gpio1 bank drive strength is 0x8, not 0x4.
But the mux is 0x4, we couldn't use the IOMUX_WIDTH_4BIT flag, so
we give them actual offset.

Change-Id: I8371c6432330bd73422c2e5c7a0719f4636eabae
Signed-off-by: David Wu <david.wu@rock-chips.com>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2017-10-20 15:57:27 +08:00
zain wang
7be531e0bd mfd: fusb302: Add notify when received attention HPD signal
Fix DP drivers can't get the HPD signal changed when DP mode is on.

Change-Id: I0e8eefadb677e956cca4f62a4befa9ee47e7e013
Signed-off-by: zain wang <wzz@rock-chips.com>
2017-10-20 15:33:57 +08:00
ldq
71d4a8ffec ASoC: Add driver for codec es8396
Change-Id: I45b01dfa336e88b9eb74e65739fa0ed863c2da90
Signed-off-by: Li Dongqiang <david.li@rock-chips.com>
2017-10-20 15:30:18 +08:00
Finley Xiao
f08254d124 arm64: dts: rockchip: rk3368-px5-evb: add threshold frequency property for cpu
Change-Id: I172481d1a26f973a583df8423e93405b68bf47c5
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2017-10-20 15:22:23 +08:00