Commit Graph

613358 Commits

Author SHA1 Message Date
Shixiang Zheng
ef34d50d17 arm64: rk1808_linux_defconfig: add CONFIG_ROCKCHIP_RGA2
Change-Id: Ibc09cb6f8522821f6805708be1e47226d550c70e
Signed-off-by: Shixiang Zheng <shixiang.zheng@rock-chips.com>
2018-10-23 11:35:12 +08:00
Dingqiang Lin
fa8683a467 drivers: rkflash: Support NOR Flash to init MTD part list by default partition.
Change-Id: I108c6ea704307221a58e3a7cdf4d6dc83b153437
Signed-off-by: Dingqiang Lin <jon.lin@rock-chips.com>
2018-10-23 10:20:14 +08:00
Zorro Liu
37184f54fe arm64: dts: rockchip: add i2c0 and xin32k for rk3399pro-npu
Change-Id: I5d057e4ce7fed18dde46c0c8bd580623e1803e71
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
2018-10-23 10:02:12 +08:00
Zorro Liu
9839b238e8 arm64: dts: rockchip: rk3399pro-npu: Add clocks for npu
Change-Id: If84a3592c4def1418b3a972bc5d56c33918c35d6
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
2018-10-23 10:02:06 +08:00
Zorro Liu
a65badf152 arm64: rk3399pro_npu_defconfig: enable INNO_COMBPHY
Change-Id: Ief80634a45df982a5c4fbc630c559b2c3e7243df
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
2018-10-23 10:02:01 +08:00
Zorro Liu
8a25b28224 arm64: dts: rockchip: update usb3 configs for rk3399pro-npu
Change-Id: I1700402cb53c77cba9b05c2e541091be96ef146e
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
2018-10-23 10:01:46 +08:00
Leo Wen
25e85dd53d arm64: dts: rockchip: set rootfstype=ext4 for rk3326-evb-lp3-v10-linux
Change-Id: I6ef17624ddf656e12550d2cac958d262e750d63c
Signed-off-by: Leo Wen <leo.wen@rock-chips.com>
2018-10-23 09:44:39 +08:00
Sugar Zhang
7462892e8f arm64: dts: rockchip: rk1808-evb: correct mclk for rk809 codec
Change-Id: I5d963b095d876da2a7c7aecc35fcf64c8bd588cb
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2018-10-22 17:48:48 +08:00
Sugar Zhang
0d55c87e7e arm64: dts: rockchip: rk1808-evb-v10: fix aloop card index to 7
This patch fix the aloop card index to 7, and leave the card 0
place for default hw snd card.

Change-Id: I767d3d61b1ecb09b813d7bf81b99298cd30a3969
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2018-10-22 17:48:48 +08:00
Sugar Zhang
09a517954d ASoC: rockchip: pdm: adjust waterlevel in frame unit
This patch make the waterlevel more reasonable, because the pdm
controller share the single FIFO(128 entries) with each channel.
adjust waterlevel in frame to meet the vad or dma frames request.

Change-Id: I9b5808e55025347d435f47889f39ba34ac07ea1c
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2018-10-22 17:48:48 +08:00
Sugar Zhang
1d469d53c2 ASoC: rockchip: vad: sort audio buffer data for rk1808
Change-Id: Id367202b6434a6dab07a0185392efc5a1e447990
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2018-10-22 17:48:48 +08:00
Shunqing Chen
deb8d11046 power: rk818-battery: add POWER_SUPPLY_PROP_CHARGE_FULL for CTS.
Change-Id: Ifc95ea148f105457a5b8fc6e70a0523ded5e1e2c
Signed-off-by: Shunqing Chen <csq@rock-chips.com>
2018-10-22 15:51:04 +08:00
Xinhuang Li
3d98e3f91c arm64: dts: rockchip: rename codec for rk3328 android
fix the vts error like this:
Failed to parse! Parsing error at token LexToken(COMMA,',',1,48) in line 1;
explain:
the vts will parsing the codec'name after android P, the comma is not allow
in the codec'name

Change-Id: I6cb011331368d64417bd9955ba5d3deb84d49b8d
Signed-off-by: Xinhuang Li <buluess.li@rock-chips.com>
2018-10-22 14:41:49 +08:00
William Wu
2ba314cca6 usb: dwc3: rockchip: fix usb reenumerated upon pm resume
On rk3399 platforms, Type-c1 can be simplified to Type-A
port and support USB 3.0 Host only mode. It has a problem
that the dwc3_rockchip_resume() will reset the controller
upon pm resume, and this may cause usb device(e.g. usb 4G
modem) to be reenumerated. This patch sets the flag of
connected to true and avoid to do the reset operation upon
pm resume.

Change-Id: I57f92d0277a19ce1c7b881fe2da6470fd3a70b73
Signed-off-by: William Wu <william.wu@rock-chips.com>
2018-10-22 14:08:21 +08:00
David Wu
e283ecf388 arm64: dts: rockchip: Correct the reset time of rtl8211f phy for rk1808-evb
According to the PHY datasheet of rtl8211f, if the reset time
of the PHY is not enough, it will cause the PHY instability,
which has been encountered by other customers, need to take
longer than rtl8211e.

Change-Id: I2786c8b9005a3437d39d6b580d01f03c590848d6
Signed-off-by: David Wu <david.wu@rock-chips.com>
2018-10-22 11:29:34 +08:00
Shunqian Zheng
80de9b19d9 devfreq_cooling: inline the of_devfreq_cooling_register_power()
Make of_devfreq_cooling_register_power() as static inline.
This fixes the building error when CONFIG_THERMAL is disabled.

Change-Id: I3d88a3679de279a7ee7eadae7243b9661fdddf75
Signed-off-by: Shunqian Zheng <zhengsq@rock-chips.com>
2018-10-22 11:28:10 +08:00
David Wu
d5635ca05b i2c: rk3x: Disable irq after i2c transfer finished
In some case,log like this:

[   12.393926] rk3x-i2c ff150000.i2c: irq in STATE_IDLE, ipd = 0x51
[   12.416592] rk3x-i2c ff150000.i2c: irq in STATE_IDLE, ipd = 0x51

The i2c clock is disabled, so the pending irq clean is not
worked. Disable the interrupt after the i2c jobs were done,
the error log would not happen.

Change-Id: If04a2e2214d675410c67db0f131ee7ef635ddcb4
Signed-off-by: David Wu <david.wu@rock-chips.com>
2018-10-22 11:11:08 +08:00
David Wu
9861dcac9c i2c: rk3x: Disable i2c controller after i2c transfer finished
If the slave hold the scl low for a long time, we will send
the stop because the i2c transfer is timeout. Then reset the
slave, the scl will be released to high by slave, the data
hold low, but the controller's state is messy now, need to
diable i2c controller, it is better to reset i2c controller,
it will go back to normal state.

The log like this:

[ 117.444700] rk3x-i2c ff3d0000.i2c: timeout, ipd: 0x93, state: 2
[ 118.466410] rk3x-i2c ff3d0000.i2c: timeout, ipd: 0x00, state: 1
[ 119.486217] rk3x-i2c ff3d0000.i2c: timeout, ipd: 0x00, state: 1

or

[  91.733176] rk3x-i2c ff3d0000.i2c: timeout, ipd: 0x80, state: 1
[ 103.406776] rk3x-i2c ff3d0000.i2c: timeout, ipd: 0x00, state: 2
[ 104.426636] rk3x-i2c ff3d0000.i2c: timeout, ipd: 0x00, state: 2

Change-Id: I53e6e383c849cea22d870f9488c23720e74115df
Signed-off-by: David Wu <david.wu@rock-chips.com>
2018-10-22 11:10:30 +08:00
Elaine Zhang
7393188064 clk: rockchip: rk1808: remove the apll from parents clk for npu
apll is always change,
not allowed apll as npu parent clk.

Change-Id: Ia354b7ac533c2c7537d2d25894f956b855db9bc6
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2018-10-22 11:09:26 +08:00
Joseph Chen
4202ab5440 regulator: fan53555: add TCS4525 DCDC support
TCS4525 main features:

- 2.7V to 5.5V Input Voltage Range;
- 3MHz Constant Switching Frequency;
- 5A Available Load Current;
- Programmable Output Voltage: 0.6V to 1.4V in 6.25mV Steps;
- PFM/PWM Operation for Optimum Increased Efficiency;

Change-Id: I7d4b8bbf38a5c74174b16ae4cb64d04f903a2902
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-10-22 11:08:20 +08:00
William Wu
f4093c1980 arm64: dts: rockchip: add snps,dis_u3_susphy_quirk for rk1808 dwc3
Add a quirk to avoid USB 3.0 PHY enter suspend mode when
the dwc3 controller suspend conditions are valid, it can
help to fix the dwc3 initialization error issue with the
following log:
dwc3 fd000000.dwc3: failed to enable ep0out

Change-Id: Iedcb9fa6c2c7fe923839362e35267fedb55889a7
Signed-off-by: William Wu <william.wu@rock-chips.com>
2018-10-22 11:05:43 +08:00
William Wu
c0cf944281 arm64: dts: rockchip: add otg vbus regulator for rk1808 evb
Add otg vbus regulator for rk1808 evb, it can provide
5V power supply for otg host.

Change-Id: Ib535993d5446c7fbf58e58ab748e8d565f81447f
Signed-off-by: William Wu <william.wu@rock-chips.com>
2018-10-22 11:05:43 +08:00
William Wu
67fbb411da arm64: dts: rockchip: support usb3 phy for rk1808 dwc3
The combphy which supports PCIe/USB3.0 on rk1808 has been
enabled, so we can used it as usb3-phy for DWC3 controller
by default.

Change-Id: I106885eb79621b40214bc2ebac43d8f87ac63687
Signed-off-by: William Wu <william.wu@rock-chips.com>
2018-10-22 11:05:43 +08:00
William Wu
eb613b7227 arm64: dts: rockchip: set usb3 suspend_clk to 24MHz for rk1808
The default clock frequency of usb3 suspend_clk is
32KHz, this patch sets the clock frequency to 24MHz
which from the xin24m parent.

Change-Id: Ia516a0d7b6c69b87a1ad6c69c421504477e18742
Signed-off-by: William Wu <william.wu@rock-chips.com>
2018-10-22 11:05:43 +08:00
William Wu
93d6616b1d arm64: dts: rockchip: enable combphy on rk1808 evb
Change-Id: I492f89d64de977f58229416488c249522e6a1b15
Signed-off-by: William Wu <william.wu@rock-chips.com>
2018-10-22 11:05:43 +08:00
William Wu
400884d434 arm64: dts: rockchip: add combphy node for rk1808
Add combphy node for rk1808, this phy can be used
as pcie-phy or usb3-phy.

Change-Id: Idddeabf32a21560ad134ff9cc0a9a3f406f8d1a7
Signed-off-by: William Wu <william.wu@rock-chips.com>
2018-10-22 11:05:43 +08:00
William Wu
eb0eaabd7c arm64: rk1808_linux_defconfig: enable INNO_COMBPHY
Change-Id: I2291ed84e8670fe6ddfb0201b8e9d9728e9d1123
Signed-off-by: William Wu <william.wu@rock-chips.com>
2018-10-22 11:05:43 +08:00
William Wu
89941824ca phy: add combo phy driver for Rockchip SoCs
This patch implements a combo phy driver for Rockchip SoCs
with Innosilicon IP block. This phy can be used as pcie-phy,
or usb3-phy.

Change-Id: Id2928d43a6210519961a7a27fc84b6eef2e59d74
Signed-off-by: William Wu <william.wu@rock-chips.com>
2018-10-22 10:51:27 +08:00
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