Commit Graph

1079940 Commits

Author SHA1 Message Date
Algea Cao
91a23b0515 phy: rockchip-samsung-hdptx-hdmi: Fix hdmi Inter-Pair Skew exceed the limits
In hdmi2.0 resolution, the phase of D2 lane is probabilistically
ahead of other lanes.  Set phy deskew FIFO works on shared pointer
to fix this problem.

According to vendor, this patch is also available for frl mode.

Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: Ic6f5111ede5a553fb6d6511bd340d4f2010f3fe7
2023-05-25 19:19:31 +08:00
Xing Zheng
5110d5de6d ASoC: rockchip: rk817-codec: Be stable PLL status during switch sample rate and mclk
Change-Id: I5f01035efb68fac9800fb62388221210bdb12d93
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2023-05-25 15:07:08 +08:00
William Wu
666bac0de5 FROMLIST: usb: xhci: account for num_trbs_free when invalidating TDs
If a ring has a number of TDs enqueued past the dequeue pointer, and the
URBs corresponding to these TDs are dequeued, then num_trbs_free isn't
updated to show that these TDs have been converted to no-ops and
effectively "freed". This means that num_trbs_free creeps downwards
until the count is exhausted, which then triggers xhci_ring_expansion()
and effectively leaks memory by infinitely growing the transfer ring.

This is commonly encounted through the use of a usb-serial port where
the port is repeatedly opened, read, then closed.

Move the num_trbs_free crediting out of the Set TR Dequeue Pointer
handling and into xhci_invalidate_cancelled_tds().

There is a potential for overestimating the actual space on the ring if
the ring is nearly full and TDs are arbitrarily enqueued by a device
driver while it is dequeueing them, but dequeues are usually batched
during device close/shutdown or endpoint error recovery.

Link: https://github.com/raspberrypi/linux/issues/5088
Change-Id: I858a32e6bcbb525cccff3a6d07fe77d2be67f5e7
Signed-off-by: William Wu <william.wu@rock-chips.com>
Signed-off-by: Jonathan Bell <jonathan@raspberrypi.com>
2023-05-25 15:02:08 +08:00
Finley Xiao
a8f20dd9fb arm64: dts: rockchip: rk3528: Add mbist-vmin for cpu gpu and dmc
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I664731babae657181e94734b721ae6d1d6a39078
2023-05-24 18:10:07 +08:00
Finley Xiao
d4619c986e arm64: dts: rockchip: rk3528: Add 12500uV for cpu low frequencies
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Icfe74c6edbbb1328a864fa8d42448e09e71a0a46
2023-05-24 18:08:46 +08:00
David Wu
26edc1f09c arm64: dts: rockchip: rk3588: Change tx/rx queue to 1 for gmac
Because to support half duplex, change the default queue to 1, otherwise
half duplex is not supported.

Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: Ice6c045dd70f8a41d44696b734ff4bccd511a4f0
2023-05-24 15:50:24 +08:00
David Wu
a1cf510121 arm64: dts: rockchip: Add uio nodes for rk3588
Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: I9b9421211db4d6f87e984077bd5827c4d8fd94c1
2023-05-24 15:50:24 +08:00
Zhen Chen
22047de6cf MALI: midgard: Fix a bug of dereferencing possible ERR_PTR()
The original error check message:
drivers/gpu/arm/midgard/backend/gpu/mali_kbase_devfreq.c:371 midgard_kbase_devfreq_init() error: 'kbdev->devfreq' dereferencing possible ERR_PTR()

Modifications here are based on corresponding codes in drivers/gpu/arm/bifrost/.

Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
Change-Id: I6d74d39b92ce89e72814f3a0749b79140338b229
2023-05-24 11:19:04 +08:00
Algea Cao
1805f0c619 drm/rockchip: dw_hdmi: Fix check yuv422 color format err
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: I52da76600eafc7d7909cd6017dd3efa0509f2052
2023-05-24 10:03:14 +08:00
Lin Jinhan
5ff1d49a54 crypto: rockchip: fixed probabilistic crashes in multithreading
The protection range of spin lock is optimized to prevent
competition conditions.

Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
Change-Id: I6d3dd088fc5e5c0046df12184108b9e176ac26a7
2023-05-24 10:02:53 +08:00
Sandy Huang
bfc49df515 drm/rockchip: vop3: plane display size check use crtc_* parameter is more correct
Just like some 3D mode, the mode->crtc_* parameter will be recalculate
according the mode->flag, and we use the mode->crtc_* parameter to config
to VOP register, so we need use crtc_* parameter to do plane size check.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I0b8a7de251707bf4737b107b167be73270fe63bc
2023-05-23 19:48:33 +08:00
Sandy Huang
55817cab29 drm/rockchip: dw_hdmi: Fix double register HDR_OUTPUT_METADATA prop at non RK3588 platform
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I65a85b96081d76a1b3936e615cb10d62614c9957
2023-05-23 19:36:40 +08:00
Sugar Zhang
823316b64b ASoC: rockchip: i2s-tdm: Optimize TRCM on slave mode
TRCM require TX/RX enabled at the same time, or need the one
which provide clk enabled at first for master mode.

It is quite a different for slave mode which does not have
these restrictions, because the BCLK / LRCK are provided by
external master devices.

So, we just set the right clk path value on TRCM register on
stage probe and then drop the trcm value to make TX / RX work
independently.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I104f168d75787d79625ca7765a1bda1e77cdde12
2023-05-23 17:02:13 +08:00
Jun Zeng
99bdd6ef7d arm64: dts: rockchip: rk3588-vehicle-evb: initialize default pull up RK3308 reset pin
Change-Id: Id99945cdb96cb35f7f351206fd8f94d9fc73824d
Signed-off-by: Jun Zeng <jun.zeng@rock-chips.com>
2023-05-23 16:49:39 +08:00
Algea Cao
c72cacb13e drm/bridge: synopsys: dw-hdmi-qp: Fix cec irq register failed
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: I78f13a83b8be35978946eb3600bcc2c7a7f3a540
2023-05-23 15:50:37 +08:00
Tony Zheng
dfd19a220a arm64: dts: rockchip: Add rk3308b-evb-amic-v10-amp.dts
Signed-off-by: Tony Zheng <tony.zheng@rock-chips.com>
Change-Id: I5ca026dc6b0c7cbec12b2e62f0d1de3d49b7c3fd
2023-05-23 15:09:07 +08:00
William Wu
65ffb8b532 arm64: dts: rockchip: rk3588: Disable u1 and u2 state for USB OTG1 device
The USB3.0 OTG1 interface support Dual-Role Device (DRD)
features, it means that supports either device or host
operation separately, not simultaneously. In most application
scenarios, the OTG1 is used as host mode. But there are
some scenarios that need two USB devices at the same time
on the RK3588 platform, in this case, it needs to set both
the OTG0 and OTG1 in device mode. In order to improve the
OTG1 USB3.0 device performance and stability, this patch
disable the u1 and u2 state for OTG1, like what the OTG0
has done.

Change-Id: Iec3249227d7b767e7dc0904fea0424c14ae00670
Signed-off-by: William Wu <william.wu@rock-chips.com>
2023-05-22 15:07:31 +08:00
Damon Ding
d15c6d975b drm/rockchip: dsi: get bus_flags from display_info in atomic_check
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: I716554af116c729a7635adc8fe264f36447b767c
2023-05-19 17:49:52 +08:00
Hisping Lin
34571a196e dt-bindings: nvmem: add rockchip-secure-otp bindings
Change-Id: Ia8b0ca44256d602b771346dd8c46f67ef3f6864f
Signed-off-by: Hisping Lin <hisping.lin@rock-chips.com>
2023-05-19 17:46:27 +08:00
Hisping Lin
c974b1e69d arm64: dts: rockchip: rk3528: Add secure otp node
Change-Id: I0e8cb8ac44d0f1144d4ff709b3cff172aeb1e409
Signed-off-by: Hisping Lin <hisping.lin@rock-chips.com>
2023-05-19 17:43:38 +08:00
Hisping Lin
9aed3d5071 nvmem: add Rockchip Secure OTP driver
Support kernel read and write non-protected oem zone
in secure otp, It dependent on tee driver, Confirm that
the tee drive is open.

Change-Id: I31936256f5535bf7a6fb63a9ec52eec70c054423
Signed-off-by: Hisping Lin <hisping.lin@rock-chips.com>
2023-05-19 17:43:38 +08:00
Luo Wei
bd79dcc287 arm64: dts: rockchip: rk3588-vehicle-evb: add rgmii phy rtl9010a support
Signed-off-by: Luo Wei <lw@rock-chips.com>
Change-Id: I07371f33a0560cbf819dc34f5b277aaa84decc99
2023-05-19 17:28:33 +08:00
Shaoxing Chen
fcc91742d4 net: phy: realtek: Add rtl9010a support
If have RTL9010A ethernet, need enable CONFIG_REALTEK_PHY config

Change-Id: I935a638a3ce480046a71ce74bfe048410b5893ed
Signed-off-by: Shaoxing Chen <csx@rock-chips.com>
2023-05-19 05:23:21 -04:00
Shaoxing Chen
70dee7045b net: stmmac: Add 100Base-T1 and 1000Base-T1 support
Change-Id: I854394757b30042da0c448451affd616278846ce
Signed-off-by: Shaoxing Chen <csx@rock-chips.com>
2023-05-19 16:52:39 +08:00
Yingsong Ye
3437b88e21 media: i2c: Add imx492 support
Change-Id: I9b6249e0f15027c4b8ce2a1d3509d6eff487ff08
Signed-off-by: Yingsong Ye <alexhazel.ye@rock-chips.com>
2023-05-19 16:11:33 +08:00
Algea Cao
2b5a59ab08 drm/rockchip: dw_hdmi-qp: Fix crash when disable uboot logo
Reading register that do not require dclk enable to
check whether hdmi is enabled in uboot.

Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: I951efabf3271246f2e68a4550ec166428c9cc10c
2023-05-19 14:47:35 +08:00
Michael Zheng
cb635605ff arm64: configs: add rk3562_robot.config fragments
The rk3562_robot.config is specifically for robotic by
 - tuning for performance, energy senseless
 - removing unused modules like screen, charge, mouse, ethernet
 - removing features are not for rk3562

Change-Id: I6a80bac8a0e9a9db1fc2d4ee00d6d90d5e6b00e4
Signed-off-by: Michael Zheng <zhengsq@rock-chips.com>
2023-05-19 10:16:12 +08:00
Zefa Chen
d48ecfc5f7 phy: rockchip: mipi csi2 dphy fixes grf write error of val for lane select
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Id56eb83d9a25c15b9d611232e6f82221a55c7e64
2023-05-19 09:35:01 +08:00
Cai Wenzhong
9dc517e0fd arm64: dts: rockchip: rk3588-vehicle-evb-maxim-max96712: default enable auto deskew and fsync for max96712
Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: Idd4eaa58c77b3495c6a8b47bf2c2c13ae9be21c8
2023-05-18 18:34:06 +08:00
Cai Wenzhong
8d21f8eb18 media: i2c: max96712: version 1.02.00
Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: Id725307c89c28a8757c329723aaa621d5dadc65d
2023-05-18 17:43:28 +08:00
Wangqiang Guo
42b69dc486 arm64: dts: rockchip: support icm42607 for rk3588 EVB7/LGA.
Change-Id: I36b72fe056eeb8452b59b4c34c62ae711897a669
Signed-off-by: Wangqiang Guo <kay.guo@rock-chips.com>
2023-05-18 15:26:42 +08:00
Weiwen Chen
72197263ed ARM: dts: rockchip: rv1103g-evb1-v11: Add vdd_arm changes
Modify the micorvolt of vdd_arm to support the new hardware.

Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: I6251a1b872241936da413f06671cb96afdc83ecd
2023-05-18 15:21:45 +08:00
Wang Xiaobin
0c3ad7ab0d ARM: dts: rockchip: rv1106g-evb2-v11-emmc: wifi add host_wake_irq
Signed-off-by: Wang Xiaobin <xb.wang@rock-chips.com>
Change-Id: Ia2b7ecda5037d1d5280529f1f510133993a30cfb
2023-05-18 15:20:40 +08:00
Wang Xiaobin
07efe4b58f ARM: configs: rv1106-smart-door: enable EXT4 FS
Signed-off-by: Wang Xiaobin <xb.wang@rock-chips.com>
Change-Id: Id01a12a39c66b5ccce4008048837fb08281be27f
2023-05-18 15:20:07 +08:00
Jianwei Zheng
995a5e0ef5 phy: rockchip: naneng-combphy: Fix CTLE register setting error for rk3528
Signed-off-by: Jianwei Zheng <jianwei.zheng@rock-chips.com>
Change-Id: I6a217c1b041f5962c500bb4d03f689ce54a42443
2023-05-18 09:23:36 +08:00
Jianlong Wang
733b63c3b1 arm64: dts: rockchip: add rk3562j-core-ddr4-v10.dts
Change-Id: I1c17aca35ad96a8b1a02e293df72b90251c7e7d0
Signed-off-by: Jianlong Wang <jianlong.wang@rock-chips.com>
2023-05-17 17:47:40 +08:00
Elon Zhang
2f37a9c14e ARM: dts: rockchip: rv1106: add firmware and optee node
Add optee node to supply OP-TEE required properties.
/optee node is supposed to be below /firmware node.

Signed-off-by: Elon Zhang <zhangzj@rock-chips.com>
Change-Id: I3d65205e5d6e9cdb53d105e041309f4276455648
2023-05-17 17:22:21 +08:00
Jianlong Wang
0b5c318a79 arm64: dts: rockchip: add rk3562j.dtsi
Change-Id: I702e77c1419464b72e28621df2541b4557d8a065
Signed-off-by: Jianlong Wang <jianlong.wang@rock-chips.com>
2023-05-17 17:16:05 +08:00
YouMin Chen
c92deced0b PM / devfreq: rockchip_dmc: Add lock for rockchip_dmcfreq_get_dev_status
RK3588 platform may crash if the CPU and MCU access the DFI/DMC
registers at same time.

Signed-off-by: YouMin Chen <cym@rock-chips.com>
Change-Id: I6912f72aff09f7db6d696f4a5b15ccc06f68ba04
2023-05-17 17:12:39 +08:00
Xu Xuehui
6dd877865e arm64: dts: rockchip: rk3588-vehicle-evb-v20: wifi work stable.
vehicle v20 evb, VCCIO is 3V3, So limit sdio clk to 50M for wifi.
when system suspend keep vcc_3v3_s0 on avoid wifi chip crash.

Change-Id: I1310b7a3ca0d7e6e7f1ccc6d8d3183091db83506
Signed-off-by: Xu Xuehui <xxh@rock-chips.com>
2023-05-17 15:36:59 +08:00
Wang Panzhenzhuan
8f013db1d1 media: i2c: jaguar1: add SD_H960 NTSC & PAL support
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: I25ce7397f6684371c9a3cb136c0338e2e3e66cf9
2023-05-17 15:31:19 +08:00
Liang Chen
825d60d375 ARM: rv1106_defconfig: enable CONFIG_ROCKCHIP_SYSTEM_MONITOR
Make sure the voltage of vdd_arm is greater than 0.9V when low temperature.

$ size drivers/soc/rockchip/rockchip_system_monitor.o
   text    data     bss     dec     hex filename
   9391     332     136    9859    2683 drivers/soc/rockchip/rockchip_system_monitor.o

Signed-off-by: Liang Chen <cl@rock-chips.com>
Change-Id: If7792c85b7c2fa9b3dfac6ce17e6cdcaa1ae5d96
2023-05-17 14:40:42 +08:00
Luo Wei
39b9e26312 arm64: dts: rockchip: rk3588-vehicle-evb: add bt sound support
Signed-off-by: Luo Wei <lw@rock-chips.com>
Change-Id: Ic42c3e0ec7b7cef1cffee0a851aac789ad916c61
2023-05-16 11:48:07 +08:00
Wyon Bi
fa545e2ead arm64: dts: rockchip: rk3588-vehicle: Add lt7911d node
Change-Id: I61bf99254149e2a7d607bdbfcd87c8cb67adee33
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2023-05-16 10:18:59 +08:00
Wyon Bi
9932921e54 misc: Add Lontium LT7911D FB notifier driver
Change-Id: I9c0dcfed229267fe65d2923ddc4847642447e4b5
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2023-05-16 10:09:50 +08:00
Wyon Bi
dab4fd1630 arm64: rockchip_defconfig: Enable CONFIG_LT7911D_FB_NOTIFIER
Enable the lontium lt7911d fb notifier driver used on RK3588 vehicle.

Change-Id: I06e7de1817db9fe007ffe1107aa8602538173d09
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2023-05-16 10:09:22 +08:00
Wyon Bi
ba5e36b367 drm/bridge: rohm-bu18tl82: Fix startup sequence
Change-Id: I6b54b6cc59999f521e835e45c116b0b67ca09118
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2023-05-16 09:55:19 +08:00
Wyon Bi
cf8cd1b3e1 arm64: dts: rockchip: rk3588-vehicle-serdes-display: bu18tl82 use VPLL0 as reference clock of CLLTX
Change-Id: I1ad5384ef9b5839dfc72c83aab7ac7ef75d42f82
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2023-05-16 09:54:36 +08:00
Damon Ding
9cdbdccc8d arm64: dts: rockchip: rk3588-evb1: add dsi dsc display board
Panel model MV2100UZ1 using IC NT57900, which supports
2280x2280 resolution and 2 slice dsc.

Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: I8be3758920c10fd837a634ad9cc2542121a10c2a
2023-05-16 09:51:07 +08:00
Liang Chen
a63f211cf6 ARM: dts: rockchip: rv1106: adjust max-volt for the cpu opp-table
The max-volt of VDD_ARM is 1.0V on V11 board.

Change-Id: I6980fc71104a2bec41f919723ecc1a8e63f9e405
Signed-off-by: Liang Chen <cl@rock-chips.com>
2023-05-16 09:48:53 +08:00