Commit Graph

1059107 Commits

Author SHA1 Message Date
Shawn Lin
fece037fac mmc: sdhci-of-dwcmshc: Adjust DLL_TXCLK_TAPNUM_DEFAULT to 0x10
This value is better to be 0x10 instead of 0x16 by new test report
to keep all RK356x work consistently.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: I87a22f6e02a6206981fe484db353613ac9a3ede6
2021-07-23 17:29:11 +08:00
Simon Xue
131703bbd9 video: rockchip: iep: fix build issue
1. fix iommu head file
2. fix slab head file
3. fix drm head file
4. drop api only work in kernel-3.10
5. fix iommu api

Change-Id: I551ceb4a01c4070dfbb5fa842a6790894177713e
Signed-off-by: Simon Xue <xxm@rock-chips.com>
2021-07-23 12:07:33 +08:00
Finley Xiao
ae3abb8c63 dt-bindings: power: add binding for rk3568 power domains
Add binding documentation for the power domains
found on Rockchip RK3568 SoCs.

Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I7544a643096948e75f59fb8126201b0de142440d
2021-07-23 11:41:35 +08:00
Finley Xiao
6e97bedf89 clk: rockchip: rv1126: Fix ispp parents' name
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I5bb9437320835a2a0cdb16c039aabd846bf1d682
2021-07-23 11:40:17 +08:00
Finley Xiao
6669a99505 clk: rockchip: rk3308: add cru regs dump for panic
Add cru regs dump when system panic. It's just for debug.

Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I3c39c974523238b0140492be5e9eceb1811b3945
2021-07-23 11:39:21 +08:00
Finley Xiao
ddbda6c6df clk: rockchip: rk3308: Set max parent rate of dclk_vop_frac for rk3308b
The max parent rate of dclk_vop_frac is improved to 800MHz on rk3308b.

Change-Id: Ie36120ac7048fc4c983547539a6bce34d737529d
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2021-07-23 11:39:21 +08:00
Sandy Huang
31307243fa drm/rockchip: analogix_dp: register analogix_dp to rockchip_drm_sub_dev_list
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Iae408b344ea17f1eaa3718b8f57fcd402de0a2d9
2021-07-23 11:36:15 +08:00
Sandy Huang
6cd7f48350 drm/rockchip: dsi: register mipi dsi to rockchip_drm_sub_dev_list
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I9dea09bb785344342875a9879b77edf8d8bb8639
2021-07-23 11:36:15 +08:00
Sandy Huang
e78097e89b drm/bridge: dw-mipi-dsi: add api to get connector
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Id024b178bf936f0af3a782fe2c54fde661cce0da
2021-07-23 11:36:15 +08:00
Yu Qiaowei
6d3cc78d0e video/rockchip: rga2: Fix MMU base not shift forward.
Since the MMU base is not shifted forward, when the sync/async mode
is called together, the same memory is used to store the page table,
resulting in data errors.

Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: If4807da8159e98a8d807cc24b4d6533793eeefa8
2021-07-23 11:19:18 +08:00
Algea Cao
c4bac4aa0b drm/rockchip: Add hdmi shutdown interface
When system shutdown, shutdown interface will be called.
Hdmi should be disabled when system shutdown.

Change-Id: I09ec1d7d3801bf8a8277c91072fa09bd1b430809
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2021-07-23 09:57:23 +08:00
Algea Cao
37fda45520 drm/bridge: dw_hdmi: initialize hdmi i2c when system resume
Change-Id: Ie9373517e255c91ded38a4e620d15d5cfd0bd9c4
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2021-07-23 09:57:23 +08:00
Algea Cao
495a7777d6 drm: bridge: dw-hdmi: set hdmi ddc pin HI-Z when suspend
Set hdmi ddc pin HI-Z to save power.

Change-Id: Ic5e15cac43c486e7de6be8526daea9b36da68bc8
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2021-07-23 09:57:23 +08:00
Huicong Xu
36549072d7 drm/rockchip: dw_hdmi: add power domain control
close pd when suspend, no when plug out because hotplug detect need it.

make hdmi probe before dp otherwise the shared power domain will be
close after dp probe and cause splash screen when starting kernel if
hdmi uboot logo display

Change-Id: I82ba1abdaf7567173df9ad900d57eca0e6be3932
Signed-off-by: Huicong Xu <xhc@rock-chips.com>
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2021-07-23 09:57:23 +08:00
Bin Yang
901d4890ec drm/bridge: dw_hdmi: clear ih_mute register when system resume
HDMI PD is power off when system suspend, so ih_mute register
bit0 mute_all_interrupt will be reset to 1 when system resume.
HPD interrupt will be mask, that would cause hdmi plugin could
not be detected.

Change-Id: I3bf2e6116e902cd516a7ac69fbe8569ca943e853
Signed-off-by: Bin Yang <yangbin@rock-chips.com>
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2021-07-23 09:57:01 +08:00
Algea Cao
5d73d163ad drm: rockchip: dw-hdmi: Introduce HCLK_VOP for RK3566/RK3568
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: Ifcc15490b135692d955500114b59cbf8c326cacd
2021-07-23 09:50:08 +08:00
Algea Cao
3a99549ccd drm: rockchip: dw-hdmi: Add clk hclk_vio
Change-Id: If117c63f97c2af0811d29f322188ddc24470eadb
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2021-07-23 09:49:56 +08:00
Algea Cao
a22981924b drm: rockchip: dw-hdmi: Set hdmi output interface to HDMI0
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: Ia9c694f73c1fe9ae3bdb4d8774658dca566ef6c2
2021-07-23 09:49:49 +08:00
Shunqing Chen
31238b71f1 drm: rockchip: dw-hdmi: add RK3568 support
Change-Id: I24ec9a60d915b71281362b0b2d67fb8c288cdd14
Signed-off-by: Shunqing Chen <csq@rock-chips.com>
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2021-07-23 09:49:43 +08:00
Algea Cao
96afb6b92d drm: rockchip: dw-hdmi: Add encoder mode set
Update hdmi phy ref clock in encoder mode set.

Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: I8e1df8e3d9e4109e9beae5bdaaf82ea8cc070407
2021-07-23 09:49:34 +08:00
Shunqing Chen
25665e043a drm: rockchip: dw-hdmi: rename vpll_clk to accommodate more platforms
Change-Id: I6d5aaacc241add2bbd20f2e16f2b4ae798e1db6a
Signed-off-by: Shunqing Chen <csq@rock-chips.com>
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2021-07-23 09:49:19 +08:00
Mark Yao
5e564157e3 drm/rockchip: dw_hdmi: move vpll set rate to encoder enable
Change-Id: I5cf7f32f15cf1ea3e85b69009615756be3809c5e
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2021-07-23 09:49:08 +08:00
WeiYong Bi
a90aecefe5 drm/rockchip: dw_hdmi: Add support for rk3368
Change-Id: I6a49447a5edd53013ed81875f351089793914f77
Signed-off-by: WeiYong Bi <bivvy.bi@rock-chips.com>
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2021-07-23 09:48:57 +08:00
Tao Huang
b08c3f96b1 arm64: rockchip_gki.config: Enable sound codec modules
+CONFIG_SND_SOC_DUMMY_CODEC=m
+CONFIG_SND_SOC_ES7202=m
+CONFIG_SND_SOC_ES7210=m
+CONFIG_SND_SOC_ES7243E=m
+CONFIG_SND_SOC_ES8311=m
+CONFIG_SND_SOC_ES8396=m
+CONFIG_SND_SOC_RK817=m
+CONFIG_SND_SOC_RK_CODEC_DIGITAL=m
+CONFIG_SND_SOC_RT5640=m

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ifcc99079e59ea8cec692328aca483291a1a11568
2021-07-23 09:03:26 +08:00
Sugar Zhang
88b08f7ee7 ASoC: codecs: Add support for rockchip codec digital interface
This patch adds support for rockchip codec digital interface,
which is used to communicate with external codec analog part
with pdm link.

Change-Id: I9ea7020d904b63f7a34696b0f538accd8c700076
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2021-07-23 08:45:41 +08:00
Binyuan Lan
970d35ba6b ASoC: es7210: add es7210 I2S adc support
ES7210 is a 4-ch ADC with I2S interface for Microphone Array

Replace digital_mute with mute_stream

Change-Id: I71faf344eb8b058349a7a889eae296115cc788c8
Signed-off-by: Binyuan Lan <lby@rock-chips.com>
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2021-07-22 20:44:46 +08:00
Binyuan Lan
70a8170ba5 ASoC: es7243e: add es7243e I2S adc support
ES7243E is 2-ch ADC with I2S interface for Microphone Array

Replace digital_mute with mute_stream

Change-Id: I3c61f5feccad9362e2859d7646e88a0e990c998c
Signed-off-by: Binyuan Lan <lby@rock-chips.com>
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2021-07-22 20:42:49 +08:00
Binyuan Lan
1e7cbe5fb7 ASoC: es7202: add es7202 pdm adc support
ES7202 is 2-ch ADC with PDM interface

Replace digital_mute with mute_stream

Change-Id: Id204f592ed91bbdddd71b6dda2e6e0bbae4bb9e8
Signed-off-by: Binyuan Lan <lby@rock-chips.com>
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2021-07-22 20:40:10 +08:00
Xing Zheng
a72f5c27d0 ASoC: es8311: add support es8311 codec driver
Replace digital_mute with mute_stream

Change-Id: Iae35145535664754f3babf4245c9682077c1fc00
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2021-07-22 20:30:08 +08:00
Xing Zheng
ff74b915f2 ASoC: wm8974: add support enable/disable external mclk on runtime
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Change-Id: I6711bf6ca1406036eafe3755e9595414bfedcb3f
2021-07-22 20:29:37 +08:00
Xing Zheng
ecbee1c72a ASoC: wm8974: add support enable/disable micbias during capturing
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Change-Id: I3696c0c73db6550795d192442d6bba41cea5086d
2021-07-22 20:29:31 +08:00
Binyuan Lan
0ed2465002 ASoC: bt-sco: Compatible stereo format
Although stereo transmission, actually only 1ch data,
just to adapt the controller of only support stereo and above.

Change-Id: I0f2d6d1b43954080a980d4e4b8ea8f3ca8207d7b
Signed-off-by: Binyuan Lan <lby@rock-chips.com>
2021-07-22 20:28:57 +08:00
Sugar Zhang
734c6a9c7e ASoC: codecs: Adds support for es8396
Replace digital_mute with mute_stream
Replace component_read32 with component_read

Change-Id: I45b01dfa336e88b9eb74e65739fa0ed863c2da90
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2021-07-22 20:14:29 +08:00
Sugar Zhang
1489290781 ASoC: codecs: Adds support for es8323
Replace digital_mute with mute_stream
Replace component_read32 with component_read

Change-Id: I8e0647310eb11325c39ebb408f75cc9ed28df71d
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2021-07-22 20:10:06 +08:00
Sugar Zhang
c04fccadeb ASoC: codecs: Adds support for dummy codec
Change-Id: I86cb74994d49178525e15b61b5056fd3995e904d
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2021-07-22 20:09:53 +08:00
Fenrir Lin
c747e1405d ASoC: codecs: add support for rk3308 codec
This patch adds driver support for rk3308 codec.

Change-Id: Ieccdebaa27f4a46f6de9406046a6e02e20398013
Signed-off-by: Fenrir Lin <fenrir.lin@rock-chips.com>
2021-07-22 20:07:51 +08:00
Sugar Zhang
8b34d69e04 ASoC: codecs: Adds support for rk3228 codec
This patch adds driver support for rk3228 codec.

Replace digital_mute with mute_stream

Change-Id: Icf83257726f12558cbdde4d4b2876dc8a3123626
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2021-07-22 20:07:51 +08:00
Sugar Zhang
bf3d673e19 ASoC: codecs: Adds support for rk1000 codec
This patch adds driver support for rk1000 codec.

Replace digital_mute with mute_stream

Change-Id: I025415287f8436d5672b8f1f8d81d87c8273772a
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2021-07-22 20:07:51 +08:00
Chen Jinsen
673d6ade78 ASoC: codecs: add support for rk312x codec
Replace digital_mute with mute_stream
Replace xxx_dai with asoc_rtd_to_xxx(rtd, i)

Change-Id: I1679742e7f6abb4ad9d894828ddf3781fc1bc2bb
Signed-off-by: Chen Jinsen <kevin.chen@rock-chips.com>
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2021-07-22 20:07:51 +08:00
Shunhua Lan
747c40808e ASoC: codecs: add support for rk817 codec
Replace digital_mute with mute_stream
Replace xxx_dai with asoc_rtd_to_xxx(rtd, i)

Change-Id: If8c5ce04703b94f7eb91e61efeab6bf7dcfca7ff
Signed-off-by: Shunhua Lan <lsh@rock-chips.com>
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2021-07-22 20:07:51 +08:00
Chris Zhong
e6b76f4bfd ASoC: es8328: Enabling support for 12Mhz sysclk
Change-Id: If9dea6039ab562023c81c2394c9286b7adc4a8c5
Signed-off-by: Chris Zhong <zyw@rock-chips.com>
2021-07-22 20:07:51 +08:00
Shunhua Lan
1c52e7b106 ASoC: rt5651: Porting to rockchip platform
1 add mclk control
2 add speaker amplifier control

Replace digital_mute with mute_stream

Change-Id: Ib3c03cd281f1ebf4d6d583076bd3930bbe3b3fe0
Signed-off-by: Shunhua Lan <lsh@rock-chips.com>
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2021-07-22 20:07:51 +08:00
LuoXiaoTan
46a4d57719 ASoC: rt5651: add alc5651 ASRC switch for HDMIIn
Change-Id: I447228656d5ee56b2c4b04c515ad71f34e107ba0
Signed-off-by: LuoXiaoTan <lxt@rock-chips.com>
2021-07-22 20:07:51 +08:00
Shunhua Lan
05a036ae33 ASoC: rt5640: enable MICBIAS1 when recording from mic
Change-Id: I7dd50309618835f712f85408e2281f7bd5e8b6b1
Signed-off-by: Shunhua Lan <lsh@rock-chips.com>
2021-07-22 20:07:51 +08:00
Xu Jianqun
a5450c1b3c ASoC: rt5640: make rt5640 driver enable to be selected
Change-Id: I4600f79220ab4faf7bfde1cb75b7fbe7b5fef747
Signed-off-by: Xu Jianqun <jay.xu@rock-chips.com>
2021-07-22 20:07:51 +08:00
Xing Zheng
7c878cc62f ALSA: aloop: using raw cycles and jiffies
The system tick may be modified by NTP when we connect
with network, then  jiffies have an offset compared to
the local clock, it will cause the irq_pos / delta_play /
delta_capt also be inaccurate.

Therefore, we need a way to get raw jiffies which follows
local raw clocks.

Change-Id: I9be1790dfd98e430982dad6f03b04532889279a6
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2021-07-22 18:48:37 +08:00
wjh
7aac3b4eef ALSA: usb-audio: fix disvr usb Audio bug
The disvr usb audio sampling rate is through nanoc reported to
the kernel, so don't need the kernel again set the sampling rate.

Change-Id: I60409fc579952a196c4fe40f678e87d505a7508d
Signed-off-by: wjh <wjh@rock-chips.com>
2021-07-22 18:48:37 +08:00
lanshh
45c518d6ca ALSA: usb-audio: add USB ID for nanoc audio codec
Change-Id: I3c25691a74c9cf66e587fd4a5dcb6cef46040eec
Signed-off-by: lanshh <lsh@rock-chips.com>
2021-07-22 18:48:37 +08:00
Yu Qiaowei
d66a00298b video/rockchip: rga2: adapt to kernel 5.10
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: Id7854aaa8bf39c272d9e29f721e38d49d2222727
2021-07-22 16:30:36 +08:00
Tao Huang
d0b4efe685 arm64: rockchip_gki.config: Enable CONFIG_COMMON_CLK_ROCKCHIP as module
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ia371614ffa0a0954f0945753922755c03590c509
2021-07-22 16:08:56 +08:00