Commit Graph

58 Commits

Author SHA1 Message Date
Guochun Huang
e784010e93 arm64: dts: rockchip: rk3588/rk3576/rk3568-evb: delay init-delay-ms before panel initail code send
Change-Id: Ib7ca5868583277dd8dba7f3c328fac77c8db3042
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
2025-06-17 08:31:59 +00:00
Algea Cao
21ccc2dfe7 arm64: dts: rockchip: rk3588-evb: Use the hdmi phy pll dynamic allocation mode
If the vp dclk clock source corresponding to hdmi is not the
corresponding hdmi phy pll, that resulting in abnormal display
of some resolutions. Furthermore, the use of hdmi phy pll can
support more non-standard resolutions.

Change-Id: I7a39ab2d73e912c596d8e1720d251e89c30b1f3b
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2025-06-03 10:20:30 +00:00
Guochun Huang
1f429c9dc1 dt-bindings: display: drm_mipi_dsi: Add _NO_ to MIPI_DSI_* flags disabling features
As described in:

commit 0f3b68b66a ("drm/dsi: Add _NO_ to MIPI_DSI_* flags disabling features")

Many of the DSI flags have names opposite to their actual effects,
e.g. MIPI_DSI_MODE_EOT_PACKET means that EoT packets will actually
be disabled. Fix this by including _NO_ in the flag names, e.g.
MIPI_DSI_MODE_NO_EOT_PACKET.

Change-Id: Ibf5faf52f95a1ab07c3ffb7848ff1be7071c458b
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
2024-07-11 16:22:56 +08:00
Damon Ding
9191e17ba0 arm64: dts: rockchip: rk3588-evb: add edp0/edp1 sound support
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: I227893150c6d963ba47de1354d0ae2109a230685
2024-06-06 18:51:49 +08:00
Sandy Huang
cb85ca5828 arm64: dts: rockchip: add vop-supply for rk3588/rk3588s boards
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I0f0771d84b91b3c72e1dea2c0005f71918d05d5a
2023-12-18 17:11:50 +08:00
Tao Huang
7c10ac3d06 Merge commit '6e8cfc3b5519953ede64e2819ba15327f4fa9e16'
* commit '6e8cfc3b5519953ede64e2819ba15327f4fa9e16':
  arm64: dts: rockchip: rk3588-evb: enabled rkvtunnel
  arm64: dts: rockchip: rk3588: add rkvtunnel
  arm64: configs: rockchip: add CONFIG_ROCKCHIP_VIDEO_TUNNEL
  media: rockchip: isp: add mode for rv1106 suspend without rtt

Change-Id: Ic3a735be43a31c08333687213952ed3dfb8f9a92
2023-12-04 20:28:53 +08:00
Wu Liangqing
6e8cfc3b55 arm64: dts: rockchip: rk3588-evb: enabled rkvtunnel
Change-Id: I942a6b44e9f8251666ea4ebf494800a6b09c94ab
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
2023-12-04 19:58:28 +08:00
Tao Huang
796ecb79e1 Merge commit 'ccc60a624971b61ccbe2780289b39fae1c2e88d2'
* commit 'ccc60a624971b61ccbe2780289b39fae1c2e88d2':
  media: rockchip: vicap support to do reset in online mode
  media: rockchip: isp support to do reset in online mode
  arm64: dts: rockchip: rk3588 boards: Fix bitclock-inversion
  arm64: dts: rockchip: rk356x boards: Fix bitclock-inversion
  arm64: dts: rockchip: rk3528 boards: Fix bitclock-inversion
  arm64: dts: rockchip: rk3399-tve1205g: Fix bitclock-inversion
  arm64: dts: rockchip: rk3326-evb: Fix bitclock-inversion
  video: rockchip: mpp: Add uapi header
  soc: rockchip: tb_service: add memory-no-free property support

Change-Id: I068ca307ee0ec53eb570ce4f7fd5604c6bb796d8
2023-11-06 11:06:11 +08:00
Sugar Zhang
a86b62fb9b arm64: dts: rockchip: rk3588 boards: Fix bitclock-inversion
simple-audio-card,bitclock-inversion is a boolean property.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I2f69c4fd79b6f2b2cc06d69f720671227901482c
2023-10-31 20:11:04 +08:00
Tao Huang
326c0ed264 Merge commit '624ca942fb32d32a3769b7f7bf56511cf9bb2685'
* commit '624ca942fb32d32a3769b7f7bf56511cf9bb2685':
  drm/rockchip: vop2: enable vp0 dclk for deassert hdmi1/edp1 mux in rk3588
  misc: rockchip: pcie-rkep: Support ioctl PCIE_EP_DMA_XFER_BLOCK
  PCI: rockchip: dw: Export DMA transmission interface
  PCI: rockchip: dw: Support dma_debug for DMA debug
  arm64: dts: rockchip: rk3566 evb: add edp panel phy size config
  arm64: dts: rockchip: rk3288 evb: add edp panel phy size config
  arm64: dts: rockchip: rk3399 evb: add edp panel phy size config
  arm64: dts: rockchip: rk3588 evb: fix edp panel phy size config
  ASoC: rockchip: multi-dais: Fix error path handle
  arm64: dts: rockchip: rk3562 evb: add mipi panel phy size config
  arm64: dts: rockchip: rk3568 evb: add mipi panel phy size config
  arm64: dts: rockchip: rk3588 evb: add mipi panel phy size config
  media: rockchip: isp: remove param run double

Change-Id: I36c59067e59a4ac7987704d96fade104b844a8af
2023-10-24 11:36:54 +08:00
Sandy Huang
0489de8928 arm64: dts: rockchip: rk3588 evb: add mipi panel phy size config
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: If4a5279b4892735a0d799c9df72ec8cc9accaed7
2023-10-20 15:39:59 +08:00
Yandong Lin
65768b30e3 arm64: dts: rockchip: rk3588 boards: enable av1d node
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: Ifb1db3812402d13671ec57d4c154bfab801d08eb
2023-07-04 18:14:56 +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
Zou Dengming
3d4d03ca90 arm64: dts: rockchip: rk3588/rk3588s boards: prepare bt sco settings
we don't directly add all evb board to enable 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 enable rk3588-evb1 sco just for example.
Diff in "rk3588-evb1-lp4-v10.dts" is like this:

+&bt_sco {
+	status = "okay";
+};
+
+&bt_sound {
+	status = "okay";
+};
+
+&i2s2_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: Id161dd43ec3ea657e758852f7214727488633977
Signed-off-by: Zou Dengming <marsow.zou@rock-chips.com>
2023-06-19 09:44:02 +08:00
Caesar Wang
c5e85bafa0 arm64: dts: rockchip: change dp sound card name on rk3588 platform
pulseaudio ucm2 config can not handle the character "," or long name,
so change it.

Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Change-Id: Idd25349d3b11e058b391bb5b0c205288ccdb3e74
2023-06-01 15:55:37 +08:00
Finley Xiao
38dabca338 arm64: dts: rockchip: rk3588 boards: Add supply for rkvenc
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I33a45881ef143803bb0482cc86b5f838e38f1e98
2023-03-13 14:52:06 +08:00
Yifeng Zhao
1e3334adf1 arm64: dts: rockchip: enable emmc power off notify for rk3588-evb
The emmc power is turned off after it is suspended. The drivers
need to enable the power off notification, otherwise the emmc
initialization will take a long time during wake-up.

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: I52ed6ecd3c5bb8eacf2b918a7b091e83db026594
2023-02-28 17:31:11 +08:00
Herman Chen
7ea35f7e29 arm64: dts: rockchip: rk3588-evb: enable avs+ decoder
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: Iee041320e2b24769f28895d126657c30f9c4925e
2022-11-25 21:00:23 +08:00
Yandong Lin
94a5dd9f32 arm64: dts: rockchip: add vepu support and separate jpege for rk3588
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: I530c8213039d52329a05ddc3092ec18f63c4063a
2022-07-01 14:21:53 +08:00
Shunhua Lan
f1147b3eb3 arm64: dts: rockchip: rk3588-evb: add spdif0 sound card and add mclk-fs property
Signed-off-by: Shunhua Lan <lsh@rock-chips.com>
Change-Id: If0b4f162fb9ac54b81ff4e109f8e843035d8a517
2022-05-21 16:29:53 +08:00
Yandong Lin
cefea8c402 arm64: dts: rockchip: enable av1d iommu for rk3588 evb/tablet
The av1d node is register av1dec_bus not platform bus,
so it no need to set okay status.

Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Signed-off-by: Simon Xue <xxm@rock-chips.com>
Change-Id: I9c88340d6542c497b3e4b24406db93bd60369fd8
2022-03-03 19:58:48 +08:00
Shunhua Lan
d2cf002d8f arm64: dts: rockchip: add and enable dp sound cards for rk3588 evbs
Signed-off-by: Shunhua Lan <lsh@rock-chips.com>
Change-Id: I5a1efac436fd0aa49b894c1247b2ae6108ff4ee8
2022-01-28 09:53:36 +08:00
XiaoDong Huang
a6ae305e4f arm64: dts: rockchip: rk3588-evb: enable rockchip-suspend node
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
Change-Id: I1552788ffc7a10938eafa173216456ba790cdbb6
2022-01-13 10:45:45 +08:00
Guochun Huang
6b0aa0c577 arm64: dts: rockchip: rk3588-evb: fix power on/off sequence time according to panel spec
Change-Id: Ifae15bb912f0e23e888dcd5c85e85ca84b115077
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
2021-12-30 21:20:33 +08:00
Ding Wei
ee212c7306 arm64: dts: rockchip: rk3588: Enable rkvdec2 refer nodes for evb/nvr
Change-Id: I80ad52cc975796f79c96f24a2b4958c3427461ec
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
2021-12-28 18:27:56 +08:00
Felix Zeng
c2118feabc arm64: dts: rockchip: Add rknpu relative node for rk3588 boards
Signed-off-by: Felix Zeng <felix.zeng@rock-chips.com>
Change-Id: I16ec5078b4e19ed9c62c788541adf8cec848ae6e
2021-12-24 15:13:48 +08:00
Hongjin Li
c8d1352dd9 arm64: dts: rockchip: Enable jpege ccu, mmu and cores for rk3588 evb/nvr
Modify the device tree of different platforms,
enable jpege core, mmu and ccu.

Signed-off-by: Hongjin Li <vic.hong@rock-chips.com>
Change-Id: I741d27934e7ca65536b4eb032ebec083ea181462
2021-12-20 20:04:28 +08:00
XiaoTan Luo
85c295956e arm64: dts: rockchip: rk3588-evb: change hdmi sound name to support pulseaudio ucm2
Signed-off-by: XiaoTan Luo <lxt@rock-chips.com>
Change-Id: Icdd01e2fbcc0cc8738eaa8e0e91e534815a37df6
2021-12-20 14:29:13 +08:00
shengfei Xu
516e6f7a0e arm64: dts: rockchip: adjust the power supply based on the hardware for rk3588 boards
Signed-off-by: shengfei Xu <xsf@rock-chips.com>
Change-Id: I2f0bd82ac41313ba2a09fb91ce595824a47d0957
2021-12-14 16:52:42 +08:00
Herman Chen
99582ba73a video: rockchip: mpp: rkvenc2: Fix dual core issue
The rkvenc2 dual core mode will split one large frame into two tile as
task 0 and 1. The task 0 must be started before task 1 otherwise
hardware will generate error.

So we need some changes:

1. Bind two core into one taskqueue. If each core is binded to one
thread then the real hardware config and start timing is not certain.
NOTE: current mode still has case that one extra task is insert between
task 0 and 1.

2. Record core info and core id when multi-core is attached to the same
taskqueue.

3. Add prepare stage to decide which core is used to run the task and
set the struce mpp_dev *mpp in struct mpp_task.

4. Correspondingly the free task should use the mpp_task->mpp if it is a
multi-core mode task.

5. Remove mpp_iommu_attach in mpp_task_run. The mpp_iommu_attach is for
switching different devices which has shared resource like vpu and
rkhevc in rk3568 and rk312x. These chipsets are not supported on 5.10
kernel.

Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: Ide52d59cca3adec44e05ab4bfc5bac7d713ad628
2021-12-14 09:31:06 +08:00
William Wu
667d2fb962 arm64: dts: rockchip: rk3588-evb: fix dr_mode and max speed for usb3_0
1. Set the dr_mode to otg for rk3588-evb and rk3588s-evb;
2. Remove the maximum-speed hs limit for rk3588s-evb;

Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: Ia6ab7e259207fc33c2e38bd8ae4864f06b4bf3d8
2021-12-09 11:40:53 +08:00
Jiajian Wu
3d1d563366 arm64: dts: rockchip: rk3588-evb: use "rockchip,hdmi" instead of "simple-audio-card"
Used to support jack detection events

Signed-off-by: Jiajian Wu <jair.wu@rock-chips.com>
Change-Id: Iaed309dc32686901185667a9c3c8cc3589fe1543
2021-12-08 11:20:31 +08:00
William Wu
212a44da74 arm64: dts: rockchip: rk3588-evb: remove hs limit for usb3_0
Because the usb3_0 super-speed driver is ready, let
remove the maximum-speed limit.

Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: Iebe2ebdeddb2942f6bb333b2bedf31f7f3c02557
2021-11-23 19:47:31 +08:00
Finley Xiao
4060d28594 arm64: dts: rockchip: rk3588-evb: Add supply regulators for gpu
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I8d71a14054c2340b6ee6044b12472cfaea2d8081
2021-11-23 17:24:11 +08:00
Li Huang
85f8bf3ea3 arm64: dts: rockchip: rk3588-evb.dtsi: Enable rga node
Signed-off-by: Li Huang <putin.li@rock-chips.com>
Change-Id: I33021a89e5f7206168600cae44210d361b348f4a
2021-11-22 17:18:58 +08:00
Yifeng Zhao
d6e5a46807 arm64: dts: rockchip: enable hs400 for rk3588 evbs
Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: Ida8f8f6e355f158b2c6552e130b98a9526543d9d
2021-11-17 18:11:46 +08:00
Ding Wei
63ae61dd8e arm64: dts: rockchip: rk3588-evb: Add video codec refers node
Change-Id: Ifc586c6558986bc76dcd7602cfbab779e0d8b1d5
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
2021-11-15 17:21:51 +08:00
Sugar Zhang
6658d3e5c3 arm64: dts: rockchip: rk3588-evb: Fixed property clk for i2s0~3
Currently, the datasheet and pcb design has removed all the
pin {bclk, lrck}_rx, and use the pin {bclk, lrck}_tx only
to simpilify design.

  - Remove pin {bclk, lrck}_rx
  - Rename pin {bclk, lrck}_tx to [bclk, lrck]

So, we do the same thing by default.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Ide90500b766fa39d6f032b0edf309e001939b579
2021-11-15 14:16:18 +08:00
Zhen Chen
d4c297429a arm64: dts: rockchip: rk3588-evb: enable gpu
Change-Id: I5c8eeae28415c439530ebc4aca39a43cf934a552
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
2021-11-14 19:53:20 +08:00
Sugar Zhang
11e33efe53 arm64: dts: rockchip: rk3588-evb: Add hdmi sound for evb
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Ia8f538a1dc8c18aa9bcc7adb4fe9d182e2eb19eb
2021-11-13 15:42:35 +08:00
Finley Xiao
3d4f2e5567 arm64: dts: rockchip: rk3588-evb: Enable tsadc
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I3705cfd0140609097e7e5c7cab41c5a64991bb4d
2021-11-13 14:31:19 +08:00
Wu Liangqing
dbba421c59 arm64: dts: rockhip: rk3588-evb: adjust adc key value
Change-Id: I1df091f4368d7f435f8099b67cf0552c9c81df65
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
2021-11-13 11:46:13 +08:00
Jianqun Xu
26b748082e arm64: dts: rockchip: rk3588-evb: fix vcc3v3_lcd0_n node
Remove a regulator-fixed node without gpio enable pin from evb dtsi,
move them to next level board dt file.

The vcc3v3_lcd0_n regulator is a software virtual regulator for camera
module to push high/low level from a gpio but through regulator
enable/disable.

Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: I1f587fe1ca0ef9d31c6cba5362c1912b7208f293
2021-11-12 20:45:14 +08:00
Sandy Huang
5c2186f1b8 arm64: dts: rockchip: rk3588-evb: panel timing must bigger than 3
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Ia55dcc83cb53e9331a0dabc764ab18d3458ce2f3
2021-11-12 16:43:45 +08:00
Wangqiang Guo
2baf8fc47d arm64: dts: rockchip: rk3588-evb: move touch pinctrl to rk3588-evbx.dtsi
Signed-off-by: Wangqiang Guo <kay.guo@rock-chips.com>
Change-Id: I91fb070f4bd09a47db4967ca2bb458179c31f459
2021-11-12 16:14:22 +08:00
Jianqun Xu
84bb23a5d3 arm64: dts: rockchip: rk3588-evb default to disable sdmmc
RK3588-evb1 / RK3588-evb4 / RK3588-evb5 have no TF-card support
RK3588-evb2 / RK3588-evb3 support TF-card

Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: Ie67bdfba5b6e60c1a092dab2af0d1f96c3b9a1ca
2021-11-12 14:16:49 +08:00
William Wu
603ce88ca3 HACK: arm64: dts: rockchip: rk3588-evb: set max-speed to hs for usb3
This patch sets the maximum speed to high speed for
USB 3.0 OTG on rk3588 and rk3588s evbs. It's used to
support USB 2.0 ADB during bring up stage.

In the future, if the USB 3.0 PHY driver is ready, we
can revert this patch.

Change-Id: I654894a894e38c39104dc6efe0446867f6894b7b
Signed-off-by: William Wu <william.wu@rock-chips.com>
2021-11-11 18:17:19 +08:00
Shunhua Lan
84d94d76d4 arm64: dts: rockchip: rk3588-evb: add hp-con gpio and fix hp-det pin for sound card
Signed-off-by: Shunhua Lan <lsh@rock-chips.com>
Change-Id: I0facbe75a554e52eac4bbaa4bebbf8eb5370b42e
2021-11-11 14:26:33 +08:00
Finley Xiao
a29de32cbd arm64: dts: rockchip: rk3588-evb: Add supply regulators for cpu
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Ibc20902abe90a3d5c25f3fc4cb3be180e860403c
2021-11-10 15:18:51 +08:00
Andy Yan
4001b028fd arm64: dts: rockchip: Assign plane-mask for rk3588&rk3588s evb
This is a 8K(vp0+vp1) + 4K(vp2) + 2K(vp3) plane-mask.
This will be used before u-boot logo is ready.

Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Change-Id: Ibbac678ec0e1023073e8d44854990bf6027118b3
2021-11-10 14:57:32 +08:00