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
Ziyuan Xu
0a0e75f900
soc: rockchip: tb_service: export a register_cb for top highest priority
...
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com >
Change-Id: I9f2200dd7ecaf7cc164169202e7832613d0eac5d
2022-12-12 19:28:14 +08:00
Dingxian Wen
af741d02b9
arm64: configs: rockchip_gki: Enable CONFIG_VIDEO_ROCKCHIP_HDMIRX
...
Signed-off-by: Dingxian Wen <shawn.wen@rock-chips.com >
Change-Id: I2defb0666943b2b94769d7be3aef70bb9c6aab09
2022-12-12 16:06:10 +08:00
Dingxian Wen
d9f6344fd9
media: rockchip: hdmirx: replace cpu_logical_map interface
...
Signed-off-by: Dingxian Wen <shawn.wen@rock-chips.com >
Change-Id: I27f3c29b2137f1e8ef90c98dd47bfef12eca10ef
2022-12-12 16:01:58 +08:00
Dingxian Wen
0e190d7b03
media: rockchip: hdmirx: add dependency of hdmirx module
...
Signed-off-by: Dingxian Wen <shawn.wen@rock-chips.com >
Change-Id: Id2b0cbeb655a92fdcbea12f01f916ae6999d3c2c
2022-12-12 16:01:21 +08:00
Dingxian Wen
b1c4d89ee3
firmware: rockchip_sip: export some interfaces for hdmirx module
...
Signed-off-by: Dingxian Wen <shawn.wen@rock-chips.com >
Change-Id: I313e5532edad7887aeb3db91ceea4929249570c1
2022-12-12 15:56:17 +08:00
Alex Zhao
06cdcb8afa
net: wireless: update cyw88459 driver to 100.10.80 (b285849)
...
Signed-off-by: Alex Zhao <zzc@rock-chips.com >
Change-Id: I286d4a158016fa6689d99f4f4d200a17aa2e58b4
2022-12-12 11:07:44 +08:00
Sugar Zhang
de88009b44
ARM: dts: rockchip: rv1106-evb: Add restart-poweroff node
...
This patch adds restart-poweroff node to power off board
by restart system which has no pmic, no power-hold.
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com >
Change-Id: Ia26ae06bca4b3ab4dcf071cf8ff5c0dfeda26c80
2022-12-09 20:42:10 +08:00
Sugar Zhang
9e0083bd11
ARM: configs: rv1106: Enable CONFIG_POWER_RESET_RESTART
...
This patch enable this config to allow power-off by restarting
system.
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com >
Change-Id: I3662a3d88a92bc6d628446f0d99b3cd2b74eda63
2022-12-09 20:39:03 +08:00
Yu Qiaowei
159107474b
video: rockchip: rga3: fix buffer_handle leak on abnormal exit
...
Update driver version to 1.2.23
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com >
Change-Id: I011ea7aef6428969080f7835d1358e4b772b9b8f
2022-12-09 20:37:08 +08:00
Yu Qiaowei
8097063b30
video: rockchip: rga3: add buffer size check when get buffer info
...
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com >
Change-Id: Ie105238f2fd292372e91741eaa88b2c766266b5c
2022-12-09 20:37:08 +08:00
Yu Qiaowei
5065a0da36
video: rockchip: rga3: add buffer size check when map dma-buf
...
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com >
Change-Id: Ibb5639235f01e8042910d40db4ffcf04c5aa595b
2022-12-09 20:37:08 +08:00
Yu Qiaowei
e78c862107
video: rockchip: rga3: modify the error message of rga_mm
...
1. More logs about virtual address mapping failures.
2. Fix wrong channel name printing.
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com >
Change-Id: I7559507552dbc617c66819859be58aa8df83561c
2022-12-09 20:37:08 +08:00
Jianqun Xu
f7298ec6c0
pinctrl: rockchip: fix rk3588 iomux get error for gpio0b4~gpio0d7
...
The GPIO0_B4 to GPIO0_D7 on RK3588 SoCs have two registers to configure
the pinmux, one is in pmugrf and the other is in grf.
When the value in pmugrf is '8' means the final pinmux is in the grf
register, this patch fixes the condition.
Fixes: 9b97628093 ("pinctrl: rockchip: fix rk3588 pinmux get")
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com >
Change-Id: Ia9f0bec25fbf9696f05b45ff806f2853df56d1c3
2022-12-09 20:36:01 +08:00
Sugar Zhang
02435edfc3
drm/bridge: synopsys: dw-hdmi-qp: Fix register access fail
...
This patch wrap register access by lock which guarantee the clk
enabled first. and remove the unused CLK status from CMN.
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com >
Change-Id: Iba058ad08c71de0b118913216baec1886d8f3819
2022-12-09 20:31:55 +08:00
Shunhua Lan
d6e8547727
drm/bridge: synopsys: dw-hdmi-qp: report hdmi status in atomic_check if uboot logo enabled
...
Signed-off-by: Shunhua Lan <lsh@rock-chips.com >
Change-Id: Ib211456c71c37faa9f7fd47ea9a2a7a61f76bfef
2022-12-09 17:48:11 +08:00
Hu Kejun
1d88e3036e
media: i2c: fp5510: fix set vcm config failed
...
Signed-off-by: Hu Kejun <william.hu@rock-chips.com >
Change-Id: I60291814215740e852feae28ce409d3b5335f563
2022-12-09 16:22:54 +08:00
Su Yuefu
a4c5031a0a
media: i2c: sc4336 support fastboot
...
Signed-off-by: Su Yuefu <yuefu.su@rock-chips.com >
Change-Id: Ia941af0c3319a5ed675024bf0ef06b24ac10dc21
2022-12-09 14:23:39 +08:00
Yu Qiaowei
6be361f257
video/rockchip: rga: fix hardware abort error when pre-scaling
...
The reserved pre-scale buffer size is modified to the currently supported
maximum output size.
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com >
Change-Id: If2f2a1275466bfd39e9003e24e3cf0a848dccff1
2022-12-08 17:28:47 +08:00
Yu Qiaowei
bbab2e43b6
video/rockchip: rga: remove log printing of unknown ioctl cmd
...
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com >
Change-Id: If1f17ecd83c32e1d021f0445b65379a39ea9aec8
2022-12-08 15:43:06 +08:00
Yu Qiaowei
5893da2a48
video/rockchip: rga: enable MMU interrupt
...
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com >
Change-Id: I8ac1b290bcb3390221e58bf0cef1ea3d7cee9a93
2022-12-08 15:43:01 +08:00
Zefa Chen
9e6e11128c
media: i2c: gc2145 fix issue of power off, when probe fail
...
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com >
Change-Id: Ice95c869bee6ab1c8170021e68a0b2ec529f3143
2022-12-08 14:52:47 +08:00
Finley Xiao
edba7a6365
clk: rockchip: rk3128: Fix aclk_peri_src parent
...
Change-Id: Id679e7235f78635233dc4d6bd59c75ce05dfc99e
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com >
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com >
2022-12-08 11:58:19 +08:00
Wyon Bi
7a3c5ebd55
clk: rockchip: rk3128: mark the hclk_vio_h2p as critical clk
...
Change-Id: Ib4eb985b1c3aacf6e51d593fcf71cd46e1dc0b82
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com >
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com >
2022-12-08 11:58:07 +08:00