Commit Graph

1079872 Commits

Author SHA1 Message Date
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
Sugar Zhang
c6977c7aac ASoC: rockchip: sai: Remove the space prefix for SBW
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I78ca99a10c2461f80e0c2ad7062bbfc0de3b6590
2023-05-04 16:18:29 +08:00
Sugar Zhang
c961c5bb56 ASoC: rockchip: sai: Add support for Clk-Auto Switch
This patch add support for Clk-Auto Switch.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I2d3b10fcf4cc55ba005d1c9da1049190882f7494
2023-05-04 16:17:55 +08:00
Sugar Zhang
0ee19616d5 ASoC: rockchip: sai: Fix Master / Slave Mode Switch
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Ia9dcf0c52de6a4d4487bdc02601ad9b546e8e435
2023-05-04 16:17:39 +08:00
Sugar Zhang
c23e3b088d ASoC: dummy_codec: Add support for more capabilities
* Support 8-bits width
* Support Mono channel
* Support up to 384k samplerate

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I9f1c10bad2bfb9a3beee1dd91508158e79da2492
2023-05-04 16:16:50 +08:00
Zhichao Guo
ea5b730b65 ARM: dts: rockchip: rv1106g-evb1-v11: Add vdd_arm changes
Modify the micorvolt of vdd_arm to support the new hardware.

Signed-off-by: Zhichao Guo <zhichao.guo@rock-chips.com>
Change-Id: Id4e102c0a72898c27e0f2547e08c5d5095edfb76
2023-05-04 16:07:42 +08:00
Finley Xiao
52f971ee6e arm64: dts: rockchip: rk3562: Enable viLKsvPwrActive for soc bus
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I5758c18130c5900cf23caddd25c80450e172650b
2023-04-28 14:24:48 +08:00
Jon Lin
d692435db7 mtd: spi-nor: esmt: Support New devices
en25qx128a

Change-Id: Ie136512a1cd8d44508c114abb2b59397acd982ee
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-04-28 14:22:18 +08:00
Jon Lin
00cd81ba44 mtd: spi-nor: fmsh: Support New devices
FM25Q256I3

Change-Id: I4922debff3dbd3d6d480d1565e183e9c8e10bd4c
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-04-28 14:22:18 +08:00
Jon Lin
81826077f1 mtd: spi-nor: gigadevice: Support New devices
gd55lb01ge

Change-Id: I25d8d2a35877baaaf12bbb3c85d0a7b4d647e455
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-04-28 14:22:18 +08:00
Jon Lin
1e5200d59e mtd: spinand: gsto: Add code
GSS01GSAK1, GSS02GSAK1

Change-Id: I7ee9048d934694803d6d081cb7d0cdc56f114e79
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-04-28 14:22:18 +08:00
Jon Lin
a105534351 mtd: spinand: hyf: Support new devices
HYF2GQ4IAACAE, HYF1GQ4IDACAE

Change-Id: Ie01fcab9be9c5e1982cfc4ab2e63aac2e95c8557
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-04-28 14:22:18 +08:00
Shawn Lin
ff11acc4e1 mmc: convert thunder boot dependency
If no need to activate the decompress flow, using CONFIG_ROCKCHIP_THUNDER_BOOT_MMC
should be better.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: Ic9750ab71cc0d7c5beddd41f11ab71aa4df69bff
2023-04-28 08:56:04 +08:00
XiaoDong Huang
32a239027d ARM: dts: rockchip: rv1106: add node for system sleep
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
Change-Id: I9b41dd418c5274d57fd992071cabf7393e9fbee2
2023-04-27 16:41:15 +08:00
XiaoDong Huang
8dfc627542 ARM: rockchip: support rv1106 suspend
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
Change-Id: Iee8830ceed2d264dfa388b8b8a437486d32d9bc5
2023-04-27 16:41:15 +08:00
XiaoDong Huang
b8ef7d0e0c ARM: rockchip: add some pm-related functions
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
Change-Id: I736e032e604fa5fb6d1e1cfc9547747c443422dd
2023-04-27 16:41:15 +08:00
Chandler Chen
985afae872 video: rockchip: mpp: fix rk3528 avsd not probe issue
Signed-off-by: Chandler Chen <chandler.chen@rock-chips.com>
Change-Id: I79c9b010e0b863c76a9cbfc59433480d1581bbfa
2023-04-27 15:02:33 +08:00
Wyon Bi
188bc14523 arm64: dts: rockchip: rk3588-vehicle-maxim-serdes: Add BOE AV156FHT L83 support
Change-Id: Ibac167c55aa0dacf61080501cc413957200670c9
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2023-04-27 14:48:38 +08:00