Commit Graph

1080128 Commits

Author SHA1 Message Date
Sandy Huang
96a4ade24f drm/rockchip: lvds: update MEDIA_BUS_FMT_RGB666_1X7X3_SPWG description
Refer to the following information:

https://www.kernel.org/doc/Documentation/devicetree/bindings/display/panel/panel-lvds.txt

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I9ea389605940911d576e5ed0c0be20f892f41390
2023-06-27 20:40:08 +08:00
Yifeng Zhao
4fa16359d6 mmc: sdhci-of-dwcmshc: support HS400ES for RK3568
Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: I0491bcb3def6e1f5975a94b8e8921027a9d6e271
2023-06-27 20:37:32 +08:00
Sandy Huang
79f0bdb4fc Revert "arm64: rockchip_defconfig: enable CONFIG_ROCKCHIP_DRM_CUBIC_LUT"
This reverts commit d7c77171a7.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Ifff2f6bccc17c78fd6d449613da8b9c352293c70
2023-06-27 20:31:20 +08:00
Sandy Huang
7f9e600004 Revert "FROMLIST: drm: Extend color correction to support 3D-CLU"
This reverts commit 4b81d4e560.

Change-Id: I501bc346b574df3143a505abb509e331a5afc7b6
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2023-06-27 20:30:33 +08:00
Sandy Huang
3325b43a1a drm/rockchip: vop2: move cubic lut to rockchip drm driver
move cubic lut support from drm croe to rockchip drm driver and remove
depend on NO_GKI.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I8fb6ba4fc927bf9f7e1b38c180986b1e25393347
2023-06-27 20:30:23 +08:00
Yingsong Ye
be4fe51d5b media: i2c: add ar0822 driver
Change-Id: I8a860b248528cb6ad1e263ea5e10b89efd503bf9
Signed-off-by: Yingsong Ye <alexhazel.ye@rock-chips.com>
2023-06-27 20:08:26 +08:00
Cai Wenzhong
b114426b90 media: i2c: max96722: version 1.00.00
Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: I59fafb4aa4bfa06b989b9d13ae9b88aa25dc65df
2023-06-27 20:04:44 +08:00
Yu Qiaowei
1d2f80aa5e video: rockchip: rga3: add mm_flag 'RGA_MEM_FORCE_FLUSH_CACHE'
Use the RGA_MEM_FORCE_FLUSH_CACHE flag to force the flush cache for
the current buffer, not by judging the memory type.

Update driver version to 1.2.27

Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: Ife6d26faf59c1e33a2cddc389ded7c93b63a22a5
2023-06-27 20:01:30 +08:00
Zou Dengming
ac3b62bb63 arm64: dts: rockchip: rk3528 boards: btsco enable 16k pcm support
In android 9,10,11,12,13, we have already support 16k wbs in
hardware level code. So, enable 16k support in kernel dts default.

Info:
In future, to support BTSCO 16k, it only need to change the
default setting of bluedroid's "DISABLE_WBS" setting.

Signed-off-by: Zou Dengming <marsow.zou@rock-chips.com>
Change-Id: Ide2435eb0fb9e8e0ffb705d8ba4b43af95dd37ff
2023-06-27 19:59:39 +08:00
Zou Dengming
2093b6351a arm64: dts: rockchip: rk356x boards: btsco enable 16k pcm support
In android 9,10,11,12,13, we have already support 16k wbs in
hardware level code. So, enable 16k support in kernel dts default.

Info:
In future, to support BTSCO 16k, it only need to change the
default setting of bluedroid's "DISABLE_WBS" setting.

Change-Id: I382bfdb47a6e13c54c53e8e666aecbad6e135f41
Signed-off-by: Zou Dengming <marsow.zou@rock-chips.com>
2023-06-27 19:59:18 +08:00
Zou Dengming
e1e3340e25 arm64: dts: rockchip: rk3588 boards: btsco enable 16k pcm support
In android 9,10,11,12,13, we have already support 16k wbs in
hardware level code. So, enable 16k support in kernel dts default.

Info:
In future, to support BTSCO 16k, it only need to change the
default setting of bluedroid's "DISABLE_WBS" setting.

Change-Id: I31db010004b09723840c9674a093eaaa78822658
Signed-off-by: Zou Dengming <marsow.zou@rock-chips.com>
2023-06-27 19:58:45 +08:00
Damon Ding
053f5f2aa5 arm64: dts: rockchip: rk3562-evb: enable logo display for rgb board
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: I451968707f05a5e464cecf7146d15d274bf31d3a
2023-06-27 15:21:42 +08:00
Shawn Lin
b20870d869 nvme-pci: add NVME_QUIRK_LIMIT_IOQD32 to fix Phison E15 NVMe controller
Phison E15 NVMe controller is known to be broken when doing a high loading
test. Limit io queue depth to 32 is suggested by vendor.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: Ie2a89197311a6a7b59281ff12caf545ae0ab37bf
2023-06-27 09:36:35 +08:00
Chandler Chen
1dd504da41 video: rockchip: mpp: fix crash issue when no iommu
Signed-off-by: Chandler Chen <chandler.chen@rock-chips.com>
Change-Id: Ic0a8523fecad460ec129836ab2693ceb0472f0f9
2023-06-27 09:20:55 +08:00
Yifeng Zhao
3473270fe2 soc: rockchip: mtd_vendor_storage: force config spi nor erase size to 64KB
Some projects config 4KB erase sizes for SPI NOR, which are
incompatible with 64KB in u-boot, and may cause functional
abnormalities or data loss.

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: I90a026a4cd8cc2550f1cdb84db4602c2e239e51c
2023-06-27 09:14:51 +08:00
Jon Lin
c3f038c2dc PCI: rockchip: dw_ep: Delaying the link training after hot reset
Delaying the link training after hot reset, so that it's possible
to read/write some register status through the DBI.

The controller support delaying the Link Training by setting
app_dly2_en/done register.

Change-Id: Ic6d1b28ca42e3d355610db33f4e5086cf26d705c
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-06-26 19:42:43 +08:00
Yu Qiaowei
bfe46724a3 video: rockchip: rga3: adapt to kernel-6.1/5.10/4.19
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: Ie38ae6b0fc6037bfeee5b19077ff339f39933bc4
2023-06-26 19:40:55 +08:00
David Wu
772d601026 ARM: dts: rockchip: rmii_phy use increment 0 for rv1106-evb
Only network cables with waterproof wires require +2, otherwise 0.

Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: Ic00c06857a9f49d4648a2fa94d7630f7b293c4b9
2023-06-26 19:10:32 +08:00
Finley Xiao
8fde0d8b67 arm64: dts: rockchip: rk3588: Add opp-info support
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I5f0fa938f78480712a2c4c313c368a48843eaef3
2023-06-26 19:05:42 +08:00
Finley Xiao
924d577057 soc: rockchip: opp_select: adjust memory voltage by otp
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Icfed6bd8766329b10ddb6d5d78e5306a013389cb
2023-06-26 19:05:42 +08:00
Herman Chen
dcc425f09c video: rockchip: mpp: rkvenc2: Add check for error irq status
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I2f5e2909d189cb78052c85c89ac994fcdb586708
2023-06-26 19:03:19 +08:00
Wangqiang Guo
04a51f4342 media: rockchip: hdmirx: enhanced compatibility.
1.check format when get timing.
2.if read wrong format, try multiple times.
3.disable interrupts once triggered, avoid multiple triggers.

Change-Id: I2ac21723071dd89e74b0a854a3501ab8ea978aa1
Signed-off-by: Wangqiang Guo <kay.guo@rock-chips.com>
2023-06-26 17:38:20 +08:00
Jon Lin
98df9bf819 ARM: dts: rockchip: rv1106: Set spi1 sclk to 200MHz
Change-Id: I810dead9d7b4967898776e6ee3908e55b1d9ceb6
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-06-26 17:01:09 +08:00
Huibin Hong
4c1df951f3 fiq_debugger: properly stop console thread when tty_fifo is not empty
Console thread may run all the time after console_thread_stop is 1,
and tty_fifo is not empty.

Fixes: 33f4a54037 ("fiq_debugger: tty write to tty fifo")
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
Change-Id: Ie5c94d61e4553b7ea78af440db6363f07fa827c3
2023-06-26 16:40:52 +08:00
Elaine Zhang
5f69a5c6cd clk: rockchip: rk3399: fix mac ref clk register description
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: Ib8f21796a3527d74055ff847a2d36e99208d4772
2023-06-26 09:24:11 +08:00
Jon Lin
49520417ba PCIe: dw: rockchip: Disabled BAR0 and BAR1
fix the following case:
[    2.143145] pci 0000:00:00.0: BAR 0: no space for [mem size 0x40000000]
[    2.143155] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x40000000]
[    2.143161] pci 0000:00:00.0: BAR 1: no space for [mem size 0x40000000]
[    2.143168] pci 0000:00:00.0: BAR 1: failed to assign [mem size 0x40000000]

Change-Id: I5eca2adb49d83c775036df7e961dab5c9fbfffbb
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-06-25 11:28:01 +08:00
Ziyuan Xu
02fc73a44b i2c: rk3x: get_version after mcu is done for thunder-boot
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
Change-Id: Ic3e679207ebdec79b536abd029d410ddb15a19e8
2023-06-21 19:29:02 +08:00
Su Yuefu
d4b1e00722 media: i2c: add sc223a driver
Signed-off-by: Su Yuefu <yuefu.su@rock-chips.com>
Change-Id: Id21af19d557e61b8d8e3261d7777a4d140c8d4cd
2023-06-21 16:48:09 +08:00
Ziyuan Xu
6bcac58699 media: rockchip: isp: wait RISC-V with 400ms timeout
Fixes: d0edc7b3e7 ("media: rockchip: isp: thunder boot with multi sensor")
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
Change-Id: If7623fd081796904b891ed7fae7cf402b52cd860
2023-06-21 16:44:01 +08:00
Damon Ding
0065c0b8f9 drm/panel: simple: add support for panels initialized by spi
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
change-Id: I4582cc98619f7b7327af68c266ba0de1163a1b63
2023-06-21 16:36:11 +08:00
Yu Qiaowei
2b39b0acb4 video: rockchip: rga3: modify over-constraint on fbcd
Change-Id: I9aa492263f036cedddc5e85485bb250770d2aafa
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
2023-06-21 14:59:20 +08:00
Jon Lin
679557456b PCIe: dw: rockchip: Delaying the link training after hot reset
Delaying the link training after hot reset, so that it's possible
to read/write some register status through the DBI.

The controller support delaying the Link Training by setting
app_dly2_en/done register.

Change-Id: Ieb34676ecd13d8b4c47b5adc34350294ddc60ace
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-06-21 14:42:36 +08:00
Damon Ding
528c67179b arm64: dts: rockchip: rk3562-evb: add rgb display board
Panel k350c4516t supports to be initialized by spi in
rgb mode.

Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: Id6addc5db469acaf9a55b1d9d1b867c364526290
2023-06-20 20:45:15 +08:00
Zefa Chen
9c2112878e media: rockchip: vicap fixed error state of group mode and add some debug log
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I6484ea72caa89bd420c68d607e3fec21e2bceac1
2023-06-20 20:43:44 +08:00
Lan Honglin
cfe0bad194 ARM: dts: rockchip: update rv1106g-evb2-v10-dual-camera.dts
Support sc31iot and sc230ai
Update isp thunderboot buffer size

Change-Id: If701735b748b1329f3d90e2986ff0d6870aede65
Signed-off-by: Lan Honglin <helin.lan@rock-chips.com>
2023-06-20 20:42:33 +08:00
Elaine Zhang
423f806d76 arm64: dts: rockchip: rk3562: Add trim configure for tsadc
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: I078a15cb3a8290f5233a7c04edb85870bed863f7
2023-06-20 20:38:39 +08:00
Elaine Zhang
d1b2c15f5f thermal: rockchip: Add trim temperature for rk3562
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: I49a527fe1f36854ae3859636a9acfcfb36d23a50
2023-06-20 20:38:39 +08:00
Finley Xiao
7da0c1498f thermal: rockchip: Add default value for trim base
The trim_base nvmem cell is abandoned on some platforms, and use the
default value 30.

Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: If2ebb13de33b0928854a406cbefdcdc95cfa0947
2023-06-20 20:38:39 +08:00
Luo Wei
1a2e751d9f misc: lt7911d-fb-notifier: add firmware upgrade support
Signed-off-by: Luo Wei <lw@rock-chips.com>
Change-Id: I4deb3a0b61d4fa0605da637cf41423995ce4be0e
2023-06-20 20:36:15 +08:00
Lan Honglin
cae91899b6 ARM: configs: rockchip: rv1106 enable sc301iot for battery-ipc
Signed-off-by: Lan Honglin <helin.lan@rock-chips.com>
Change-Id: Ib844385bfd58f73eaa5f4e415d598d1f983fa4cd
2023-06-20 17:04:47 +08:00
Weiwen Chen
11e0aed493 ARM: configs: rockchip: rv1106: add recovery config
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: I283c6b7d0e3b9fc22160ecdec237fb5a728d1c30
2023-06-20 14:59:13 +08:00
LongChang Ma
2f601384d9 meida: i2c: fix gc2503 dual sensor sync issue
Signed-off-by: LongChang Ma <chad.ma@rock-chips.com>
Change-Id: I6a7fbd29000262f676c91e470e52cf52dc3c0bd5
2023-06-20 10:24:16 +08:00
Cai YiWei
599ad4d224 media: rockchip: isp: fix uyvy format for isp32
Change-Id: I0dc34f154e989ef88ae5b5402339f60b43fbb4a0
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2023-06-19 17:55:20 +08:00
Guochun Huang
fd58b01c8e drm/rockchip: dsi: fix RK3562_SYS_GRF_VO_CON1 offset addr
Change-Id: Ie3e3675706996ddcc2f08f7d8d743ca3f46a4f23
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
2023-06-19 08:00:20 +00:00
Lan Honglin
c3bcd08fcf media: i2c: fix sc301iot reset when probe for fastboot
[ISSUE]
device I2C communication is fail due to reset

Change-Id: I847523a8df22727b6863a4dbe2cdad11b104435c
Signed-off-by: Lan Honglin <helin.lan@rock-chips.com>
2023-06-19 10:42:46 +08:00
Zou Dengming
0d1ab9be85 arm64: dts: rockchip: rk356x boards: prepare bt sco settings
we don't directly enable all evb board to support bt-sco cards
because it may take some i2s/pcm, which may use dma,
but dmas may limit.

so we just prepare this settings, then if any one who want to
support bt-sco, he/she can just add dts in board-level dts.

now, we just enable rk3568-evb1 and rk3566-evb1 just for example.
Diff in "rk3568-evb1-ddr4-v10.dts" is like this:

+&bt_sco {
+	status = "okay";
+};
+
+&bt_sound {
+	status = "okay";
+};
+
+&i2s3_2ch {
+	status = "okay";
+};

The default pcm/i2s setting is:
Format: PCM, dsp_a, MSB first, short sync, rising edge and delay 1 bclk.
rockchip soc: master; Bt controller: slave

Change-Id: I6668bfbb87e4b0ea71a661bbcf8248cbde77974e
Signed-off-by: Zou Dengming <marsow.zou@rock-chips.com>
2023-06-19 10:41:30 +08:00
Huibin Hong
fd726f9546 arm64: dts: rockchip: rk3588-android: support minidump
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
Change-Id: I77c0c8623ae0f4cc702cae0633de5fc711ccb08e
2023-06-19 10:22:13 +08:00
Huibin Hong
4b10d97983 arm64: smp: minidump save cpu context when ipi stop
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
Change-Id: I0d98a017311aa85a509649de221873935bb16232
2023-06-19 10:21:11 +08:00
Huibin Hong
08e5018b7c fs: pstore: register buffers to minidump
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
Change-Id: I0c6feb839fe6a4d25bc0174659cba528ffef4975
2023-06-19 10:16:49 +08:00
Huibin Hong
d6d4beaca8 soc: rockchip: add rk minidump support
After panic or wdt reset, you can get /proc/rk_md/minidump
as minidump.elf, and debug it with gdb

Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
Change-Id: I6d92d9ee21e304bf72231a3f62ecab66b6ab1a43
2023-06-19 10:16:49 +08:00