Commit Graph

1276841 Commits

Author SHA1 Message Date
Jiahang Zheng
cf157fd678 ARM: dts: rockchip: rk3506-evb1: command line add storagemedia=mtd
Change-Id: I2b72cba3daf52430b6a0871f60150ac0b5b95b1e
Signed-off-by: Jiahang Zheng <jiahang.zheng@rock-chips.com>
2024-12-03 17:30:31 +08:00
Cai YiWei
8d891df6ed media: rockchip: isp: fix isp30 unite mode for rk3588
Change-Id: Ie11e8bc01adfe14f386aff1f22382a53606aa170
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2024-12-03 14:30:15 +08:00
Cai YiWei
501e98ac8a media: rockchip: isp: fix bay3d if two readback for isp32
if over resolution specification will need two readback,
first readback need to discard bay3d write data.

Change-Id: I940949109d18f54bde8ebe4650d2abebfe7b1ba8
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2024-12-03 14:30:15 +08:00
Cai YiWei
8a5b96b0af media: rockchip: isp: fix group aov no working for isp32
Change-Id: Ice9d129c32691c1822cd424785dd3f59d2ae74cb
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2024-12-03 14:30:15 +08:00
Cai YiWei
358b83e069 media: rockchip: isp: fix multi sensor with unite mode
large resolution need to divided into left and right
small resolution no need to divided

Change-Id: If0f60d97b90afa7eba306c09b5c56eda7735c5fa
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2024-12-03 14:30:15 +08:00
Cai YiWei
edcefc7318 media: rockchip: isp: add raw filter to procfs debug
BIT(7) for skip raw input update, example:
echo mode=0x80 > /proc/rkisp0-vir0

Change-Id: I6984d6eb191ce6d63c6b9cbf6cc90c0b82ac6613
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2024-12-03 14:30:15 +08:00
Caesar Wang
e7f42c688a arm64: dts: rockchip: Add mmc aliases for rk3576-linux.dtsi
This series in order to have the default MMC alias.

    The mmc default alias:
            mmc0 = &sdhci;
            mmc1 = &sdmmc;
            mmc2 = &sdio;

The Linux OS have the post-build.sh to handle the rootfs,
and export RK_EXTRA_PARTITIONS for setting the PARTITIONS.

Change-Id: Ide2fb3407e4f488ad5e2f26711864cd23dfada54
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
2024-12-03 11:37:15 +08:00
Tao Huang
861574fe12 Revert "rk: add scripts/clang-wrapper.py"
This reverts commit b8f2e67cb1.

Replaced by CONFIG_WERROR.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I40736915b4bda71aa404ce9b12aacec30ffb275b
2024-12-02 19:22:08 +08:00
Tao Huang
0535dc30b4 Revert "rk: add gcc-wrapper"
This reverts commit e9fa201a63.

Replaced by CONFIG_WERROR.

Change-Id: I19bfd33456be16f52c7d45252f612d8a8961e139
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2024-12-02 19:21:49 +08:00
Jon Lin
9a58cb0abe PCI: rockchip: dw-ep: Detecting ATU features to achieve DWC ATU interface development
Change-Id: I53b48c5318aeeef6c39ea4a72c7f1f703bcb5a8e
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-12-02 18:26:08 +08:00
Andy Yan
c6d9d4543e drm/rockchip: vop2: Check the write-back width for VOP version prior rk3588
For VOP of rk3588/68, the writeback width must be align to 16 pixel,
a non-16pixel-aligned width will be round down to 16 pixel aligned
by VOP hardware.

Change-Id: Ide65f67d2435189c25c74b68eedbd1ba5c3e9014
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
2024-12-02 18:25:48 +08:00
Andy Yan
44f022321a UPSTREAM: drm/rockchip: vop: Fix a dereferenced before check warning
The 'state' can't be NULL, we should check crtc_state.

Fix warning:
drivers/gpu/drm/rockchip/rockchip_drm_vop.c:1096
vop_plane_atomic_async_check() warn: variable dereferenced before check
'state' (see line 1077)

Fixes: 5ddb0bd4dd ("drm/atomic: Pass the full state to planes async atomic check and update")
Change-Id: If34ed62e2e890742ce6da73efeb9fa78c530bc95
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20241021072818.61621-1-andyshrk@163.com
(cherry picked from commit ab1c793f457f740ab7108cc0b1340a402dbf484d)
2024-12-02 18:25:40 +08:00
Sugar Zhang
8fcf0e4c05 ASoC: rockchip: i2s-tdm: Fix WL for TDM mode
TDM FIFO depends on fifos used.

Fixes: b4dce5a43a20 ("ASoC: rockchip: i2s-tdm: Optimize WL for TDM mode")

Change-Id: I04ce9bc55e1dffa8cc04b051d90e35545e06f4e2
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2024-12-02 18:25:22 +08:00
Lin Jianhua
226c44e770 net: wireless: rockchip_wlan: bcmdhd: fixup compile error on aarch32
drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/wl_cfg80211.c:7913:1:
error: stack frame size (1448) exceeds limit (1280) in 'wl_cfg80211_add_key' [-Werror,-Wframe-larger-than]

Signed-off-by: Lin Jianhua <linjh@rock-chips.com>
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ie7899827ed313f7eddc853e78474be7e7ac9a756
2024-12-02 18:22:04 +08:00
Jianlong Wang
0de2a2efa4 arm64: dts: rockchip: rk3328: fix usb2phy node name
Fix u-boot error:
Call trace:
 PC:	[< 00235a50 >]  regmap_write+0x4/0x18      drivers/core/regmap.c:142
 LR:	[< 00239704 >]  rk3328_usb2phy_tuning+0x28/0x6c      drivers/phy/phy-rockchip-inno-usb2.c:847

Stack:
       [< 00235a50 >]  regmap_write+0x4/0x18
       [< 00239b24 >]  rockchip_usb2phy_probe+0x234/0x238
       [< 00233b00 >]  device_probe+0x214/0x274
       [< 00234bd4 >]  uclass_get_device_tail+0x1c/0x40
       [< 00234c5c >]  uclass_get_device_by_name+0x2c/0x38
       [< 0023a090 >]  otg_phy_init+0x28/0x144
       [< 0026aa20 >]  usb_gadget_register_driver+0x7c/0xa4
       [< 0026c66c >]  usb_composite_register+0x50/0x74
       [< 0026c9f4 >]  g_dnl_register+0x1c/0x4c
       [< 0020ec00 >]  do_rkusb+0x29c/0x4e0
       [< 0022baf4 >]  cmd_process+0xdc/0x10c
       [< 00214aa4 >]  run_list_real+0x6e4/0x728
       [< 00214c58 >]  parse_stream_outer+0x170/0x66c
       [< 002143a8 >]  parse_string_outer+0xcc/0xe4
       [< 0021495c >]  run_list_real+0x59c/0x728
       [< 00214c58 >]  parse_stream_outer+0x170/0x66c
       [< 0021436c >]  parse_string_outer+0x90/0xe4
       [< 00209d34 >]  do_download+0x24/0x50
       [< 0022baf4 >]  cmd_process+0xdc/0x10c
       [< 00214aa4 >]  run_list_real+0x6e4/0x728
       [< 00214c58 >]  parse_stream_outer+0x170/0x66c
       [< 0021436c >]  parse_string_outer+0x90/0xe4
       [< 00202888 >]  setup_boot_mode+0xc8/0xf0
       [< 0020350c >]  board_late_init+0x1e4/0x424
       [< 00282c0c >]  initcall_run_list+0x58/0x94
       [< 00215b84 >]  board_init_r+0x20/0x24
       [< 00201940 >]  relocation_return+0x4/0x0

Change-Id: I1c931f385548eaa8ba11407a23a7d0c31bb1464b
Signed-off-by: Jianlong Wang <jianlong.wang@rock-chips.com>
2024-12-02 18:21:46 +08:00
Damon Ding
47f3d3f405 ARM: dts: rockchip: rk3506-iotest: change ubi.mtd from 4 to 5
Change-Id: I316b8585cef8ecd1d2661168c7b4226292ba24dd
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2024-12-02 14:23:41 +08:00
Jon Lin
5e5bea18c6 misc: rockchip: pcie-rkep: Support pcie err_handler
Change-Id: I732adc22965ccc99199848bf4315e1511dcb957a
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-12-02 11:17:03 +08:00
Elaine Zhang
cd4db37fa4 clk: rockchip: rk3568: remove pwm0 for protect clock
Fixes: e0c790b129 ("clk: rockchip: rk3568: protect pwm clks")
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: I45c5a9f502052bf191fe80f11a9b510592a114a0
2024-11-29 19:52:41 +08:00
Jiajian Wu
c7a128313e ASoC: codecs: rk3506: Check substream direction in hw_params and shutdown
Change-Id: I55f5b14123c443d83577807ccbd38660616bf744
Signed-off-by: Jiajian Wu <jair.wu@rock-chips.com>
2024-11-29 15:38:20 +08:00
Jiajian Wu
ff8cc6da8a ARM: dts: rockchip: rk3506g-demo-display-control: Bind loopback to rk730_sound
Change-Id: Ib619e7bd2eab535acba72037722c66bf60f82f59
Signed-off-by: Jiajian Wu <jair.wu@rock-chips.com>
2024-11-29 15:38:18 +08:00
Jiajian Wu
da13072958 ARM: dts: rockchip: rk3506g-evb1-v10: Bind loopback to es8388_sound
Change-Id: I3fefd76a41cd9b53e61f2c144a38a77184ddff10
Signed-off-by: Jiajian Wu <jair.wu@rock-chips.com>
2024-11-29 15:37:58 +08:00
Jiajian Wu
61bf3015b1 ASoC: dt-bindings: rockchip: add property 'mclk-fs-mapping' for multidais
Change-Id: I0259297f6849ebc86abe5513d95d5a227fa5677f
Signed-off-by: Jiajian Wu <jair.wu@rock-chips.com>
2024-11-29 14:31:28 +08:00
Jiajian Wu
5ee0f90b7c ASoC: rockchip: multi-dais: Support set different mclk to dais
Change-Id: I15d8be7980252fa7ac70ff73170c5ae9b812eb63
Signed-off-by: Jiajian Wu <jair.wu@rock-chips.com>
2024-11-29 14:31:28 +08:00
Simon Xue
a780a89108 drm/rockchip: gem: try other IOVA if iommu map failed
We get the same IOVA from DRM mm framework at different times which
finally cause iommu map failed. So let's try other IOVA if iommu map
failed time exceeds the limitation to map as a workaround.

Change-Id: Ic539f4a64d5ed0c9d3f5ac01acf3f0922a2fdc1f
Signed-off-by: Simon Xue <xxm@rock-chips.com>
2024-11-29 14:18:20 +08:00
Tao Huang
2b64d93e09 ARM: configs: rk3506-display.config: Disable CONFIG_ROCKCHIP_DW_MIPI_DSI2
This feature is not available for rk3506.

Change-Id: Ic74e03ee687b91f4fe306e8b57689284dbd73d83
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2024-11-29 14:17:11 +08:00
Jiajian Wu
b89d2d2e66 ASoC: dt-bindings: rockchip: add property 'rockchip,mclk-fs-mapping' for multicodecs
Change-Id: Iffc566092dec8b9fd0391b6ce4327829c67e78c2
Signed-off-by: Jiajian Wu <jair.wu@rock-chips.com>
2024-11-29 14:16:02 +08:00
Jiajian Wu
1952452c5b ASoC: rockchip: multicodecs: Support set different mclk to codecs
Change-Id: I305828159da0c5a1bffc6ee832b3c6c71dbd6354
Signed-off-by: Jiajian Wu <jair.wu@rock-chips.com>
2024-11-29 14:14:51 +08:00
Sugar Zhang
76d3b8c82a ARM: dts: rockchip: rk3502-evb1: Add pinctrl-sleep for SAI1
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Ibdb38886942e979919d7b1f3eed138379357cb9c
2024-11-29 09:18:48 +08:00
Sugar Zhang
c2f444153a ARM: dts: rockchip: rk3506-pinctrl: Add rm_io_idle pins
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I2d0ed26188932e01342ced7791551bff6ac3bc06
2024-11-29 09:18:16 +08:00
Ye Zhang
766c5f5333 ARM: dts: rockchip: pinconf.dtsi add input enable pull down
Signed-off-by: Ye Zhang <ye.zhang@rock-chips.com>
Change-Id: I584b1d26ad38eff38f2c72ed8d58c4b15c604e7e
2024-11-29 09:17:42 +08:00
Sandy Huang
263ff45dbf drm/rockchip: vop2: Fix compile error on arm32 platform
ld.lld: error: undefined symbol: __udivdi3
>>> referenced by rockchip_drm_vop2.c
>>>
drivers/gpu/drm/rockchip/rockchip_drm_vop2.o:(vop2_plane_atomic_check)
in archive vmlinux.a
>>> did you mean: __udivsi3
>>> defined in: vmlinux.a(arch/arm/lib/lib1funcs.o)

arm-none-linux-gnueabihf-ld: drivers/gpu/drm/rockchip/rockchip_drm_vop2.o: in function
`vop2_calc_dsc_clk':
rockchip_drm_vop2.c:(.text+0x239c): undefined reference to `__aeabi_uldivmod'

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Iac0b61444cd4d33c62bd8994d0ce7ca1bab7bfa4
2024-11-28 19:18:13 +08:00
Zhen Chen
b2a3a28618 Mali: utgard: Replace calls to dma_fence_ops::signaled with dma_fence_is_signaled()
To address the issue in kernel 6.1 that 'dma_fence_ops::signaled'
is NULL for certain signaled fence instances.

Change-Id: Ie5e03e849947a9cd2b02fd057ebb44878aa2d0b0
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
2024-11-28 19:18:13 +08:00
Jon Lin
f965b5da7c mtd: spi-nor: Add macro definition constraints
Change-Id: I3b35faaea4fad132be18940328e7df88ebdb0dbd
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-11-28 18:40:31 +08:00
Wang Panzhenzhuan
7c8198aa9a arm64: dts: rockchip: rk356x evb boards: add vcm config
add vcm config for ov5695 & gc8034 module

Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: I904cfbf90b5b2aa9ece56df2832a5ef382bfa308
2024-11-28 11:35:47 +08:00
Jon Lin
a104b8efc3 mtd: spinand: Add macro definition constraints
Change-Id: I65e03dd7cc70d1ab279c5bdea0ef8969666d7469
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-11-28 10:58:41 +08:00
Guochun Huang
2aa34d8499 drm/rockchip: dsi2: allocate macros for mipi dsi2 drivers
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
Change-Id: Ie2f712cb1aea522004e84c7d0f4d66fe94427d57
2024-11-28 09:09:15 +08:00
Guochun Huang
59cb08abbf drm/rockchip: dsi2: separate the of_device_id array by different SoC
Separate the process of device matching by the different SoC macro
definitions, which can reduce memory usage.

Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
Change-Id: Ic0f02bee51a6520e48568aecce92acf5d0ae31e4
2024-11-27 18:56:05 +08:00
Guochun Huang
dc1407e301 drm/rockchip: dsi: separate the of_device_id array by different SoC
Separate the process of device matching by the different SoC macro
definitions, which can reduce memory usage.

Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
Change-Id: Ice50f15e64f7d1ae353ecfe462f7ba3fab017817
2024-11-27 18:56:05 +08:00
Sandy Huang
41f9223a94 arm64: dts: rockchip: rk3576-vehicle-evb-v20-serdes-mfd-display-maxim: fix max96745 bridge port error
The remote end point ports should be at bridge node.

Fixes: 57816781c4 ("arm64: dts: rockchip: rk3576-vehicle-evb: init v20 dts files")
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I6d01f68e5e5a5a3239d006f60fe97a0014918301
2024-11-27 18:20:52 +08:00
Elaine Zhang
582db606cb soc: rockchip: pm-domain: optimize static memory consume
$ ./scripts/bloat-o-meter pm_domains_old.o pm_domains.o
dd/remove: 0/22 grow/shrink: 0/1 up/down: 0/-9328 (-9328)
Function                                     old     new   delta
rk3568_pmu                                    44       -     -44
rk3399_pmu                                    44       -     -44
rk3368_pmu                                    44       -     -44
rk3366_pmu                                    44       -     -44
rk3328_pmu                                    44       -     -44
rk3288_pmu                                    44       -     -44
rk3228_pmu                                    44       -     -44
rk3128_pmu                                    44       -     -44
rk3036_pmu                                    44       -     -44
rk1808_pmu                                    44       -     -44
px30_pmu                                      44       -     -44
rk3128_pm_domains                            220       -    -220
rk3036_pm_domains                            308       -    -308
rk1808_pm_domains                            396       -    -396
rk3328_pm_domains                            440       -    -440
rk3228_pm_domains                            484       -    -484
rk3366_pm_domains                            528       -    -528
rk3288_pm_domains                            616       -    -616
px30_pm_domains                              660       -    -660
rk3568_pm_domains                            704       -    -704
rk3368_pm_domains                            748       -    -748
rk3399_pm_domains                           1584       -   -1584
rockchip_pm_domain_dt_match                 2548     392   -2156
Total: Before=17357, After=8029, chg -53.74%

Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: I1b8b307736edc9c02720c11460041e54fc6b98dd
2024-11-27 18:19:20 +08:00
Tao Huang
7a3b0746b1 ARM: configs: rk3506-display.config: Enable CONFIG_DRM_PANEL_SIMPLE_OF_ONLY
Before:
   text	   data	    bss	    dec	    hex	filename
5227569	2360752	 112328	7700649	 7580a9	vmlinux
After:
   text	   data	    bss	    dec	    hex	filename
5227569	2308528	 112328	7648425	 74b4a9	vmlinux

Change-Id: I55e5190b4410c80f8c40deeb631650eaab28f23b
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2024-11-27 18:18:34 +08:00
Tao Huang
d02a15814d drm/panel: simple: Introduce CONFIG_DRM_PANEL_SIMPLE_OF_ONLY
Only support panels which all parameters from device tree.

Save boot time about 2ms on rk3126-bnd-d708 board.

Before:
   text	   data	    bss	    dec	    hex	filename
  59767	    296	     84	  60147	   eaf3	drivers/gpu/drm/panel/panel-simple.o
After:
   text	   data	    bss	    dec	    hex	filename
   7547	    296	     84	   7927	   1ef7	drivers/gpu/drm/panel/panel-simple.o

Change-Id: Ie075ff5c84c1807029873555f58bd13d41350abf
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2024-11-27 18:18:34 +08:00
Shawn Lin
ad9a2b7050 PCI: dw: rockchip: Add rockchip,keep-power-in-suspend support
This property is used to prevent RC from calling devices to enter
D3cold if they need to keep working when system is suspended. The classic
user is wireless device and computing cards which need to work standalone
when system is suspened. Currently wireless devices deal with it by
controlling power and #PERST by themselves because they have rfkill driver
which could did it in front of the wireless driver. But computing cards couldn't.

In ACPI point of view, we could allow users to configure the D3Cold state for
each PCI device through the sysfs attribute 'sys/bus/pci/devices.../d3cold_allowed'.
Then the PCIe driver and firmware could work together to meet the requirement. But
in DT way, we have to invent a new property to cover both of these.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: Ia755f48d11f84f292a4aede38d2653b73f8d11b8
2024-11-27 18:17:41 +08:00
Elaine Zhang
3debfe232c clk: rockchip: px30: Add protect clocks
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: I0e54805bf287f57879b0d1fd13c8f111db94b9b8
2024-11-27 18:17:19 +08:00
Elaine Zhang
dd097f5451 clk: rockchip: rk3399: Add protect clocks
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: I3166b72d94bcb0758bd22ee5dd63419597786606
2024-11-27 18:17:19 +08:00
Elaine Zhang
308515b1d5 clk: rockchip: rk3588: Add protect clocks
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: I2cee7f522c4c0cfef3d9e62c88d74706e573c0e2
2024-11-27 18:17:19 +08:00
Elaine Zhang
e0c790b129 clk: rockchip: rk3568: protect pwm clks
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: Ie5e2aab61d94d1269fc7a5c369379f3682d092d7
2024-11-27 18:17:19 +08:00
Elaine Zhang
269f106ee6 clk: rockchip: rk3562: protect pwm clks
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: I994058973c028ba06d8621c39f3fbc76b83ab9f2
2024-11-27 18:17:19 +08:00
Elaine Zhang
ac9eb89ef6 clk: rockchip: rk3576: protect pwm clks
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: I1f4fadd5e106bdbd450976e360bcf99be2d2e6b8
2024-11-27 18:17:19 +08:00
Zhang Yubing
d4c36cfc6e dw-dp: enable power domain when load protect stage
If dynamic dptx power domain ctrl is enabled and dptx power
domain not enabled when init dptx controller, the dptx power
domain will be disabled though the uboot logo is enable. this
will cause display issue. To avoid this issue, it need enable
dptx power domain when enable uboot logo.

Change-Id: I3105556de3dee5e592242150935133cce0971551
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2024-11-27 17:18:38 +08:00