Commit Graph

860606 Commits

Author SHA1 Message Date
Luo Wei
61ae54415d arm64: dts: rockchip: add IR receiver dts for rk3568-evb2 board
Signed-off-by: Luo Wei <lw@rock-chips.com>
Change-Id: Iff150afdbe72858fbf98af59e037344d9b785dec
2020-12-08 10:29:47 +08:00
Jianqun Xu
b4a884a2ff ARM: dts: rockchip: rv1126-pinctrl update by new version pin2dts
The pin2dts tool has fixed some bugs, do generate the rv1126-pinctrl
codes with new tool.

Change-Id: Ie932397064bc8f0022cbdf9a6e8e4242cd4d8ad8
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2020-12-08 09:40:30 +08:00
Wu Liangqing
e28e51dabc driver: input: touchscreen: gslx680_pad add work for fw download
Change-Id: I06842c0fc9bd3a7c5b0bdf962e7663b3662ccfbc
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
2020-12-08 09:25:43 +08:00
Andy Yan
de0105f86b arm64: dts: rockchip: set ACLK_VOP to 500M for rk3568
Change-Id: I63700a310af396ee54f71a94e6d53941b33c1b8a
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
2020-12-07 18:08:50 +08:00
Elaine Zhang
7bfac96e1b clk: rockchip: rk3568: add CLK_SET_RATE_NO_REPARENT flag for clk_rtc_32k
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: I7ccec23c195f7901cc148b621a4580dbf8bc2770
2020-12-07 17:17:16 +08:00
Sandy Huang
f218d7cbe6 drm/bridge: rk630: move bt656 decoder enable to last config
Change-Id: I7e3e153f71931c448a2f7ecd01395b73369e934a
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2020-12-07 16:22:42 +08:00
Sandy Huang
2ffcd9119d drm/rockchip: vop2: update output mode for bt656
Change-Id: Ic6526fe070f05579b013b77a8ea6dd921440cbd8
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2020-12-07 16:22:35 +08:00
Wang Panzhenzhuan
2a87dcbb15 media: i2c: ov8858: fix unexpected id issue
ov8858 checked unexpected sensor id, while ret may be 0;
thus it will continue register, but ov8858_global_regs
& supported_modes are still null pointer.
This results crash in ov8858_s_power function, when ov8858_global_regs
& supported_modes are called; so fix it.

Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: Idb65a593f526572f4a4423464a1daf0299a3aa5c
2020-12-07 15:35:36 +08:00
Wu Liangqing
99e10612ff arm64: dts: rockchip: add rk3568-evb2-lp4x-v10 for rk3568 evb2
Change-Id: Ic8b384e260abf71b4e9f1f030f46105554558892
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
2020-12-07 15:33:09 +08:00
Binyuan Lan
4344dfe716 arm64: configs: rockchip_defconfig: enable es7202 & es7243e
This is needed by rk3566-evb2 mic array board

Signed-off-by: Binyuan Lan <lby@rock-chips.com>
Change-Id: Iefbf9d411af43a08be491d5a58a226ef83678e8a
2020-12-07 14:27:08 +08:00
Shawn Lin
b11a801fd6 mmc: sdhci-of-dwcmshc: Reset the previous DLL settings
Reset the previous DLL settings left out from loader in case
of running initial booting with mismatch DLL settings.

Change-Id: Icba9ddcafc3969f7869a6ba31a017db6be0c885e
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
2020-12-07 14:26:31 +08:00
Wyon Bi
a3a274057c arm64: dts: rockchip: rk3566-evb1-ddr4-v10: Add edp2vga bridge support
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: I9d61c86972027431aa7a043887e0a28df6a86370
2020-12-07 14:25:42 +08:00
Wyon Bi
dabb759354 arm64: dts: rockchip: rk3568-evb1-ddr4-v10: Add edp2vga bridge support
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: Iee2bd1c111fa133364493ad1a679c4dd6f5a756a
2020-12-07 14:25:42 +08:00
Ren Jianing
e29b8140d4 usb: gadget: f_uac: update maxpacket in function bind
This patch fixes the bug of RV1126 USB crash when configed as
UVC + UAC + RNDIS + ADB. If we resize txfifo before opening
UAC stream, the maxpacket of epin will be the default value
1024 and txfifo will exceed the maximum limit.

Fixes: e658b2131e ("usb: dwc3: gadget: fix tx fifos resize for disabled eps")
Signed-off-by: Ren Jianing <jianing.ren@rock-chips.com>
Change-Id: I1e892b11a0bdda2877d3e17148867d21cb68238c
2020-12-07 14:20:11 +08:00
Andy Yan
278370effb drm/rockchip: vop2: Add afbc offset transformat support
This is a transformat of non-16 pixel align.

Change-Id: If132f4f049cb4514c9684e0f1d5103da64abe03a
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
2020-12-07 14:19:08 +08:00
Bian Jin chen
cc17d59237 ARM: rockchip_defconfig: enable CONFIG_HID_NINTENDO by default
Test:
    android.hardware.input.cts.tests.NintendoSwitchProTest#testAllKeys
    android.hardware.input.cts.tests.NintendoSwitchProTest#testAllMotions

This config will enable the Nintendo Switch Pro controller driver.

Signed-off-by: Bian Jin chen <kenjc.bian@rock-chips.com>
Change-Id: I4a29d458c3a0d82dec33e4b3990888217d580298
2020-12-07 14:18:06 +08:00
Bian Jin chen
1094aefeb7 arm64: rockchip_defconfig: enable CONFIG_HID_NINTENDO by default
Test:
    android.hardware.input.cts.tests.NintendoSwitchProTest#testAllKeys
    android.hardware.input.cts.tests.NintendoSwitchProTest#testAllMotions

This config will enable the Nintendo Switch Pro controller driver.

Signed-off-by: Bian Jin chen <kenjc.bian@rock-chips.com>
Change-Id: I3347b07b263559fccf0b94d4253f00cddfb547c6
2020-12-07 14:14:41 +08:00
Elaine Zhang
232e59ccd7 arm64: dts: rockchip: rk3568: init more clock frequencies
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: I334c4e249bd560d56ee00fdfb5af241aecc5a083
2020-12-07 09:19:42 +08:00
Elaine Zhang
dc6751a027 clk: rockchip: rk3568: add CLK_SET_RATE_NO_REPARENT flag for rkvdec
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: I2126cd5833319dfdd097259a340d4c21480e4c4d
2020-12-07 09:19:14 +08:00
Elaine Zhang
0657602584 clk: rockchip: rk3568: export cpll_xxx clk id for more function
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: I5f310f9b857623a5a204ab9b5f0a4befde894684
2020-12-07 09:18:27 +08:00
Binyuan Lan
3b060980d1 arm64: dts: rockchip: add rk3566-evb2-lp4x-v10-mic-array board
Signed-off-by: Binyuan Lan <lby@rock-chips.com>
Change-Id: Ief805a80214539935e91572f00cc0931306a6164
2020-12-05 18:33:10 +08:00
Binyuan Lan
fcfc85821e ASoC: es7243e: modify the names of compatible
Signed-off-by: Binyuan Lan <lby@rock-chips.com>
Change-Id: I19d447977675c71f034cb00db1368fb016546636
2020-12-05 18:04:53 +08:00
Binyuan Lan
a5009a0dbe ASoC: es7202: modify the names of compatible
Signed-off-by: Binyuan Lan <lby@rock-chips.com>
Change-Id: Ia4ee00e92e52da293d9ce45518f89d31359e2d8b
2020-12-05 18:03:35 +08:00
Binyuan Lan
02a49287b0 ASoC: es7243e: add es7243e I2S adc support
ES7243E is 2-ch ADC with I2S interface for Microphone Array

Signed-off-by: Binyuan Lan <lby@rock-chips.com>
Change-Id: I3c61f5feccad9362e2859d7646e88a0e990c998c
2020-12-05 15:25:46 +08:00
Binyuan Lan
8b96ac442b ASoC: es7202: add es7202 pdm adc support
ES7202 is 2-ch ADC with PDM interface

Signed-off-by: Binyuan Lan <lby@rock-chips.com>
Change-Id: Id204f592ed91bbdddd71b6dda2e6e0bbae4bb9e8
2020-12-05 15:25:46 +08:00
Wu Liangqing
8dd999589d arm64: dts: rockchip: rk3566-rk817-tablet: set i2c3 clk 400K
improve gslx tp download fw speed on resume

Change-Id: Ie87631de5227bc44d53e66eeb52ddc3a6afb5c0e
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
2020-12-05 15:18:19 +08:00
Liang Chen
caeb5624bb arm64: dts: rockchip: adjust include file for rk356x board
Change-Id: I74ff7ae2017bd8e016cbbaec2a51d50412d3090c
Signed-off-by: Liang Chen <cl@rock-chips.com>
2020-12-05 14:36:55 +08:00
Liang Chen
5a2cf63774 arm64: dts: rockchip: add core dtsi for RK3566 Soc
RK3566 is a Soc from Rockchip, which embedded with quad
ARM Cortex-A55.

This patch add basic core dtsi file for RK3566.

Change-Id: Ide02369e6be3515fb7ec62bea4069f476374f897
Signed-off-by: Liang Chen <cl@rock-chips.com>
2020-12-05 14:36:55 +08:00
Wang Panzhenzhuan
8086806930 pinctrl: rockchip: fix rk3568 gpio4a iomux h issue
RK3288_GRF_GPIO6C_IOMUX address is 0x64, if not jugged type RK3288;
it will set rk3568 GRF_GPIO4A_IOMUX_H reg to 0x0 after resume.
then cause gpio4 a4/5/6/7 iomux abnormal.

Fixes: 8dca933127 ("pinctrl: rockchip: save and restore gpio6_c6 pinmux in suspend/resume")
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: Icb7700ff63e3cb8ca46025e6efd260d91608f23f
2020-12-04 19:18:56 +08:00
Sandy Huang
b1c0c4e368 drm/rockchip: vop2: init yuv overlay mode
post bcsh csc module need to know win overlay at yuv or rgb domain.

Change-Id: I246c22ddf0d02f48f515947a48ef058dca36c7a5
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2020-12-04 15:58:05 +08:00
David Wu
89a672b2a9 arm64: dts: rockchip: Fix gmac1 rgmii delayline and pinctrl for rk3566-evb3
Change-Id: I57b64bc3e7121fa73df29fccced7b9905b1cf679
Signed-off-by: David Wu <david.wu@rock-chips.com>
2020-12-04 14:44:46 +08:00
Liang Chen
a914cbad83 arm64: dts: rockchip: rk3568: adjust cpu opp-table
Change-Id: I451e910f18374c543ed1bb5b7766de07664161d7
Signed-off-by: Liang Chen <cl@rock-chips.com>
2020-12-04 14:35:48 +08:00
Liang Chen
10c00e927a clk: rockchip: rk3568: add more frequency select pvtpll for clk core
Change-Id: Ic3af26805e19004c4f82e0245dc96f42861f6086
Signed-off-by: Liang Chen <cl@rock-chips.com>
2020-12-04 14:35:48 +08:00
Andy Yan
63346cd759 drm/rockchip: vop2: Change dst alpha blend mode to per pixel mode
This is changed by rihui.bao@rock-chips.com

Change-Id: I7d9ac1ebef93fbeff338baf0d92daf838223ac5f
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
2020-12-04 11:58:53 +08:00
Andy Yan
008ab5b494 drm/rockchip: vop2: Add configure for pre overlay alpha
Change-Id: Ic304ff7424445f49fef22e6bed45c81c72488ec9
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
2020-12-04 11:56:49 +08:00
Andy Yan
133eccd42b drm/rockchip: vop2: Add alpha support for cluster sub window
Change-Id: If4c3e467bb53b3aacdc46f7387eab764abb4f794
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
2020-12-04 11:51:28 +08:00
Andy Yan
c398b4a772 drm/rockchip: vop2: Gather cluster ctrl register
Two sub windows in a cluster share same ctrl register bit.

Change-Id: I0a123fd3a1f63bbf0d6abea557e6024a99adb4cb
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
2020-12-04 11:39:37 +08:00
Wang Panzhenzhuan
629adade0f arm64: dts: rockchip: rk3566-rk817-tablet: fix camera ov8858 suspend
issues

cam_clkout0 correponding gpio4 A7 pinctrl may changed,
when wakedup from deep sleep. so artificial to set pinctrl.

Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: Iad200cbc6685cb18217a7577746bef122fa51574
2020-12-04 11:09:06 +08:00
Jon Lin
fb0f0e5330 spi: rockchip: Wait for STB status in slave mode tx_xfer
Change-Id: I39fe2b9e5a84304e7d0320842399a02a4b0743a0
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2020-12-04 10:31:48 +08:00
Jon Lin
b8b5e2f813 drivers: rkflash: Support new spinor
1.Support XT25F256BSFIGU, P25Q32SH-SSH-IT
2.Fix PUYA devices property

Change-Id: Iaea56cf6b0d8cfc10e49c7c2847d862fa7a1d75b
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2020-12-04 10:30:13 +08:00
Jon Lin
9b722ef1bb drivers: rkflash: Support spinor prog_addr_lines
Change-Id: I64ec763fdd420486b909bb1c11523fda651a3100
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2020-12-04 10:30:13 +08:00
Jon Lin
c7e05eab36 drivers: rkflash: Support sfc DLL api
Change-Id: Id4aa6d86ee0fe0a6d4d70ce75d9f15f8be749a1c
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2020-12-04 10:30:13 +08:00
Andy Yan
75cc68bce9 drm/rockchip: vop2: Fix yuv 10 bit on cluster
YUV 10 bit config value on Cluster is different
with Esmart/Smart.

Change-Id: If334f347b6d1759650113b36327a49a850f03e0e
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
2020-12-04 09:44:45 +08:00
Huibin Hong
85f16cac11 arm64: dts: rockchip: rk3568-linux: add debug and cspmu
debug node is external debug
cspmu is coresight pmu

Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
Change-Id: I4cfb9cb3c40fa5bce8feb868432ed5210783cdd5
2020-12-03 19:34:05 +08:00
Huibin Hong
0228b49dd5 arm64: dts: rockchip: rk3568-android: add debug and cspmu
debug node is external debug
cspmu is coresight pmu

Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
Change-Id: If74d80ba30b007b0364d715ae76624a30fe4a959
2020-12-03 19:34:05 +08:00
Huibin Hong
ada1d837e6 soc: rockchip: debug: support pmu pcsr for rk356x
RK356x doesn't support EDPCSR, but support pmupcsr of pmu

Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
Change-Id: If588f4cc11909a57ded61937e4266ab7fd3fab17
2020-12-03 19:34:05 +08:00
Jon Lin
40bf5c914a spi: rockchip-test: Support 8 devices
Change-Id: I1599111c3a70e185a216b2f592aecffd28259e11
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2020-12-03 17:58:45 +08:00
Jon Lin
3a6ad2d61b spi: rockchip: Set rx_fifo interrupt waterline base on transfer item
Change-Id: Ia141ce99b14f8728302535d0748af66d597a2fdc
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2020-12-03 17:58:45 +08:00
Shawn Lin
9dc5ea5543 phy: rockchip: naneng-combphy: Fix support for pipe clock settings
pipe clock settings were done before PCIe's and SATA's catch-all
pipe settings. So it would be covered by con1_for_pcie and
con1_for_sata. Fix this by moving pipe clock settings to the end.

Change-Id: I19a8943b6a99d8e4ef198345ec3f62bdac491c58
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
2020-12-03 17:03:53 +08:00
Zefa Chen
c321f37fe1 media: i2c: ov5695 fixed exp_def error value, needs exp_def <= vts_def-4
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I01b54192e672657ff655b4b47f7333c3f1ae631d
2020-12-03 17:00:54 +08:00