Commit Graph

1073330 Commits

Author SHA1 Message Date
Zhang Yubing
e606ea2bbe drm/rockchip: vop3: add support hdrvivid
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Change-Id: I741ed74b38ea431e03bacacf1300793a9e2660f5
2022-12-28 15:07:18 +08:00
Sandy Huang
10e7cc72b7 drm/rockchip: vop3: add support rk3528
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Iaea5ccff625c0bc8d0cfe0d81a90b193c26c06b1
2022-12-28 15:07:18 +08:00
Algea Cao
3ed8bec2c8 drm: bridge: dw-hdmi: Fix hpd wake up loop calls
For compatibility with gki, dw-hdmi use callback
function instead of direct call dw-hdmi-cec wake up function.

Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: I06fb65eadead5e3395bbd69a4dd465c95c684494
2022-12-28 14:47:16 +08:00
Sandy Huang
8a6ca5d2c7 arm64: dts: rockchip: add RK3528 evaluation board devicetree
Add some board files for RK3528 SoCs:

rk3528-evb1-ddr4-v10.dts is for android platform,
rk3528-evb1-ddr4-v10-linux.dts is for linux platform.
add evb2/evb3/evb4.

evb1: gmac0 + 100M Embed PHY, gmac1 + 1000M RGMII PHY
evb2: gmac0 + 100M Embed PHY
evb3: gmac0 + 100M Embed PHY
evb4: gmac0 + 100M Embed PHY, gmac1 + 1000M RGMII PHY

The evb1 & evb2 & evb4's pa-ctl-gpios are same. But the evb3
is different.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Signed-off-by: Lin Qihao <kevin.lin@rock-chips.com>
Signed-off-by: shengfei Xu <xsf@rock-chips.com>
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
Signed-off-by: David Wu <david.wu@rock-chips.com>
Signed-off-by: Huang zhibao <hzb@rock-chips.com>
Signed-off-by: Chandler Chen <chandler.chen@rock-chips.com>
Signed-off-by: Jianwei Zheng <jianwei.zheng@rock-chips.com>
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Signed-off-by: Simon Xue <xxm@rock-chips.com>
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
Signed-off-by: Zou Dengming <marsow.zou@rock-chips.com>
Signed-off-by: Shaohan Yao <shaohan.yao@rock-chips.com>
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: Id08f7e353159cfd38e3fab7912771db792f4b1ba
2022-12-27 16:39:17 +08:00
Algea Cao
54abe82fdc drm: bridge: dw-hdmi: Fix hdmi no output signal when hpd occur in kernel logo
If the hdmi is plug out during the kernel logo phase and
hwc is not initialized, the hpd event cannot be received,
hdmi will not be disabled. Even if the hdmi is plugged in,
it will not actually be reinitialized, resulting in no signal output.
In this status, kernel must set mode_changed flag to true that
disable/enable hdmi when hwc enable hdmi.

Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: I6aa0e8d7c3126b329d591de82a8fb91ec3f67f70
2022-12-27 14:59:55 +08:00
Algea Cao
9751314d63 drm: bridge: dw-hdmi: Add picture_aspect_ratio for HDMI 1.4 4K modes
Kernel 4.19 edid parse process does not add picture_aspect_ratio
for HDMI 1.4 4K modes. This does not match uboot next-dev, that
will cause kernel logo display error.

Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: I1b81f9b9c30ed86e671e2aa8b4a3d498e07c9410
2022-12-27 14:59:54 +08:00
Algea Cao
f1583e326a drm/bridge: synopsys: dw-hdmi: Achieve the same frequency color seamless switch
When the frequency before and after color switching is the
same, the resolution switching process is not performed.
Instead, go through the following process:

connector atomic check--->set avmute--->config hdmi controller
-->config vop-->connector atomic commit-->clear avmute.

This way the HDMI output will not be interrupted, the black
screen time will be shorter, and the user experience will be
better.

Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: If2d0d9d21c2c343cd8e2b5135b214bc1a6f6706c
2022-12-27 14:59:54 +08:00
Algea Cao
52c123bfd4 drm/rockchip: vop2: Move color cfg to atomic_flush
In order to switch HDR/SDR output status without
enable/disable CRTC, VOP color config should be
done in atomic_flush.

Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: Ic8baee19e41ac7379699bbca21667be00e7e5934
2022-12-27 14:59:54 +08:00
Algea Cao
88ea93aeb0 drm/rockchip: Introduce connector commit
In order to achieve seamless HDR switching, avmute
must be unmuted after VOP atomic flush. So we
introduce connector commit.

Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: Ibf11da67c4388f50d8fa34aa5b4902a45ef89f6f
2022-12-27 14:59:54 +08:00
Algea Cao
3882773b0d drm: bridge: dw-hdmi: Support rk3528 hdp wake up
Support system wake up if hpd pin gpio irq occur when hdmi plug in.

Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: I5a3896e8b1b86bccbda6681db26ab4285e3eec72
2022-12-27 14:59:54 +08:00
Algea Cao
0a8b81fb3f drm: bridge: dw-hdmi: Support cec wake up
If cec in standby status, cec wake up interrupt will be
triggered when specific cec message is received.
Then input power key event to wake up system.

Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: I91b4482ab78f91e5e9df66fa8384e118b08f35a2
2022-12-27 14:59:54 +08:00
Algea Cao
378d1905a2 drm/bridge: synopsys: dw-hdmi: Fix hdr mode abnormal color
1.Add support rgb bt2020 color space output.
2.Set AVI YQ to limited range.

Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: I0a7d1ecbf2ab002328c8e6bcb115753e17e4bbb9
2022-12-27 14:59:53 +08:00
Algea Cao
5e211fd067 drm/rockchip: dw_hdmi: Workaround for RK3528 hdmi hpd
RK3528 hdmi hpd 5v io is always being pulled down.
This workaround is set hpd 5v io to gpio function and
receive hpd signal from sink.

When hpd status is changed, gpio interrupt will trigger,
then set the hdmi_snk_det reg to change the hpd status of
the hdmi controller. Finally trigger the hpd interrupt
of the hdmi controller.

Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: Iac5140a09d3dda172f0125a25dbc8b281c8e0fa5
2022-12-27 14:59:53 +08:00
Algea Cao
e528f6340a phy: rockchip: inno-hdmi: Support rk3528 hdmi phy
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: Ie555fa26eb482e045cf97e72f6f396526df3c257
2022-12-27 14:59:53 +08:00
Algea Cao
5bc64913bd drm/rockchip: dw_hdmi: support rk3528 hdmi
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: I1b12b2d30c84065b9f5873b015898dc5bcbbf48f
2022-12-27 14:59:53 +08:00
Damon Ding
9578f65f39 ARM: dts: rockchip: rv1103g-evb: add sii902x bt656 to hdmi board
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: I09a254df6c78c699fcea2ac4d3fae253d35634c8
2022-12-27 10:57:13 +08:00
Damon Ding
f1a9a74336 ARM: dts: rockchip: rv1103g-evb: add rv1103g-evb-mcu-display-v11 board
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: I025821484772b5dca9cf5c728c131caeddc50c40
2022-12-27 09:43:35 +08:00
Cai YiWei
b819ded322 media: rockchip: isp: wrap width and height config by user
Change-Id: I5090f57f4231da2af258991b264e8f91a46b5adb
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2022-12-27 09:15:01 +08:00
David Wu
9499956474 dt-bindings: net: rockchip-dwmac: add rk3528 compatible string
Add compatible string for Rk3528 gmac, and constrain it to
be compatible with Synopsys dwmac 4.20a.

Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: I63d79df0812b5d2a40664aadc1ae36e6b2f9534a
2022-12-26 16:10:14 +08:00
Wyon Bi
9e8c381e3e phy/rockchip: samsung-hdptx: Fix link train EQ failed
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: I72b78e063eb014e756ba9d39d9e79909a09dce5e
2022-12-26 15:38:01 +08:00
David Wu
61c0ac4317 ethernet: stmmac: dwmac-rk: Add GMAC support for RK3528
Add constants and callback functions for the dwmac on RK3528 Soc.
As can be seen, the base structure is the same. In addition, there
is an internal phy inside with Gmac0.

Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: I8a69a1239ed3ae91bfe44c96287210da758f9cf9
2022-12-26 15:29:41 +08:00
David Wu
e083b1d684 ethernet: stmmac: dwmac-rk: Prepare for support more FEPHY
Use a common interface to implement power up/dowm for FEPHY,
which we could reduce codes.

Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: Ia7b42862abb20ea7395d6dad021621c8e1ededb9
2022-12-26 15:29:09 +08:00
Yiqing Zeng
976e5bf438 ARM: dts: rockchip: rv1106-evb-cam: change sc530ai to 2lane
Signed-off-by: Yiqing Zeng <zack.zeng@rock-chips.com>
Change-Id: Id9869b58421fab69e6814fea71d2ad43f2a54228
2022-12-26 15:25:42 +08:00
Damon Ding
1af1e11e66 ARM: dts: rockchip: rv1106: add pinctrl for rgb3x8
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: Id865d56828eb5ff111fde1706a7438469fa16448
2022-12-26 15:10:18 +08:00
Chen Shunqing
1cf5f10498 media: rockchip: hdmirx: fix cec hpd event was not received
Change-Id: Ib9ce30d1edf71ceddf9cb9cbf6a657f5ecb7aa05
Signed-off-by: Chen Shunqing <csq@rock-chips.com>
2022-12-23 15:44:26 +08:00
Chen Shunqing
737ce0c6a6 media: rockchip: hdmirx: map to physical address 0
Change-Id: I7a9492c38fb514f1747ae6d4f28dcd583cc7814b
Signed-off-by: Chen Shunqing <csq@rock-chips.com>
2022-12-23 15:44:26 +08:00
Sugar Zhang
32306b2e23 arm64: configs: rockchip: Enable CONFIG_SND_SOC_ROCKCHIP_SAI
This patch enable SAI which act as I2S/PCM/TDM, and much more
flexible protocol.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Ie1295825040ebbd9dd3848ed1c961f616e52a60f
2022-12-23 15:39:17 +08:00
Sugar Zhang
bd28b0a474 arm64: configs: rockchip_linux: Enable CONFIG_SND_SOC_ROCKCHIP_SAI
This patch enable SAI which act as I2S/PCM/TDM, and much more
flexible protocol.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I14b5f0ba183dddfdb97cf3365057e08201487d7c
2022-12-23 15:39:17 +08:00
Sugar Zhang
bfc169fd30 ASoC: rockchip: sai: Set maxburst per FIFO waterlevel
Set dma maxburst per FIFO waterlevel for better performance
on high bit-rate situation, such as 192k 8ch 32bit situation.

Change-Id: Ida94609185b97c31bbfbb02ed65961c90f3d30f3
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2022-12-23 15:35:10 +08:00
Sugar Zhang
9f0c3c0661 ASoC: rockchip: sai: Add support for LANE-Auto mode
This patch allow driver to set lanes auto depends on
common-use format, such as I2S, DSP_A, DSP_B etc.

And allow user to select lanes manually as required,
such as TDM32 x 4

Change-Id: If6adb2bded38faa3462c52286602506f991cc0e5
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2022-12-23 15:35:10 +08:00
Sugar Zhang
93241670ae ASoC: rockchip: sai: Fix regmap register filter
This patch add the lost registers into W/R/V filter.

Change-Id: Ia731f261554ddecc846f80b3c13dbf2d7b009f12
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2022-12-23 15:35:10 +08:00
William Wu
6cbb4c5088 ARM: dts: rockchip: rv1126: disable usb2 lpm for xhci
The xHCI specification 1.1 does not require xHCI-compliant
controllers to always enable hardware USB2 LPM. However,
the current xHCI driver always enable it when seeing HLC=1.

On rv1106 platforms, the xHCI USB2 LPM is enabled by default.
And we found that a lot of USB Disks have USB2 HW LPM broken
issue when connected to rv1106 USB2 OTG interface.

Here are a part of special USB Disks with USB2 HW LPM broken:

1. idVendor=325d, idProduct=6410, Manufacturer: aigo
2. idVendor=21c4, idProduct=0cd1, Manufacturer: Lexar
3. idVendor=0951, idProduct=1666, Manufacturer: Kingston

When use dd command to write to these USB Disks, it may fail
with the following log:

[ 2844.700148] usb 7-1: reset high-speed USB device number 4 using xhci-hcd
[ 2889.072272] usb 7-1: reset high-speed USB device number 4 using xhci-hcd
[ 2921.498045] usb 7-1: reset high-speed USB device number 4 using xhci-hcd
......
[ 2953.923773] usb 7-1: reset high-speed USB device number 4 using xhci-hcd

Theoretically, we can add USB_QUIRK_NO_LPM individually for
these special USB Disks, however, it's difficult to cover all
USB Disks. So it's better to disable the USB2 LPM for xHCI
on rv1126 platforms.

Change-Id: Ideafe2ecf91fe3013825a064631509eecdad0254
Signed-off-by: William Wu <william.wu@rock-chips.com>
2022-12-23 15:23:04 +08:00
Cai YiWei
1b33d33635 media: rockchip: isp: add mosaic block size for cmsk
Change-Id: Ic5696540c569a287b7c3c1f6c32edbeeeaa1f757
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2022-12-23 15:10:04 +08:00
Cai YiWei
0d9882e6af media: rockchip: isp: 400ms timeout for rtt complete
Change-Id: I4099d84503e374bf34c358af229dc44cb696de83
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2022-12-23 15:10:04 +08:00
Finley Xiao
70f62fd169 MALI: mali400: Add support to use scmi clock
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I19f19c3091efcbb9ddd9290d37812bd3a8601076
2022-12-22 11:19:51 +08:00
Sandy Huang
c17d632595 arm64: dts: rockchip: add core dtsi for RK3528 Soc
RK3528 is a Soc from Rockchip, which embedded with quad
ARM Cortex-A53.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Signed-off-by: David Wu <david.wu@rock-chips.com>
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Signed-off-by: Shaohan Yao <shaohan.yao@rock-chips.com>
Signed-off-by: Jianwei Zheng <jianwei.zheng@rock-chips.com>
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
Signed-off-by: Steven Liu <steven.liu@rock-chips.com>
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Signed-off-by: Chandler Chen <chandler.chen@rock-chips.com>
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Signed-off-by: Simon Xue <xxm@rock-chips.com>
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Zou Dengming <marsow.zou@rock-chips.com>
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: I36f95b30b27591a060f48b66a303ffe1177a1d8e
2022-12-22 11:19:10 +08:00
ZiHan Huang
690c6bbe2b arm64: configs: add rk3588_ipc_linux.config
Usage:
make ARCH=arm64 rockchip_linux_defconfig rk3588_ipc_linux.config

Signed-off-by: ZiHan Huang <zack.huang@rock-chips.com>
Change-Id: I886c0e3b3d6f09b9b65f0a16bd99beebed01b575
2022-12-22 11:14:33 +08:00
Liang Chen
e0d6e449eb PM / devfreq: rockchip_dmc: dump current opp state when panic for ddr
panic log:
rockchip-dmc dmc: cur_freq: 528000000 Hz, volt_vdd: 675000 uV, volt_mem: 700000 uV

Signed-off-by: Liang Chen <cl@rock-chips.com>
Change-Id: Iad0ef4c72f9761e23f68098d1e9ad03dec4d84a1
2022-12-22 10:58:08 +08:00
Liang Chen
2f39a52b83 cpufreq: rockchip: dump current opp state when panic for cpu
panic log:
cpu cpu6: cur_freq: 1008000000 Hz, volt_vdd: 675000 uV, volt_mem: 675000 uV
cpu cpu4: cur_freq: 408000000 Hz, volt_vdd: 675000 uV, volt_mem: 675000 uV
cpu cpu0: cur_freq: 816000000 Hz, volt_vdd: 675000 uV, volt_mem: 675000 uV

Change-Id: I7d58b8b287d002db21a68448c65d14a2bd44f063
Signed-off-by: Liang Chen <cl@rock-chips.com>
2022-12-22 10:56:21 +08:00
Liang Chen
0140962993 Revert "soc: rockchip: opp_select: dump current opp state when panic for cpu/ddr"
clk_get_rate()/regulator_get_voltage() maybe not useable when panic.

This reverts commit bc2d913a39.

Change-Id: I127a24cb596e459f9f608a5e2847b41530062758
2022-12-22 10:55:04 +08:00
Yifeng Zhao
69325a369b mmc: sdhci-of-dwcmshc: support for rk3528
Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: I1e4aee345839d02442494d0592410ee4245c4828
2022-12-21 20:00:52 +08:00
Damon Ding
4209529be5 dt-bindings: display: add rockchip tve dclk upsample mode macro
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: Ie887ab493f2a9c07d1552e3f400ba9ed55217029
2022-12-21 19:54:53 +08:00
XiaoDong Huang
543eefb739 soc: rockchip: support rk3528 pm config
Change-Id: If69922b071970bbefb3c0589a6dfc5b4d92fe054
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
2022-12-21 19:53:29 +08:00
XiaoDong Huang
9b678fbbbc dt-bindings: suspend: rk3528: add sleep mode config defines
Change-Id: I8b27dd9cf181e935fc0c1c6d90ef47bbf55ffc2f
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
2022-12-21 19:52:21 +08:00
Finley Xiao
2ed777fcd0 soc: rockchip: power-domain: add power domain support for rk3528
This driver is modified to support RK3528 SoCs.

Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: If024916eb7b52ec86ff7533aedefc1bda457b612
2022-12-21 19:47:37 +08:00
Finley Xiao
d486f0e97d dt/bindings: power: add RK3528 SoCs header for idle-request
According to a description from TRM, add all the idle request.

Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I3c58c73a61bf88d91930f9f3464207f820965b94
2022-12-21 19:45:33 +08:00
Sandy Huang
549386c823 soc: rockchip: cpuinfo: Add support for rk3528
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I0c2ba1875faa224afd60065f7a17b4d247ac0ab0
2022-12-21 19:45:00 +08:00
Joseph Chen
16f512f1e1 clk: rockchip: Add clock controller for the RK3528
Add the clock tree definition for the new RK3528 SoC.

gmac1 clocks are all controlled by GRF, but CRU helps to abstract
these two clocks for gmac1 since the clock source is from CRU.

The io-in clocks are module phy output clock, gating child
clocks by disabling phy output but not CRU gate.

Add gmac0 clocks.
They are all orphans if clk_gmac0_io_i is not registered by
GMAC driver. But it's fine that GMAC driver only get it but
not to set/get rate.

Add CLK_SET_RATE_PARENT for mclk_sai_i2s0/1.
Allowed to change parent rate.

Add CLK_SET_RATE_NO_REPARENT for dclk_vop0.
dclk_vop0 is often used for HDMI, it prefers parent clock from
clk_hdmiphy_pixel_io for better clock quality and any rate.
It assigns clk_hdmiphy_pixel_io as parent in dts and hope not to
change parent any more.

Add CLK_SET_RATE_PARENT for aclk_gpu.
Allow aclk_gpu and aclk_gpu_mali to change parent rate.

Add CLK_SET_RATE_PARENT for aclk_rkvdec_pvtmux_root.
Allow aclk_rkvdec_pvtmux_root and aclk_rkvdec to change parent rate.

set aclk_m_core = core_clk/2.
aclk_m_core signoff is 550M, but we set div=2 for better
performance.

Add CLK_IS_CRITICAL for clk_32k.
Mainly for pvtpll during reboot stage.

Add CLK_IS_CRITICAL for all IOC clocks.
IOC doesn't share clock with GRF. The iomux can't be changed if they
are disabled.

Disable aclk_{vpu,vpu_l,vo}_root rate change
They are all shared by multiple modules, disable rate change
by modules.

Don't register clk_uart_jtag
It's for force jtag uart delay counter. It must be open
for box product without tf card but with uart0.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: I09745b6a31484d6a27f04e608268d9738c1fe224
2022-12-21 19:21:22 +08:00
Joseph Chen
7a7e67d633 clk: rockchip: add dt-binding header for rk3528
Add the dt-bindings header for the rk3528, that gets shared between
the clock controller and the clock references in the dts.
Add softreset ID for rk3528.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I465f0a3c7fc36eee4c2ab0de38a810b8e691d41e
2022-12-21 19:05:45 +08:00
Joseph Chen
a1a02755f2 clk: rockchip: pll: Add ROCKCHIP_PLL_FIXED_MODE for pll_rk3036/rk3328 type
PLL can be normal mode only.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I331e107b561047aa6b46a6c2f7df539a77a6da2d
2022-12-21 19:00:45 +08:00