Commit Graph

613330 Commits

Author SHA1 Message Date
William Wu
84de60c5ae dt-bindings: phy: add bindings doc for rockchip combphy
It adds the device tree bindings for PCIE/USB3 combo PHY
found on Rockchip SoCs.

Change-Id: Ia9c62cfc248b055fc2d7ced66b5b7620f7e220e2
Signed-off-by: William Wu <william.wu@rock-chips.com>
2018-10-22 10:51:02 +08:00
Hu Kejun
b1960e63a4 media: soc_camera: ov13850: fix fps is not correct
Change-Id: Ice351569214c2681a36ec0791ab551cf8d0d8076
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
2018-10-22 10:32:01 +08:00
Elaine Zhang
ac9bacb98d arm64: dts: rockchip: rk1808: add vd supply for pd_npu
Change-Id: I8792eef65d420c4467c8750ebe9f8876179e98fd
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2018-10-19 10:56:29 +08:00
Elaine Zhang
30b2b0583c soc: rockchip: power-domain: Add regulator support
The power domains are supplied by regulators. Add support for them so
that the regulators are properly turned on before a domain is powered up
and turned off when a domain is powered down.

Change-Id: I43ad569e1b82a8e818cbbf2ffcfa6a965d993bbf
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2018-10-19 10:56:29 +08:00
David Wu
4ebc216df2 arm64: dts: rockchip: I2C0 can use 400K frequency for rk1808-evb
The scl rise time of I2C0 is 200ns, so it can use 400K frequency.

Change-Id: I80933698ff7576b9406213aa50becc7736951a8d
Signed-off-by: David Wu <david.wu@rock-chips.com>
2018-10-19 10:55:50 +08:00
David Wu
b6331d5cd1 i2c: rk3x: Leave the irq handle if received nack irq
In the TRX mode, if there was a nack signal at the hardware's
tx, we can get start and nack ipd from the I2C_IPD register,
which will enter nack process, send stop command, change the
state to stop, and enter the handler of stop irq, but the stop
irq may not be generated, it has a latency. So the log will like
this:

[ 69.961944] rk3x-i2c ff650000.i2c: unexpected irq in STOP: 0x10
[ 70.959690] rk3x-i2c ff650000.i2c: timeout, ipd: 0x00, state: 4

This error log will confuse us, it is not easier to locate the problem,
we should get nack error at this time, and processing stop interrupt at
the next, then complete this i2c job.

Change-Id: I073ef288557b1b6f525d936e8f32d9d165c81ec4
Signed-off-by: David Wu <david.wu@rock-chips.com>
2018-10-19 10:53:58 +08:00
David Wu
71e358a704 arm64: dts: rockchip: Add i2cm1 pinctrl define for rk1808
Change-Id: I304676a66b816c112557fa86d98d75131c2b0573
Signed-off-by: David Wu <david.wu@rock-chips.com>
2018-10-19 10:12:09 +08:00
David Wu
e66f1a2221 arm64: dts: rockchip: Fix the i2c5 base register for rk1808
Change-Id: Icc1670aa58f3dc266a971978ce6674df311a209e
Signed-off-by: David Wu <david.wu@rock-chips.com>
2018-10-19 09:38:54 +08:00
David Wu
c2933b5621 i2c: rk3x: Add slave_hold_scl ipd clean
The bit7 of I2C_IPD register also needs to be clean, otherwise,
it will always exist.

Change-Id: Iee01bffd83909e84ed99c9fab821e621c970efd3
Signed-off-by: David Wu <david.wu@rock-chips.com>
2018-10-19 09:37:51 +08:00
Cai YiWei
894be9903f media: rockchip: isp1: config grf dvp datawidth
Change-Id: I173a2054d3f3878d0cc8b4f12236a5ce3f050834
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2018-10-19 09:35:08 +08:00
Cai YiWei
4e29453602 media: i2c: add imx323 driver
Change-Id: I273af9c7bfd205e5bf4406c105fb568c0928d274
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2018-10-19 09:35:08 +08:00
Cai YiWei
2d29886e36 dt-bindings: Document add imx323
Change-Id: I364b1a6fffdd4e2ac2461a16f872d22190c2c163
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2018-10-19 09:35:08 +08:00
Hu Kejun
454977fa07 media: rk-isp10: update to v0.2.2
Change-Id: I616d34cbfdb7ce2066081b82194ede3c5c41f9a1
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
2018-10-19 09:14:26 +08:00
Hu Kejun
ce3911dc8c media: rk-isp10: support Y8/Y12 grey sensor
Change-Id: I8e157afa225eb2b4267232f58549921db00fc971
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
2018-10-19 09:14:17 +08:00
Leo Wen
aab58a865b arm64: dts: rockchip: Add tc358749x node for rk3399-sapphire-excavator board
Change-Id: Ie4d8d2401bd7b717703f539da7073f30904e1926
Signed-off-by: Leo Wen <leo.wen@rock-chips.com>
2018-10-18 20:29:11 +08:00
Leo Wen
5972a5431b arm64: config: rockchip_linux_defconfig: enable CONFIG_VIDEO_TC35874X
Change-Id: Iabd99b8b007a49ae5fd2babf99497706c276e32e
Signed-off-by: Leo Wen <leo.wen@rock-chips.com>
2018-10-18 20:29:11 +08:00
Leo Wen
b08beb0cd8 media: i2c: tc35874x: Fix tc35874x cannot work properly
1.Change the format to MEDIA_BUS_FMT_UYVY8_2X8.
2.Add the PIXEL_RATE for control handlers.

Change-Id: I4f40e3d90765c12702210f88ad60f2147d328456
Signed-off-by: Leo Wen <leo.wen@rock-chips.com>
2018-10-18 20:29:11 +08:00
Hu Kejun
795691a170 media: rockchip: isp1: change list_del sequence for oops error
Change-Id: I5335a4929167736359f97acb7ff9b651260dd05e
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
2018-10-18 20:27:47 +08:00
Yao Xiao
dd4b4b493a net: wireless: rkwifi: add SUPPORT_P2P_GO_PS to fix suspend issue
Change-Id: I23f563c1de9527f2a17ccbe90a61516b4f76b2a8
Signed-off-by: Yao Xiao <xiaoyao@rock-chips.com>
2018-10-18 20:20:12 +08:00
Zhangbin Tong
c263b11cc4 arm: dts: rk3128h-box-avb: change DDR SYS_STATUS_NORMAL frequency to 666Mhz
Change-Id: I9bc1a34a2a276d99d6119f44c0a9c4c4868a3bcc
Signed-off-by: Zhangbin Tong <zebulun.tong@rock-chips.com>
2018-10-18 20:19:54 +08:00
Xinhuang Li
7340ffccc0 ASoC: codecs: rk322x: reduce depop time to 100ms
200ms is too long which will make cts/gts fail,100ms
is enough in fact.

Change-Id: Ifa0c58a9cf878936f6fbc9074cf26ce3d10a3ab4
Signed-off-by: Xinhuang Li <buluess.li@rock-chips.com>
2018-10-18 20:19:26 +08:00
Xinhuang Li
d591e3af40 ASoC: codecs: rk3328: reduce depop time to 100ms
200ms is too long which will make cts/gts fail,100ms
is enough in fact.

Change-Id: I88c75c66fcb7831afb7c8a74de2f1b3d754b84aa
Signed-off-by: Xinhuang Li <buluess.li@rock-chips.com>
2018-10-18 20:19:10 +08:00
Hu Kejun
ecc3c11829 media: i2c: ov13850: fix fps is not correct on full size mode
the correct fps of full size mode is 7.5fps, is not 7fps.

Change-Id: I059fa403ea4a4f1e99c38ddea077e06925840505
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
2018-10-18 20:11:47 +08:00
Finley Xiao
3bc9c2ad9d arm64: dts: rockchip: rk1808: Add clocks and power-domains for npu
Change-Id: Ie33157ebf277fd2ad008a1ae0a4e5725df3c2164
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-10-18 08:39:55 +08:00
Tao Huang
1bcce05752 arm64: rk1808_linux_defconfig: enable SRAM
Enable the Generic on-chip SRAM driver for VAD and NPU.

Change-Id: Ieb5cbb6ae053ec7a8c8b6ffe0921576a80f17636
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-10-18 08:38:18 +08:00
Dingqiang Lin
d5d6b8dcf6 drivers: rkflash: fix gc recovery bug
Read flash address is out of range.

Change-Id: I4926283c0b24bb6ae264155b89661022fd934825
Signed-off-by: Dingqiang Lin <jon.lin@rock-chips.com>
2018-10-17 19:23:45 +08:00
Caesar Wang
2713d82510 arm64: dts: rockchip: fixes the rk808's vddio-supply on rk3399-sapphire
From the schematic RK_SAPPHIRE_SOCBOARD_RK3399_LPDDR3D178P232SD8_V12,
the vcc33_3v0 supply power for vddio, and rk808's i2c used the 3.0v power.

Change-Id: Ib7546a100f6b6cf5406f4bd24a27db79bcdf4fc3
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
2018-10-17 17:40:06 +08:00
Zhangbin Tong
3d94e8840a arm64: dts: rockchip: add new dts files for rk3328 android avb
Change-Id: I80e54687cfdc3395ae39ea4e58f0c3b44b14a33e
Signed-off-by: Zhangbin Tong <zebulun.tong@rock-chips.com>
2018-10-17 17:38:53 +08:00
Zhangbin Tong
3498cd6ce8 arm64: dts: rockchip: rk3328-android: separate android fireware
Split DT source files to separate out android fireware specific DT
bindings.

Change-Id: I8f4149cb645258d89fdc8742199126c1ff2af897
Signed-off-by: Zhangbin Tong <zebulun.tong@rock-chips.com>
2018-10-17 17:38:44 +08:00
Zhangbin Tong
7971432c7f arm: dts: rk3128h-box-avb: Add the possible "boot devices"
During uevent processing, some "by-name" symlinks will be created.
The following symlinks will then be created on the device.

	/dev/block/by-name/<partition> -> /dev/block/<type>/<device>/by-name/<partition>

Note that both <type> and <device> are skipped in the newly create symlinks.
It assumes there is no more than one devices with the same <partition>,
which is the assumption of current first stage mount flow.

When 'boot_devices' in DT is absent, it fallbacks to extract
'boot_devices' from fstab settings.

Change-Id: Ie7f721b1ae53245c324f7ef2c707e7776aeacf66
Signed-off-by: Zhangbin Tong <zebulun.tong@rock-chips.com>
2018-10-17 17:37:39 +08:00
Elaine Zhang
d8db4a4557 clk: rockchip: rk1808: add aclk_imemx CLK_IGNORE_UNUSED flag
Change-Id: I70ebbae78bef1b3ea15c18246460926517296a19
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2018-10-17 17:33:36 +08:00
Shunqing Chen
455a6c4231 power: rk817-battery: add POWER_SUPPLY_PROP_CHARGE_FULL for CTS.
Change-Id: I6756f4270ff1f4733551812ad19ecf6d8c456ee5
Signed-off-by: Shunqing Chen <csq@rock-chips.com>
2018-10-17 17:31:22 +08:00
Elaine Zhang
13f52249d0 clk: rockchip: rk1808: fix up the clk_pciephy_src parent
Change-Id: If2a071ab19a2b8902206ae9010dfd4e4aeddae48
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2018-10-16 17:26:47 +08:00
Zorro Liu
e43c7f22aa arm64: dts: rockchip: update configs for rk3399pro-npu-evb-v10 board
1.add npu node
2.fix fiq interrupt num
3.add usb otg
...

Change-Id: I9c03a86f673e6dd98fadc89473ff8563769c38b8
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
2018-10-16 15:44:33 +08:00
Zorro Liu
926e96cc56 arm64: dts: rockchip: update some configs for rk3399pro-npu
- psci
- usbdrd3
- qos
- cru
- pd
...

Change-Id: I9a5292d0082b165960a97bdaa19bf947cc330e25
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
2018-10-16 15:44:33 +08:00
Elaine Zhang
2559f096c7 clk: rockchip: rk1808: mark hsclk_imem as critical clock
hsclk_imem is pd_npu and pd_imem share niu clk.

Change-Id: I56e06edeb16340b2df7b1033c4fd65a61e22054e
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2018-10-16 11:10:28 +08:00
Hu Kejun
72e4ba0ccf media: rockchip: isp1: support grey sensor with iq is enabled
The data path of grey sensor in ISP is as follows,
grey sensor(input format: Y8/Y10/Y12)
 ->
rockchip-sy-mipi-dphy(output format: RAW8/RAW10/RAW12)
 ->
rkisp1-isp-subdev(output format: YUV422,
		  in RGB Bayer Mode with demosaicing disable)
 ->
video0(MP)/video1(SP) (output format: all support format)

Change-Id: I33cc9760739f9430ff51288597d1300fa3f51a25
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
2018-10-16 10:15:53 +08:00
Lin Jinhan
c65d4a5bf7 arm64: dts: rockchip: rk1808-evb-v10: enable rng
Change-Id: If9c7da0baaf8cad6ff4c84935a996e8875b532e3
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
2018-10-16 10:14:37 +08:00
Lin Jinhan
865843d2f5 arm64: dts: rockchip: rk1808: add rng node for crypto v2 hwrng
Change-Id: Ibbfd0d63d376d874d5363a1c8dcc0c2b6575d9cb
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
2018-10-16 10:14:37 +08:00
Hu Kejun
2b921a63d2 media: rockchip: isp1: Support for RK1808
Change-Id: I652237cf447ce16c7a8f14a8f2608f1c16f62480
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
2018-10-16 10:13:07 +08:00
Hu Kejun
06ec79c3ad media: rockchip: phy: Support for RK1808
Change-Id: I02a27e9c829515fe16876fc228b2107e83603daf
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
2018-10-16 10:13:07 +08:00
Hu Kejun
c2c26aab99 dt-bindings: media: add rkisp1 for rk1808
Change-Id: If59a6fbb62dbd03c88e282c925bbb98efc8d8cc0
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
2018-10-16 10:13:07 +08:00
Hu Kejun
9abbe8e1c6 dt-bindings: media: add mipi rx dphy for rk1808
Change-Id: I88d7ff22df8bcf722545179f3dd26d094b76bd21
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
2018-10-16 10:13:07 +08:00
Tao Huang
2de1fc7a45 arm64: rk1808_linux_defconfig: enable PCIE
Change-Id: Ice1ea0494ceac7c570c38510cce448295696b24c
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-10-15 18:39:15 +08:00
Ziyuan Xu
ea92b57bc0 clk: rockchip: rk1808: fix mmc clock mux configuration
The mmc_clk has four selection for parent pll. The original
configuration fix the parent to GPLL that causes the mmc_clk can't
assign to a precision of 400KHz.

[    6.569962 ] mmc_host mmc2: Bus speed (slot 0) = 2320312Hz (slot req
400000Hz, actual 386718HZ div = 3)

Change-Id: Ie3f74de79ac1e5f455e829b1b361200ad8b33db2
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
2018-10-15 17:56:21 +08:00
Elaine Zhang
237c632223 clk: rockchip: fix up the pr_err for fractional div is not allowed
This pr_err print has some misunderstandings.
Although fractional div is not allowed,
But may be integer or half-divider can be
precisely assigned to the desired frequency.

Change-Id: Iec5d99edcc2b9e875c1d45b7464881ab389c356e
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2018-10-15 14:44:28 +08:00
Huibin Hong
699c56f7ed arm64: dts: rockchip: fix uart pinctrl for rk1808
Change-Id: Icc4b3c70926db37ef63d9d496958a46ed18a672d
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
2018-10-15 10:37:54 +08:00
Finley Xiao
6598bfd2a5 arm64: dts: rockchip: rk3308: Modify pvtm voltage selector map table
Change-Id: I8a10087a758ab1c905d5d6395ddc45ebda53814d
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-10-15 10:32:03 +08:00
Jianqun Xu
9d63b7363d arm64: dts: rockchip: remove io-domain/pmu-io-domain for rk1808
RK1808 SoCs support Auto-selection feature, which descript by
PMU_GRF_IO_VSEL1.

Change-Id: I43a240306d95b686b9801d2fe2a2a6f141ec2834
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2018-10-15 10:29:37 +08:00
Huibin Hong
d652b183b3 arm64: dts: rockchip: disable uart and spi dma for rk1808
There is only one dmac of rk1808, but more than 30 peripheral
may use dma, so disable uart and spi dma as default. Enable it
by property below:
dma-names = "tx", "rx";

Change-Id: I67347c1459a1a11efa00b08cf21273175b6028a0
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
2018-10-15 10:26:41 +08:00