Commit Graph

600259 Commits

Author SHA1 Message Date
Finley Xiao
3ff7f2b035 arm64: dts: rockchip: add cpu-avs device node for rk3368
Add cpu-avs node in the device tree for the ARM64 rk3368 SoC.

Change-Id: Ie7eee09c20b06bd755b9277e0acd8eaf810c5331
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2017-03-14 10:28:27 +08:00
Finley Xiao
8c0fbe8d07 arm64: dts: rockchip: add efuse device node for rk3368
Add a efuse node in the device tree for the ARM64 rk3368 SoC.

Change-Id: I7d13febf73e336d5b9d1046ffe6ed69d99ea9dd6
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2017-03-14 10:28:27 +08:00
Finley Xiao
1846e7d725 nvmem: rockchip-efuse: add rk3368-efuse support
This adds the necessary data for handling efuse on the rk3368.
As efuse of rk3368 is secure, use secure interface to access efuse.

Change-Id: I72c29348b7744b232d75ab51c56dc7de0988c24e
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2017-03-14 10:28:27 +08:00
Finley Xiao
ed4dc984d2 clk: rockchip: use rk3368-efuse clock ids
Reference the newly added efuse clock-ids in the clock-tree.

Change-Id: Ibbef52bcc44d006ab48e6f1f874e3bc88c681bd6
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2017-03-14 10:28:27 +08:00
Finley Xiao
3125e80cd5 clk: rockchip: add ids for efuse pclk on rk3368
Adds new ids for the pclk supplying the efuse on rk3368 socs.

Change-Id: I69f0daf402d62079e47d8df8f6e9bef0b274239f
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2017-03-14 10:28:27 +08:00
chenjh
e5edf0a295 firmware: rockchip: sip: add secure register read/write
Change-Id: If1369fb63a2618d20bfe7edffdc49bd4a959f954
Signed-off-by: chenjh <chenjh@rock-chips.com>
2017-03-14 10:28:27 +08:00
Elaine Zhang
88dd889620 clk: rockchip: fix up the rockchip_rk3066_pll_clk_set_by_auto func
Change-Id: Id7c561a50a16918c2943f79701ab72c6eaccdc41
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2017-03-14 10:26:50 +08:00
Jacob Chen
181f6bdcff drm/rockchip: rga: fix potential buffer overflow
Change-Id: Id923e38264855320fbe994bed156bf16eac60245
Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
2017-03-14 09:09:32 +08:00
Jacob Chen
89211fb8a7 drm/rockchip: rga: don't flush buffer context
to save time

Change-Id: Ie4a1618eabdbb9ebf5ad0b73b8acc9df884a81bb
Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
2017-03-14 09:09:19 +08:00
Jacob Chen
0800d51b9d ARM: dts: rk3288: add dma-coherent to rga
RGA are used for scale copy buffer form vpu,isp,
no need to flush CPU cache

Change-Id: Id3cfa0560a14cea122321dc1ea814aa8ec5dd4b6
Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
2017-03-14 09:09:08 +08:00
Zorro Liu
39d4073fe9 driver, touch, gt9xx: enable regulator default
Change-Id: I6e3e7fe6102c83058078486104f88a31cdf1d65b
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
2017-03-13 17:45:17 +08:00
Frank Wang
acee7563ea arm64: configs: rockchip_defconfig: enable mailbox and scpi
This adds select mailbox and scpi support.

Change-Id: I98fa6ee1ca210779b44c1351b68e8725071de07a
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
2017-03-13 15:55:00 +08:00
Frank Wang
c71a0bf1fd arm64: dts: rockchip: enable mbox related for rk3368-tb
This adds enable mbox and scpi function for rk3368-tb board.

Change-Id: I0b4866b72ad59892bc1c051c60bafd1a15ddce14
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
2017-03-13 15:53:02 +08:00
Frank Wang
c77cc0a3ef arm64: dts: rockchip: add mbox related nodes for rk3368
This adds support rk3368-mbox and scpi nodes for rk3368 SoC.

Change-Id: Ifdb90f8101c67ec579b5bba28f163527ed096c4c
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
2017-03-13 15:50:10 +08:00
Frank Wang
f18ee0f4d9 mailbox: rk3368: add mailbox and scpi function
Add mailbox and scpi protocol function support for rk3368 SoC.

Change-Id: I201c916865eb2729ed135c3f5a77a9dd97007952
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
2017-03-13 15:49:22 +08:00
Randy Li
c144dc5d53 video: rockchip: vcodec: fix the output buffer of jpeg
The JPEG decoder is also able to output the raw image in
NV12 format without the help of Post Processor of decoder
in VDPU1.

Change-Id: I1b29a5d93d2dd8ae2f21a7537cc3493adf57d022
Signed-off-by: Randy Li <randy.li@rock-chips.com>
2017-03-13 15:38:06 +08:00
XiaoDong Huang
2dd82913d7 soc: rockchip: add virtual poweroff support
Change-Id: I79240fa936eee3e64eb74eb5d5cdc952c3b2ac9b
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
2017-03-13 15:29:35 +08:00
wlq
3f217d60ae ARM64: dts: rk3399: config rockchip_suspend
Change-Id: I41e7e77b1cc903200c7e1711bae15c629a616564
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
2017-03-13 14:58:29 +08:00
Mark Yao
0e371c3c78 ARM64: dts: rk3399-mid-818: enable hdmi on vopl
Change-Id: Ic42cd1895aaf0326671a30b4971c79b8ab309b4e
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
2017-03-13 14:57:41 +08:00
xiaoyao
4ff12c77a2 arm64: rockchip_defconfig: enable CONFIG_FW_LOADER_USER_HELPER_FALLBACK
Change-Id: Ide84478567d97b53359619bd646c3d11c89e2485
Signed-off-by: xiaoyao <xiaoyao@rock-chips.com>
2017-03-13 12:54:18 +08:00
David Wu
7b542a395d arm64: dts: rockchip: rk3328: Fix the saradc compitiable
The rk3328 saradc is the same as rk3399, so change the compitiable,
they are both 6 channels.

Change-Id: Ia6104e8c5c3590cc745792b8cd3a457a15bb53d2
Signed-off-by: David Wu <david.wu@rock-chips.com>
2017-03-13 12:45:22 +08:00
David Wu
8aceffc885 arm64: dts: rockchip: rk3328: remove the gmac m0 pins
The RK3328 datasheet is not define the pins of gmac m0,
so remove them.

Change-Id: Ic537586c76bd2f3a937c1e15b5877744598cc702
Signed-off-by: David Wu <david.wu@rock-chips.com>
2017-03-13 12:45:09 +08:00
David Wu
d356b80cab arm64: dts: rockchip: rk3328: Use new define for RK3328 pins
Change-Id: I33ba7d3ae0fd93e94fe661936d90f2100f478205
Signed-off-by: David Wu <david.wu@rock-chips.com>
2017-03-13 12:44:53 +08:00
Andy Yan
fe207b3cb8 include: dt-bindings: Add GPIO pin index definition for rockchip pinctrl
Add gpio pin index definition to make it easier to describe
GPIO in dts.

Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Change-Id: I4aa6c01f96d91fd8ddcb371fd01ca9629f1a3013
2017-03-13 12:44:37 +08:00
Xu Xuehui
81d4a9fdbd net: wireless: rockchip_wlan: update for ap6xxx wifi firmware
bcmdhd driver support ko module or compile into kernel

Change-Id: I260c9d3c3da0a9e249a4ee3883ed3efe03964ddf
Signed-off-by: Xu Xuehui <xxh@rock-chips.com>
2017-03-10 17:42:07 +08:00
Elaine Zhang
0545b1db57 linux: mfd: rk808: fix up the RK818_NUM_REGULATORS
Change-Id: I049286ec7afcaa66ca88458f51a3e0d516121001
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2017-03-10 16:11:05 +08:00
Sean Paul
22f2220668 FROMLIST: drm/bridge: analogix_dp: Don't read EDID if panel present
If there's a panel connected to the analogix_dp bridge, rely on
the panel driver for modes, rather than reading EDID *and* calling
get_modes() on the panel.

This allows panels with a valid EDID to read it in the panel driver
(e.g. simple_panel), and panels with invalid EDID to homebrew modes
in their get_modes implementation.

BUG=chrome-os-partner:53565
TEST=Boot device and confirm the modes returned are from panel driver
     instead of EDID

[from https://patchwork.freedesktop.org/patch/107115/]
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/374959
Commit-Ready: Chris Zhong <zyw@rock-chips.com>
Tested-by: Chris Zhong <zyw@rock-chips.com>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>

Change-Id: Ie07dd33e3c121215bf24394cfcb3fff8c7c746a5
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
2017-03-10 16:10:10 +08:00
xiaoyao
2694919094 arm64: rockchip_defconfig: enable CONFIG_BT_RTKBTUSB
Change-Id: I571f3c53cb63a0f5f4d11c2e3dd128d828815b47
Signed-off-by: xiaoyao <xiaoyao@rock-chips.com>
2017-03-10 14:43:35 +08:00
xiaoyao
4d99f97ec0 net: wireless: rockchip: add rtl8822be pcie wifi driver
Change-Id: Ibdc9a9272bf5221b56e2c63b59ffcba41674994c
Signed-off-by: xiaoyao <xiaoyao@rock-chips.com>
2017-03-10 14:41:50 +08:00
Xu Xuehui
e49f8fa707 arm64: rockchip_defconfig: enable CONFIG_WIFI_LOAD_DRIVER_WHEN_KERNEL_BOOTUP
Change-Id: Idd64d6b137dc4bdabfd553bd6912d75a405b6485
Signed-off-by: Xu Xuehui <xxh@rock-chips.com>
2017-03-10 14:37:27 +08:00
Mark Yao
0814e5b4a4 iommu/rockchip: don't do power domain enable on probe
Change-Id: I1484cbe6f7aa4fe358a3223de62a19aabee29d5c
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
2017-03-10 14:23:22 +08:00
Jianqun Xu
141e497420 ARM64: dts: rk3368-android: assigned aclk_vop to 400Mhz
Change-Id: Ie70934cb7046aa96a94e14b251d11e87a98b1512
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2017-03-10 13:57:50 +08:00
Jianqun Xu
f9faa9007b ARM64: dts: rk3368-android: set firmware_class.path=/system/vendor/firmware
It's required by gpu driver, which will load firmware through
/system/vendor/firmware.

If android finds another way to fix it, then can be reverted.

Change-Id: I2fede28f022f10c2e16f68b21159a638a10a53ec
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2017-03-10 12:24:27 +08:00
Jianqun Xu
466ee1ee7b staging: ion: add api to set/get platform device
Change-Id: Ic251497b173608e1f98bf68fbf2b54b75f89c143
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2017-03-10 09:22:28 +08:00
Jianqun Xu
f2c399320e Revert "arm64/dma-mapping: __generic_dma_ops always call swiotlb_dma_ops"
This reverts commit 3e89f7de9a.

Change-Id: I4cf45807f91ab3021b6593f171c1f2573e1ea7f2
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2017-03-10 09:20:41 +08:00
Sugar Zhang
96d9f37fa5 ARM64: dts: rk3399 box: enable hdmi_dp_sound
Change-Id: I04bdec75510b3e47a62a5093fdbd6ec66926e282
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2017-03-09 18:07:01 +08:00
Sugar Zhang
691e4b9187 ARM64: dts: rk3399-android: add hdmi-dp drm audio
this patch register hdmi and dp as one sound card, and compatible
single hdmi audio, single dp audio or both.

Change-Id: I840e6c13f1a0c765a3a9235eb0a798011fc3bf06
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2017-03-09 18:07:00 +08:00
Sugar Zhang
12100a9d84 ARM64: configs: rockchip: enable SND_SOC_ROCKCHIP_HDMI_DP
Change-Id: Icce0802191f2f92913ffc637c50d849bfa79859a
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2017-03-09 18:07:00 +08:00
Sugar Zhang
7058b957e6 drm/rockchip: cdn-dp: return zero when dp is inactive
Change-Id: I741b8ac140014c7f046f59e371ed3ddb245468a2
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2017-03-09 18:06:59 +08:00
Sugar Zhang
cd3e53d593 ASoC: rockchip: add machine driver for built-in hdmi and dp
this patch is used for rockchip built-in HDMI and DP audio output which are
wired to the same i2s line. so we use a DAI link CPU to multicodecs.

Change-Id: Ie8d1ede201a4d4b4cd11c8c05cd1f6177d844957
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2017-03-09 18:06:59 +08:00
Kuninori Morimoto
07f270f297 UPSTREAM: ASoC: soc-core: snd_soc_get_dai_name() become non static
snd_soc_get_dai_name() is used from snd_soc_of_get_dai_name(),
and it is assuming that DT is using "sound-dai" / "#sound-dai-cells".
But graph base DT is using "remote-endpoint". This patch makes
snd_soc_get_dai_name() non static for graph support.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
(cherry picked from commit 1ad8ec535b)

Change-Id: If99dcbfa722f09e3238cfafb5dc2803b6636a2e0
2017-03-09 18:06:59 +08:00
Frank Wang
c2b3e8740d arm64: dts: rockchip: amend usb-otg related nodes for rk3368-tb
This adds move some common properties of usb-otg from dts to dtsi.

Change-Id: I84355433b5ca63cc0b763d66dcdbb38897635418
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
2017-03-09 15:01:13 +08:00
Nickey Yang
fff8ad7caa ARM: dts: rockchip: use hdmi-ddc for ddc bus in rk3288
Using the builtin I2C controller in dw_hdmi is better than using the
normal RK3288 I2C controller(I2C5).

Test: work normally when switch mode between 4K@60hz|4K@30hz|1080P..
Change-Id: Ifb4b72ca5649efb0cc3055f2db34ebbcc2377c4c
Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
2017-03-09 15:00:25 +08:00
Nickey Yang
d5eab5f17b arm64: dts: rockchip: use hdmi-ddc for ddc bus in rk3399
Using the builtin I2C controller in dw_hdmi is better than using the
normal RK3399 I2C controller(I2C3).

Change-Id: I6a2de7221263e8564f7cca56ea5c52e1a133c138
Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
2017-03-09 15:00:17 +08:00
Nickey Yang
7d8946a76e FROMLIST: drm/bridge: dw_hdmi: support i2c extended read mode
"I2C Master Interface Extended Read Mode" implements a segment
pointer-based read operation using the Special Register configuration.

This patch fix https://patchwork.kernel.org/patch/7098101/ mentioned
"The current implementation does not support "I2C Master Interface
Extended Read Mode" to read data addressed by non-zero segment
pointer, this means that if EDID has more than 1 extension blocks"

With this patch,dw-hdmi can read EDID data with 1/2/4 blocks.

(am from https://patchwork.kernel.org/patch/9586343/)

BUG=chrome-os-partner:59768
TEST=fievel can read 1/2/4 blocks EDID data

Change-Id: I086e6ea63ec69c0532be445b958ce253a7f1f3cc
Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
Reviewed-on: https://chromium-review.googlesource.com/442308
Reviewed-by: Douglas Anderson <dianders@chromium.org>
2017-03-09 14:54:43 +08:00
Huang Jiachai
1eb011849f video: rockchip: vop: add ourput color bt601, bt709, bt2020
Change-Id: I0b679244817f1a524d6f834ade32dce1666a6352
Signed-off-by: Huang Jiachai <hjc@rock-chips.com>
(cherry picked from commit b76f11e6652a825fd4cb7798ec3fe06c60587338)
2017-03-09 14:53:58 +08:00
wlq
65bacce134 arm64: dts: rk3399: sapphire-excavator: enabled hdmi sound
Change-Id: If95f0b885aa3afdbaa985b4b39628502075be90e
Signed-off-by: wlq <wlq@rock-chips.com>
2017-03-09 14:53:30 +08:00
Elaine Zhang
375759473a clk: rockchip: rk3368: add CLK_IGNORE_UNUSED flag for mcu clk
Change-Id: I27856c9523ac3bffd4b509f016a659a1e3094b41
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2017-03-09 14:46:06 +08:00
Boris Brezillon
32ce428bc8 UPSTREAM: pwm: Use pwm_get/set_xxx() helpers where appropriate
Use pwm_get/set_xxx() helpers instead of directly accessing the pwm->xxx
field. Doing that will ease adaptation of the PWM framework to support
atomic update.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
(cherry picked from commit 4b58896f72)

Change-Id: Ic6bdaf2017bb292ef920604fba86805999cebf0c
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
2017-03-09 09:36:59 +08:00
Huang, Tao
745c694a60 arm64: dts: rockchip: sync pmugrf with upstream for rk3399
Change-Id: I0b023824265418c72413e6702fbc5592eba0dc4e
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
2017-03-09 09:22:24 +08:00