Commit Graph

1061129 Commits

Author SHA1 Message Date
Zefa Chen
dc5d09618c media: rockchip: rkcif fix some errors, these errors may cause the sub-device call to fail
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I20b742c2c75324914bbb1a9405017c18900df121
2021-11-25 15:11:26 +08:00
Zefa Chen
de253638e3 media: rockchip: cif clean unready subdev before async subdev-itf
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I2049f83a9d552109acca86d37d81ef0ceb2e9687
2021-11-25 15:11:06 +08:00
Wyon Bi
6f62dc64fe Revert "clk: rockchip: rk3588: export pclk_vopgrf id for vop"
This reverts commit 9c9db5fd41.

Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: I11ef7f3e52cb7512acbc638a67e75c9295ddbbdd
2021-11-25 15:10:00 +08:00
Wyon Bi
9522113735 arm64: dts: rockchip: rk3588s: Fix vop pclk clock id
Fixes: 01ac874b5c ("arm64: dts: rockchip: rk3588s: Add pclk to vop node")
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: I4e3a753d5017987e9803d5e4d1843a20e9405edc
2021-11-25 15:09:41 +08:00
David Wu
dfc1ca96ca arm64: dts: rockchip: Fix tx delayline for rk3588-evb1 and rk3588-evb2
Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: Icd2bf56f8aa06fd379ad37a8eb65ff36d53ad52d
2021-11-25 15:04:34 +08:00
Wyon Bi
73cbd8621f drm/rockchip: analogix_dp: Add audio support for rk3588
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: If68c6102e8c3d129ad5777cf1310b6226f4fb16d
2021-11-25 15:03:53 +08:00
Sugar Zhang
0e48a7ef3c ASoC: hdmi-codec: Fix mismatch channel status array
Fixes:
[smatch] sound/soc/codecs/hdmi-codec.c:504 hdmi_codec_hw_params()
error: memcpy() 'hcp->iec_status' too small (5 vs 24)

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I6dfa154c95159fa7563faf52a6fdbd87e0f398a9
2021-11-25 14:21:23 +08:00
Sugar Zhang
4142064c7f ASoC: rockchip: i2s: Add support for IEC958
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I58243b194cd15b7d57e9b580d6917c2e054a1e67
2021-11-25 14:20:56 +08:00
Sugar Zhang
6b7fb9a6c9 drm/bridge: synopsys: Fix register access panic when PD off
Internal error: synchronous external abort: 96000010 [#1] SMP
Modules linked in: bcmdhd
CPU: 3 PID: 958 Comm: aplay Not tainted 5.10.43 #275
Hardware name: Rockchip RK3588 EVB1 LP4 V10 Board (DT)
pstate: 20400089 (nzCv daIf +PAN -UAO -TCO BTYPE=--)
pc : regmap_mmio_read32le+0x18/0x34
lr : regmap_mmio_read+0x50/0x7c
sp : ffffffc013f7b6e0
x29: ffffffc013f7b6e0 x28: ffffff8406dc9200
x27: 0000000000000000 x26: 0000000000000000
x25: 0000000000000000 x24: 0000000000008106
x23: 0000000000000000 x22: ffffff84013c1400
x21: 0000000000000aa8 x20: ffffff8402478200
x19: ffffffc013f7b764 x18: 0000000000000000
x17: 0000000000000000 x16: ffffff84026a6844
x15: 0000000000000000 x14: 0000000000000000
x13: 0000000000000000 x12: 0000000000000008
x11: ffffffc010c2d150 x10: 0000000000000000
x9 : ffffffc01081bc80 x8 : ffffffc0136a0aa8
x7 : 0000000000000000 x6 : 0000000000000000
x5 : 0000000000000000 x4 : 0000000000000000
x3 : 0000000000000000 x2 : ffffffc013f7b764
x1 : 0000000000000aa8 x0 : ffffff8402478200
Call trace:
 regmap_mmio_read32le+0x18/0x34
 _regmap_bus_reg_read+0x24/0x30
 _regmap_read+0x94/0x14c
 _regmap_update_bits+0x98/0x110
 regmap_update_bits_base+0x70/0xa0
 hdmi_modb+0x38/0x44
 dw_hdmi_qp_i2s_hw_params+0x88/0x1ec
 hdmi_codec_hw_params+0x148/0x214
 snd_soc_dai_hw_params+0x68/0xbc
 soc_pcm_hw_params+0x28c/0x508
 snd_pcm_hw_params+0x140/0x3a0
 snd_pcm_common_ioctl+0x1284/0x1a40
 snd_pcm_ioctl+0x3c/0x54
 __arm64_sys_ioctl+0x84/0xbc
 el0_svc_common+0xac/0x184
 do_el0_svc+0x88/0x94
 el0_svc+0x10/0x1c
 el0_sync_handler+0x80/0x134
 el0_sync+0x1a0/0x1c0

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I85117d4375e6f32800188b37f432b9d1a41e738d
2021-11-25 14:19:13 +08:00
Sugar Zhang
93b6e9072f drm/bridge: synopsys: Add bitstream support for hdmi-qp
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I83e5558507994351b182a503325a56507f1867ee
2021-11-25 14:18:32 +08:00
Andy Yan
b634806e33 drm/rockchip: vop2: Always disable a zero actual_w/h window
This fix a case that a right part of a window in splice mode
that not disable when the right part isactual_w/h is zero, that
will cause a iommu page fault.

Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Change-Id: I71cfb819d200e642ef343c2d37f818772aa7e329
2021-11-24 19:46:06 +08:00
Andy Yan
1b5c4ae548 drm/rockchip: vop2: Both overlay mode of two VP should set the same in splice mode
Both overlay mode of two Video Ports should be set the
same in splice mode.

Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Change-Id: If613bc91e18c585140fdcf6f6ac72d0e6aa434e2
2021-11-24 18:41:33 +08:00
Tao Huang
da8368cb44 Revert "arm64: dts: rockchip: rk3588-linux: Enable clk/pd always on"
This reverts commit f27234ade9.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I845de161f81e1a271c3018bdfbc253bd0d8f6f1a
2021-11-24 17:42:36 +08:00
Tao Huang
53b328df55 Revert "arm64: dts: rockchip: rk3588-android: Enable clk/pd always_on"
This reverts commit 06540af0a9.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I5498aaf4df787a0046e89bd246acb59f46ef410b
2021-11-24 17:41:59 +08:00
Zhang Yubing
56be273aff phy: rockchip: usbdp-phy: set lane mapping when dp power on
dp lane mapping need set vo0grf, but vo0grf is in PD_VO0.
dp controller also in PD_VO0. Setting the vo0grf register
in the dp power on sequence, when the dp controller has
hold the PD_VO0.

Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Change-Id: If944daf5ebd71ae9ebaa58dc1f9493a3022a2eaf
2021-11-24 17:41:01 +08:00
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