Sugar Zhang
df340d70a0
ASoC: rockchip: vad: Add support for rk3568
...
Change-Id: If484601504c69309ae40a5b43bfae8e31e90239c
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com >
2020-11-13 17:07:49 +08:00
Sugar Zhang
07b7fc9e85
ASoC: rockchip: Add support for Voice Activity Detection
...
This patch replace codec to component.
Change-Id: I6ae63b4d36f2f9b24f0fdf352fdc385ec425b330
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com >
2020-11-13 17:07:49 +08:00
Shunqing Chen
81bf177c4b
arm64: dts: rockchip: rk3568: add lcdc_ctl for rgb
...
Signed-off-by: Shunqing Chen <csq@rock-chips.com >
Change-Id: Iebc7a8ed5a10a662b96bf9ebea86154a532c5b6f
2020-11-13 15:16:02 +08:00
Andy Yan
98ce0ae63a
drm/rockchip: vop2: Fix r2y/csc_mode reigster definition
...
Fix r2y_en and csc_mode_en bit definition of ESMART/SMART.
Change-Id: Ib41858d84161dfe20c4d2452506ce2ef1c22b6f4
Signed-off-by: Andy Yan <andy.yan@rock-chips.com >
2020-11-13 14:20:19 +08:00
Andy Yan
6786fe5aed
arm64: dts: rockchip: rk3568-android: Enable vop multi area
...
Change-Id: I2d6ea725a9201c8ed691bafa0413a34c85145ca2
Signed-off-by: Andy Yan <andy.yan@rock-chips.com >
2020-11-13 14:20:19 +08:00
Cai YiWei
0ae73e8272
media: rockchip: isp/ispp to version v1.2.1
...
Change-Id: Ia371119cd091dbbad1d7c7bd9ab8806f9d755614
Signed-off-by: Cai YiWei <cyw@rock-chips.com >
2020-11-13 11:42:50 +08:00
Cai YiWei
3b4edf5373
media: rockchip: isp: dmatx add yuyv format
...
Change-Id: I35326fe0715ad2277713ae7c3af394acd7aeadd1
Signed-off-by: Cai YiWei <cyw@rock-chips.com >
2020-11-13 11:42:50 +08:00
Wang Jie
15185beedf
arm64: dts: rockchip: rk3568-evb: modify the layout value for mxc6655xa
...
Signed-off-by: Wang Jie <dave.wang@rock-chips.com >
Change-Id: I3c387bc1ca202ba3dc140772d518583b13fae01b
2020-11-13 11:39:19 +08:00
Ding Wei
7fe621b4bb
video: rockchip: mpp: rkvenc: reg_l2 register debug info
...
Change-Id: Ic73571eecd8a1737769fb0c98138c31cacacaf51
Signed-off-by: Ding Wei <leo.ding@rock-chips.com >
2020-11-13 11:33:43 +08:00
Ding Wei
932a0e8311
video: rockchip: mpp: add register for rkvenc translate table
...
Change-Id: Ic56d42c7d610dbd746419acd1e39af47b7f3fe09
Signed-off-by: Ding Wei <leo.ding@rock-chips.com >
2020-11-13 11:33:32 +08:00
Ding Wei
4212aa4087
video: rockchip: mpp: rkvenc issue for devfreq is null
...
CONFIG_PM_DEVFREQ enable, while devfreq is not set in dtsi.
then freq is not actually set.
Change-Id: Ie615d38393155c0c0debdc4522f1d47869ea15a2
Signed-off-by: Ding Wei <leo.ding@rock-chips.com >
2020-11-13 11:33:09 +08:00
Tao Huang
f7b6b29c54
misc: pir-aschip: Fix pir_aschip_remove() section mismatch
...
WARNING: vmlinux.o(.text+0x3907c4): Section mismatch in reference from the function pir_aschip_remove() to the function .exit.text:pir_aschip_proc_release()
The function pir_aschip_remove() references a function in an exit section.
Often the function pir_aschip_proc_release() has valid usage outside the exit section
and the fix is to remove the __exit annotation of pir_aschip_proc_release.
Fixes: 633fa7b962 ("misc: add Aschip PIR Sensor drivers")
Signed-off-by: Tao Huang <huangtao@rock-chips.com >
Change-Id: I459a58755e08b7f418f95985ebed4969c5646d5b
2020-11-13 11:20:14 +08:00
Jianqun Xu
c24b0817cc
arm64: dts: rockchip: rk3568 add gpio alias id
...
Change-Id: I9cd8f98a933abaa2c80fe85e0f7e6d940e297c50
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com >
2020-11-13 11:03:20 +08:00
Xu Hongfei
cf9f0f7046
Revert "media: rockchip: isp: set lgmean related regs for tmo in hdr isr"
...
This reverts commit ce801a9bb6 .
Change-Id: Idfe306735460be39bda996e4a7996bb0e3a03bff
Signed-off-by: Xu Hongfei <xuhf@rock-chips.com >
2020-11-13 10:43:34 +08:00
Hans Yang
b506c435ff
arm64: configs: add rockchip_linux_bifrost.config
...
for linux platform bifrost can not compatible with mali config
Update by:
make ARCH=arm64 rockchip_linux_defconfig
cp .config rockchip_linux.config
make ARCH=arm64 menuconfig
scripts/diffconfig -m rockchip_linux.config .config >
arch/arm64/configs/rockchip_linux_bifrost.config
Usage:
make ARCH=arm64 rockchip_linux_defconfig rockchip_linux_bifrost.config
Signed-off-by: Hans Yang <yhx@rock-chips.com >
Change-Id: Ic5def57928c631c96754bb4dd76404d8cbd1e2e6
2020-11-13 09:55:05 +08:00
Shunqing Chen
621e295887
arm64: rockchip_defconfig: Enable RK628
...
Signed-off-by: Shunqing Chen <csq@rock-chips.com >
Change-Id: Ia5a47f1cc47f3096708f5df57b11ca8d918a365c
2020-11-13 09:52:41 +08:00
Yifeng Zhao
5c308603ba
arm64: configs: rockchip: Enable ACHI
...
before
text data bss dec hex filename
15989635 7547498 2289288 25826421 18a1475 vmlinux
after
text data bss dec hex filename
16139178 7628603 2293512 26061293 18da9ed vmlinux
Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com >
Change-Id: I32bfb693d387589fba6b523c2dd8791a32043ff1
2020-11-13 09:46:29 +08:00
Yifeng Zhao
c258c68ce6
phy: rockchip: naneng-combphy: Add sata configs for CON0~3 regs
...
Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com >
Change-Id: Id91eb780cbe43cf58862c20a1d8c51b7dc4b39f7
2020-11-13 09:45:34 +08:00
Tao Huang
d726782f85
arm64: rockchip_defconfig: update by savedefconfig
...
Fixes: 45805626ea ("arm64: rockchip_defconfig: enable mpp relative codec")
Signed-off-by: Tao Huang <huangtao@rock-chips.com >
Change-Id: I563b906e2e5af6f235e0593bd6113f1892993688
2020-11-13 09:34:20 +08:00
Yifeng Zhao
7e8f733aa5
arm64: dts: rockchip: rk3568-evb1-ddr4-v10: enable combphy2
...
Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com >
Change-Id: Ib4b31f4df0cbf269fb4abfe73cb280797f569fcc
2020-11-13 09:20:03 +08:00
Yifeng Zhao
7be685fb2c
arm64: dts: rockchip: rk3568: modify sata0-sata2 registers address
...
Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com >
Change-Id: I4d704200ef596118a308e03542dae089a3d43dfa
2020-11-13 09:16:45 +08:00
Wang Panzhenzhuan
46028feca7
media: i2c: nvp6324 drivers synchronize with kernel 4.4
...
kernel 4.4 commit ends 9784ddae38
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com >
Change-Id: If7d53e4c6667c09a8db90dca571599f12a2088ce
2020-11-12 21:39:34 +08:00
Andy Yan
4ac05f48e3
drm/rockchip: vop2: Make sure get the current plane state when calculate bandwidth
...
Fix dereference of invalid virtual address when get a cleanuped
plane state:
[ 17.908207] Unable to handle kernel NULL pointer dereference at
virtual address 000000000000000c
[ 17.911560] Mem abort info:
[ 17.911809] ESR = 0x96000006
[ 17.912081] Exception class = DABT (current EL), IL = 32 bits
[ 17.912624] SET = 0, FnV = 0
[ 17.912910] EA = 0, S1PTW = 0
[ 17.913189] Data abort info:
[ 17.913466] ISV = 0, ISS = 0x00000006
[ 17.913809] CM = 0, WnR = 0
[ 17.914083] user pgtable: 4k pages, 39-bit VAs, pgdp =
00000000435c7e47
[ 17.914681] [000000000000000c] pgd=000000007a6d7003,
pud=000000007a6d7003, pmd=0000000000000000
[ 17.915473] Internal error: Oops: 96000006 [#1 ] SMP
[ 17.915907] Modules linked in: bcmdhd
[ 17.916240] Process weston (pid: 548, stack limit =
0x00000000f6c6eefe)
[ 17.916825] CPU: 0 PID: 548 Comm: weston Not tainted 4.19.154 #312
[ 17.917368] Hardware name: Rockchip RK3566 EVB1 DDR4 V10 Linux Board
(DT)
[ 17.917970] pstate: 40400009 (nZcv daif +PAN -UAO)
[ 17.918417] pc : vop2_crtc_bandwidth+0x21c/0x2dc
[ 17.918825] lr : vop2_crtc_bandwidthwhen
[ 17.632811] refcount_t: increment on 0; use-after-free.
[ 17.632883] WARNING: CPU: 0 PID: 546 at lib/refcount.c:153
refcount_inc_checked+0x38/0x44
[ 17.632896] Modules linked in: bcmdhd
[ 17.632922] CPU: 0 PID: 546 Comm: weston Not tainted 4.19.154 #311
[ 17.632934] Hardware name: Rockchip RK3566 EVB1 DDR4 V10 Linux Board
(DT)
[ 17.632943] pstate: 40400009 (nZcv daif +PAN -UAO)
[ 17.632951] pc : refcount_inc_checked+0x38/0x44
[ 17.632958] lr : refcount_inc_checked+0x38/0x44
[ 17.635052] Call trace:
[ 17.635069] refcount_inc_checked+0x38/0x44
[ 17.635088] drm_mode_object_get+0x40/0x4c
[ 17.635104] __drm_atomic_helper_plane_duplicate_state+0x3c/0x50
[ 17.635119] vop2_atomic_plane_duplicate_state+0x4c/0x74
[ 17.635129] drm_atomic_get_plane_state+0xd0/0x154
[ 17.635137] rockchip_atomic_helper_update_plane+0x64/0x128
[ 17.635146] __setplane_atomic+0x148/0x160
[ 17.635160] drm_mode_setplane+0x1f0/0x24c
[ 17.635171] drm_ioctl_kernel+0x8c/0xfc
[ 17.635184] drm_ioctl+0x324/0x3b8
[ 17.635204] vfs_ioctl+0x58/0x68
[ 17.635215] do_vfs_ioctl+0xb4/0x9d4
[ 17.635228] ksys_ioctl+0x50/0x80
[ 17.635237] __arm64_sys_ioctl+0x28/0x38
[ 17.635255] el0_svc_common.constprop.0+0xe8/0x168
[ 17.635267] el0_svc_handler+0x70/0x8c
[ 17.635282] el0_svc+0x8/0xc
Change-Id: I95f6445ff5008c3505ad0cc68b2d005a196cd881
Signed-off-by: Andy Yan <andy.yan@rock-chips.com >
2020-11-12 21:33:08 +08:00
Shawn Lin
2f9fd14733
PCI: rockchip: dw: Increase delay for power to make link stable
...
Change-Id: Ib3369aeac9f99004a0b3f5831966cb04c0c7f750
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com >
2020-11-12 19:12:09 +08:00
Shawn Lin
537a1fadc3
arm64: dts: rockchip: rk3568: comment out bifurcation mode for PCIe30
...
We don't need it and should add this if needed in the evb boards. But
now we leave a comment in rk3568.dtsi to make a reference for BSP
developers.
Change-Id: Idf829f2833dbc8e631b15ecc93baddc72d125d3e
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com >
2020-11-12 19:11:38 +08:00
Shawn Lin
4d3d4ee8b4
arm64: dts: rockchip: Move PCIe2x1 from rk3568-evb1-ddr4-v10 to rk3566-evb1-ddr4-v10
...
Change-Id: Ia795bb888c8cda5d0c400e358adafc4e70142489
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com >
2020-11-12 19:10:55 +08:00
Shawn Lin
75ddeb46da
arm64: dts: rockchip: rk3568-evb1-ddr4-v10: add pcie3x2 node support
...
Change-Id: Icb63913d6a571f81a5128476a41a3517222cf369
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com >
2020-11-12 19:07:37 +08:00
Shawn Lin
eabde4b76f
phy: phy-rockchip-snps-pcie3: Fix PMA output clamp mode
...
PMA output clamp mode should be configured.
Change-Id: I3f622d8dbde00b7f91caf9ba1c3868d6f9ad8d3e
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com >
2020-11-12 19:06:35 +08:00
Shawn Lin
83294f1897
phy: rockchip: naneng-combphy: Add pcie configs for CON0~3 regs
...
Change-Id: I2ac42b888c4de9e373c9de91e5cdb1d2c18cc3c2
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com >
2020-11-12 19:06:35 +08:00
Simon Xue
8491668b12
iommu/rockchip: fix v2 log_iova
...
Change-Id: I75a5ae3424b41d62c28143dc4d14d3cb095a726b
Signed-off-by: Simon Xue <xxm@rock-chips.com >
2020-11-12 19:05:56 +08:00
Cai YiWei
8430959208
media: rockchip: ispp: fix can't work due to last abnormal exit
...
Change-Id: Id389aef8e9506cef7aa0872dd34a7925480f87f0
Signed-off-by: Cai YiWei <cyw@rock-chips.com >
2020-11-12 19:02:44 +08:00
Elaine Zhang
ab0b7f6bfa
arm64: dts: rockchip: rk3568: fix up the pcie soft reset ID
...
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com >
Change-Id: I479ef28f60e913c894b37dab0eccfd5d3664de04
2020-11-12 18:23:06 +08:00
Elaine Zhang
7e7e372271
dt-bindings: clock: rk3568: update the pcie soft reset id
...
Updates missing parts of the TRM.
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com >
Change-Id: Ia24cd2986f7b0f11884260132aa4f5782eb58c52
2020-11-12 18:23:05 +08:00
Jason Song
b86361fa4e
arm64: rockchip_defconfig: Enable CONFIG_TOUCHSCREEN_FTS
...
Enable focaltech touch driver used on Rockchip RK3566 RKG11 2K TABLET.
Signed-off-by: Jason Song <sxj@rock-chips.com >
Change-Id: I4c25d9a31f697b49e36d3d653435013fe57f9c84
2020-11-12 10:17:10 +00:00
Wyon Bi
6199db7ccc
drm/bridge: analogix_dp: power on phy before aux transfer
...
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com >
Change-Id: Ie83f914ac149a9384dc0ca529fb3a88c8d3ac845
2020-11-12 17:33:23 +08:00
Wyon Bi
c582c1bfbb
drm/rockchip: analogix_dp: Accept drm_of_find_panel_or_bridge failure
...
Not having an endpoint bound in DT should not cause a failure here,
there are fallbacks. So explicitly accept a missing endpoint.
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com >
Change-Id: Iea7e2456de05b76cf6d94232ab9bb75425cfffc0
2020-11-12 17:30:40 +08:00
Wyon Bi
14ba9f8642
drm/bridge: analogix_dp: Fix enhanced framing capability in fast training
...
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com >
Change-Id: Ib192b52e2421d558c4c7fd5e6683bbaf99a43d5c
2020-11-12 17:30:07 +08:00
Elaine Zhang
23dfbd105e
clk: rockchip: rk3568 export clk id CPLL_333M
...
cpll_333m need change rate by ebc.
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com >
Change-Id: I39cf3b436d0822c5e9be74f0fa181a74960c3e57
2020-11-12 17:28:31 +08:00
Weiguo Hu
c7a7525815
net: wireless: rockchip_wlan: realtek wifi: avoid illegal argument when called by ioctl SIOCDEVPRIVATE read
...
Illegal argument will cause following kernel panic.
Call trace:
phy_RFSerialRead_8723B
PHY_QueryRFReg_8723B
rtw_hal_read_rfreg
rtw_wx_read_rf
_rtw_ioctl_wext_private
rtw_ioctl
dev_ifsioc
dev_ioctl
CNVD-C-2020-259506
Signed-off-by: Weiguo Hu <hwg@rock-chips.com >
Change-Id: I27e7a453a0156371fb96c764df99e8a77dce87fa
2020-11-12 17:21:08 +08:00
Wyon Bi
54d2c4a177
arm64: dts: rockchip: rk3568: Drop unused xin_osc0_edpphy
...
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com >
Change-Id: I117e08e6ab7a7b3655692cda9deda08931b53b18
2020-11-12 17:09:54 +08:00
Jason Song
3161226167
driver: input: screentouch: support focaltech touch.
...
Signed-off-by: Jason Song <sxj@rock-chips.com >
Change-Id: Idd0d772225ed11a5080649d8e962e5cb4c2b89b7
2020-11-12 17:08:44 +08:00
Shunqing Chen
f701ad8fcf
arm64: dts: rockchip: rk3566-evb1-ddr4-v10: enable hdmi
...
Signed-off-by: Shunqing Chen <csq@rock-chips.com >
Change-Id: Id8da4262ffa855c70a1ec5b71ea74236c681fe17
2020-11-12 17:03:16 +08:00
Caesar Wang
41c9c34159
arm64: dts: rockchip: adapter boards configuration for rk3568
...
Signed-off-by: Caesar Wang <wxt@rock-chips.com >
Change-Id: I6dc5d3051003aa753f16079266838532532a21f5
2020-11-12 15:47:58 +08:00
Elaine Zhang
1a20aa5621
clk: rockchip: rk3568: fix up the pciephy_ref setting rate error
...
Pmucru updates missing parts of the TRM.
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com >
Change-Id: I8fdd5d2b1feed2ab40e2b00f77a30686df56dd96
2020-11-12 15:38:49 +08:00
Xing Zheng
ea0ed9f42b
arm64/configs: enable Audio references on Linux configs for RK356X-EVB
...
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com >
Change-Id: Icae97bbbde45a558d23894d95bdc34784725e5d5
2020-11-12 15:35:12 +08:00
Caesar Wang
d95072a003
arm64: dts: rockchip: adapter boards configuration for rk3566
...
Signed-off-by: Caesar Wang <wxt@rock-chips.com >
Change-Id: I13acc6238bf7512a8327c23dc1a0991d23d48ddf
2020-11-12 15:34:10 +08:00
David Wu
8f4b73ffda
arm64: dts: rockchip: rk3568-evb: Change the delayline for gmac0 and gmac1
...
Change-Id: Ia5ee198234562045c028af8d3c3b6f3210efe4ac
Signed-off-by: David Wu <david.wu@rock-chips.com >
2020-11-12 15:19:21 +08:00
Algea Cao
a46506e8d1
drm: rockchip: dw-hdmi: Add ddc_en_reg description
...
Fixes: cdbb863092 ("drm: rockchip: dw-hdmi: Enable 3568 hdmi ddc")
Signed-off-by: Algea Cao <algea.cao@rock-chips.com >
Change-Id: I424a7235b775aed9510831e6df1a3d9a012d6923
2020-11-12 15:12:33 +08:00
Algea Cao
2665bc4a84
drm: rockchip: dw-hdmi: Introduce HCLK_VOP for RK3566/RK3568
...
Signed-off-by: Algea Cao <algea.cao@rock-chips.com >
Change-Id: Ifcc15490b135692d955500114b59cbf8c326cacd
2020-11-12 15:03:14 +08:00
Algea Cao
aa501b29ee
arm64: dts: rockchip: rk3568: Add HCLK_VOP for hdmi
...
If hdmi doesn't enable HCLK_VOP, clock reference
count will be abnormal and may cause system stuck.
Signed-off-by: Algea Cao <algea.cao@rock-chips.com >
Change-Id: Ibe01d029d1ae69f9f32d4cd0eb149bf72a662381
2020-11-12 15:02:34 +08:00