Commit Graph

591740 Commits

Author SHA1 Message Date
Xu Jianqun
bdb442a462 clk: rockchip: rk3368 plls' supports 1188MHz
Since HDMI needs clock rate 74.25MHz, so plls must support
a multiple of it.

For Rockchip rk3368 pll has better jetter with 1188MHz, so
add 1188MHz support.

Change-Id: I68c7333ae076ecabf8637298ee8ca43149cb17d1
Signed-off-by: Xu Jianqun <jay.xu@rock-chips.com>
2016-01-27 10:58:33 +08:00
Xu Jianqun
fe87e18dd1 ARM64: dts: rockchip: add clock assign for rk3368 cru
Add "assigned-clocks" for rk3368 cru node, to intalize
clock rate for plls, bus and peripher.

Change-Id: Ic36401fef73b005d778b8ccc8527633af408985c
Signed-off-by: Xu Jianqun <jay.xu@rock-chips.com>
2016-01-27 10:08:03 +08:00
zhangqing
02ec3dcd17 UPSTREAM: clk: rockchip: rk3368: enable the CLK_SET_RATE_PARENT flag for i2s_2ch
I2S_2CH set freq need to select parent and calculate parent freq.
so just mark it as the CLK_SET_RATE_PARENT flag.

Signed-off-by: zhangqing <zhangqing@rock-chips.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
(cherry picked from git.kernel.org mmind/linux-rockchip.git v4.6-clk/next
 commit e8099067de)

Change-Id: I1e7b75eba06fbe27079c3887170ce801da005ce0
2016-01-26 17:29:54 +08:00
zhangqing
c9c8007ff7 UPSTREAM: clk: rockchip: rk3368: enable the CLK_SET_RATE_PARENT flag for spdif_8ch
SPDIF_8CH set freq need to select parent and calculate parent freq.
so just mark it as the CLK_SET_RATE_PARENT flag.

Signed-off-by: zhangqing <zhangqing@rock-chips.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
(cherry picked from git.kernel.org mmind/linux-rockchip.git v4.6-clk/next
 commit 0bbe62eb92)

Change-Id: I3deed226430c492dc3b70337ae3e89d201aeb66d
2016-01-26 17:29:28 +08:00
zhangqing
9c61fe501d UPSTREAM: clk: rockchip: rk3368: fix edp_24m parent
The edp_24m parent select bit define is:
1'b0:xin24m
1'b1:1'b0(dummy)
so adapt the parent sel bit to the currect one.

Signed-off-by: zhangqing <zhangqing@rock-chips.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
(cherry picked from git.kernel.org mmind/linux-rockchip.git v4.6-clk/next
 commit d566ebc3c0)

Change-Id: Ia0530f4e00c8ea15420b49587097f07ac1af5092
2016-01-26 15:58:02 +08:00
Heiko Stuebner
24ebcaf1c0 UPSTREAM: clk: rockchip: rk3368: fix hdmi_cec gate-register
Fix a typo making the sclk_hdmi_cec access a wrong register to handle
its gate.

Fixes: 3536c97a52 ("clk: rockchip: add rk3368 clock controller")
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: zhangqing <zhangqing@rock-chips.com>
Cc: stable@vger.kernel.org
(cherry picked from git.kernel.org mmind/linux-rockchip.git v4.6-clk/next
 commit fd0c0740fa)

Change-Id: I549ef7e3c29df9fe7d4280288639e401727a001e
2016-01-26 15:54:06 +08:00
Heiko Stuebner
cb438027f7 UPSTREAM: clk: rockchip: rk3368: fix parents of video encoder/decoder
The vdpu and vepu clocks can also be parented to the npll and current
parent list also is wrong as it would use the npll as "usbphy" source,
so adapt the parent to the correct one.

Fixes: 3536c97a52 ("clk: rockchip: add rk3368 clock controller")
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: zhangqing <zhangqing@rock-chips.com>
Cc: stable@vger.kernel.org
(cherry picked from git.kernel.org mmind/linux-rockchip.git v4.6-clk/next
 commit 0f28d98463)

Change-Id: Ie7e8f1e7d6de5e149705cc5f6d6207e839eca2bd
2016-01-26 15:53:46 +08:00
Heiko Stuebner
e518354e37 UPSTREAM: clk: rockchip: rk3368: fix cpuclk core dividers
Similar to commit 9880d4277f ("clk: rockchip: fix rk3288 cpuclk core
dividers") it seems the cpuclk dividers are one to high on the rk3368
as well.

And again similar to the previous fix, we opt to make the divider list
contain the values to be written to use the same paradigm for them on all
supported socs.

Fixes: 3536c97a52 ("clk: rockchip: add rk3368 clock controller")
Reported-by: Zhang Qing <zhangqing@rock-chips.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: zhangqing <zhangqing@rock-chips.com>
Cc: stable@vger.kernel.org
(cherry picked from git.kernel.org mmind/linux-rockchip.git v4.6-clk/next
 commit c6d5fe2ca8)

Change-Id: If85678467e8dc4b4cfce07c3d31faf0c11479780
2016-01-26 15:07:46 +08:00
Heiko Stuebner
69c9ca4166 UPSTREAM: clk: rockchip: rk3368: fix cpuclk mux bit of big cpu-cluster
Both clusters have their mux bit in bit 7 of their respective register.
For whatever reason the big cluster currently lists bit 15 which is
definitly wrong.

Fixes: 3536c97a52 ("clk: rockchip: add rk3368 clock controller")
Reported-by: Zhang Qing <zhangqing@rock-chips.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: zhangqing <zhangqing@rock-chips.com>
Cc: stable@vger.kernel.org
(cherry picked from git.kernel.org mmind/linux-rockchip.git v4.6-clk/next
 commit 535ebd428a)

Change-Id: I26364fdba8cdfe36c8b9ba767b4226c9ac6ff118
2016-01-26 14:45:44 +08:00
Caesar Wang
631bfc4eee dt-bindings: rockchip-thermal: Support the RK3228/RK3399 SoCs compatible
This patchset attempts to new compatible for thermal founding
on RK3228/RK3399 SoCs.

Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>

(cherry picked from git.kernel.org torvalds/linux.git master
 commit 4be02530fc)
Change-Id: I9fd1f52d7b4781230e5436e90ed6d9d2c95d06cb
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
2016-01-26 10:09:08 +08:00
Caesar Wang
1da295343b thermal: rockchip: fix a trivial typo
This patchset trys to dictate unified format for driver.

Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>

(cherry picked from git.kernel.org torvalds/linux.git master
 commit 13c1cfda1a)
Change-Id: I9659ae150c9d24f2482fd8c285dcfeb65bf873b1
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
2016-01-26 10:09:08 +08:00
Xiao Feng
e75eb8ab79 dt-bindings: add documentation of rk3366 clock controller
Add the devicetree binding for the cru on the rk3366 which quite
similar structured as previous clock controllers.

Change-Id: I109da26f88cd733b64d4c4339db63346dd9ffea6
Signed-off-by: Xiao Feng <xf@rock-chips.com>
2016-01-26 09:20:14 +08:00
Xiao Feng
a13a9f0417 clk: rockchip: add dt-binding header for rk3366
Add the dt-bindings header for the rk3366, that gets shared between
the clock controller and the clock references in the dts.

Change-Id: Ie4d8f9d02be2331b368d44f5d76a92fd9959b72a
Signed-off-by: Xiao Feng <xf@rock-chips.com>
2016-01-26 09:19:36 +08:00
Xiao Feng
85f127f547 ARM64: configs: rockchip_defconfig enable cpufreq
Change-Id: Ie49f1c205c3fadac8dec58efbf1746e703e67970
Signed-off-by: Xiao Feng <xf@rock-chips.com>
2016-01-26 09:18:09 +08:00
Xiao Feng
ab12d29622 ARM64: configs: rockchip_defconfig add RK808 clkout
Change-Id: I106c419f92436fc41f95aa57a50bdfc2ba53b0f9
Signed-off-by: Xiao Feng <xf@rock-chips.com>
2016-01-26 09:17:26 +08:00
Huang Jiachai
6b3ef17099 video: rockchip: update coding style
Change-Id: I7bd8d6875d126db2062e48cd81ec191d954da4bf
Signed-off-by: Huang Jiachai <hjc@rock-chips.com>
2016-01-25 20:40:47 +08:00
Huang Jiachai
e6dcbc2e77 video: rockchip: vop iommu state depend on dts and delete CONFIG_ROCKCHIP_IOMMU
Change-Id: I4de26882995313ed11c81b2162e29bc771e117de
Signed-off-by: Huang Jiachai <hjc@rock-chips.com>
2016-01-25 20:40:47 +08:00
Mark Yao
9edb5631b2 video: rk322x: fix crash on suspend/resume
Skip the update_reg_update when vop is suspend, because
register access would hang up the system when vop is suspend.

Change-Id: I01e712736df9a6de88440ee67c624a26ea752d85
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
2016-01-25 20:40:46 +08:00
Huang Jiachai
dbbe2a6bb4 video: rockchip: vop: 322x: sync with develop-3.10
Change-Id: Iab27d3ac659df8f22198ec0c058cb864fec37c1d
Signed-off-by: Huang Jiachai <hjc@rock-chips.com>
2016-01-25 20:40:46 +08:00
Mark Yao
88f9467e51 video: rk322x: rename vop rk3228 to rk322x
Change-Id: I6d8d9ff84f76d7fa5c820b682081bbe0cb851ff1
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
2016-01-25 20:40:45 +08:00
Huang Jiachai
cd3f162865 video: rockchip: lvds: rk31xx_lvds.c add support rk3366
Change-Id: Iecd6bacf28cb4620a1141c89ff16612ec4866230
Signed-off-by: Huang Jiachai <hjc@rock-chips.com>
2016-01-25 20:31:13 +08:00
Huang Jiachai
7ec167829a video: rockchip: lcdc: 3368: add support rk3366
Change-Id: I7e6137418b18c58c53f958089527635ac62eb887
Signed-off-by: Huang Jiachai <hjc@rock-chips.com>
2016-01-25 20:28:24 +08:00
Xu Jianqun
9da1bda27c staging: ion: cma heap support map/unmap iommu
Add apis for cma-heap to map/unmap iommu.

Change-Id: I993d54285691e7015ffa302a4bb776234ca45bcb
Signed-off-by: Xu Jianqun <jay.xu@rock-chips.com>
2016-01-25 18:46:27 +08:00
Mark Yao
f6916789d5 video: rk_fb: align 24bit data format
Vop hardware only support the 4 byte align stride, but
if logo's stride is not align with 4 byte, will get
error display.

Change-Id: I543bbbea98f14702ae0e5f058075c39b8fd6fd68
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
2016-01-25 18:45:13 +08:00
Mark Yao
810a6c3735 video: rk_fb: fix ymirror for kernel logo
kernel logo not use ymirror now, so if uboot logo use ymirror,
we need close it when switch to kernel logo, otherwise, would get
iommu crash

Change-Id: I4a607f75ada4cf6454c7e0f4614b629ef747e851
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
2016-01-25 18:44:36 +08:00
Huang Jiachai
1463fbda0c dtsi: display: add fpga rgb screen timing dtsi
Change-Id: I803aa5a4a8b5bf221ab0a56d6d739464cc501de5
Signed-off-by: Huang Jiachai <hjc@rock-chips.com>
2016-01-25 18:43:23 +08:00
Huang Jiachai
cd3559daa4 video: rockchip: screen: init extend screen type
if the extend screen type is same to prmry screen type,
the GRF reg config for vop selete will be error;

Change-Id: I6671ae69da175352bd1935254603e434e85900ea
Signed-off-by: Huang Jiachai <hjc@rock-chips.com>
2016-01-25 18:42:51 +08:00
Sugar Zhang
f899e3a55f ASoC: rockchip: i2s: add rk3399 compatible string
Change-Id: Iaf539e003efc4cb9d219e866f6637368d5b2da81
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2016-01-25 10:23:17 +08:00
Sugar Zhang
c3bc30c6a8 ARM64: dts: rk3399: add i2s node
Change-Id: I02c7fd587c4233910b2a29c99bd8c7fc809779bf
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2016-01-25 10:20:14 +08:00
Xu Jianqun
6ac5fe994f doc: dt: add dt-bindings for rockchip ion driver
Change-Id: Ia2ec4985ead6ee986dce9bdb6ac910373ec1cd18
Signed-off-by: Xu Jianqun <jay.xu@rock-chips.com>
2016-01-21 15:18:20 +08:00
Xu Jianqun
a891b7390b ARM64: dts: rockchip: rk3368 support cma-heap
Support cma-heap, also remove unused id definations.

Change-Id: I81608291b076ed55a1c439abfa9281ba30dff1b6
Signed-off-by: Xu Jianqun <jay.xu@rock-chips.com>
2016-01-21 14:59:10 +08:00
Xu Jianqun
8baee85773 staging: ion: rockchip: support cma-heap
With this patch, ion could alloc by cma heap.

Change-Id: I23b4ebf3b6f8de573c9833574f926f38db1c67bc
Signed-off-by: Xu Jianqun <jay.xu@rock-chips.com>
2016-01-21 14:47:27 +08:00
Zhaoyifeng
4fb0468002 nand: add ftl driver and nand drivers for rk3366
Change-Id: I2ea7fe6218b32666b91fce54bc17f976feb7f4d2
Signed-off-by: Zhaoyifeng <zyf@rock-chips.com>
2016-01-19 11:44:50 +08:00
zxl
3c1d52c9de GPU: Rogue_M: update to 1.31_2 version & support gpu pd.
1. Add GPU pd support.
2. Disable RD power island.

Change-Id: Ib2ee45c647d0bed5aaa5c4f0c591c0f527f3d11e
Signed-off-by: zxl <zhuangxl@rock-chips.com>
2016-01-18 19:04:28 +08:00
zxl
78ee7c5c07 GPU: Rogue_M: support gpu dvfs & adjust code.
1. Add GPU dvfs support.
2. Adjust the code indentation.
3. Use late_initcall instead of module_init to load gpu driver.

Change-Id: I9bac24b567b43ae6a395d9bac1b1d7e2729c48b4
Signed-off-by: zxl <zhuangxl@rock-chips.com>
2016-01-18 18:56:56 +08:00
Xu Jianqun
05cf816fff ARM64: dts: add dts for Rockchip RK3399 FPGA board
With the RK3399 FPGA dts file, the FPGA board is able to boot with
very simple boot system.

Change-Id: I3484faf02cf9e6adab4379752abcc6cb8c9ed5b2
Signed-off-by: Xu Jianqun <jay.xu@rock-chips.com>
2016-01-18 16:17:32 +08:00
Xu Jianqun
d404c1e21f ARM64: dts: rockchip: fix copy-paste error in rk3399 dtsi file
Change-Id: I4eb21f4ee8e8d4bfc3dd37649e7c57c06489db1d
Signed-off-by: Xu Jianqun <jay.xu@rock-chips.com>
2016-01-18 14:28:54 +08:00
Xing Zheng
b0520a10e6 clk: rockchip: add dt-binding header for rk3399
Add the dt-bindings header for the rk3399, that gets shared between
the clock controller and the clock references in the dts.

Change-Id: I01830a46b679f4630506e8cb48b1a39e113a9952
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2016-01-18 13:58:17 +08:00
Jeffy Chen
b260018adb clk: rockchip: allow more than 2 parents for cpuclk
RK3228's armclk has 3 parents, so allow cpuclk to have
more than 2 parents.

Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
(cherry picked from linux-next.git
commit ea03835fb8)

Change-Id: Iddb60e4f7bda91b98b4a3e42f196eee510173dce
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2016-01-15 17:52:15 +08:00
Sugar Zhang
a10ca571fc ARM64: dts: rk3399: add dmac node
Change-Id: Ib59775c317f936c54d521d714293a3ab9a546937
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2016-01-15 17:33:46 +08:00
Jeffy Chen
6558ce149b serial: core: remove baud_rates when serial console setup
Currently, when tring to set up a serial console with a higher
baud rate, it would fallback to 921600.

Tested-by: Jianqun Xu <jay.xu@rock-chips.com>
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
Change-Id: Id93f2b559478f38c735213d523d3f72f6745f6a0
2016-01-15 16:36:16 +08:00
Mark Yao
483f8df0a0 video: rk_fb: add BGR888 support
Direct load 24bit bmp data to display, but its data format
is BGR888, so add BGR888 support for uboot logo.

Change-Id: Id93f2b559478f38c735213d523d3f72f6745f6a8
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
2016-01-14 13:59:50 +08:00
Mark Yao
d14bc670a6 video: rk_fb: spilt mirror into x/y mirror
Uboot logo need ymirror function, but now only have mirror_en to
enable both xmirror and ymirror.

Change-Id: Ic676c4451817db2127327a1a56addeccb2436f21
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
2016-01-14 13:59:49 +08:00
Mark Yao
38c4c22a5b video: rk_fb: align uboot logo address
Uboot logo address start point may be not align PAGE_SIZE, it would
align to wrong point by pages vmap, and cause uboot logo error display.

So before pages vmap, align the uboot logo address.

Change-Id: I93f030e1b7ee13a4dc19d1421f520478868318ef
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
Reported-by: Wen Dingxian <shawn.wen@rock-chips.com>
2016-01-14 13:59:48 +08:00
Mark Yao
f25987ec71 video: rockchip_fb: synchronous win state
We enable win0 for uboot display, but win last_state is 0,
when we update win config from config_done ioctl, the state judge
is wrong.

Change-Id: I9955bed1683586254a908cb9395d27585e234b10
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
2016-01-14 13:59:48 +08:00
Mark Yao
a99d6b4e09 video: rockchip_fb: support ymirror for uboot logo
Now only find rk322x and rk3368 support do ymirror in windows.

Change-Id: Iba49d64bb51db8fb35e6b21cab8aeba23dbd52b6
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
2016-01-14 13:59:47 +08:00
Mark Yao
c991a1a4ee video: rk_fb: widen out var config limit
All layers allow out of right side and bottom side.
And hardware cursor want to support outside of right and bottom.

Change-Id: I27d64b2e12326fbad436f291a9fb5092538428f9
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
2016-01-14 13:59:47 +08:00
Jianqun xu
09f913b31b ARM64: dts: rockchip: add core dtsi file for RK3399
Change-Id: Ie3b824e8ead967d4cb119d73222b7a198478c29c
Signed-off-by: Jianqun xu <jay.xu@rock-chips.com>
2016-01-13 11:05:22 +08:00
Zhaoyifeng
24faa1ca44 ARM64: dts: add nandc node for rk3368
Change-Id: I1c5fab31139e686297dd0da94d7274592fc22782
Signed-off-by: Zhaoyifeng <zyf@rock-chips.com>
2016-01-13 11:04:19 +08:00
Xu Jianqun
5ba7074f42 ARM64: configs: rockchip_defconfig select RGA2
Change-Id: Id93ffb52d58aaaedaacdd47f0f2d4765e2429a30
Signed-off-by: Xu Jianqun <jay.xu@rock-chips.com>
2016-01-13 10:55:00 +08:00