Commit Graph

1073275 Commits

Author SHA1 Message Date
Shawn Lin
823a0bdfec arm64: dts: rockchip: Add power domain for RK3399 PCIe node
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: I1a712e7b81bca6302ca83510bedf715f0d282c92
2022-12-21 09:49:35 +08:00
Sandy Huang
01d5ef7d1e drm/rockchip: vop2: clk init is only used at rk3588
clk init is only used at rk3588 but rk3528 version is bigger
then rk3588

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I0730242f223b6ab3b48765c13fe4ff1ab2803570
2022-12-21 09:47:46 +08:00
Elaine Zhang
053d015d34 arm64: dts: rockchip: rk3588s: set spdif2\5 to 12M by default
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: I49eda13a3122e25eae362c943a2e1973ac1babf8
2022-12-20 18:05:11 +08:00
Elaine Zhang
f260c6e910 Revert "clk: rockchip: update the frac clk parent"
This reverts commit 7a22993077.

Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: I7e300cd51e7390ad63f7d3215983000be940491c
2022-12-20 18:05:06 +08:00
Zefa Chen
4bd12e6711 media: rockchip: vicap fix error state about get clk/rst
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I4e19314f273f9d7077d9067c32d13c030b95dffc
2022-12-20 18:04:18 +08:00
Cai YiWei
62c5f6364d media: rockchip: isp: fix iommu err for stream stop
Change-Id: Ib7f02300b466e2217a88041031cf11d292337312
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2022-12-20 18:00:19 +08:00
Cai YiWei
937782ee49 media: rockchip: isp: no support rgb8888 for isp30
Change-Id: Icf3849d9919aad9eaca590936c14734c3dd795f4
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2022-12-20 18:00:19 +08:00
Elaine Zhang
307b3adba4 clk: rockchip: add branch_gate_no_set_rate
Add branch_gate_no_set_rate for gate clks not
allowed to support setting rate.

Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: Ic940acbc035804a011e59b8e1a0d440168e18c26
2022-12-20 16:35:46 +08:00
Wu Liangqing
1134192ff2 arm64: dts: rockhip: rk3588-h0: disabled leds
Change-Id: I300b9ab34946ea3cddd0d994ac0b9afc1edc525d
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
2022-12-20 09:56:18 +08:00
Cai YiWei
78b5218880 media: rockchip: isp: merge dual dhaz config chang to user for unite mode
Change-Id: If90e930f55e7dc3fccd06f4e37609a7ef0dfcdf4
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2022-12-19 16:51:16 +08:00
Cai YiWei
05374081e5 media: rockchip: isp: fix lsc table read by isp for multi sensor
Change-Id: Ic04c7521ee17806d74732aa852e9347411f92281
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2022-12-19 16:51:16 +08:00
Cai YiWei
fb022c61ad media: rockchip: isp: fix mulit isp x3 mode
Change-Id: I2b8adb5f2e11772b72e2ab5e66c97fb16d820a43
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2022-12-19 16:51:16 +08:00
Cai YiWei
96343bece8 media: rockchip: isp: sync stop to dmarx for isp stop
Change-Id: Iec5ebdb3e764f48fabcc9503941c46a0aff59951
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2022-12-19 16:51:16 +08:00
Cai YiWei
410d81458c media: rockchip: isp: isp30 3a to ddr for readback mode
Change-Id: Idf3e67aa2921e1578d1983628590c3aa29142b17
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2022-12-19 16:51:16 +08:00
Cai YiWei
3800ed1278 media: rockchip: isp: api to force enum multi isp resolution
Change-Id: Idcbbdc3d4324fc7b1dd3c27eab3a1cab6e25f1bb
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2022-12-19 16:51:16 +08:00
Cai YiWei
d22aff3bfa media: rockchip: remove cif/isp/ispp hw SYSTEM_SLEEP_PM_OPS
fix suspend error by vir dev and hw dev run SYSTEM_SLEEP_PM_OPS

Change-Id: I10971c3f43debf082278cf13aacf68eb97d2f0c3
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2022-12-19 16:51:16 +08:00
Liang Chen
312e48609f arm64: dts: rockchip: rk3568: adjust opp-table for venc/bus-npu
Signed-off-by: Liang Chen <cl@rock-chips.com>
Change-Id: I3d888fb6cbb48f3a02722d412c98bc7d5f29502a
2022-12-19 15:11:40 +08:00
Yu Qiaowei
e4811169f5 video: rockchip: rga3: add RGA3 limit on offset
Requires x_offset + act_width < max_act_width, y_offset + act_height < max_act_height on RGA3.

Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I332d8f6c804f1228c0aa7b24c7f0f2dc3e42c1d9
2022-12-19 15:04:25 +08:00
Su Yuefu
88d85896c3 media: i2c: add sc2336 sensor driver
Signed-off-by: Su Yuefu <yuefu.su@rock-chips.com>
Change-Id: Ifc5a2353624f4acea6e4faa06ff160203e0fdb2c
2022-12-19 15:03:53 +08:00
Su Yuefu
cff4b2f03a media: i2c: sc301iot fixs brightness change
1、Fixes brightness is increasing to a stable value when
   sensor’s exp reg is fixed value
2、Fixes cross stripe in the first 15 frame

this patch will delay 3ms before frame start

Signed-off-by: Su Yuefu <yuefu.su@rock-chips.com>
Change-Id: I40ea052ae9e4677b5dc0451ce683f5445feeeed5
2022-12-19 14:38:41 +08:00
Su Yuefu
e7b2f688ba media: i2c: sc301iot support for fastboot
Signed-off-by: Su Yuefu <yuefu.su@rock-chips.com>
Change-Id: I242fa36afb685b97cb66cbb47996388eeb2d5727
2022-12-19 14:38:41 +08:00
Sugar Zhang
d49058266c arm64: dts: rockchip: rk3588: Workaround for DTS-HD Bitstream on Denon
BACKGROUND:
DTS-HD Bitstream sounds noise occasionally on Denon-AVR-X2700H,
and we found this happen sometime on PLL(frac mode), But it's gone
on PLL(int mode).

This patch Assign parent of I2S5/6 which used for HDMI0/1 to GPLL
to fix DTS-HD Bitstream noise occasionally on Denon-AVR-X2700H.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I071409278ab983af3c32e7b282de1e2819bb706b
2022-12-19 14:33:27 +08:00
Sugar Zhang
932e81825b clk: rockchip: rk3588: Workaround for DTS-HD Bitstream on Denon
BACKGROUND:
DTS-HD Bitstream sounds noise occasionally on Denon-AVR-X2700H,
and we found this happen sometime on PLL(frac mode), But it's gone
on PLL(int mode).

This patch Adds "CLK_SET_RATE_NO_REPARENT" for I2S5/6 which used
for HDMI0/1 to make its parent fixed from GPLL(int mode) to fix
DTS-HD Bitstream noise occasionally on Denon-AVR-X2700H.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I5694c0a7839df817fd32b82ce69450f0eebdcf77
2022-12-19 14:33:16 +08:00
Andy Yan
09d66b0809 arm64: dts: rockchip: rk3588-evb1: Enable hdmi logo
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Change-Id: I0709a3d963df792ddefe4524cf2d044d7cdef2d7
2022-12-19 14:21:33 +08:00
Dexiong Zhang
6e46655407 ARM: dts: rockchip: rv1103g-battery-ipc-v11: pwm11 use pwm11m1_pins
Signed-off-by: Dexiong Zhang <dexiong.zhang@rock-chips.com>
Change-Id: I5a937ed99a98fd03be79405a95739690a1b04f1c
2022-12-19 14:16:51 +08:00
William Wu
15b317ff84 usb: dwc2: gadget: Disable nak interrupt when get first isoc in token
The dwc2 driver use the nak interrupt for the starting point
of isoc-in transfer. The first nak interrupt for isoc-in means
that in token has arrived and the dwc2 driver can obtain the
(micro) frame of the token to set the even/odd (micro) frame
field of DIEPCTL.

However, on some platforms (e.g Rockchip rk3308) which don't
support the "OTG_MULTI_PROC_INTRPT", it means that all device
endpoints share the same nak mask and interrupt. If the nak
interrupt is always enabled, it may trigger nak interrupt storm
by other endpoints except the isoc-in endpoint. So we disable
the nak interrupt when get first isoc in token if the feature
"OTG_MULTI_PROC_INTRPT" isn't enabled.

Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: I99c71a5e0d7903346fd8f71619b6736c3181c0ec
2022-12-19 09:37:39 +08:00
Jianwei Fan
13232a5aa4 media: i2c: ov16a10: add camera sensor driver
Change-Id: Id142d078bee8faa7e5ce313931170901c5549272
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
2022-12-16 09:45:11 +00:00
Sach Lin
0ea23cba57 misc: rk803: add retry while reading device id.
Signed-off-by: Sach Lin <sach.lin@rock-chips.com>
Change-Id: I07f5813f0ded6f1bf69a44820746de63faffe90f
2022-12-16 17:06:24 +08:00
Lin Jinhan
e0cfc605b3 hwrng: rockchip: add RK_RNG support
Use "rockchip,rkrng" as compatible.

Change-Id: I261f4da9d100eb3a693bf4cf65117422773e8a8c
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
2022-12-16 10:15:56 +08:00
Lin Jinhan
fa61a34f45 crypto: rockchip: add crypto v4 support
Change-Id: Id214c160efef0ba5bbf4c5a6cdbeeb04ef8cd138
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
2022-12-16 09:22:07 +08:00
Chandler Chen
42c7305fbc video: rockchip: mpp: rkvdec: add task timing & timeout for rkvdec
Signed-off-by: Chandler Chen <chandler.chen@rock-chips.com>
Change-Id: I4834711a4bed494dbbf2663a8b56d42fb4380bbc
2022-12-15 18:18:35 +08:00
Tao Huang
55a560acd6 clk: rockchip: rk3399: allow insmod to succeed if no DT match
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I9247fcfddedbb6215b254fc3623d75593f9f757f
2022-12-15 18:15:15 +08:00
Yu Qiaowei
57f2a778a0 video: rockchip: rga3: fix mpi_commit failed.
Because struct rga_external_buffer is not initialized before importbuffer.

Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I51e341b80aee6bb4ea70eee4f6c9a247947a8f85
2022-12-15 18:14:11 +08:00
Tao Huang
190db3b49f clk: rockchip: px30: allow insmod to succeed if no DT match
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I2625679beff77d3eabe9d50b94d232eca500cfaf
2022-12-15 17:17:45 +08:00
Tao Huang
26daf547e4 soc: rockchip: cpuinfo: Export rockchip_soc_id_init symbol
Allow clk modules call rockchip_soc_id_init().

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I5986e98167ed059239ef9fc28f118e94ed0e6b8d
2022-12-15 17:17:45 +08:00
Simon Xue
a7d36d67ed iommu/rockchip: refactor shootdown_entire to simplify code
Change-Id: I87325ddd76b41940af50c756a3ecab65a90797cc
Signed-off-by: Simon Xue <xxm@rock-chips.com>
2022-12-15 11:12:36 +08:00
Jianlong Wang
d9796b9fe5 net: phy: add motorcomm yt8512 support
Change-Id: If442e4c3df113ba453292a8ed2c20b9634e0535b
Signed-off-by: Jianlong Wang <jianlong.wang@rock-chips.com>
2022-12-14 09:25:04 +08:00
Andy Yan
6cf026d1c9 drm/rockchip: vop2: Fix a pd on/off at win async update
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Change-Id: I417d729a3138d55ad9f381e8eaf01bb3aa867e89
2022-12-14 09:23:54 +08:00
Ziyuan Xu
fba2070492 i2c: rk3x: adjust the divisor after mcu is done for thunder-boot
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
Change-Id: If83590a7d0e30d611837f82df8f9b7ea09907c6d
2022-12-13 18:47:16 +08:00
Damon Ding
2edabfb256 drm/rockchip: vop: Use clipped src/dst coordinates
Some linux app(cusor) may set negative coordinates(crtc_x/y)

And some linux app(mpv) may set coordinates outside the screen.

These are both unsupported on rockchip vop.

so we use clipped coordinates here.

Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: Id2322113f0973271997575678cda478a9987266b
2022-12-13 18:47:00 +08:00
Zefa Chen
34ea3eb483 media: rockchip: vicap: toisp mode add memory compact config
if isp work in isp_unit mode and hdr mode and online mode,
buffer addr for half frame of right side must 16 byte align,
otherwise, the buffer to ddr need config to uncompact

Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I29792f2fbeed410d0c640b8bee27f741915086be
2022-12-13 18:44:32 +08:00
Cai YiWei
b93d530269 media: rockchip: isp: online rx add memory compact or no
Change-Id: I397741f023e1cd707e3d4f2ada32ee8b326303f0
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2022-12-13 18:41:31 +08:00
Cai YiWei
2570d9e1ed media: rockchip: isp: fix isp32 cmsk feature
Change-Id: I8706e04509b2c7e8a46fcf50be477f9c7e4e766a
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2022-12-13 15:20:57 +08:00
Tao Huang
59c6bdafeb video: rockchip: mpp: Fix for !CONFIG_ROCKCHIP_SIP or CONFIG_ROCKCHIP_SIP=m
1. Fix following warning:
drivers/video/rockchip/mpp/mpp_rkvdec.c:1672:21: warning: unused variable 'dec' [-Wunused-variable]
        struct rkvdec_dev *dec = to_rkvdec_dev(mpp);
                           ^
2. Use IS_REACHABLE instead of IS_ENABLED.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I13ce1e51af12b4041790e8854429be45cd3042ed
2022-12-13 11:24:51 +08:00
Tao Huang
1bf0a32481 soc: rockchip: pm_config: Fix build failure for !MODULE
ERROR: modpost: "of_find_regulator_by_node" [drivers/soc/rockchip/rockchip_pm_config.ko] undefined!
ERROR: modpost: "mem_sleep_current" [drivers/soc/rockchip/rockchip_pm_config.ko] undefined!
ERROR: modpost: "freeze_secondary_cpus" [drivers/soc/rockchip/rockchip_pm_config.ko] undefined!

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ib02b095cad3811b1b3026b2a7851fbcbc0abfc65
2022-12-13 10:55:29 +08:00
Tao Huang
cd226be1a7 firmware: rockchip_sip: Refactor rockchip_sip.h
Reorder and add missing functions on !CONFIG_ROCKCHIP_SIP.
Return SIP_RET_NOT_SUPPORTED on !CONFIG_ROCKCHIP_SIP.

Change-Id: Ic02b5680ba00cb5186a9180926199ac534d5838f
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2022-12-13 10:40:26 +08:00
Sach Lin
d107bf302d ARM: dts: rockchip: rv1106-smd-cam: gt24c512 add vcc regulator.
Signed-off-by: Sach Lin <sach.lin@rock-chips.com>
Change-Id: Ib514bc64c0286f20bb7319e9d85c073d8e00e32d
2022-12-13 09:21:12 +08:00
Chen Shunqing
b70ef84c17 media: rockchip: hdmirx: fix issue that interrupt cannot be cleared
Change-Id: I93e39371dc6823b7498a358dce6faea8488509a7
Signed-off-by: Chen Shunqing <csq@rock-chips.com>
2022-12-12 19:33:04 +08:00
Chen Shunqing
8aca10e8ce media: rockchip: hdmirx: fix hdcp authentication fail
Signed-off-by: Chen Shunqing <csq@rock-chips.com>
Change-Id: I257ce2b3c41a58ed24a1ee41edf791ab4030f4cd
2022-12-12 19:30:16 +08:00
Jianlong Wang
74b3ac6ff2 ARM: configs: rk312x: update fragment
1/ using RGA instead of MULTI_RGA in rk312x
2/ enable isp & ddrclk_sip_v2 in rk312x
3/ enable tve & motorcomm_phy in rk3128

Change-Id: I17793fca5025dc9e42aa6550c7c8cb16bad44529
Signed-off-by: Jianlong Wang <jianlong.wang@rock-chips.com>
2022-12-12 19:29:43 +08:00