Commit Graph

1065737 Commits

Author SHA1 Message Date
Jianqun Xu
d700c5c3f9 Revert "mm/memblock: show memblock reserved with size information"
This reverts commit 1fc0ecb55f.

Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: I4ea80186ac8e80c882aee85a15a8e9898a52d433
2022-04-06 19:07:56 +08:00
Shawn Lin
dd3e0d2141 mmc: core: fix vendor DH SD cards as CMD23 broken
Dahua issues a series sd cards against SD spec that cannot support
CMD23 as a mandatory. We need to fix them.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: Ic2f4b082df9094e264e20f51a3a79dc0819f191c
2022-04-06 18:14:26 +08:00
Xing Zheng
3bad55bc2e ASoC: codecs: add ADC mode controls for RV1106/RV1103 codec
Generally speaking, the RV1106/RV1103 differential mode
via 1-MIC can meet the needs of most users. If the user
has other ADC mode usage requirements, you can configure
the corresponding ADC mode before starting the recording.

Please do not switch during recording as it will cause
pop noise due to the need to deinitialize the ADC.
Also, the RV1103 does not support full-differential
inputs for both ADCs.

Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Change-Id: I72c2aec3cc061dcf5884da55dca4deeb2dabd98b
2022-04-06 16:44:27 +08:00
Xing Zheng
a8cfd6151b ARM: dts: rockchip: rv1103: add compatible name of acodec
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Change-Id: I2fbf4b7c349b61b06662e1db8facb7948cc61aad
2022-04-06 16:44:27 +08:00
Cai YiWei
6c7fb6544e media: rockchip: isp: update procfs for isp32
Change-Id: I3b34089f7250eb49a5a987abe6e6f9c24b7014c0
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2022-04-06 16:25:38 +08:00
Cai YiWei
8cb493d7ae media: rockchip: isp: add isp interrupt runtime debug
echo Y > /sys/module/video_rkisp/parameters/irq_dbg

Change-Id: Ic80388d8022ada369f833dcf102c0ee8d4738ae4
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2022-04-06 16:25:38 +08:00
Cai YiWei
2d6219c388 media: rockchip: isp: fix stream link error
Change-Id: I91db78e4e1427ce9d7402c471d205a0878199539
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2022-04-06 16:25:38 +08:00
shengfei Xu
e32911345c mfd: rk806: add sysfs debug node
debug node:
	"sys/rk806master/debug" and
	"sys/rk806slave/debug"

Signed-off-by: shengfei Xu <xsf@rock-chips.com>
Change-Id: I845ab17a74586cce181c9e7f093e4492422abb48
2022-04-06 15:02:42 +08:00
Lian Xu
9b24b183d5 media: rockchip: isp: Solve the cmsk problem
Change-Id: I25fe5245b3ea2b757cfca43aca38275e3c9b0c19
Signed-off-by: Lian Xu <xu.lian@rock-chips.com>
2022-04-06 14:32:21 +08:00
Ziyuan Xu
259b3cda10 ARM: rv1106-evb.config: Enable CONFIG_ELF_CORE for coredump
Changes to vmlinux size:
Before:
   text    data     bss     dec     hex filename
4261155 1763832  134672 6159659  5dfd2b vmlinux

After:
   text    data     bss     dec     hex filename
4264247 1764120  134672 6163039  5e0a5f vmlinux

delta: 3380 (dec)

Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
Change-Id: I8012925cb6fbe422e438eee5a477947afd106f2c
2022-04-06 11:03:07 +08:00
Yiqing Zeng
ed66ba7af4 ARM: dts: rockchip: update camera dts for rv1103g-evb-v10
cause ircut gpios are different between rv1106 and rv1103

Signed-off-by: Yiqing Zeng <zack.zeng@rock-chips.com>
Change-Id: I851ec2279184a3e5e06d4e4ce42a4de912c6506b
2022-04-06 10:18:23 +08:00
Xing Zheng
42c40c6592 ASoC: codecs: rv1106_codec: Remove unused handlings
Don't need to re-init MICs and keep ADC_BIST_MODE_SEL
by default.

Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Change-Id: I5dd81e724bd8aeda1f5dce816625ed26eafa00b2
2022-04-06 09:41:22 +08:00
Xing Zheng
2cf5810f2f ARM: dts: rockchip: rv1103-evb-v10: add support acodec sound
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Change-Id: I8b3b31b96120c14c5757c9123bcec76dd6be8fbf
2022-04-06 09:41:06 +08:00
Cai YiWei
8742dacb51 media: rockchip: isp: isp32 fix bay3d config
1. memory with diff case
2. fix higaus3_mode
3. lobypass_en=0, no support to switch

Change-Id: Ic7bdc5a924509806a7bb8668dcebcf01b95688f4
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2022-04-06 09:31:09 +08:00
Cai YiWei
eb98b5025e media: rockchip: isp: enable mipi drop interrupt
Change-Id: I5eb33c135cb84469a98e2b6b3f932eb3aeee1900
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2022-04-06 09:29:36 +08:00
Sugar Zhang
9a5e5e2408 ARM: dts: rv1106: Fix arm-pmu irq num
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I3969826922658707f027eb0be21d96e0680f046b
2022-04-05 15:33:47 +08:00
Yu Qiaowei
94e75a9785 video: rockchip: rga3: Fixup some error on insmod ko
1. Fixup misc_register fail
2. Move timer init after register success

Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I2df5e79054ff6a44d329d4558b105ff5603d6331
2022-04-02 19:28:52 +08:00
Yu Qiaowei
163cdad8ff video: rockchip: rga3: Set the core value when single core
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I58fa90f96de054467dd1a1d61658377594c73c7a
2022-04-02 19:28:52 +08:00
Yu Qiaowei
86e7631272 video: rockchip: rga3: Decrement the reference of handle when the user exits
Update driver version to 1.2.7

Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: Ied7a0cf3237bfbfb250791a9d0847dad3f6c41f9
2022-04-02 19:28:52 +08:00
Frank Wang
3c93ff8613 usb: gadget: audio: fix sample rate error in uevent
The previous codes did not distinguish the saple rate was playback or
capture in uevent, so fix it.

Fixes: 1abe6982f8 ("BACKPORT: usb: gadget: u_audio: add uevent for set_alt and set_srate")
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Change-Id: I191ba7b303ba8289a6acc054b6be6d224b2f5f89
2022-04-02 19:26:33 +08:00
Damon Ding
e856596ed2 drm/rockchip: rgb: fix the regmap_write logic of rv1106_rgb_enable()
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: Iaea35697ef4b3b91180d68e3c71bcbf732929293
2022-04-02 19:17:08 +08:00
Caesar Wang
725742573d arm64: dts: rockchip: enable hdmi0 and hdmi1 logo for rk3588 evb1 linux
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Change-Id: I75ec8e4903446ad3506f438d1f6c201f7d1d44fc
2022-04-02 19:16:10 +08:00
Caesar Wang
6601bc8398 arm64/configs: update rockchip_linux_defconfig
1/ Enable RK628 HDMI to CSI/BT1120

2/ Enable CONFIG_DRM_DISPLAY_CONNECTOR
Enable the bridge driver for VGA/DP/HDMI display connectors.

Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Change-Id: Id57abfbc703367ebb8095fea28250c53dbe93697
2022-04-02 19:16:10 +08:00
Yiqing Zeng
89007af35d ARM: dts: rockchip: support ircut for rv1106-ipc
Signed-off-by: Yiqing Zeng <zack.zeng@rock-chips.com>
Change-Id: I6129e618b9f88e2456c01a0d818a5ce52a11adb3
2022-04-02 19:15:02 +08:00
Elaine Zhang
7344989b7e rtc: support rockchip rtc
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: I4baae019f411207fb56340b4122ef1d151dcf32d
2022-04-02 18:03:50 +08:00
Yiqing Zeng
da45b1b5e7 ARM: dts: rockchip: rv1106-evb-cam ircut open by default
Signed-off-by: Yiqing Zeng <zack.zeng@rock-chips.com>
Change-Id: I735881f6145a45b4315051fc7c08136d3f3b4c37
2022-04-02 17:14:28 +08:00
Li Huang
42d0222e9f ARM: rv1106-evb.config: Enable ROCKCHIP_RVE_PROC_FS
Signed-off-by: Li Huang <putin.li@rock-chips.com>
Change-Id: If5e5613e7bc96f7750225e8196ea2799c71c07e4
2022-04-02 17:11:54 +08:00
Li Huang
443c01eb8d ARM: configs: rockchip: rv1106: enable rve
Signed-off-by: Li Huang <putin.li@rock-chips.com>
Change-Id: I8402c5c811007a157ce42da6e9ddde76e9b1bd11
2022-04-02 17:11:29 +08:00
Zhang Yubing
f14693316b drm/rockchip: dw-dp: reset dp controller status
After disable dp controller, reset it status to avoid something
wrong if the status is abnormal.

Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Change-Id: I9de6ab056317a09b104ef604a6ef4ec20610fb65
2022-04-02 16:49:54 +08:00
Tao Huang
a36ea1eeec ARM: rv1106-evb.config: Update by diffconfig
Change-Id: Iac6ead2efbade8dc9afa3cf2a83b6a615b9121b0
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2022-04-02 15:37:06 +08:00
Jianqun Xu
bd56a6cd51 video: mpp: print error for mpp dma import fd
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: Ia6f23a599f9570c2296cf067b78cf9ccdc499afb
2022-04-02 15:34:07 +08:00
Zhang Yubing
0c820d56b9 phy: rockchip: usbdp: wait aux channel ready when dp phy power on
If dp send data by aux channel too fast after phy power on,
the aux may be not ready which will cause aux error. Adding
delay to avoid this issue.

Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Change-Id: I92075e729e637078456ae67897dfb1cbda5da1cb
2022-04-02 15:32:59 +08:00
Finley Xiao
aa228e28b6 soc: rockchip_system_monitor: Separate out custom OPP handler specific code
On some platforms, the dmc driver uses internal rockchip_ddr_set_rate()
to set dmc clock rate, so the system monitor can't use clk_set_rate() to
change dmc clock rate.

Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: If74f740d87a11f6a6563c3af35a8f335561a88af
2022-04-02 15:32:23 +08:00
Jianqun Xu
3905a45ed5 Revert "ARM: configs: rv1106_defconfig not select DMA_CMA"
This reverts commit 67e0f49d56.

Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: Ifb2677a2c3abf3a5ec5f7ba682b64b5651a62a65
2022-04-02 15:16:49 +08:00
Sugar Zhang
e031e830dd ARM: dts: rv1106: Set arm clk 1.1G default
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I1ee33d10660636e860875c85aa782f123ecd30bc
2022-04-02 15:10:39 +08:00
Sugar Zhang
398f4e6a9c ARM: configs: rv1106: Enable CONFIG_RK_CONSOLE_THREAD
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Id125aa7e5789aa23d696ea053b722e01b225f6bf
2022-04-02 15:07:07 +08:00
Sugar Zhang
bef1ac8669 ARM: configs: rv1106: Disable CONFIG_BLK_DEV_INITRD
-CONFIG_BLK_DEV_INITRD=y

which is used for ramdisk.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I862718ba843a06c5e50938709966f2da8599294e
2022-04-02 15:07:07 +08:00
Sugar Zhang
c217ac98a1 ARM: configs: rv1106: Enable CONFIG_DEBUG_INFO
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I4f1532dfb80ea6ea4b8e9a21eb9bbfc96b797d84
2022-04-02 15:07:07 +08:00
Ziyuan Xu
b256a98dd1 mmc: block: prefer the host's capability(card_busy) than send_status
According to the specification, the controller should check the device
status before data transport. Generally, it can get the status of device
via CMD13. It's upset that command communication will produce a little
interrupt inside the controller.

To avoid interrupt storm whilst heavily I/O request, use card_busy
instead of send_status(CMD13).

Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
Change-Id: I3ba79ba2f563006112b0157b78aab5b31911b61a
2022-04-02 15:02:38 +08:00
Sugar Zhang
82a3ed9053 ARM: dts: rv1106: Fix cpu hwid mismatch on !CONFIG_SMP
Fixes:

Booting Linux on physical CPU 0x0
DT missing boot CPU MPIDR[23:0], fall back to default cpu_logical_map

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I02dea605ef1def0bed65e94363661eeb8368f1fb
2022-04-02 15:00:23 +08:00
Lin Jinhan
6c2683a627 crypto: rockchip: v2: pka: Optimize poll time
The most time-consuming operation is the RSA private
 key EXP_MOD operation, which sets the poll time separately.

Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
Change-Id: I6307e6134e99dbdfbe2ce75539ba8bed1a703f43
2022-04-02 14:33:34 +08:00
Sandy Huang
d7c77171a7 arm64: rockchip_defconfig: enable CONFIG_ROCKCHIP_DRM_CUBIC_LUT
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Ic5c41f191ab3b5afbf1e7e1485ff99540f47a40a
2022-04-01 20:26:59 +08:00
Cai YiWei
118ec0fa14 media: rockchip: isp: vicap->isp online set clk according to sensor rate
Change-Id: I28afea949121509221e2b4ef355455eefdf39dbb
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2022-04-01 20:24:42 +08:00
Zefa Chen
da211ba628 media: rockchip: vicap: sditf support get pixel rate
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: If5d902255cec0f81266f5a925420df4de7d597c1
2022-04-01 20:24:42 +08:00
Zhichao Yu
412afcda10 ARM: dts: rockchip: add camera config for rv1103g-evb-v10
Signed-off-by: Zhichao Yu <zhichao.yu@rock-chips.com>
Change-Id: I6ec1b2a7ae2f2707e74d62baeb4187001e74fcdf
2022-04-01 19:52:29 +08:00
Chen Shunqing
0b224f6d4d arm64: dts: rockchip: rk3588: add PCLK_S_HDMIRX for hdcp1.4
Signed-off-by: Chen Shunqing <csq@rock-chips.com>
Change-Id: I09ca47b7171488c90e4e64aae05e1ce5ff47d2f6
2022-04-01 18:02:19 +08:00
Mark Huang
3851d8abf1 arm64: dts: rockchip: rk3588-nvr-demo-v10-spi-nand: update ubi.mtd to 4
Signed-off-by: Mark Huang <huangjc@rock-chips.com>
Change-Id: I72d31311c482d46f646ec9b8af87adca1b8a597f
2022-04-01 17:12:18 +08:00
YouMin Chen
a57fc15ec9 arm64: dts: rockchip: rk3588s: Add more OPPs for dmc
Signed-off-by: YouMin Chen <cym@rock-chips.com>
Change-Id: Icc5ec2946897a8e3e895aac14038167d2cb2b46c
2022-04-01 16:29:01 +08:00
YouMin Chen
b5599a8a61 PM / devfreq: rockchip_dmc: rk3588 set vdd_center to sleep_volt in suspend
Signed-off-by: YouMin Chen <cym@rock-chips.com>
Change-Id: Ia72a4877cd1b3d2bbd7de612bdb9cc92245a6088
2022-04-01 16:29:01 +08:00
Finley Xiao
041c735d54 arm64: dts: rockchip: rk3588-rk806: Change voltage range for vdd_ddr and vdd_log
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I28e5e0a7496115e76ec8d685c8a0b6ad4b3a794b
2022-04-01 16:29:01 +08:00