Commit Graph

1061114 Commits

Author SHA1 Message Date
Yiqing Zeng
c77fca77ec media: i2c: imx464 set frame rate to 30fps
Signed-off-by: Yiqing Zeng <zack.zeng@rock-chips.com>
Change-Id: Iaa665c91da6c5526d15f1a3e3e68c9fc74b345a5
2021-11-24 17:36:30 +08:00
shengfei Xu
4d20d622f2 arm64: dts: rockchip: rk806: add init voltage for vdd_vdenc_s0
setting init voltage in uboot

Signed-off-by: shengfei Xu <xsf@rock-chips.com>
Change-Id: I0842381dd44c83407db51368299bf38c6417f9f0
2021-11-24 17:32:23 +08:00
Frank Wang
b779fc7f0a arm64: dts: rockchip; rk3588: add u2phy-grf property for usbdp phy
This adds "rockchip,u2phy-grf" phandle for USBDP Combo PHY.

Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Change-Id: Ia170eda889cdf8a45375887f460fcebd48ac88c8
2021-11-24 16:24:19 +08:00
Frank Wang
ee4eae4931 phy: rockchip: usbdp: add bvalid control for usb
For RK3588 EVB design, the USB vbus is always pull-up, and the USB
controller can not detect that the device was unattached. So based on
the orientation switch process, control the bvalid status via writing
U2PHY GRF when the Type-C controller detected that the device was
attached or unattached.

Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Change-Id: Ied27dea686895c180ec7b5d33a06af888a9fd64d
2021-11-24 16:24:19 +08:00
Frank Wang
e310db187e dt-bindings: phy: rockchip-usbdp: add u2phy-grf property
Add "rockchip,u2phy-grf" property for usbdp combo PHY.

Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Change-Id: Ieb58efce53446f45f188e25192e0b3a2835675bc
2021-11-24 16:24:19 +08:00
Shaoxing Chen
fb9d318c91 arm64: dts: rockchip: add gmac0 and gmac1 node for rk3588-evb4
Signed-off-by: Shaoxing Chen <csx@rock-chips.com>
Change-Id: Ic418ab872ecbf6b3a6ea99a4b3003529a21ff8a5
2021-11-24 15:26:31 +08:00
Lin Jinhan
56834fc1ea crypto: rockchip: add rk3588 support
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
Change-Id: If2f94bd8a57028a77df2f53f58bb117b4adc797a
2021-11-24 15:16:20 +08:00
Damon Ding
44f761d9fb arm64: dts: rockchip: rk3568-evb2-lp4x-v10-bt1120-to-hdmi: modify the bus-format definition
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: I2c6ab9a586604156504394ce17cf3074cecf653c
2021-11-24 15:06:06 +08:00
Wang Jie
2171d7fcf6 arm64: dts: rockchip: rk3588s-tablet: modify Type-C0 vbus configuration
The Type-C0 vbus circuit of rk3588s tablet has been modified.
Type-C0 is used as the host mode, the charger ic(bq25703)
outputs vbus.

Change-Id: I4940b9dbe90c915256d6b6ec2d56fa6a461bcf76
Signed-off-by: Wang Jie <dave.wang@rock-chips.com>
2021-11-24 14:54:15 +08:00
Wangqiang Guo
6c6c39e032 power: supply: bq25703(sc8886) power supply notifier
Signed-off-by: Wangqiang Guo <kay.guo@rock-chips.com>
Change-Id: I51dc1a07bbaf974362ea23bf01cb212ebd2e44c7
2021-11-24 14:46:31 +08:00
Shunqing Chen
9dca921398 power: supply: cw2015: add CAPACITY_LEVEL for psy
Signed-off-by: Shunqing Chen <csq@rock-chips.com>
Change-Id: I6ca67d24c40990f54a2ba2217e0e26283e2f9ffc
2021-11-24 14:45:30 +08:00
Finley Xiao
c7fddf7117 arm64: dts: rockchip: rk3588s: Add opp table for gpu
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I544f260410d9b5a17dfff2d1f6d30e55662cd812
2021-11-24 14:42:09 +08:00
Huang zhibao
fcf292577e arm64: dts: rockchip: rk3588-nvr-demo: add dp1 support
Signed-off-by: Huang zhibao <hzb@rock-chips.com>
Change-Id: I7604bd230aba201efd09204eb910d5a0c03cead4
2021-11-24 14:37:41 +08:00
Algea Cao
582ab904e7 drm/rockchip: dw_hdmi: Enable rk3588 clks before write/read hdmitx regs
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: I42ac9cd48e4c959d6f0990f606f0758575c9f796
2021-11-24 14:33:18 +08:00
Algea Cao
6b3a481369 arm64: dts: rockchip: rk3588: Add hdcp1 hclk/pclk for hdmi1
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: I1cda5002f9e12422d0af376717eb9a12c98a30fd
2021-11-24 14:19:46 +08:00
Algea Cao
458b14e5cc arm64: dts: rockchip: rk3588s: Add hdcp1 hclk/pclk for hdmi0
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: Ib5abcd2940184c6dbee783d8b96bc1c5b4f0afbd
2021-11-24 14:19:16 +08:00
Wu Liangqing
01442ef09e arm64: dts: rockchip: rk3588-evb2 support
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
Change-Id: Iea0a39517411d2f6aa15a3ba6016ffef1fd9a191
2021-11-24 14:16:16 +08:00
Guochun Huang
ec9e7b000e drm/rockchip: dsi2: add helper function for mode valid
the minimum region size (HSA,HBP,HACT,HFP) is 4 pixels
which is the dsi2 ip known issues and limitations.

Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
Change-Id: I15c4fd942ff5cd0fd8c3ad3590b83b24a0c7dd33
2021-11-24 14:10:31 +08:00
Guochun Huang
d08def6b42 drm/rockchip: dsi2: config cphy lp2hs/hs2lp timing
Change-Id: I37edc1aabc5592b2ab6453ea2bf966e82809947a
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
2021-11-24 14:09:29 +08:00
Guochun Huang
b46d142d92 arm64: dts: rockchip: rk3588-evb3: modify timing for cphy panel
the minimum region size (HSA,HBP,HACT,HFP) is 4 pixels
which is the ip known issues and limitations.

Change-Id: I9069ed1c9b6a44b6da27ec0c11d5940f45f45a1c
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
2021-11-24 11:41:15 +08:00
Jiapeng Chong
4f24b11139 UPSTREAM: ASoC: hdmi-codec: make hdmi_codec_controls static
This symbol is not used outside of hdmi-codec.c, so marks it static.

Fix the following sparse warning:

sound/soc/codecs/hdmi-codec.c:750:25: warning: symbol
'hdmi_codec_controls' was not declared. Should it be static?

Change-Id: I6569284ef557fee683afb9031e5cc1b5684a1c30
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Link: https://lore.kernel.org/r/1623822941-3077-1-git-send-email-jiapeng.chong@linux.alibaba.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
(cherry picked from commit e99d7c69fd)
2021-11-24 11:08:47 +08:00
Maxime Ripard
84f06abd7c UPSTREAM: ASoC: hdmi-codec: Add a prepare hook
The IEC958 status bit is usually set by the userspace after hw_params
has been called, so in order to use whatever is set by the userspace, we
need to implement the prepare hook. Let's add it to the hdmi_codec_ops,
and mandate that either prepare or hw_params is implemented.

Change-Id: I06ccde5d8185955bb60783b597f0205811460968
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Acked-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20210525132354.297468-6-maxime@cerno.tech
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
(cherry picked from commit 2fef64eec2)
2021-11-24 11:08:24 +08:00
Maxime Ripard
973d962119 UPSTREAM: ASoC: hdmi-codec: Add iec958 controls
The IEC958 status bits can be exposed and modified by the userspace
through dedicated ALSA controls.

This patch implements those controls for the hdmi-codec driver. It
relies on a default value being setup at probe time that can later be
overridden by the control put.

The hw_params callback is then called with a buffer filled with the
proper bits for the current parameters being passed on so the underlying
driver can just reuse those bits as is.

Change-Id: I99f37b7e74655687e73a75ba19fd2de8041f8646
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Acked-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20210525132354.297468-5-maxime@cerno.tech
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
(cherry picked from commit 7a8e1d4421)
2021-11-24 11:08:24 +08:00
Maxime Ripard
e2a4fcdc4f UPSTREAM: ASoC: hdmi-codec: Rework to support more controls
We're going to add more controls to support the IEC958 output, so let's
rework the control registration a bit to support more of them.

Change-Id: Ia8c0bf8c997638b5a121ae7356fa1eb27746036f
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Acked-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20210525132354.297468-4-maxime@cerno.tech
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
(cherry picked from commit 366b45b974)
2021-11-24 11:08:24 +08:00
Maxime Ripard
57e2bdf0f3 UPSTREAM: ALSA: iec958: Split status creation and fill
In some situations, like a codec probe, we need to provide an IEC status
default but don't have access to the sampling rate and width yet since
no stream has been configured yet.

Each and every driver has its own default, whereas the core iec958 code
also has some buried in the snd_pcm_create_iec958_consumer functions.

Let's split these functions in two to provide a default that doesn't
rely on the sampling rate and width, and another function to fill them
when available.

Change-Id: I277899145367b219b337bc796f2faee8c4917082
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Reviewed-by: Takashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/r/20210525132354.297468-3-maxime@cerno.tech
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
(cherry picked from commit 9eafc11f92)
2021-11-24 11:08:24 +08:00
Maxime Ripard
3f7049cdd6 UPSTREAM: ALSA: doc: Clarify IEC958 controls iface
The doc currently mentions that the IEC958 Playback Default should be
exposed on the PCM iface, and the Playback Mask on the mixer iface.

It's a bit confusing to advise to have two related controls on two
separate ifaces, and it looks like the drivers that currently expose
those controls use any combination of the mixer and PCM ifaces.

Let's try to clarify the situation a bit, and encourage to at least have
the controls on the same iface.

Change-Id: Ie0fb033564972f74154c378c644c581dc4d06dfa
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Reviewed-by: Takashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/r/20210525132354.297468-2-maxime@cerno.tech
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
(cherry picked from commit aa7899537a)
2021-11-24 11:08:24 +08:00
Pierre-Louis Bossart
c1499e956d UPSTREAM: ASoC: hdmi-codec: remove unused spk_mask member
fix cppcheck warning:

sound/soc/codecs/hdmi-codec.c:25:16: style: struct member
'hdmi_codec_channel_map_table::spk_mask' is never
used. [unusedStructMember]
 unsigned long spk_mask;  /* speaker position bit mask */
               ^

Change-Id: I235b7757db88bfbd059ad0f9795908fbfbb1cfdb
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20210312182246.5153-12-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
(cherry picked from commit 9ad869fee5)
2021-11-24 11:08:24 +08:00
Pierre-Louis Bossart
7a38a05259 UPSTREAM: ASoC: hdmi-codec: remove useless initialization
Fix cppcheck warning:

sound/soc/codecs/hdmi-codec.c:745:5: style: Redundant initialization
for 'cf'. The initialized value is overwritten before it is
read. [redundantInitialization]
 cf = dai->playback_dma_data;
    ^
sound/soc/codecs/hdmi-codec.c:738:31: note: cf is initialized
 struct hdmi_codec_daifmt *cf = dai->playback_dma_data;
                              ^
sound/soc/codecs/hdmi-codec.c:745:5: note: cf is overwritten
 cf = dai->playback_dma_data;
    ^

Change-Id: Ia903635862e043207929827afcaeb531e6344283
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20210312182246.5153-11-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
(cherry picked from commit 3c011ef344)
2021-11-24 11:08:24 +08:00
Sia Jee Heng
a916d4e8d3 UPSTREAM: ASoC: codec: hdmi-codec: Support IEC958 encoded PCM format
Existing hdmi-codec driver only support standard pcm format.
Support of IEC958 encoded format pass from ALSA IEC958 plugin is needed
so that the IEC958 encoded data can be streamed to the HDMI chip.

Change-Id: I01516e34605e380995b5312273035a0d000d36f1
Signed-off-by: Sia Jee Heng <jee.heng.sia@intel.com>
Link: https://lore.kernel.org/r/20210204014258.10197-2-jee.heng.sia@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
(cherry picked from commit 28785f548d)
2021-11-24 11:08:24 +08:00
Stephan Gerhold
71e6844b4a UPSTREAM: ASoC: hdmi-codec: Fix return value in hdmi_codec_set_jack()
Sound is broken on the DragonBoard 410c (apq8016_sbc) since 5.10:

  hdmi-audio-codec hdmi-audio-codec.1.auto: ASoC: error at snd_soc_component_set_jack on hdmi-audio-codec.1.auto: -95
  qcom-apq8016-sbc 7702000.sound: Failed to set jack: -95
  ADV7533: ASoC: error at snd_soc_link_init on ADV7533: -95
  hdmi-audio-codec hdmi-audio-codec.1.auto: ASoC: error at snd_soc_component_set_jack on hdmi-audio-codec.1.auto: -95
  qcom-apq8016-sbc: probe of 7702000.sound failed with error -95

This happens because apq8016_sbc calls snd_soc_component_set_jack() on
all codec DAIs and attempts to ignore failures with return code -ENOTSUPP.
-ENOTSUPP is also excluded from error logging in soc_component_ret().

However, hdmi_codec_set_jack() returns -E*OP*NOTSUPP if jack detection
is not supported, which is not handled in apq8016_sbc and soc_component_ret().
Make it return -ENOTSUPP instead to fix sound and silence the errors.

Cc: Cheng-Yi Chiang <cychiang@chromium.org>
Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Fixes: 55c5cc63ab ("ASoC: hdmi-codec: Use set_jack ops to set jack")
Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Acked-by: Nicolin Chen <nicoleotsuka@gmail.com>
Link: https://lore.kernel.org/r/20210107165131.2535-1-stephan@gerhold.net
Signed-off-by: Mark Brown <broonie@kernel.org>
(cherry picked from commit 2a0435df96)

Change-Id: Id38ce1cdfc80daaac7d77212cecd29dd6fa4e877
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2021-11-24 11:08:24 +08:00
Shengjiu Wang
57f647c6cb UPSTREAM: ASoC: hdmi-codec: Add RX support
HDMI interface can also be used as receiver, this patch is to
add such support. The most difference compare with TX is that RX
don't need to get edid information.

Change-Id: Ib5f9f347cd50abe95fa9c8a4856bd1a91117ca67
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Link: https://lore.kernel.org/r/1606372608-2329-1-git-send-email-shengjiu.wang@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
(cherry picked from commit 144f836646)
2021-11-24 11:08:24 +08:00
Cheng-Yi Chiang
cf648c7c0f UPSTREAM: ASoC: hdmi-codec: Get ELD in before reporting plugged event
In plugged callback, ELD should be updated from display driver so that
user space can query information from ELD immediately after receiving jack
plugged event.

When jack is unplugged, clear ELD buffer so that user space does not get
obsolete information of unplugged HDMI.

Change-Id: I2245de6e6f7dbc64863267db864dafdd3af95747
Signed-off-by: Cheng-Yi Chiang <cychiang@chromium.org>
Link: https://lore.kernel.org/r/20201118043852.1338877-1-cychiang@chromium.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
(cherry picked from commit 25ce4f2b35)
2021-11-24 11:08:24 +08:00
Tao Huang
8d6989ba85 MALI: bifrost: Fix -Wmissing-prototypes warnings
drivers/gpu/arm/bifrost/mali_kbase_core_linux.c:2955:6: warning: no previous prototype for function 'kbasep_ktrace_dump_wrapper' [-Wmissing-prototypes]
drivers/gpu/arm/bifrost/backend/gpu/mali_kbase_irq_linux.c:182:13: warning: no previous prototype for function 'kbase_gpu_irq_test_handler' [-Wmissing-prototypes]
drivers/gpu/arm/bifrost/backend/gpu/mali_kbase_irq_linux.c:210:5: warning: no previous prototype for function 'kbase_set_custom_irq_handler' [-Wmissing-prototypes]
drivers/gpu/arm/bifrost/platform/rk/mali_kbase_config_rk.c:241:5: warning: no previous prototype for function 'rk_kbase_device_runtime_init' [-Wmissing-prototypes]
drivers/gpu/arm/bifrost/platform/rk/mali_kbase_config_rk.c:246:6: warning: no previous prototype for function 'rk_kbase_device_runtime_disable' [-Wmissing-prototypes]
drivers/gpu/arm/bifrost/platform/rk/mali_kbase_config_rk.c:266:5: warning: no previous prototype for function 'kbase_platform_early_init' [-Wmissing-prototypes]
drivers/gpu/arm/bifrost/platform/rk/mali_kbase_config_rk.c:274:6: warning: no previous prototype for function 'kbase_platform_rk_shutdown' [-Wmissing-prototypes]
drivers/gpu/arm/bifrost/platform/rk/mali_kbase_config_rk.c:460:5: warning: no previous prototype for function 'kbase_platform_rk_init_opp_table' [-Wmissing-prototypes]
drivers/gpu/arm/bifrost/ipa/mali_kbase_ipa.c:399:5: warning: no previous prototype for function 'kbase_scale_static_power' [-Wmissing-prototypes]

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I47be45c9ac2b7f9eedec1977d358b535f7fbd795
2021-11-24 09:53:51 +08:00
Jianwei Fan
fbed03a602 ARM64: rockchip_defconfig: enable CONFIG_VIDEO_OV13855
enable ov13855 camera driver used for rk3588s-tablet

Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: Idd3b50b20fc451c18f57eac337ac58c219f957e4
2021-11-23 21:16:14 +08:00
Jianwei Fan
3844ce0ba5 media: i2c: ov13855: add camera driver ov13855
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: I72723e34c7712093bd6fa639528177d5d14bc5b8
2021-11-23 21:15:59 +08:00
Wyon Bi
3fdf77eb6f drm/rockchip: vop2: Add pclk support
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: If35f3ce459a9e36df562fa015e47d2ecf2d740d2
2021-11-23 20:59:23 +08:00
Wyon Bi
01ac874b5c arm64: dts: rockchip: rk3588s: Add pclk to vop node
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: If8b8ed6760e90e9dfd8f739ccfd5a79b928d10c1
2021-11-23 20:59:23 +08:00
Wyon Bi
9c9db5fd41 clk: rockchip: rk3588: export pclk_vopgrf id for vop
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: I1d1d2b8d0a87763f1671ce0bc6f9933caaac3800
2021-11-23 20:59:23 +08:00
Wyon Bi
cd17a24cbd arm64: dts: rockchip: rk3588: Add hclk to dp node
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: Icd10a683360834d7326a22b37ee648626dc02883
2021-11-23 20:59:22 +08:00
Wyon Bi
7a66a44e9e arm64: dts: rockchip: rk3588: Add hclk to edp node
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: Ibe702f41c0a3a585cd20a22856bf1065dc842a03
2021-11-23 20:59:22 +08:00
Wyon Bi
487451ecd3 arm64: dts: rockchip: rk3588: Fix clock-cells for link clocks
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: Icd39f13b53546407b4a850eace46aaba3ab3d7b7
2021-11-23 20:59:22 +08:00
Wyon Bi
e0a703613d clk: rockchip: link: Add of clk provider support
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: I8318ea3a6e582043f0f1f668502f76b063e9719b
2021-11-23 20:59:22 +08:00
William Wu
a038f27bf1 arm64: dts: rockchip: rk3588: Add phy utmi clk for usb2 host
This patch add UTMI clk from usb2 phy for usb2 host controllers.

Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: I4f7f297ffb09aa1a9d81e625c67933883d98588d
2021-11-23 20:56:25 +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
William Wu
9e3a19c70f arm64: dts: rockchip: rk3588: Add u2 and u3 phys for usb controllers
This patch adds usb2_phy0 and usbdp_phy0 for usb3_0 otg,
usb2_phy1 and usbdp_phy1 for usb3_1 otg, usb2_phy2 for
usb2_0 host, usb2_phy3 for usb2_1 host.

Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: I10eff4d7e993c317517f9cf86f6d126238c53f4e
2021-11-23 19:46:29 +08:00
Frank Wang
ee3ec96219 phy: rockchip: usbdp: amend to support u3
Add below changes to support U3:
 - amend registers of the init sequence.
 - amend 24MHz refclk registers and add 26MHz refclk support.
 - add maximum-speed property for USB.
 - cleanup codes and add fault-tolerant process.

Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Change-Id: I25ca3cb8c81a36691200277d94ac0a21bc9b57cb
2021-11-23 19:44:25 +08:00
William Wu
0221f1547f phy: rockchip: inno-usb2: Add usb2 phy support for rk3588
Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: I71c3ae35a67eba0157538f9c0980a7cc4b767727
2021-11-23 19:44:25 +08:00
William Wu
8dae8f2c0d phy: rockchip: inno-usb2: fix charge detection
Fixes: 61b9414d71 ("phy: rockchip: inno-usb2: keep utmi clk on during charge detection")
Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: Ifcaf0ec333399a73a0c7af32cc053379763b83c2
2021-11-23 19:44:25 +08:00
William Wu
4450c2a62e dt-bindings: phy: rockchip-inno-usb2: add binding for rk3588 usb2 phy
This adds "rockchip,rk3588-usb2phy" compatible property.

Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: I916040169de3a7dff3440c9b4c8e4c141e2ddc72
2021-11-23 19:40:00 +08:00
William Wu
e965947374 arm64: dts: rockchip: rk3588: disable receiver detection in P3 for usb3 host
RK3588 USB3_2 Host controller require to disable receiver detection
in P3 for correct detection of USB devices. Add this quirk to set
the GUSB3PIPECTL.DISRXDETINP3, then the DWC3 core will change the
PHY power state to P2 and then perform receiver detection. After
receiver detection, the DWC3 core will change the PHY power state
to P3 state.

Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: I4043e022e839c9ebe669d7cb9962448916d928a8
2021-11-23 19:39:50 +08:00