Sugar Zhang
b52bf64a33
arm64: dts: rockchip: rk3566-evb1-ddr4-v10: Add audiopwmout differential
...
Change-Id: I5e3631b9d39cb6c213e6d6994b05a66b1ef4bc94
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com >
2020-11-12 12:17:43 +08:00
Sugar Zhang
65f13f2ee6
arm64: dts: rockchip: rk3568-evb: Add audiopwmout differential
...
Change-Id: Ifca7a65357137d44326cdf0f5dcec0d35b42b3a1
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com >
2020-11-12 12:17:20 +08:00
Sugar Zhang
279398feba
arm64: dts: rockchip: rk3568-pinctrl: Fix iomux for audiopwm
...
Change-Id: If6e4bdc04f669dbe06149de24cf1030f66f409d9
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com >
2020-11-12 12:16:52 +08:00
Sugar Zhang
2b2357f465
arm64: dts: rockchip: rk3568: Add CLK_ACDCDIG_I2C for dig_codec
...
Change-Id: I74b873c03773a60451e6a829dd27fa6e4774a34e
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com >
2020-11-12 12:16:19 +08:00
Sugar Zhang
6cf335aa30
arm64: configs: rockchip: Enable digital codec interface
...
Digital codec interface is used with external codec analog part
with pdm link(e.g.: rk812) or audiopwm out differential.
Change-Id: Ic649cf1861cdcd493d52176a627ba7bbdf3338ae
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com >
2020-11-12 12:04:35 +08:00
Sugar Zhang
ee5f3c03ef
ASoC: codecs: rk_codec_digital: Restore register when pm runtime_suspend/resume
...
Change-Id: I0730f50faa3fea1823570dd7390ac760efbfe99f
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com >
2020-11-12 12:04:10 +08:00
Sugar Zhang
271b62097e
ASoC: codecs: rk_codec_digital: Add CLK_I2C handling
...
Change-Id: Ia4320952d55840d95ac22ae230d3e264f86e62d0
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com >
2020-11-12 12:04:10 +08:00
Alex Zhao
89654b82e2
arm64: rockchip_defconfig: add uart number to 10
...
Signed-off-by: Alex Zhao <zzc@rock-chips.com >
Change-Id: Ifecbebaf84c74ba4b7566192f661c94c1af1d30d
2020-11-12 11:43:01 +08:00
Sandy Huang
05d15d5e4a
arm64: dts: rockchip: rk356x-evb: move dsi config position
...
Change-Id: I01f64a949638c66972fbe57895a5488e0dbc2d59
Signed-off-by: Sandy Huang <hjc@rock-chips.com >
2020-11-12 11:26:01 +08:00
Sugar Zhang
c9ce134b3d
ASoC: codecs: rk_codec_digital: Removed unused clk handling
...
This patch remove unused clk handling, instead, clk handled by
pm runtime.
Change-Id: I1f183efebdb909440bf9c31fb63d7d22d21953c0
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com >
2020-11-12 11:24:38 +08:00
Sugar Zhang
26c997483d
ASoC: codecs: rk_codec_digital: Add support for pwm outout mode
...
Change-Id: Ia359c32fdddc1ed5b63b52b8c676fada1391da71
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com >
2020-11-12 11:24:38 +08:00
Ding Wei
45805626ea
arm64: rockchip_defconfig: enable mpp relative codec
...
CONFIG_MPP_ROCKCHIP_RKVDEC2: rkv-decoder-v2
CONFIG_MPP_ROCKCHIP_RKVENC: rkv-encoder-v1
CONFIG_MPP_ROCKCHIP_JPGDEC: rkv-jpeg-decoder-v1
Change-Id: Ia98a2908caaaff24f5df4ec507590b276fc15ca5
Signed-off-by: Ding Wei <leo.ding@rock-chips.com >
2020-11-12 11:17:45 +08:00
Weiguo Hu
103827124a
net: wireless: rockchip_wlan: realtek wifi: avoid illegal argument when called by ioctl SIOCDEVPRIVATE
...
Illegal argument will cause following kernel panic.
Call trace:
PHY_SetRFReg_8723B
rtw_hal_write_rfreg
rtw_wx_write_rf
_rtw_ioctl_wext_private
rtw_ioctl
dev_ifsioc
dev_ioctl
References: CNVD-C-2020-259508
Signed-off-by: Weiguo Hu <hwg@rock-chips.com >
Change-Id: Ia493d8276c1dd414c184a9b3eddb5d252bd85b98
2020-11-12 11:12:21 +08:00
Tao Huang
21f2c43755
arm64: dts: rockchip: rk3568-evb1-ddr4-v10: Sort labels alphabetically
...
Signed-off-by: Tao Huang <huangtao@rock-chips.com >
Change-Id: I5266ca57f246643abac7eb99ad24c091eb8c88ab
2020-11-12 10:53:16 +08:00
Elaine Zhang
81e4b17554
clk: rockchip: rk3568: mark clk_optc_arb as critical clock
...
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com >
Change-Id: I63e9b332adeacbebd12df758b0f56b0753598f4c
2020-11-12 10:19:44 +08:00
Finley Xiao
0d652a751c
dt-bindings: rockchip-thermal: Support the RK3568 SoC compatible
...
Add a new compatible for thermal founding on RK3568 SoC.
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com >
Change-Id: I5ec192a380ffb331120fa0fed20df83d5d83e8d9
2020-11-12 10:14:08 +08:00
Andy Yan
a83c953054
drm/rockchip: vop2: Show plane dump information better
...
Change-Id: Id86d8805034e64be9c5008321941d0947b93c506
Signed-off-by: Andy Yan <andy.yan@rock-chips.com >
2020-11-12 09:13:42 +08:00
Simon Xue
bdbd6ca828
iommu/rockchip: fix v2 domain free
...
Change-Id: I73108579bada8389d36a8d4a60d9a12e81ed718a
Signed-off-by: Simon Xue <xxm@rock-chips.com >
2020-11-11 22:08:55 +08:00
William Wu
fefd47dc10
usb: dwc3: core: only set DEV_FORCE_20_CLK_FOR_30_CLK for high speed
...
Fixes: 5f0c2578ed ("usb: dwc3: core: do not use 3.0 clock when operating in 2.0 mode")
Change-Id: I7082d996979c4f52f898403e25853644e956cf48
Signed-off-by: William Wu <william.wu@rock-chips.com >
2020-11-11 22:06:46 +08:00
William Wu
096abe6464
phy: rockchip: naneng-combphy: select pipe to controller for rk3568
...
RK3568 has three combo phys, and PCIe/USB3/SATA/QSGMII controllers
share one pipe interface for each combo phy, here is the diagram of
the complex connection. This patch select the pipe to the corresponding
controller when set phy mode.
+----------------+
| | +------+
| USB3 OTG CTRL0 |---->| |
| | | | +------------+
+----------------+ | PIPE | | |
| MUX |---->| Combo PHY0 |
+----------------+ | | | |
| | | | +------------+
| SATA CTRL0 |---->| |
| | +------+
+----------------+
+----------------+
| | +------+
| USB3 HOST CTRL1|---->| |
| | | | +------------+
+----------------+ | PIPE | | |
| MUX |---->| Combo PHY1 |
+----------------+ | | | |
| |---->| | +------------+
| SATA CTRL1 | -->| |
| | | +------+
+----------------+ |
|
+----------------+ |
| | | +------+
| QSGMII CTRL |---->| |
| | | | +------------+
+----------------+ | PIPE | | |
| MUX |---->| Combo PHY2 |
+----------------+ | | | |
| |---->| | +------------+
| SATA CTRL2 | -->| |
| | | +------+
+----------------+ |
|
+----------------+ |
| | |
| PCIe2 1-Lane |---
| |
+----------------+
Change-Id: I6ec6dd0a0202119633e594c9a72f361156330b06
Signed-off-by: William Wu <william.wu@rock-chips.com >
2020-11-11 22:06:40 +08:00
Ren Jianing
3e58c5e6ae
arm64: dts: rockchip: rk3568: add pclk_usb for EHCI/OHCI
...
Signed-off-by: Ren Jianing <jianing.ren@rock-chips.com >
Change-Id: I168748678867a7f6004bbd0809efd884d8aa9f04
2020-11-11 21:58:28 +08:00
Ren Jianing
cc488a228c
ohci-platform: add the max clock number to 4
...
Rockchip SoCs such as RV1126 and RK356x requires
4 clocks to be enabled for OHCI.
Signed-off-by: Ren Jianing <jianing.ren@rock-chips.com >
Change-Id: Ia5202ca7223d95a4b39b1581f740e03ca3f54224
2020-11-11 21:58:10 +08:00
Ren Jianing
b9d9feb075
phy: rockchip: inno-usb2: fix some issues for rk3568 usb2 phy
...
This patch fixes the following issues for rk3568 usb2 phy.
1. Set utmi opmode to normal mode for rk3568 usb phy when usb
phy enter suspend mode via usb phy grf. It can help to avoid
the DM/DP floating and the line state be detected as 2'b11.
2. Fix the offset of INT_STATUS_CLR. It can help to avoid
triggering the linestate irq constantly.
Signed-off-by: Ren Jianing <jianing.ren@rock-chips.com >
Change-Id: Iba53e416c44a45baa180ad3abcc91d1d71900158
2020-11-11 21:58:10 +08:00
Wang Jie
18e6cd9d1e
arm64: dts: rockchip: rk3566-tablet: modify sc7a20 device address
...
Signed-off-by: Wang Jie <dave.wang@rock-chips.com >
Change-Id: I32bf947268f10173ac5eaa3425a1cc29c5c47f71
2020-11-11 21:56:56 +08:00
Shawn Lin
3281563e94
PCI: rockchip: dw: Fix support for RK356X platforms
...
First we add a 3v3 regulator support, and remove some
fast link settings.
Change-Id: Icf1c854aa06cad664bac77654fb08224af95aedc
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com >
2020-11-11 21:50:57 +08:00
Shawn Lin
bbf7de5ad9
arm64: dts: rockchip: enable pcie20 for rk3568-evb1-ddr4-v10
...
Change-Id: I7f0e64f70d9efe86399f6f69600de323f24f8e13
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com >
2020-11-11 21:50:46 +08:00
Shawn Lin
c8a925b706
arm64: rockchip_defconfig: Enable CONFIG_PCIE_DW_ROCKCHIP
...
Change-Id: I46e23868688d45810d792bb048930d08c4fb726d
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com >
2020-11-11 19:56:31 +08:00
Shawn Lin
ecdf4148c8
arm64: rockchip_defconfig: Add CONFIG_REGULATOR_GPIO
...
Change-Id: I1cb7dee1c593c424c0821e31d3d32c579b11ed0c
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com >
2020-11-11 19:22:06 +08:00
Shawn Lin
1603e4ecf6
arm64: dts: rockchip: rk3568: Fix PCIe30x2 DBI and remove useless clks
...
Change-Id: Icae9ef5661b62abc588b3b86ddbd671772d5d5d5
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com >
2020-11-11 19:22:05 +08:00
Finley Xiao
8a65d18577
arm64: dts: rockchip: rk3568: Add pvtm device node
...
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com >
Change-Id: Idef95dc6d0da0cc5cbf97d1c4572d8107ee131c9
2020-11-11 15:21:19 +08:00
Finley Xiao
aec8ff24ff
soc: rockchip: pvtm: Add support for RK3568 SoCs
...
This adds the necessary data for handling pvtm on the RK3568 SoCs.
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com >
Change-Id: Ie4499f613d7d3ef2edb11fd6a81d70d699317caf
2020-11-11 15:21:19 +08:00
Finley Xiao
94ccb804c3
dt-bindings: rockchip-pvtm: Support the RK3568 SoC compatible
...
Add a new compatible for thermal founding on RK3568 SoC.
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com >
Change-Id: I4a6db880cde95be2d18074efbdef68cb187e50a7
2020-11-11 15:21:19 +08:00
Algea Cao
cdbb863092
drm: rockchip: dw-hdmi: Enable 3568 hdmi ddc
...
Signed-off-by: Algea Cao <algea.cao@rock-chips.com >
Change-Id: I9dd63de7a98cb70f9e40c7ee82bcfca5884b9232
2020-11-11 15:21:19 +08:00
Alex Zhao
87649a9e7d
arm64: dts: rockchip: rk3566-evb2-lp4x-v10: fix for wifi/bt
...
Signed-off-by: Alex Zhao <zzc@rock-chips.com >
Change-Id: I2d8df2776af0c18eff33fbcf8908f89ff2a0a6a9
2020-11-11 15:21:19 +08:00
Elaine Zhang
f807c08d2b
arm64: dts: rockchip: rk3568: setting npll to 1.2G when clk init
...
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com >
Change-Id: If088d432552d186866dd53211c5a2126870f62a4
2020-11-11 15:21:19 +08:00
Elaine Zhang
75f941d347
clk: rockchip: rk3568: mark npll as critical clock
...
npll is for dsu high freq.
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com >
Change-Id: I4fd3141e577ee0933d8eac07bd154c1d1b341edd
2020-11-11 15:21:19 +08:00
Bin Yang
5f0c2578ed
usb: dwc3: core: do not use 3.0 clock when operating in 2.0 mode
...
In the 3.0 device core, if the core is programmed to operate in
2.0 only, then setting the GUCTL1.DEV_FORCE_20_CLK_FOR_30_CLK makes
the internal 2.0(utmi/ulpi) clock to be routed as the 3.0 (pipe)
clock. Enabling this feature allows the pipe3 clock to be not-running
when forcibly operating in 2.0 device mode.
Signed-off-by: Bin Yang <yangbin@rock-chips.com >
Change-Id: I217a380815c21903c1090bd003c1d8ba2fadbe7c
2020-11-11 12:02:01 +08:00
Shunqing Chen
7ec24c91e0
arm64: dts: rockchip: rk3568: add phy reference clk for hdmi
...
Signed-off-by: Shunqing Chen <csq@rock-chips.com >
Change-Id: Ie581092df86da7b11c7b7e3651a812a3c8721ac1
2020-11-11 12:01:03 +08:00
Algea Cao
aa2d780888
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
2020-11-11 11:34:58 +08:00
Algea Cao
64d5fa4ad1
drm: rockchip: dw-hdmi: Set hdmi output interface to HDMI0
...
Signed-off-by: Algea Cao <algea.cao@rock-chips.com >
Change-Id: Ia9c694f73c1fe9ae3bdb4d8774658dca566ef6c2
2020-11-11 11:34:44 +08:00
Shunqing Chen
f8d70ba267
drm: rockchip: dw-hdmi: rename vpll_clk to accommodate more platforms
...
Signed-off-by: Shunqing Chen <csq@rock-chips.com >
Change-Id: I6d5aaacc241add2bbd20f2e16f2b4ae798e1db6a
2020-11-11 11:34:19 +08:00
Alex Zhao
209bad83d1
arm64: dts: rockchip: rk3566-evb1-ddr4-v10: fix for wifi/bt
...
Signed-off-by: Alex Zhao <zzc@rock-chips.com >
Change-Id: I5beeb417f237e9cf306aa75743e02dc529690aa5
2020-11-11 11:28:04 +08:00
Guochun Huang
14586d46dd
arm64: dts: rockchip: rk3568-evb: add dsi1
...
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com >
Change-Id: I83b937aab46a9e4f28fb3540506dfb2305572e85
2020-11-11 11:21:57 +08:00
William Wu
62f5258931
phy: rockchip: naneng-combphy: fix mode set for usb3
...
This patch select pipe_txcompliance and pipe_l0_txelecidle
from usb3 controller for usb3 mode.
Change-Id: I6d354a974e431079e0f11fe84b75df583125818b
Signed-off-by: William Wu <william.wu@rock-chips.com >
2020-11-11 10:51:31 +08:00
William Wu
c90049e2ed
arm64: dts: rockchip: rk3566-evb1-ddr4-v10: enable combphy1 for usb3 host
...
Change-Id: I6d76fe988714803fbab91d9a6ae4236b617dadae
Signed-off-by: William Wu <william.wu@rock-chips.com >
2020-11-11 10:51:31 +08:00
William Wu
762245fafd
arm64: dts: rockchip: rk3568: set 24M ref clk for naneng combphy
...
Change-Id: Ie17a4bf16bd47e1e9fd6529873492ebcd11b5fae
Signed-off-by: William Wu <william.wu@rock-chips.com >
2020-11-11 10:51:30 +08:00
Zhenke Fan
847bb599e2
ARM: dts: rv1126-ai-cam.dtsi: modify link to cif by default
...
imx378 need to change the data lanes from <1 2> to <1 2 3 4>
Signed-off-by: Zhenke Fan <fanzy.fan@rock-chips.com >
Change-Id: Ifeb88250c7e01a4da84b67a0e77adcf0124201a9
2020-11-11 10:44:59 +08:00
Wyon Bi
09113e4c0a
drm/rockchip: analogix_dp: Add member 'ssc' described in rockchip_dp_chip_data
...
Fixes: d7ad116fb3 ("drm/rockchip: analogix_dp: Add support for rk3568")
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com >
Change-Id: I42c4099e266ca8c97380c7c7021a967d7418dc88
2020-11-11 10:12:20 +08:00
Tao Huang
04f2db5f84
arm64: dts: rockchip: rk3568: Add reboot_mode label for Android
...
Support dtbo overlay reboot-mode for Android 10.
Fixes: f21a35d354 ("arm64: dts: rockchip: rk3568: add reboot-mode node")
Change-Id: If34ed638495374afd853ef46bbbc39b340e3de26
Signed-off-by: Tao Huang <huangtao@rock-chips.com >
2020-11-11 10:08:45 +08:00
Jon Lin
5252a54c3f
arm64: dts: rockchip: rk3568-evb: Enable sfc node
...
Change-Id: I9551d00b000ddd20bf8c0814c2d19b045c0224b9
Signed-off-by: Jon Lin <jon.lin@rock-chips.com >
2020-11-11 10:08:07 +08:00