Commit Graph

1079889 Commits

Author SHA1 Message Date
David Wu
f3a840a49e ethernet: stmmac: Add flow ctrl configuration from DTB
If flow control is configured in DTB, the priority is the highest,
otherwise the default value in the code is used.

Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: I21afeb537426473d6edf7ce40317cdaf99d64a93
2023-05-16 09:38:55 +08:00
Tao Huang
c1316a8ee9 mfd: rk808: Drop mfd_remove_devices for devm_ added devices
Fixes: 1df11488e9 ("mfd: rk808: support power off system in syscore shutdown")
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I0167cdda639ed9b44ad09c25937e652e92a3a267
2023-05-15 18:06:01 +08:00
Luo Wei
4ad91acace arm64: dts: rockchip: rk3588-vehicle-evb: add rk3308 device node
Change-Id: I569686d3463bf34165c735bf2e9f295b9c58c2fb
Signed-off-by: Luo Wei <lw@rock-chips.com>
2023-05-13 20:00:24 +08:00
Sandy Huang
3262ff397d drm/rockchip: logo: Warn when logo memory alignment is not expected
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I7b2068e4d322f78a691746eaf529e0eb73457894
2023-05-12 18:17:04 +08:00
Steven Liu
cfa1b266b1 arm64: dts: rockchip: Add RK3308b amp reserved memory
default remote amp core (CPU3) address 0x02e00000

Signed-off-by: Steven Liu <steven.liu@rock-chips.com>
Change-Id: Ieae840cb199e7cd607c36d53eeffad9cd00e2a3f
2023-05-12 18:04:30 +08:00
Nickey Yang
acdf68dc44 arm64: dts: rockchip: add rk3562 dictpen test3 v20 board
Change-Id: Ia0ede6e8d24fcfa8e18fa636e91272a343235664
Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
2023-05-12 18:00:43 +08:00
Cai YiWei
1fbb873933 media: rockchip: isp: fix sync with 3a_server
Change-Id: I5f892f786f07ef42a4479ad0a4e5bac55cfcd94f
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2023-05-12 17:56:09 +08:00
Cai YiWei
4a825cc1a0 media: rockchip: ispp: fix null for ispp vir device disable
Change-Id: Ia06081e009cf0f6ac0fd15077cbbef19dfec80a6
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2023-05-12 17:55:32 +08:00
Cai YiWei
02a2dbb91c media: rockchip: isp: force offset to 0 when frame end for wrap mode
Change-Id: I8d216824edff965ef12b2de8620dd135a6ff50f4
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2023-05-12 16:16:15 +08:00
Damon Ding
600823a896 drm/rockchip: vop2: add polarity configs of rgb sync pins
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: I7ac600119565d5226c95b95d5bd7cb59f8ca7523
2023-05-12 15:12:50 +08:00
Liang Chen
f8b9431ee3 arm64: dts: rockchip: rk3568: support adjust opp-table by otp
Signed-off-by: Liang Chen <cl@rock-chips.com>
Change-Id: I93bac848a43a06c90e436b4c2c36cc6ed1a8bc71
2023-05-12 15:08:08 +08:00
Zefa Chen
c5df770b4a media: rockchip: vicap fixes error buffer state when lack buffer equal 2
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Ib44c1180298af20b03e68fedcd0819fbd9fe55db
2023-05-12 14:37:09 +08:00
Wangqiang Guo
d636b7a6d6 media: rockchip: hdmirx: modify timging unstable return.
1. modify timging unstable return.
2. checkout bound cpu 4 success.

Change-Id: I4369eea83fd2a718241e6874699c69bca871d27d
Signed-off-by: Wangqiang Guo <kay.guo@rock-chips.com>
2023-05-12 09:34:33 +08:00
Jason Song
984cbfd81a media: i2c: nvp6188 update to version v0.2.0
1. update init registers setting
    2. nvp6188 do not stream after writing registers setting
    3. support detect fmt change when hotplug ahd camera
    4. support 1600x1300 ahd camera input

Change-Id: I26d51e5eede8d956065bcb9d94359c7d815c9f44
Signed-off-by: Jason Song <sxj@rock-chips.com>
2023-05-12 09:34:33 +08:00
Algea Cao
0744bece85 drm/rockchip: dw_hdmi: Fix write rk3588 grf in other platform
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: I3bb7a6e68c8c84840c5007309810a93346349ba2
2023-05-10 19:34:37 +08:00
Yu Qiaowei
87845a44c8 video: rockchip: rga3: fix compile errors on stable-4.19-rv1126
Update driver version to 1.2.26

Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I048c44201f34af5d4391b2ce097ba592b5f0b5c1
2023-05-10 14:20:04 +08:00
Cai YiWei
a9a5d8c2dd media: rockchip: isp: fix error for multi sensor with scale up case
Change-Id: If9e781820ed0be41096c29fbdffa8114458b8597
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2023-05-10 14:14:48 +08:00
Elaine Zhang
be08ed2545 clk: rockchip: rk3308: fix uart clk to support more frequency points
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: I23c19f924f0afe1af15558410074db7258083dfd
2023-05-10 10:31:32 +08:00
Algea Cao
09b3288dd7 drm/rockchip: dw_hdmi-qp: Disable scramble when hdmi disable
Fix no signal when hdmi switch from hdmi2.0 tv to
hdmi1.4 tv.

Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: Ie90edcf737f204568bcac233acab9aa6046c20e3
2023-05-10 09:27:20 +08:00
Yiqing Zeng
693eadca16 arm64: dts: rockchip: rk3588-vehicle-evb: nvp6188 adapt to evb v20/v11
Change-Id: I0fa0285e9cfdc4db73320971fbc68cb426abf2a0
Signed-off-by: Yiqing Zeng <zack.zeng@rock-chips.com>
2023-05-09 20:22:43 +08:00
Wyon Bi
375777288b drm/panel: maxim-max96752f: Add HannStar HSD123JPW3-A15 panel
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: I5b7c77384779f7bb4eb5b093593b3ff6d1f3c36c
2023-05-09 20:21:44 +08:00
Wyon Bi
64d9662793 drm/panel: maxim-max96752f: Add power supply regulator support
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: Idbc26fb9d76b5c6afc1ddd35de715b22157ccbcd
2023-05-09 20:21:44 +08:00
Wyon Bi
23bc9d31c3 mfd: max96745: Add pwdnb GPIO support
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: I1e19c365325196c3d6ff652079db2f816f31f4ad
2023-05-09 20:21:44 +08:00
Yandong Lin
95949accd3 video: rockchip: mpp: fix some issue for ccu flow
1. Simplify some code.
2. Use mpp_time_diff_with_hw_time to get hw time.
3. Loop to get task from pending list after task enqueue hw
successfully.

Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: Icfecbc6b620efbf410076ca3765fb921d1665260
2023-05-09 20:17:14 +08:00
Chandler Chen
b01336f37d arm64: dts: rockchip: rk3588s: add clock config for avsd
1.assign normal-rate for avsd aclk
2.add disable-auto-freq

Signed-off-by: Chandler Chen <chandler.chen@rock-chips.com>
Change-Id: I8424afa8155802ff6cbbeb8d0d340d9d3271c9b3
2023-05-09 18:45:14 +08:00
Damon Ding
907d06745a drm/rockchip: vop2: fix hactive 4-pixel alignment in mode_fixup
For RK3588 and RK3568, the hactive of video timing must
be 4-pixel aligned.

Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: I2485e27420b365104c5c876708600fb59189e1af
2023-05-09 18:45:14 +08:00
Algea Cao
ebee330352 drm/rockchip: dw_hdmi-qp: Fix kernel logo color error
If other display port such as edp bind failed, hdmi
will re-bind. The conditions for determining whether
uboot logo is enabled are unreliable. Changing judgment
flag to an unused reg.

Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: I2b634ae159934bb62ea1a08864bf8b1b9cbb479d
2023-05-09 18:45:14 +08:00
Frank Wang
1d2a962ead mailbox: rockchip: amend txdone method to polling
Since there is no txdone irq in the Rockchip mailbox IP, invoking
mbox_chan_txdone()/mbox_client_txdone() after mbox_send_message()
to tick the TX would be free the active request which have not been
sent out if the controller returned the EBUSY state before. So amend
the txdone method to polling to fix it.

The TX polling interval can specify in DT with
"rockchip,txpoll-period-ms" property, if it is not set, the driver
would hardcode to 5 milliseconds.

Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Change-Id: Ic26d3245dd8bd90ebad30fce9ece2f4452814f7f
2023-05-09 18:45:14 +08:00
Frank Wang
84a53e9fe3 dt-bindings: mailbox: rockchip: add tx poll period property
Specify TX Done polling interval in milliseconds with the
"rockchip,txpoll-period-ms" property.

Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Change-Id: I91f25e6b5e6ef05cf90147b2e609c71c6ed61df7
2023-05-09 08:40:27 +08:00
Steven Liu
e6d7502e91 pinctrl/rockchip: fix rk3568 pull comments
Signed-off-by: Steven Liu <steven.liu@rock-chips.com>
Change-Id: Ic06e6d428524b56bc8a227cb328bfe50ed0801f4
2023-05-08 14:11:34 +08:00
Cai YiWei
d7e1493f44 media: rockchip: isp: fix isp rockit frame rate err
Change-Id: I1a730c26168f15be6c7a145bf7fe830316640447
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2023-05-08 12:02:51 +08:00
Luo Wei
93687d7025 arm64: dts: rockchip: rk3588-vehicle-evb: add dis_u2_susphy_quirk config
Signed-off-by: Luo Wei <lw@rock-chips.com>
Change-Id: I893e152316fd0e9fe5d75bd94b3c89eb05af8331
2023-05-06 16:39:20 +08:00
Felix Zeng
b32714ef36 driver: rknpu: Update rknpu driver, version: 0.8.8
* Add nbuf memory support
* Add rknpu session for each instance
* Add multi core irq status timeout log
* Fix job run count error

Signed-off-by: Felix Zeng <felix.zeng@rock-chips.com>
Change-Id: I408e535fa1b3f8c853682a8ebaa245e3d7c188fb
2023-05-06 14:46:05 +08:00
Chandler Chen
1b151c0aef video: rockchip: mpp: increase iep2 timeout threshold
Signed-off-by: Chandler Chen <chandler.chen@rock-chips.com>
Change-Id: If585f9086150ef261d1cc6aa6054110aba3e1a80
2023-05-06 14:28:25 +08:00
Sandy Huang
6291a1be8f drm/rockchip: vop2: add writeback virtual height support
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I6971328ca0c931d884cd093310020f34a48d908c
2023-05-06 14:24:32 +08:00
Yandong Lin
6c65f4a7e9 video: rockchip: mpp: fix soft timeout to 500 ms for rkvdec2_link
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: Ia27ab31db22655f13037c2aafde8bde2ad534c4b
2023-05-05 20:23:07 +08:00
Yandong Lin
d160fb836c video: rockchip: mpp: fix rkjpegd define
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: I41ba84bc119e701d52b217e399d78c795c532446
2023-05-05 18:14:39 +08:00
Jason Song
b169885cd8 arm64: dts: rockchip: rk3588-vehicle-evb-v20: reduce sdio power on delay.
on vehicle evb, sdio wifi power on delay recommend 10ms at least.

Signed-off-by: Jason Song <sxj@rock-chips.com>
Change-Id: I0d489b080f0a6323eb14261eaf557e3e3f0e13ee
2023-05-05 16:47:12 +08:00
Cai Wenzhong
bbaafe5730 arm64: dts: rockchip: rk3588-vehicle: fix max96712 gpio pinctrl error.
1. add max96712 lock-gpios for hot plug irq detect.
2. fix max96712 lock and errb gpio pinctrl error.

Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: I0576da7290c659ea14016158b324bd1eda38dcf2
2023-05-05 15:57:15 +08:00
Guochun Huang
5e1298153d drm/bridge: dw-mipi-dsi: fix request hs clk in dual channel dsi
Change-Id: Ia11c4fed8aee39a6dd6a8315132b83c1888ea462
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
2023-05-05 14:58:38 +08:00
Guochun Huang
4f8507b871 drm/rockchip: dsi: fix dual channel dsi specify lane rate by "rockchip,lane-rate"
Change-Id: Ibec1cc59352e4eae4ee079eb2c741fce18726795
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
2023-05-05 14:55:35 +08:00
Guochun Huang
cd2099edfb drm/rockchip: dsi: find panel/bridge only once in dual dsi application
Change-Id: I96bb1b040a1df30d52d27815d54e4bf1509a2ea8
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
2023-05-05 14:55:35 +08:00
Zhang Yubing
71c39f46c9 drm/rockchip: dw-dp: optimizing connected status detect process
In some case, the hpd is detected but the aux is not ready. It's
better to detect aux status before get link info from dpcd.

When the dptx send a aux request transaction, the dptx's max
aux timeout value is 3.2 ms, set the timeout value as 10ms
is enough.

Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Change-Id: Id878c0c2c1c5690ac08bad477ea96ac12b674edb
2023-05-05 14:55:09 +08:00
Cai Wenzhong
93eff125bf media: i2c: max96712 driver update to version 1.01.00
Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: I05df8c399686a5908c2077936e24027e46a1e18b
2023-05-04 18:37:10 +08:00
Sugar Zhang
e32b8efaef ASoC: rockchip: sai: Add support for PCM R/W Wait Time
ALSA core blocks userspace for 10 seconds for PCM R/W default.

Consider the situation BT-slave which acts as SLAVE mode, when
BT-master offline sometime, the CLK lost, user have to wait the
core timeout(10s), it's quite bad experience.

This patch allows userspace to override the WAIT_TIME to recover
more quickly from terminal audio stream. especially for stream
which have no mechanism to detect the LINK offline.

Usage:

/# amixer -c 0 contents | grep Wait
numid=43,iface=PCM,name='PCM Read Wait Time MS'
numid=44,iface=PCM,name='PCM Write Wait Time MS'

/# amixer -c 0 cset numid=43 500
numid=43,iface=PCM,name='PCM Read Wait Time MS'
  ; type=INTEGER,access=rw------,values=1,min=0,max=10000,step=1
  : values=500

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I73e98d54388a50672c5ed710db448cd13c0e1098
2023-05-04 17:59:26 +08:00
Sugar Zhang
3300cecb86 ASoC: rockchip: sai: Fix BCLK glitch
After FS idle, should wait at least 2 BCLK cycle to make sure
the CLK gate operation done, and then disable mclk.

Otherwise, the BCLK is still ungated. once the mclk is enabled,
there maybe a risk that a few BCLK cycle leak. especially for
low speed situation, such as 8k samplerate.

The best way is to use delay per samplerate, but, the max time
is quite a tiny value, so, let's make it simple to use the max
time. the max BCLK cycle time is: 31us @ 8K-8Bit (64K BCLK)

  udelay(40);

Should wait for one BCLK ready after DIV and then ungate clk to
achieve the clean clk. the max BCLK cycle time is:
15.6us @ 8K-8Bit (64K BCLK)

  udelay(20);

Increase the max timeout to 1ms to fix FS idle failed. because
it's not enough for 8k samplerate.

  rockchip-sai ff810000.sai: Failed to idle FS

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Ia9da291dd8586236bb32cc0376a6de389f2f0a40
2023-05-04 17:59:25 +08:00
Sugar Zhang
2d2b53637e ASoC: rockchip: sai: Add support for Multi-DAIs
This patch add property 'rockchip,no-dmaengine' to
support register DAI without PCM, and it's usually
used for Multi-DAIs which combine DAIs into a union one.

Change-Id: I4e0da8fae2c692601e05118442218de0f7b4efee
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2023-05-04 17:58:15 +08:00
Sugar Zhang
54b0bc7bac ASoC: rockchip: sai: Add support for CLK-ALWAYS-ON quirks
This patch add support for keeping BCLK / FSYNC always on.
it's required by some devices, such as HDMI, PA, etc.

For example: on HDMI situation

There are some TVs require maintaining N/CTS packets or AUDS
packets to keep audio logic active, otherwise, the first tone
may be lost.

In order to optimize the user experience, we need to ensure
continuous transmission of N/CTS and AUDS packets from the
HDMI-TX, so that the SINK TV devices can maintain audio logic
activation, promptly process audio data, and achieve the
completeness of the first tone.

We init a 48k I2S-STANDARD clock timing as default.

Change-Id: I298b0ad2d53bdc41927f567c2af481f2a0bd5422
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2023-05-04 17:45:02 +08:00
Yandong Lin
49bf5942cf video: rockchip: mpp: fix dule-core synergy stuck issue
There is a issue of stuck during dual-core collabration,
and the hw timeout count will be blocked by default,
and only soft timeout can be triggered to exit.

However, the soft timeout is too loog, so config reg to not mask the hw
timeout.

Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: If801b8ba3b463094ea497fae829f772de7ade382
2023-05-04 16:28:13 +08:00
Yandong Lin
8cc161a8e1 video: rockchip: mpp: stop vepu2 before reset
In some platform, can not do pmu_idle_request before cru reset.
Resetting without pmu_idle_request while the hw is running
will result in a bus err.

So stop hw first before cru reset to prevent the issue.

Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: I62ace147a0d72adb774fed989b34c7bf22af48ac
2023-05-04 16:27:29 +08:00