Commit Graph

1268443 Commits

Author SHA1 Message Date
Yu Qiaowei
ef299cd455 video: rockchip: rga3: add support Y8
Change-Id: If3bebf93c67abeb62da51d7ffb5b79bfffdc80df
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
2024-03-03 11:09:43 +08:00
Yu Qiaowei
c57af97268 video: rockchip: rga3: add support colorfill with tile4x4
Change-Id: I8845f2fdd08dcf4c254e3705ca7d486c3e4a9a51
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
2024-03-03 11:09:43 +08:00
Yu Qiaowei
9681934706 video: rockchip: rga3: bi-linear defaults to half-mode
Change-Id: Ibe96b48bc96786ca53ba055f16d452761db9baf1
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
2024-03-03 11:09:43 +08:00
Yu Qiaowei
9d3a698344 video: rockchip: rga3: add disable-mode-ctrl register definition
Change-Id: I9dd5b8d7a6f1e979786ec5ca32509cd48dc4b5fa
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
2024-03-03 11:09:43 +08:00
Yu Qiaowei
78365dd0d6 video: rockchip: rga3: add hardware check for RGA2P
Change-Id: I38ec6fe53f60af397803c693d5edcebe2c4296fd
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
2024-03-03 11:09:43 +08:00
Yu Qiaowei
48165b2e30 video: rockchip: rga3: add support iommu_prefetch
Change-Id: I92f5c39bafadc22c023b982797b26d3f7e33fee1
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
2024-03-03 11:09:43 +08:00
Yu Qiaowei
03e1fb18fe video: rockchip: rga3: add support RKFBC/AFBC32x8 in
Change-Id: I117d9666dcbc90ede75ebdd85aa99d4c9b0a5c73
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
2024-03-03 11:09:43 +08:00
Yu Qiaowei
cb8865704c video: rockchip: rga3: add support tile4x4 in/out
Change-Id: Ic07aa4848307c10f1c5b5069978998895a003d29
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
2024-03-03 11:09:43 +08:00
Yu Qiaowei
81ca573d7a video: rockchip: rga3: add support YUV444SP
Change-Id: I56ba787ddda0956cde9da057473e9a3d84488630
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
2024-03-03 11:09:43 +08:00
Yu Qiaowei
51750294ae video: rockchip: rga3: add support config interpolation algorithm
scale up: Bicubic/Bilinear
scale down: Average/Bilinear

Change-Id: I2ccb077f1cfc89ce0628c76b093cdf98e981e382
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
2024-03-03 11:09:43 +08:00
Yu Qiaowei
f9fbfd4938 video: rockchip: rga3: add support A8 format
Change-Id: I42e20aa3c9c88663fe7e4ce5ec50ce4e3581c188
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
2024-03-03 11:09:43 +08:00
Yu Qiaowei
e251a2c567 video: rockchip: rga3: support RK3756
Change-Id: I3c76f623aae2bff23f4234a3fd778184b78823e5
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
2024-03-03 11:09:43 +08:00
Kever Yang
c985996438 pcie: dw-rockchip: Add support for rk3576
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Change-Id: I0db77b83b72a68781ca19c56bdd082a539055b10
2024-03-03 11:09:43 +08:00
Frank Wang
f9fb7af49e usb: dwc3: core: cleanup autosupend feature for rockchip soc
Since RK3576 dwc3 integrate in a single node, so check
its own node and set autosuspend delay for NO_GKI desired.
In addition, this also cleanup the related codes for the
rockchip platform.

Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Change-Id: I1ef762559ab98cb5e80c1bd787c5a4cfe1429220
2024-03-03 11:09:43 +08:00
Elaine Zhang
835e42a38b net: can: rockchip: add can for RK3576 Soc
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: I40541de86fa2ab83a977ecc323eba6968c13990c
2024-03-03 11:09:42 +08:00
Frank Wang
7f41c32f01 mailbox: rockchip: refactor to support a new controller
Since the mailbox register is changed in the new controller, refactor
the driver to make compatible for it.

There is only one channel in a mailbox, besides, write cmd register
can trigger the interrupt support.

Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Change-Id: I0df6923cfd6db5b450b78ee8d42df949b7d80bdd
2024-03-03 11:09:42 +08:00
Frank Wang
87be57e3f1 dt-bindings: mailbox: rockchip: adds new properties
This adds the following properties.

 - "rockchip,rk3576-mbox" : update compatible property.
 - rockchip,enable-cmd-trigger : enable write cmd register to
   trigger interrupt.

Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Change-Id: Ieb2e9d248b0eac387f7a6f862461d11aefb4905b
2024-03-03 11:09:42 +08:00
Damon Ding
7a42db27aa pwm: rockchip: support for biphasic counter mode
Change-Id: I4a6fd5c3fdf3f2a5ccde9755f8664ad00a00d9ae
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2024-03-03 11:09:42 +08:00
Damon Ding
b882be452d pwm: rockchip: move the clk_enable() after arbiter check in freq mode
Change-Id: I219f8bfb033214b5f3cf85883d2c3c27d2c5ffb6
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2024-03-03 11:09:42 +08:00
Damon Ding
9c33292611 pwm: rockchip: fix counter mode configurations
1.Add pinctrl config in rockchip_pwm_set_capture().
2.Add input_sel flag to select the input of io or cru.

Change-Id: I95953bdb0dc6b939acc0db5d335a5bcfcc7b884c
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2024-03-03 11:09:42 +08:00
Damon Ding
2001d912e4 pwm: rockchip: fix frequency meter mode configurations
1.Add pinctrl config in rockchip_pwm_set_freq_meter().
2.Add input_sel flag to select the input of io or cru.
3.Use usleep_range() instead of readl_relaxed_poll_timeout,
  because there is no need to poll interrupt status.

Change-Id: I6ea4456539fe143baf2bfce70386c51f801a00a3
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2024-03-03 11:09:42 +08:00
Damon Ding
da84900d9b pwm: rockchip: add capture support for pwm v1
1.Select pinctrl state in capture mode.
2.Use usleep_range() instead of readx_poll_timeout, because
  there is no need to poll capture_cnt and the read
  of capture_cnt may be interrupted.

Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: I9360a42aca374ed5eb089befd05571c4d32038f2
2024-03-03 11:09:42 +08:00
Damon Ding
4a1608c53a pwm: rockchip: fix the global ctrl configurations
1.Add pinctrl config in rockchip_pwm_global_ctrl().
2.Config the dclk for grant channel in PWM_GLOBAL_CTRL_ENABLE
  and PWM_GLOBAL_CTRL_DISABLE commands.
3.Add flag is_clk_enabled to confirm the status of dclk.

Change-Id: I9a377d6a72d2f242f9df5e707c42d86db0c13f69
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2024-03-03 11:09:42 +08:00
Damon Ding
a1f5874163 pwm: rockchip: fix reg shift to macro in version-specific functions
Using macro will be more efficient if related function
is called frequently.

In addition, remove unused parameter cntr in struct
rockchip_pwm_regs for pwm v1.

Change-Id: I7a1d5aa6e08845afc9501756dadacef09f527a13
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2024-03-03 11:09:42 +08:00
Damon Ding
fc2656bc0d pwm: rockchip: add debugfs support for pwm v4
Change-Id: I2af2e28a24fd6c034e5b21792baa5641517ab773
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2024-03-03 11:09:42 +08:00
Damon Ding
f41ba3a17b pwm: rockchip: add support for rk3576
Change-Id: Ifaaa5b5479ecc98fe09e5e1fac523ba92dd4f8d0
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2024-03-03 11:09:42 +08:00
Tao Huang
d9c8121457 arm64: configs: Add rk3576.config
disable CONFIG_MALI_CSF_SUPPORT for rk3576.

Change-Id: Id0b71e03ee808ec4c34b046fc44acf864caccf54
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2024-03-03 11:09:42 +08:00
Ye Zhang
d2e1994957 thermal: rockchip: Support RK3576 SoC in the thermal driver
The RK3576 SoC has six channels TS-ADC(TOP, BIG_CORE, LITTLE_CORE
DDR, NPU and GPU).

Signed-off-by: Ye Zhang <ye.zhang@rock-chips.com>
Change-Id: I800dee18937d3d35243896fe22a953eac111ba3f
2024-03-03 11:09:42 +08:00
Finley Xiao
922c5061d2 driver: rknpu: Add opp data for rk3576
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I947194e9c4770c2cdd0ff0d0bb3e8f1f622abfa1
2024-03-03 11:09:42 +08:00
Felix Zeng
dd7e4afc21 driver: rknpu: Add support for rk3576
Signed-off-by: Felix Zeng <felix.zeng@rock-chips.com>
Change-Id: I2264165d76be012044663be6fb5c04bc10ed687b
2024-03-03 11:09:42 +08:00
Lin Jinhan
58aeaf2a1d crypto: rockchip: Kconfig: select crypto v4 if RK3576
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
Change-Id: I4a1c4e346cda769fa7e91efff2f7a23a8b4ea4be
2024-03-03 11:09:42 +08:00
David Wu
71bd521294 ethernet: stmmac: dwmac-rk: Add GMAC support for RK3576
Add constants and callback functions for the dwmac on RK3576 soc.
As can be seen, the base structure is the same.

Change-Id: If5081998d98a20c6efe14992e00b719ae0ad0dd2
Signed-off-by: David Wu <david.wu@rock-chips.com>
2024-03-03 11:09:41 +08:00
Zefa Chen
b25f38ede4 phy: rockchip: csi2-dphy: support rk3576
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I7a0665bda1a02e8dd74dfa1b2b14bfb3ad43fd82
2024-03-03 11:09:41 +08:00
Algea Cao
8c42cecbaa phy: rockchip-samsung-hdptx-hdmi: Remove phy/pll reset
These are ic debug reset, practically unusable.

Change-Id: Ibc5817ccf9d17abf35d1ff32c2a047866ef1dd2f
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2024-03-03 11:09:41 +08:00
Kever Yang
19c4dcb933 phy: rockchip-naneng-combo: Support rk3576
phy0: pcie, sata
phy1: pcie, sata, usb3

Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: I03ffa5b31e5093100beb31c7841ad98265f5d81f
2024-03-03 11:09:41 +08:00
Guochun Huang
cdc22e20a9 phy: rockchip: mipi-dcphy: ref clock of pll cannot be 0
Change-Id: I8add85dc269ae927a96d2ed50524e570eb60320b
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
2024-03-03 11:09:41 +08:00
Guochun Huang
6eeeb8ab7a phy: rockchip: mipi-dcphy: add support rk3576
Change-Id: I08bfe6b2af3dabdf5a8c5993304454a9dd6ca61c
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
2024-03-03 11:09:41 +08:00
William Wu
aedf737234 phy: rockchip: inno-usb2: Add usb2 phys support for rk3576
The RK3576 SoC has two independent USB2.0 PHYs, and
each PHY has one port.

Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: I017dd09b83c8330c9f4a3d6d8a41eaa1d4c88df7
2024-03-03 11:09:41 +08:00
Frank Wang
eadf273e38 phy: rockchip: usbdp: add rk3576 device match data
This adds RK3576 device match data support.

Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Change-Id: I265450a0e515c791771f3e581ea30b0b800b8d08
2024-03-03 11:09:41 +08:00
Finley Xiao
142dd519b5 nvmem: rockchip-otp: Add support for rk3576
This adds the necessary data for handling otp on the rk3576.

Change-Id: I42536b05a24f32d0c98ceebe82aec5af9716513f
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2024-03-03 11:09:41 +08:00
Sugar Zhang
34fa929b18 ASoC: rockchip: sai: Fix stuck on probe
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I459bcd7e4db2396a1e27d13741d6018dd08c63a7
2024-03-03 11:09:41 +08:00
Sugar Zhang
12df5e18d8 ASoC: rockchip: sai: Add support for RK3576
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Icc47d1970afcb4ec9c304952d44267c4c6521d98
2024-03-03 11:09:41 +08:00
Jason Zhu
6d4eba5dd5 ASoC: rockchip: pdm: support pdm version 2
The pdm version 2 support more features:
1. Support gain control
2. Support more pdm clk, like 2.4Mhz
3. Support single channel single data

Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: I3651e4416b30e84f0796a3a09574f39908adbfb5
2024-03-03 11:09:41 +08:00
Jason Zhu
25791b5f4c ASoC: codecs: rk_dsm: support rk3576
Change-Id: Ie9048cc82c015e7eadd41b4ee12e694eea1ccb95
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
2024-03-03 11:09:41 +08:00
Shawn Lin
1505eda5b9 mmc: dw_mmc-rockchip: Add internal phase support
Rockchip platform will put phase settings into dw_mmc controller
instead. For USRID register, 0x20230002 stands for that this new
feature is implemented.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: Ida9d25f7631fe57b87c70832671973bb97d9f82f
2024-03-03 11:09:41 +08:00
Shawn Lin
3a74e09f5f mmc: sdhci-of-dwcmshc: Add rk3576 support
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: I34f1495fb2188a16fba9a6505117e751fc1e98da
2024-03-03 11:09:41 +08:00
Chaoyi Chen
e53dabb0a0 dt-bindings: display: Add Document for Rockchip EINK panel
Change-Id: I542f7a38998a56bf4eab9d79d4c34bd4ad576eae
Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com>
2024-03-03 11:09:41 +08:00
Zhang Yubing
09bbffb298 drm/rockchip: dw-dp: get the real hpd state
In DPTX Controller, when hpd signal is low, the hpd state will
change to unplug immediately. if the low level signal is less
than 2ms, the hpd state will change to plug state and trigger a
hpd irq interrupt.

In some case, driver will detect hpd state to get the plug/unplug
info when a hpd irq is coming. A hpd irq may be regard as a unplug
state. To avoid this issue, it better to wait the hpd state change
to the nest state.

Change-Id: I68c5bdc72128a2bc3ea990cfcb54e2ade755abc7
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2024-03-03 11:09:41 +08:00
Zhang Yubing
969569b827 drm/rockchip: dw-dp: register mst encoder when port node enabled
Change-Id: Ie242c1a0425a3b01dea1378661a0c18daf3e5d32
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2024-03-03 11:09:41 +08:00
Sandy Huang
c4642391b1 drm/rockchip: vop2: adjust hfp and hbp for YUV420 output
For RK3576 YUV420 output, hden signal introduce one cycle delay,
so we need to adjust hfp and hbp to compatible with this design.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I272f3e145bfe216b1d76f6313c43180040590deb
2024-03-03 11:09:40 +08:00