Commit Graph

1268369 Commits

Author SHA1 Message Date
Damon Ding
a601d1332e drm/rockchip: analogix_dp: add mem_clk_auto_gating config
Reg mem_clk_auto_gating can help to gate the clock for
accessing HDCP memory automatically.

Change-Id: I04188d59e4273cfb61551cd01ca53f336d2bf1aa
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2024-03-03 11:09:39 +08:00
Algea Cao
6413818cf5 drm/rockchip: dw_hdmi: Support rk3576 hdmitx
1.Support hpd.
2.Support hdmi ddc.
3.Support resolutions up to 4k120.

Change-Id: I557c3bdb097612aa7656ba23af7510ecb7158b17
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2024-03-03 11:09:39 +08:00
Damon Ding
2a859346b0 drm/rockchip: vop: move 1to4 reg configs to vo0_grf domain
For rk3576, vopl supports eDP/HDMI/MIPI by the 1to4
module, which can transfer 1 pixle/cycle data from
vopl to 4 pixle/cycle data for HDMI/MIPI controllers.

Change-Id: I0da688d53c92a93e55778da2cce17596a22f540e
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2024-03-03 11:09:39 +08:00
Damon Ding
ba3a77c3b7 drm/rockchip: vop: update VOP_GRF_SET() func to support different grf domains
Change-Id: Ibafb0458d13ab4b8c397e888fff1e43266777a79
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2024-03-03 11:09:39 +08:00
Algea Cao
039fcfd05c drm/rockchip: vop3: Support rk3576 post SHARP
SHARP mainly completes the enhancement of image
details, which can support the configuration of
different intensity gains for different scales
and different directions of details.

Only vp0 support SHARP and rgb input is not
supported. SHARP shares line buffer with
post scaler, so the two functions are mutually
exclusive.

Change-Id: Id4887594821640d6685a76a7094bbb57c6d50b21
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2024-03-03 11:09:39 +08:00
Algea Cao
c32a7f8a2c drm/rockchip: vop3: Support rk3576 DCI
DCI mainly completes the dynamic adjustment of the
brightness and contrast of the picture according to
the brightness distribution of the current picture,
so that the picture appears more transparent.

Only cluster0 supports DCI, suitable for minimum
resolution of 128 x 128 and maximum resolution of
4096 x 2160.

Change-Id: I1836d2d317172859b7df971ce4f4fb5dfb1b4c83
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2024-03-03 11:09:39 +08:00
Algea Cao
47d9586f41 drm/rockchip: vop3: Support rk3576 dither frac v2
Change-Id: I4a815190d05e8a149c969df7b4418f02031e3f2c
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2024-03-03 11:09:39 +08:00
Sandy Huang
8379fd7555 drm/rockchip: vop2: add support rk3576
RK3576 VOP have 2 Cluster win and 4 Esmart win, this win be used
by 3 video ports as following roles:
 * VP0 can use Cluster0/1 and Esmart0/2
 * VP1 can use Cluster0/1 and Esmart1/3
 * VP2 can use Esmart0/1/2/3

In additions, RK3576 VOP can support DCI/ACM/CSC/HDR/SHARP/GAMMA/3D LUT/POST SCALE/BCSH
etc. post process.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I89f656e847f758f9d3d57ee0c137b29196de6737
2024-03-03 11:09:39 +08:00
Damon Ding
d59406a0fc drm/rockchip: analogix_dp: add support for rk3576
Change-Id: Iba1522fbdb19d50f3ebfbac8eb056e1ba7c55125
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2024-03-03 11:09:38 +08:00
Guochun Huang
a456949589 drm/rockchip: dsi2: add support rk3576
Change-Id: I11edc6366102e6c2aee27f05731a87f3c6565468
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
2024-03-03 11:09:38 +08:00
Damon Ding
c84e046df4 drm/rockchip: vop: add support for rk3576 vopl
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: Ib4854bbb16834ae06db4f48d562eb0e8a072dc88
2024-03-03 11:09:38 +08:00
Damon Ding
3cdbc041e2 drm/rockchip: rgb: add support for rk3576
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: I52f6fdad495700dd172fa86c85d168100fcd7486
2024-03-03 11:09:38 +08:00
Steven Liu
2345ce1339 gpio: rockchip: support GPIO_TYPE_V2_2
Signed-off-by: Steven Liu <steven.liu@rock-chips.com>
Change-Id: Ia3e261dbe23d82fe9c1706cd2b374c27009fbdda
2024-03-03 11:09:38 +08:00
Steven Liu
9f71509836 pinctrl: rockchip: add rk3576 support
Signed-off-by: Steven Liu <steven.liu@rock-chips.com>
Change-Id: Ib5d22b9aeee559ad7bd7202b1586326f6f8cf8ab
2024-03-03 10:59:40 +08:00
Finley Xiao
d6510db1a1 soc: rockchip: power-domain: Add power domain support for rk3576
This driver is modified to support RK3576 SoCs.

Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Id933108d90a2850b82779a7328563a3b0812e703
2024-03-03 10:59:40 +08:00
Finley Xiao
dd7db0cde7 dt-bindings: add power-domain header for RK3576 SoCs
According to a description from TRM, add all the power domains.

Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Ia9361658401641acbaec8b4853a07507dcf48404
2024-03-01 22:15:43 +08:00
Elaine Zhang
12fe1aaf5b clk: rockchip: Add clock controller for the RK3576
Add the clock tree definition for the new RK3576 SoC.

Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I85c05295394032485f146efbaf8aee9044685bfa
2024-03-01 22:15:42 +08:00
Elaine Zhang
081c3b4917 clk: rockchip: add dt-binding header for rk3576
Add the dt-bindings header for the rk3576, that gets shared between
the clock controller and the clock references in the dts.
Add softreset ID for rk3576.

Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I6aff7360d4ff95266134394e66e0987c59906905
2024-03-01 22:15:42 +08:00
Elaine Zhang
f2ab9b0921 dt-binding: clock: Document rockchip,rk3576-cru bindings
Document the device tree bindings of the rockchip Rk3576 SoC
clock driver in
Documentation/devicetree/bindings/clock/rockchip,rk3576-cru.yaml.

Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: I4f80de8accd78e29a3bac0a8ef9c2c9ef946bb94
2024-03-01 22:15:42 +08:00
Cai YiWei
2ec5069873 arm64: rockchip_linux_defconfig: add vpss for rk3576
Change-Id: I79e46c333994ea0c80d5af3c0d470e5afd60e44c
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2024-03-01 22:15:42 +08:00
Zefa Chen
44b3e5d885 arm64: config: rockchip_linux_defconfig: add sc4336
Enable sc4336 for rk3576 evb1

Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I109eb8a0f68ef113392c57ccf4442774be23285a
2024-03-01 22:15:42 +08:00
Huibin Hong
72357fe5a5 arm64: rockchip_linux_defconfig: set CONFIG_SERIAL_8250_RUNTIME_UARTS=15
For soc has less 15 UARTS, bur more than 10, like rk3576

Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
Change-Id: I3bfdfa7414a080864e8d154dec8e1691c21a9ab0
2024-03-01 22:15:42 +08:00
Jiajian Wu
a39f4fe1b1 arm64: configs: rockchip_linux_defconfig: enable CONFIG_SND_SOC_ROCKCHIP_PDM_V2
Change-Id: I51a28cfcf9cac8e7922dc6586f49de53de887c0f
Signed-off-by: Jiajian Wu <jair.wu@rock-chips.com>
2024-03-01 22:15:42 +08:00
Lin Jianhua
e846546290 arm64: configs: rockchip_linux_defconfig: enable CONFIG_MFD_RK806_I2C
Change-Id: If914c7393b813d967dd341099d2c67bb09932ef0
Signed-off-by: Lin Jianhua <linjh@rock-chips.com>
2024-03-01 22:15:42 +08:00
David Wu
a705379b2e arm64: config: rockchip_linux_defconfig: Enable LSM6DSX config
Because the board of RK3576-iotest uses the i3c peripheral, it
is easy to enable this driver for testing.

Change-Id: I457ff6285d6627d8c11a0bbbda7261c9f5b19432
Signed-off-by: David Wu <david.wu@rock-chips.com>
2024-03-01 22:15:42 +08:00
David Wu
ff66a2bd6f arm64: configs: Add I3C support for rockchip_linux_defconfig
Change-Id: I67938676fb1f5edfefc31ba980d1f48efd6f1cad
Signed-off-by: David Wu <david.wu@rock-chips.com>
2024-03-01 22:15:42 +08:00
Tao Huang
f1792278d4 arm64: rockchip_linux_defconfig: Enable CPU_RK3576
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: If57d0b4355330d3ed9910890cd7c3d3005b6c933
2024-03-01 19:21:16 +08:00
Elaine Zhang
d6e0fb3ae1 soc: rockchip: Adds CPU_RK3576 config
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: Ia4cd6ea49a73733e74689e5f0dd687da7013b046
2024-03-01 19:21:16 +08:00
Shunhua Lan
043518cce6 ASoC: rockchip: multi-dais: Add legacy_dai_naming flag
Signed-off-by: Shunhua Lan <lsh@rock-chips.com>
Change-Id: Ia0ebb742dade8ecd3c7a0bae645cc1587e2e9a7e
2024-03-01 18:50:43 +08:00
Tao Huang
8af530780f Merge commit 'd7e2ada39537a54426c3a25f20dbb2d1d19d309d'
* commit 'd7e2ada39537a54426c3a25f20dbb2d1d19d309d':
  arm64: dts: rockchip: rk3588 boards: fix maximum-speed for usbdp node
  arm64: dts: rockchip: AMP memory use reserved-memory
  driver: rknpu: Update rknpu driver, version: 0.9.5
  arm64: dts: rockchip: rk356x boards: Fix to regulator to unique name
  mfd: display-serdes: delete the interface that GKI not supported

Change-Id: Ifbf2f6279906ca26b8106c8441a859f8394f5ec7
2024-03-01 18:44:25 +08:00
Tao Huang
d1fd7916f8 Merge commit '784e52a797a936672fdcb4b5ae32feae5fe47e71'
Merge made by the 'ours' strategy.

* commit '784e52a797a936672fdcb4b5ae32feae5fe47e71':
  spi: rockchip-sfc: Support sfc-cs-gpio
  spi: rockchip-sfc: Set the max speed depend on the IP version
  spi: rockchip-sfc: Using normal memory for dma

Change-Id: I567e7ae9e5e53597a30e162a6662ca80a65735d1
2024-03-01 18:43:36 +08:00
Frank Wang
d7e2ada395 arm64: dts: rockchip: rk3588 boards: fix maximum-speed for usbdp node
Since the usbdp phy driver parses "maximum-speed" property in
the parent's node not the child, this amends all the related
DT to fix it.

Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Change-Id: Ic727b1de5f8c59e2bb90c9c1c4b524f22663fb59
2024-03-01 18:41:00 +08:00
Finley Xiao
25130a98f3 dt-bindings: opp: rockchip: Document rockchip,pvtpll
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Iaf74ec66027a6364947048807d078c439e3f8846
2024-03-01 16:09:29 +08:00
Finley Xiao
0883a1b15e soc: rockchip: opp_select: Add support to parse rockchip,pvtpll
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Ic6c7b2cc7a17ca1a33245c5c164cf586f33a9064
2024-03-01 16:09:29 +08:00
Finley Xiao
3c25f86ddf soc: rockchip: opp_select: Add support to parse cci grf
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I0413fe5893c862c1c45dbb67d9966e9e8245166d
2024-03-01 16:09:29 +08:00
Finley Xiao
08ee72d40f dt-bindings: opp: rockchip: Document CCI GRF
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I555f4a7774f7345cf5cebca8790eda817668a209
2024-03-01 16:09:29 +08:00
Finley Xiao
9e4a1dc7e0 soc: rockchip: opp_select: Fix clk error for normal pll clk
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Ie7d980655f1c3c8cdc03206ec712789e916cfcc6
2024-03-01 16:09:29 +08:00
Finley Xiao
8bcccec31d soc: rockchip: opp_select: Add support to set regulator helper
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Ic60ed0614f90c8a883d72f1f1a3c1353b7feda87
2024-03-01 16:09:29 +08:00
Tao Huang
8ca3ffc967 init: Add CONFIG_ROCKCHIP_THUNDER_BOOT_DEFER_FREE_MEMBLOCK
Allow defer free large memblock to Buddy allocator work on
!CONFIG_ROCKCHIP_THUNDER_BOOT.

Change-Id: I30f851f648b007d1629eed27ba464ad2d7425577
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2024-03-01 15:46:23 +08:00
Simon Xue
286ef81333 mm: memblock: fix only first memblock be freed.
Allow up to 4 memblocks to be freed deferred.

Fixes: b6cd53a3a2 ("init: defer free large memblock to Buddy allocator when CONFIG_ROCKCHIP_THUNDER_BOOT=y")
Change-Id: Ie85d4802e639a5d11d64a4ab5f4f74647b7081fb
Signed-off-by: Simon Xue <xxm@rock-chips.com>
2024-03-01 15:46:15 +08:00
Zain Wang
570ffc5278 arm64: dts: rockchip: AMP memory use reserved-memory
Signed-off-by: Zain Wang <wzz@rock-chips.com>
Change-Id: I05d80fab58e047cc7bdac8ac34d1f541b556cb64
2024-03-01 10:25:28 +08:00
Shunhua Lan
c7827afc11 media: i2c: rk628: add hdmirx extcon
Signed-off-by: Shunhua Lan <lsh@rock-chips.com>
Change-Id: I0dc585a1de7221c0676d323041fc4f6e923cf11c
2024-03-01 10:14:11 +08:00
Sandy Huang
f24d59c6dd drm/panel: panel-simple: Don't init gpio value at probe
When enable display on loader, init gpio would change
gpio status, that would make screen flash.

Change-Id: I4b69a8d3d83c5bef09014c2134abaee6522a7046
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
2024-03-01 09:19:17 +08:00
Sugar Zhang
9d969d5904 ASoC: rockchip: multicodec: Fix err path for adc-key
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Ia05050fcd124dc5537548b4d9dd3aa6bb1a50792
2024-03-01 09:18:53 +08:00
Sugar Zhang
82596d73d0 ASoC: rockchip: spdifrx: Add legacy_dai_naming flag
This patch add legacy_dai_naming flag to solve the
probe failure.

Ref: commit d48a771735 ("ASoC: rockchip: Migrate to new style legacy DAI naming flag")

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I7f0d69db6fb7d814944fa6e73df1a0cead3b39ef
2024-03-01 09:15:20 +08:00
Jon Lin
4f9780e374 spi: spidev-rkslv: Fix compiler error
Change-Id: Ie6e3d11b43b557fcfd7e5f1a412a32ff00d84068
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-03-01 09:06:44 +08:00
Jianwei Fan
afdcc361c7 media: i2c: ov8865: add camera driver
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: I8e0209d87cb15a71dcca7e1121cc239906c2d0b6
2024-02-29 21:51:44 +08:00
Wang Panzhenzhuan
bca95c28eb media: i2c: add vcm driver ces6301
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: Iebd899fffc3499beb3f7bde753de2f94efd1e25e
2024-02-29 21:51:39 +08:00
Wang Panzhenzhuan
c14093df2d media: i2c: s5k3l8xx: adjust power sequence to suit spec
1. adjust power sequence to suit spec
2. add read/write reg error debug log

Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: Ic857ffc8075ecc636d0652da9eeaf142fc4563fb
2024-02-29 21:51:35 +08:00
Wang Panzhenzhuan
f1fd603e9a media: i2c: gc05a2: adjust power sequence to suit spec
1. adjust power sequence to suit spec.
2. fix bayer pattern to suit setting.

Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: Ic62aa778c051607df0313722e0963b2a1f9ae3a5
2024-02-29 21:51:31 +08:00