Commit Graph

1080036 Commits

Author SHA1 Message Date
Wesley Yao
d285000cc8 arm64: dts: rockchip: rk3528-evb: Enable dfi
Signed-off-by: Wesley Yao <wesley.yao@rock-chips.com>
Change-Id: Iccc421ab21a05f3f0f74a01dd6c334d0cc0b27ca
2023-06-09 10:48:28 +08:00
Wesley Yao
31dd4c38e5 arm64: dts: rockchip: rk3528: Add ddr related nodes
Signed-off-by: Wesley Yao <wesley.yao@rock-chips.com>
Change-Id: I9d728a6a26c1156976958d242297e2a14ca28c66
2023-06-09 10:48:28 +08:00
Wesley Yao
a822375383 PM / devfreq: rockchip_dmc: Add support for rk3528
Signed-off-by: Wesley Yao <wesley.yao@rock-chips.com>
Change-Id: I90b09d044769747e8858c23f3087c00b2fcb2f12
2023-06-09 10:48:28 +08:00
Wesley Yao
1f98b6284d dt-bindings: devfreq: rockchip_dmc: Add rk3528 support
Signed-off-by: Wesley Yao <wesley.yao@rock-chips.com>
Change-Id: I3150649f8f9f3083d54ba80de706937b4a0852da
2023-06-09 10:48:28 +08:00
Wesley Yao
daf1596e95 PM / devfreq: rockchip-dfi: Add support for rk3528 dfi
Signed-off-by: Wesley Yao <wesley.yao@rock-chips.com>
Change-Id: Iaf29eebe4ccf3e9a25f5a76cd727af2410d514b3
2023-06-09 10:48:28 +08:00
Wesley Yao
61b70d7bc1 dt-bindings: devfreq: rockchip_dfi: Add rk3528 support
Signed-off-by: Wesley Yao <wesley.yao@rock-chips.com>
Change-Id: I2ecbe8788d046ce745157042b9038380d732590d
2023-06-09 10:48:28 +08:00
Tao Huang
e0716c0140 media: i2c: lt7911uxc: Fix print format string
u64 format should be %llu.

Fixes: db473bd423 ("media: i2c: lt7911uxc: update driver to V0.0X01.0X07")
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Iadd65d15d690222da7561a9ea67bd70082d79b45
2023-06-08 19:04:04 +08:00
Weiwen Chen
d600ae58b7 ARM: configs: rockchip: add uvc to rv1106-rndis.config
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: I83de76ba4e7a0827f0bcfc4840db1c1b4adcacc7
2023-06-08 16:32:47 +08:00
Cai YiWei
5cad0068f7 media: rockchip: isp: fix isp32 and lite buf output err due to mi on/off
Change-Id: I7d78a12861c075e99f3005af5b8ffab2958a10b2
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2023-06-08 16:32:00 +08:00
XiaoDong Huang
9004c277ca dt-bindings: suspend: rk3528: add sleep pin defines
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
Change-Id: I6bffbb885c5d09bbf0c92db32112eac246f2bc56
2023-06-08 14:27:49 +08:00
XiaoDong Huang
68a0cca2c3 soc: rockchip: pm_config: support sleep-pin-config
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
Change-Id: I93f52766bfa1ce0cf97d826dc1cad5af0134a4c1
2023-06-08 14:27:49 +08:00
Wu Liangqing
1e135f352e arm64: dts: rockchip: add rk3588-evb7-v11 board
Change-Id: If9788078dd3a428e7be8e102dff274a5aecd10a6
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
2023-06-08 14:19:31 +08:00
Elaine Zhang
fd4c1a5ee2 arm64: dts: rockchip: rk3588: Fixed the init frequency
Make sure that the init frequency is within the design range

Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: I1aea3638e0aa70e425410e71060ce89fa96e1869
2023-06-08 11:20:12 +08:00
Zhen Chen
eaf544c6d9 Mali: bifrost: disable tiler heap reclaiming temporally
Comes from mail "230423: 15:04: ARM support: Yao: ".

This patch and fw_230426 can resolve the occurrence
of "Unhandled Page fault" and CS_FAULTs exceptions
in the stress test "Dvfs+Gl_retrace+Rockx+emmc".

In another mail, Yao said "before any further suggestion or conclusion from RD,
you could temporally WA the issue by disable tiler heap reclaim".

Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
Change-Id: If06aa8e207b05f1a277aae9a86d1ff76b9a9f93b
2023-06-08 11:18:42 +08:00
Zou Dengming
c5cdbfc2eb arm64: dts: rockchip: rk3528-evb: prepare bt sco settings
we don't directly add bt-sco cards because it may take some
i2s/pcm, which may use dma, but dmas may limit.
so we just prepare this settings, then if any one who want to
support bt-sco, he/she can just add dts in board-level dtsi.

For example diff in "rk3528-evb1-ddr4-v10.dtsi":

+&bt_sco {
+       status = "okay";
+};
+
+&bt_sound {
+       status = "okay";
+};
+
+&sai0{
+       status = "okay";
+};

The default pcm/i2s setting is:
Format: PCM, dsp_a, MSB first, short sync, rising edge and 1 bclk.
rockchip soc: master; Bt controller: slave

Change-Id: I64e76c2ae4b8449e2ee345587e080b3a70521ed9
Signed-off-by: Zou Dengming <marsow.zou@rock-chips.com>
2023-06-07 14:14:25 +08:00
Steven Liu
dcc194b4d4 arm64: dts: rockchip: rk3528: Split I2Sx pinctrl
Signed-off-by: Steven Liu <steven.liu@rock-chips.com>
Change-Id: Ibfc99cfbd5ef324f549ae356059b7fc7ab45fe96
2023-06-07 13:13:25 +08:00
Zhang Yubing
1d030d294e drm/rockchip: dw-dp: notify audio when enable/disable dptx
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Change-Id: I61e07cce16f8e0a30e6a67ff508be03a5b249563
2023-06-06 19:47:14 +08:00
Jianwei Fan
6676316bd0 media: i2c: lt6911uxe/c: set default timing
Change-Id: Id22160e280ef23d93e9ad8cbe5ab972eb6f98c11
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
2023-06-06 19:45:48 +08:00
Jianwei Fan
db473bd423 media: i2c: lt7911uxc: update driver to V0.0X01.0X07
1.fix driver probe sequence.
2.set default timing
3.fix dcphy params
4.fix hotplug event report

Change-Id: Ibd97f1498169798ff2a73e23330fdcb51b0a27ef
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
2023-06-06 11:13:38 +00:00
Jianwei Fan
db77afeb1d media: i2c: lt6911uxe: add interlaced support
Change-Id: I09156961998940fa78c87e591c3d89982d91868d
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
2023-06-06 17:37:36 +08:00
Caesar Wang
6e858e1a97 arm64: configs: update camera sensors for rockchip_linux_defconfig
1/ Enable CONFIG_VIDEO_LT6911UXE for rk3588 evb1 extboard
2/ Enable CONFIG_VIDEO_OV13855 for rk3588s-tablet
3/ Enable CONFIG_VIDEO_OV50C40 rk3588s tablet & evb1.

Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Change-Id: I78e7caeb11b7f1db4a7ec74aaba681e895bcc843
2023-06-06 17:32:33 +08:00
Caesar Wang
ff60528776 arm64: dts: rockchip: add camera sensor configuration for rk3588s-evb1-lp4x-v10-linux.dts
Add lt7911d type-c/DP to MIPI CSI-2 bridge dts configuration as an example

Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Change-Id: I3ccd33f0f8ecf991c3c0ea4e6d6574009dc0e04c
2023-06-06 10:58:04 +08:00
William Wu
27312ce9d8 phy: rockchip: naneng-combphy: Fix Rx squelch for RK3528 U3
This patch adjust the RK3528 U3 Rx squelch input filler
bandwidth to 3'b110 which is used for rx_lfps, reduce the
bandwidth to avoid filtering valid superspeed data.

With this patch, it can fix the issue that Kingston U3 Disk
(idVendor=0951, idProduct=1666, bcdDevice= 1.10) read error
on RK3528 platforms.

Change-Id: Ifa4eac24bbdebe020db356ba45dae146f4df22f1
Signed-off-by: William Wu <william.wu@rock-chips.com>
2023-06-06 09:30:14 +08:00
William Wu
ae3a28752e phy: rockchip: naneng-combphy: Fix Rx squelch for RK3562 U3
This patch adjust the RK3562 U3 Rx squelch input filler
bandwidth to 3'b110 which is used for rx_lfps, reduce the
bandwidth to avoid filtering valid superspeed data.

With this patch, it can fix the issue that Kingston U3 Disk
(idVendor=0951, idProduct=1666, bcdDevice= 1.10) read error
on RK3562 platforms.

Change-Id: Idb667d159f9dba6b1de0a9ec04af9dae2d065927
Signed-off-by: William Wu <william.wu@rock-chips.com>
2023-06-06 09:30:14 +08:00
William Wu
4bbb16bf87 phy: rockchip: naneng-combphy: Fix Rx squelch for RK3568 U3
This patch adjust the RK3568 U3 Rx squelch input filler
bandwidth to 3'b110 which is used for rx_lfps, reduce the
bandwidth to avoid filtering valid superspeed data.

With this patch, it can fix the issue that Kingston U3 Disk
(idVendor=0951, idProduct=1666, bcdDevice= 1.10) read error
on RK3568 platforms.

Change-Id: I27410c5702862df2d8829a2ca3c2c1d9f57885be
Signed-off-by: William Wu <william.wu@rock-chips.com>
2023-06-06 09:30:14 +08:00
Shawn Lin
60c9e5240f mmc: dw_mmc: Add normal and idle pinctrl control
normal pinctrl is used for sd working mode. idle pinctrl is
used when the card is added or removed, so pull down the
IO to avoid power leak which makes the card unable to work.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: I8780b9de735b86918b4d5ba857711e56de740ecf
2023-06-06 09:29:35 +08:00
Sisyphean Zhou
4fa6921109 crypto: rockchip: v2: Fix pointer judgment errors
Change-Id: If13ef9030e42dc88feba351575dd0caa4ea4b66a
Signed-off-by: Sisyphean Zhou <sisyphean.zhou@rock-chips.com>
2023-06-06 09:18:18 +08:00
Qiqi Zhang
c4fc0a5153 input: rockchip_pwm_remotectl: workaround rk3528 IR code reading issue
Change-Id: Ic1cf95c7347324fd5b87e97b8084b7fb2a3d6708
Signed-off-by: Qiqi Zhang <eddy.zhang@rock-chips.com>
2023-06-05 16:54:45 +08:00
Zefa Chen
3852e749f0 media: rockchip: vicap change compact mode by align of width
and it only control with unit and online mode

Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Ibdf6b6969dacdb0f418066594b9c0520d0d9a7fb
2023-06-05 16:54:03 +08:00
Tony Zheng
972d711bd4 arm64: dts: rockchip: rk3308b-amp: Increase the size of AMP reserved memory to 18MB
Signed-off-by: Tony Zheng <tony.zheng@rock-chips.com>
Change-Id: I81a54a11a4b33c3539c760ffc054115e15854dbf
2023-06-05 16:09:46 +08:00
Sandy Huang
82a56746d9 Revert "drm: Not mark crtc state as connectors_changed when a writeback connector attatch to a crtc"
This reverts commit ae488c03ab.

Use the following commit instead:

22fe2c3d386e ("drm/rockchip: vop2: No need for a full modested when the
only writeback connector changed")

Change-Id: If8669d28ebc6c06331beaca588e9842920894a4c
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2023-06-05 09:46:34 +08:00
Sandy Huang
c7e2a3387e drm/rockchip: vop2: No need for a full modested when the only writeback connector changed
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I2c1f9e20777de3cb581b4c6678ff4f268cd97522
2023-06-05 09:46:27 +08:00
Algea Cao
e2a24104ee drm/edid: add HF-EEODB support to EDID read and allocation
HDMI 2.1 section 10.3.6 defines an HDMI Forum EDID Extension Override
Data Block, which may contain a different extension count than the base
block claims. Add support for reading more EDID data if available.

Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: Id2c7bd846330ae9ec9547db32e151bbf387e5734
2023-06-05 09:44:54 +08:00
Sugar Zhang
1255f11b25 clk: rockchip: clk-out: Add CLK_IGNORE_UNUSED flag
It's used for compatible for old style mclk reference
which do not use the "mclkout_x".

The clk framework will disable all unused clk after
system boot done. in this situation, it is failed to
output mclk with old style DT, because "mclkout_x"
was disabled by framework.

We add CLK_IGNORE_UNUSED flag to clk-out to allow old
style usage still work well.

Suggest to drop this flag for totally new SDK or SoCs
in the future. at the moment, we still need this flag.

Fixes: b3cfac5e37 ("clk: rockchip: Add support for clk input / output switch")

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I9d0a6b04637d055bc8beb0a03a630804108d4b28
2023-06-02 16:52:26 +08:00
Weiwen Chen
840f3f259f ARM: configs: add rv1106-nand.config
Change-Id: Ibdc0c656f9a371c90ebf68b35d7274badfc9ba41
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
2023-06-02 15:09:05 +08:00
Yu Qiaowei
ee55fc9efa video: rockchip: rga3: fix compile errors on kernel-6.1
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I3b0de1f1da992975c13f99de7574ff0cd0865e25
2023-06-02 10:58:56 +08:00
Cai Wenzhong
0eee997bed media: i2c: max96712: add rk3588 dcphy param get and set ioctl cmd.
Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: Ie548dbecfd049b70a19ef1232530bbcc238c75b4
2023-06-02 10:49:49 +08:00
Wangqiang Guo
3f2bd70899 media: rockchip: hdmirx: notify the bound cpu to bl31.
Change-Id: I4354213eb23c734626a7b51ee90feb31d6a66c3e
Signed-off-by: Wangqiang Guo <kay.guo@rock-chips.com>
2023-06-02 10:48:51 +08:00
Xing Zheng
760cdbbc19 ASoC: es8323: fix 32kHz coeff configurations
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Change-Id: I2f74a42dd133c40e90b29b872f41d1d501913d8e
2023-06-02 10:33:46 +08:00
Cai Wenzhong
e8913fed9f arm64: dts: rockchip: rk3588-vehicle-max96712: add pocen-gpios for dphy1 poc_en.
Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: Iad0c9a35c662dbc54062ea7afff78fb18dd9bc56
2023-06-01 18:37:55 +08:00
Cai Wenzhong
b41e989448 media: i2c: max96712: add poc_en gpio conctrol for remote camera power suppply.
1. poc_en gpio control remote camera 12V power supply: active high.
2. max96712_V11 board need to control poc_en for remote camera power supply.

Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: Ica5c446ce85877efd18ccca7180a8b18da609297
2023-06-01 18:37:55 +08:00
Jon Lin
13639746fa phy: rockchip: naneng-combphy: Fix swing to 650mv under 100M refclk for rk3562
Change-Id: Ia71ec0851c1d1bc686277a49af70488f413f423c
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-06-01 18:32:55 +08:00
Jon Lin
010c015455 phy: rockchip: naneng-combphy: Fix swing to 650mv under 100M refclk for rk3528
Change-Id: I30b988fe60a09ad3aafd6527238926526b1c3693
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-06-01 18:32:55 +08:00
Jianqun Xu
7aaa4bb7a2 ASoC: rockchip: i2s-tdm: try normal clear before switch master mode
As mind by sugar, sometimes the master device will exit unexpectly, stop
the sclk before the slave device to do stop trigger, for example the bt
module, which not act as a codec driver, is replaced by a dummy codec.

This patch adds a normal clear for i2s tdm before force switch to
master.

Fixes: c003b7fd8a ("ASoC: rockchip: i2s-tdm: Fix FIFO Clear failed on SLAVE mode sometimes")

Change-Id: Ia3ae2d9b008b07addcfcec38d4e970c376dae1e7
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2023-06-01 18:31:53 +08:00
David Wu
b221622157 ethernet: stmmac: dwmac-rk: Add bgs increment
Add the configuration of BGS from DTB.

Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: I0549f1a9327827441e83d7b17f20719026e8f27c
2023-06-01 18:12:04 +08:00
Cai Wenzhong
6e8bd48860 arm64: dts: rockchip: rk3588-vehicle-evb-maxim-max96712: default disable fsync
Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: I3b56dacded01bbbbbb1898a0ed0f8d557851f7d7
2023-06-01 17:45:08 +08:00
Cai Wenzhong
776837f7b4 media: i2c: max96712: fix 4 lane mode mipi link freq index setting error.
Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: Id1c1add779df6ec7c041cec53243645f8b2159d0
2023-06-01 16:38:35 +08:00
Sugar Zhang
b2dbb37c58 ARM: configs: rv1106: Optimize for cpu load
-CONFIG_HIGH_RES_TIMERS=y
-CONFIG_PREEMPT_VOLUNTARY=y
-CONFIG_HZ_300=y

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I68fe3a17e0a4b05ca724862ef3ad44d81280f4f4
2023-06-01 15:57:36 +08:00
David Wu
ee144563a5 net: phy: rk630: Enable aps && uaps to save power consumption
aps and uaps can save power consumption when RJ45 plug out.

Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: Iec36feb6ba1d734408efa9430e7889015c9d3fd1
2023-06-01 15:56:59 +08:00
David Wu
757588ef41 ethernet: stmmac: dwmac-rk: Fix Dribble bit error at 10M mode
At the 10M mode, gmac can detect odd nibbles package sometimes,
this is valid at mii mode. Make 25M at init for rmii mode, can
solve the issue by tests.

Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: I22dc619fbc9983d4b58efc42c5c92d0f8c8aaab5
2023-06-01 15:56:25 +08:00