Commit Graph

1060795 Commits

Author SHA1 Message Date
Jianhui Wang
d4f4e5cea6 arm64: dts: rockchip: rk3588s-tablet: bring up tablet
Signed-off-by: Jianhui Wang <wjh@rock-chips.com>
Change-Id: I6601901251c535240b4a2cad6f4ea4bc22494ff8
2021-11-14 15:13:44 +08:00
Wyon Bi
5ee51da6f2 arm64: dts: rockchip: Add RK3588 EVB3 LP5 V10 eDP Board
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: I629312c9dccda589aea157c488d838e12aedc45d
2021-11-14 15:09:33 +08:00
Wyon Bi
93faefa6fe arm64: rockchip_defconfig: enable CONFIG_PHY_ROCKCHIP_SAMSUNG_HDPTX
Enable the HDPTX PHY driver used on Rockchip RK3588 SoC.

Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: Ib96cd35d7bda166900afc4b0650f922a21f1c0d5
2021-11-14 15:05:33 +08:00
Wyon Bi
4e5e956026 phy/rockchip: Add support for Samsung HDMI/DP Combo PHY
Add a new driver for Samsung HDPTX Combo transmit-PHY IP used
in Rockchip RK3588 SoC. The HDPTX is a PHY hardmacro to
support HDMI and DP interfaces.

Currently, it supports only DP mode.

Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: Ie70017969ee59dfc53f9e319591aa3f998a86b0c
2021-11-14 15:04:58 +08:00
Sugar Zhang
53a3ef7353 ASoC: rockchip: Add support for multicodecs machine driver
This patch adds support for sound which link multiple codecs
to the same cpu dai.

Change-Id: I77d3e9c10d03c2b8809c6d82b5268dba279ee6f0
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2021-11-14 14:27:56 +08:00
Sugar Zhang
513946019c ASoC: rockchip: Add support for Voice Activity Detection
- Drop duplicated PCM_RUNTIME_CHECK
- Replace rtd->x to macro asoc_rtd_to_x

Change-Id: I6ae63b4d36f2f9b24f0fdf352fdc385ec425b330
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2021-11-14 14:24:43 +08:00
Sugar Zhang
4d0c0e0a07 ASoC: dt-bindings: rockchip: Add compatible for rk3588 vad
This patch adds compatible string for rk3588 vad.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I69672704997a9344faa6b53b050e82d6259afdfd
2021-11-14 14:16:32 +08:00
Sugar Zhang
e811780873 ASoC: rockchip: vad: Add support for rk3588 SoC
This patch adds support for rk3588 SoC.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Ic5488967f7147c84700849d2d38e419ab707327a
2021-11-14 14:16:15 +08:00
Caesar Wang
94d7910211 arm64/configs: update configs for rockchip_linux_defconfig
1) make ARCH=arm64 savedefconfig

2) Enable CONFIG_PRINTK_TIME_FROM_ARM_ARCH_TIMER
   For get boot time better

3) Enable CONFIG_RFKILL_RK

4) Enable CONFIG_SND_SOC_ES8323
   This patch enable CONFIG_SND_SOC_ES8323 default for rk3588 evb boards.

5) Enable CONFIG_PHY_ROCKCHIP_SAMSUNG_DCPHY
   The driver is used by RK3588.

6) Enable type-c support
   Select Type-C related configs for Rockchip SoCs.

Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Change-Id: I42144dcb9ffbaced8ca58acc786c7319e6116a7b
2021-11-14 14:12:25 +08:00
William Wu
0e63394c58 arm64: dts: rockchip: rk3588s-evb2-lp5: add u3 phy for u3 host_2
This patch add usb3 combphy for usb3 host_2, with this
patch, the rk3588s evb2 board can support usb3 host.

Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: Ia8fdf5921218a554bb29ab4a8cc10fbd1b37827d
2021-11-14 11:48:17 +08:00
William Wu
3712121527 arm64: dts: rockchip: rk3588-nvr-demo: add u3 phy for u3 host_2
This patch add usb3 combphy for usb3 host_2, with this
patch, the rk3588 nvr demo v10 board can support usb3 host.

Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: I72301e14fc6b428722f171795377b1cbae9d2aa4
2021-11-14 11:48:17 +08:00
William Wu
d37e72f33b arm64: dts: rockchip: rk3588: add u3 phy for u3 host_2
This patch add usb3 combphy for usb3 host_2.

Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: I38fb63446a285d791cd0466e112ad33df1f3254e
2021-11-14 11:48:17 +08:00
Elaine Zhang
2f510ebc1f clk: rockchip: rk3588: fix up the cpu setting high freq crash
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: Ia5b825a3c8013a51973c37d45c91c7c36280e634
2021-11-14 11:38:01 +08:00
Tao Huang
3f948b3493 arm64: rockchip_gki.config: Enable CONFIG_PHY_ROCKCHIP_USBDP
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I66435f558679eee5afbd5ea8ff683c67dcd775cd
2021-11-14 10:46:12 +08:00
Tao Huang
61c1c97f4d arm64: rockchip_defconfig: Enable CONFIG_PHY_ROCKCHIP_USBDP
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I223c4d8ef5ce53132c0345ec4fe1ba4dc0dff0d7
2021-11-14 10:46:12 +08:00
Tao Huang
2bd5dfcad9 arm64: rockchip_gki.config: Enable CONFIG_RTC_DRV_HYM8563
Rockchip EVB use this feature.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ia5a9ebb76a9c7e7a5b7d5342f645ec156d18c9a8
2021-11-14 10:46:12 +08:00
Huang zhibao
4ae183cc46 arm64: rockchip_linux_defconfig: Enable RK860X
Signed-off-by: Huang zhibao <hzb@rock-chips.com>
Change-Id: I3c7aa0eb256d1d8bea17912c2690a6d5455a0887
2021-11-14 10:34:20 +08:00
Frank Wang
ab40e563be phy: rockchip: add usbdp combo phy driver
This adds a new USBDP combo PHY with Samsung IP block driver.

The driver get lane mux and mapping info in 2 ways, supporting
DisplayPort alternate mode or parsing from DT. When parsing from DT,
the property "rockchip,dp-lane-mux" provide the DP mux and mapping info.

When do DP link training, need to set lane number, link rate, swing, and
pre-emphasis via PHY configure interface.

Change-Id: I84256746c28d98efcadff5998bfb35a28c959410
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2021-11-14 10:26:12 +08:00
Frank Wang
c995f093fc dt-bindings: phy: add rockchip usbdp combo phy document
Add device tree binding document for Rockchip USBDP Combo PHY
with Samsung IP block.

Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Change-Id: Id9924e8061881ada6d5d2c2a36feb5009a85487b
2021-11-14 10:26:12 +08:00
Wyon Bi
332551a8c2 drm/rockchip: analogix_dp: Add support for rk3588
This patch adds support for Analogix eDP TX IP used on RK3588 SoC.

Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: I362489fb294673512b6de1913aa2e0b855a98926
2021-11-14 10:24:44 +08:00
David Wu
72bb4cf4a2 net: ethernet: stmmac: dwmac-rk: Fix delayline control for RK3588
The wrong choice is at GMAC1 RGMII delayline control.

Fixes: 2627dcd2c9e9("net: ethernet: stmmac: dwmac-rk: Add gmac support for rk3588")
Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: Ibc31f4f8b0f8c23c7ca3b290f3d95ba34f03c05f
2021-11-14 10:20:10 +08:00
David Wu
4a5684c1b1 arm64: boot: dts: rockchip: Enable gmac nodes for rk3588-nvr-demo
Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: I8f26369b54b35f7627acaffaf3b77e9e2c9a9c2c
2021-11-14 10:19:49 +08:00
Shawn Lin
9ff4dae907 arm64: dts: rockchip: rk806: support 1.8v for PLDO5
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: Ib7301e4a4308fd5e5882219b48b145d66a503b03
2021-11-14 10:18:48 +08:00
Andy Yan
fd6591c08d drm/rockchip: vop2: Fix Cluster2/3 MIX offset
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Change-Id: Ibc9b82b7c1c531b7ac062a8ead6f9e162f6fa0fb
2021-11-14 10:18:31 +08:00
Sandy Huang
b8a6f5f211 drm/rockchip: add DRM_RENDER_ALLOW
This is required by android hwc for dev/dri/card128.

Change-Id: Ia0159b877f7d8b2bb5cecf3b352b67d9c76c7c97
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2021-11-14 10:18:31 +08:00
Yandong Lin
35e4ee2855 arm64: dts: rockchip: Fix jpege resets cfg wrong issue for rk3588
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: Ifd1191c05bdcbbbd8487f47e391f9529ba72f6b0
2021-11-14 10:09:50 +08:00
Zefa Chen
4b69a0b94a arm64: dts: rockchip: rk3588: Add vicap node
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Ib3c7f7283fa0858e2273a1823e02dfce076df58a
2021-11-13 18:05:10 +08:00
Zefa Chen
2d1d48e930 media: rockchip: cif support rk3588
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I4398f9163b858c8f7dd32c88f2f2d37a9f464bcc
2021-11-13 17:55:58 +08:00
Zefa Chen
ac5a379e10 arm64: configs: rockchip_linux: add sensor imx464
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I2a850cdb64dcbfaf0c0ae5030ea518f169417aba
2021-11-13 17:50:33 +08:00
Andy Yan
d9ba95a38e drm/rockchip: vop2: Fix win_dly register definition
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Change-Id: I49bf658d1e6447a34d2af18d9aea574d1636f054
2021-11-13 16:35:18 +08:00
Simon Xue
13230c090c pcie-dma-trx: update to version 0x2
1. support buffer_size set by user
2. support assigned chn
3. support udma read
4. support buffer address set by userspace

Need to update test_pcie and test-pcie-ep-new.

New test command:

1. run ./test-pcie-ep-new 500 1024 chn_num buffer_address both on RC and EP first
   Release buffer use dma channel number = chn_num.

   if buffer_address = 0
	   pcie_dma_buffer_address get from DT reserved memory
   else
	   pcie_dma_buffer_address = buffer_address

2. run ./test-pcie 1 1000 1024 1 chn_num on RC
   The last "1" means enable PCIe udma read, "0" means write.
   RC read from EP use dma channel number = chn_num.

3. run ./test-pcie 2 1000 1024 1 chn_num on EP
   EP read from RC with offset = buffer count * buffer size.

4. check version by:
   cat /sys/kernel/debug/pcie/pcie_trx | grep version

5. 1024 means set buffer size to 1MB.

Change-Id: I7613037924659c75014d19b6c4845e096a56d295
Signed-off-by: Simon Xue <xxm@rock-chips.com>
2021-11-13 16:14:34 +08:00
Huang zhibao
aac2ef1f0a arm64: dts: rockchip: add rk3588 nvr demo V10 Board
Signed-off-by: Huang zhibao <hzb@rock-chips.com>
Change-Id: Iebafff8398966758ed9500656f5af2bf6f86d047
2021-11-13 15:56:46 +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
Sugar Zhang
0bd9ec6285 arm64: dts: rockchip: rk3588: Add snd property for hdmi nodes
This patch adds property '#sound-dai-cells' for hdmi nodes.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I0a785dda12fe57e1632021b12b3a8efc1044ee9f
2021-11-13 15:41:13 +08:00
Sugar Zhang
cb239e6eff arm64: dts: rockchip: rk3588: Fix clk for dedicated i2s
These controllers use the same clk for tx/rx.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Ie9a0adb950cdc584761c1079cb45e58d5eafccfb
2021-11-13 15:33:23 +08:00
Zefa Chen
fae7bbff82 media: i2c: imx464 fixed compatible err
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I830ec663d8c23aa6df0ec4703b7fc50ad151d1ab
2021-11-13 15:27:11 +08:00
Andy Yan
7b1fa2969a arm64: dts: rockchip: rk3588-android: Enable vop multi-area
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Change-Id: I50d03decc694d27d66431d8efef0c97ca4f19bc9
2021-11-13 15:11:12 +08:00
Jianqun Xu
21ad0ff168 arm64: dts: rockchip: rk3588-android add reserved memory
Reserved 8M for cma heap, the node' name will be used as heap' name.

Also add ramoops and logo node.

Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: I50654b1122126bb54092e3933d1a36cadf8d4ec5
2021-11-13 15:00:41 +08:00
Finley Xiao
28545837dd arm64: dts: rockchip: rk3588s: Add system monitor device node
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Iacbba5421ad2840336e1232b4507888a68206d84
2021-11-13 14:52:29 +08:00
Finley Xiao
85556b1e7f cpufreq: rockchip: Implement rockchip_cpufreq_opp_set_rate()
When enter low temperature mode, system monitor update opp table, then
check and change the current voltage for cpu, but now the opp voltage
inside cpu_opp_helper() may be old, the current voltage may be changed
back to old value. Move the volt_adjust_mutex out of dev_pm_opp_set_rate()
so that the opp voltage inside cpu_opp_helper() will be latest.

Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I9a91775dc9b5443e4b47b4255de6e21133c32404
2021-11-13 14:52:29 +08:00
Simon Xue
57ed5527ed iio: adc: rockchip_saradc: fix RK3588 channel issue
If read multiple channels at the same time, channel 1 will
error, add assert when start saradc as a workaround.

Change-Id: Iababf604b200555a46a96e1ca0bc7108c6df8680
Signed-off-by: Simon Xue <xxm@rock-chips.com>
2021-11-13 14:43:22 +08:00
Andy Yan
cea2902425 drm/rockchip: vop2: Change pd->lock to spinlock
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Change-Id: If1f50d15c48c569e8cf91c98cd0077bd53a753a1
2021-11-13 14:36:45 +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
Finley Xiao
9e18ed0d02 arm64: dts: rockchip: rk3588s: Add thermal zones device node
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I37a73ca0837cb2fa11753202e83725d1a1ae1019
2021-11-13 14:27:49 +08:00
Finley Xiao
131920c5e4 thermal: rockchip: Support RK3588 SoC in the thermal driver
The RK3588 SoC has seven channels TS-ADC(TOP, BIG_CORE0, BIG_CORE1,
LITTEL_CORE, CENTER, GPU, and NPU).

Change-Id: I940a10c8062ba73876f2dfd133ab8ea60ad3a799
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2021-11-13 14:13:09 +08:00
Finley Xiao
f93c9d6e78 OPP: Add two regulaters support for opp summary
device                rate(Hz)    target(uV)    min(uV)    max(uV)
-------------------------------------------------------------------
 cpu0
                      408000000       750000      750000      950000
                                      750000      750000      950000
                      600000000       750000      750000      950000
                                      750000      750000      950000
                      816000000       750000      750000      950000
                                      750000      750000      950000
                     1008000000       750000      750000      950000
                                      750000      750000      950000

Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I589fab5579e74a7ed58c8eefb16c4671335c8c75
2021-11-13 14:12:24 +08:00
shengfei Xu
a8069e368a arm64: rockchip_linux_defconfig: Enable RK806
+CONFIG_PINCTRL_RK806=y
+CONFIG_MFD_RK806_SPI=y
+CONFIG_REGULATOR_RK806=y

Signed-off-by: shengfei Xu <xsf@rock-chips.com>
Change-Id: I6c6f55219d317e49805570192d966681f23ce690
2021-11-13 11:51:27 +08:00
Andy Yan
f8d3c11f67 drm/rockchip: vop2: Support set unique possible_crtcs by plane_mask
Enabled by:

&vop2 {
	disable-win-move;
};

Change-Id: Idc15f713b74650ac910233538d186ad799e25124
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
2021-11-13 11:49:20 +08:00
Andy Yan
d188e84472 drm/rockchip: vop2: Enable POST_BUF_EMPTY_INT err irq print
Just print out POST_BUF_EMPTY_INT err irq if it happened.

Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Change-Id: Ia1d3747c94d432ca8451f38e10d32a82bbf7b958
2021-11-13 11:49:20 +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