Commit Graph

1268810 Commits

Author SHA1 Message Date
William Wu
9ed419480a arm64: dts: rockchip: rk3576 boards: Fix unit_address_vs_reg and graph_child_address warning for usb
Remove unneeded address/size cells properties and unit
addresses to fix DTC warnings on RK3576 boards like:

arch/arm64/boot/dts/rockchip/rk3576-evb1-v10.dtb:
  Warning (unit_address_vs_reg): /i2c@2ac50000/husb311@4e/ports/port@0/endpoint@0: node has a unit name, but no reg or ranges property
  Warning (graph_child_address): /usb@23000000/port: graph node has single child node 'endpoint@0', #address-cells/#size-cells are not necessary
  Warning (graph_child_address): /i2c@2ac50000/husb311@4e/ports: graph node has single child node 'port@0', #address-cells/#size-cells are not necessary

Change-Id: I5cc8e9f7da6816c9b70daf40bc6b036e24af9eff
Signed-off-by: William Wu <william.wu@rock-chips.com>
2024-04-02 20:13:25 +08:00
Algea Cao
b9fabe5d3a arm64: dts: rockchip: rk3576-rk806: Raise vdda0v75_hdmi_s0 voltage to 0.8375V
HDMI has compatibility problems when the HDMI PHY VDD is set to
the nominal 0.75V. On some televisions, signal may be no recognized
when switch resolution. After actual testing, raising voltage up
to 0.8375V can solve the compatibility problems such as no signal.

Change-Id: I633f0321e83ac2a6325e4ca1de60c4b22c9a9961
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2024-04-02 20:09:52 +08:00
Huang zhibao
4ede8bbcf3 arm64: dts: rockchip: rk3576-evb2: add HDMI_TX_ON io
Change-Id: Ied06f463848112fe183c797363b9718f9363c7cb
Signed-off-by: Huang zhibao <hzb@rock-chips.com>
2024-04-02 20:09:13 +08:00
Huang zhibao
0d4261d276 arm64: dts: rockchip: rk3576-evb2: update rk628d config
Change-Id: I8967da341e2f486550084a4ea8a35aa4c8c2f85a
Signed-off-by: Huang zhibao <hzb@rock-chips.com>
2024-04-02 20:09:13 +08:00
Chaoyi Chen
0bbf74ec07 drm/rockchip: vop2: Only attach color_key prop when vop2 win support it
Only some specific win support the color key feature. So for those win
that don't support it, don't expose the color key prop to the user.

Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com>
Change-Id: I75f0ca8c40a3bfa8e45b8a06bdb9576643296386
2024-04-02 19:25:03 +08:00
Mingwei Yan
bdfed6ef9c media: rockchip: vpss: support proc debug info
Signed-off-by: Mingwei Yan <mingwei.yan@rock-chips.com>
Change-Id: Ib831dffa6af60a83c460aafb58f3aa4763074911
2024-04-02 18:02:20 +08:00
Damon Ding
a9d424a35c arm64: dts: rockchip: rk3576-test1: enable logo display for bt1120 test board
Change-Id: I097915078f052034d141dcdebe8fabccd1c88198
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2024-04-02 17:56:02 +08:00
Damon Ding
9dc322dda9 drm/bridge: sii902x: modify initialization process for logo display
The sii902x hardware initialization process is during
the probing, including gpio reset and some register
operations. Because of the above, display will be
affected during the switching between uboot logo and
kernel logo.

The modifications are as follows:
1.Add sii902x_is_enabled() to check whether hardware
  initialization has been done in uboot.
2.Add loader_protect flag to make sure whether hardwave
  initializaiont needs to be done, and the .mode_set()
  will not be called if logo enabled, which may cause
  display error.
3.Set gpiod_flags of enable/reset gpios to GPIOD_ASIS,
  and replace gpiod_set_value() with gpiod_direction_output(),
  in order to make gpios status unchanged from uboot
  to kernel.

Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: I430402c2089602c9690fee03ff2ae9f9b2d3a419
2024-04-02 17:55:28 +08:00
Chen Shunqing
79f83f2dc7 arm64: dts: rockchip: rk3576-tablet-v10: add battery profile for cw221x
Type: Fix
Redmine ID: N/A
Associated modifications: N/A
Test: test N/A

Signed-off-by: Chen Shunqing <csq@rock-chips.com>
Change-Id: I3c0f2a75105032249615b724f0be1973730409c4
2024-04-02 17:11:20 +08:00
Zhibin Huang
ed082688bf misc: rk628: bt1120-2-hdmi: fix bt1120 timing cfg when switching the resolution
Type: Fix
Redmine ID: N/A
Associated modifications: N/A
Test: N/A

Signed-off-by: Zhibin Huang <zhibin.huang@rock-chips.com>
Change-Id: Ied0d5322338feee4f59608cd3468444ec1f4dcc7
2024-04-02 16:01:53 +08:00
Jianwei Fan
9c4b50cda3 media: i2c: rk628: fix set CPLL if pixclk more than 594M
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: I3faaed0e7efbdb0cb5b44454c931b48f41092592
2024-04-02 11:39:43 +08:00
Luo Wei
71aaf6009f arm64: dts: rockchip: rk3576-vehicle-evb: fix max96745 pwm problem
Signed-off-by: Luo Wei <lw@rock-chips.com>
Change-Id: Ia83c278c8e38f0cead5d31a0196ef0900b510b82
2024-04-02 10:29:33 +08:00
Luo Wei
3e52abf629 mfd: display-serdes: fix backlight null problem
Signed-off-by: Luo Wei <lw@rock-chips.com>
Change-Id: Ia2397e312d380c5d4fd207a72d34cf805e9da6e5
2024-04-02 09:11:02 +08:00
Yifeng Zhao
b80127f107 mmc: sdhci-of-dwcmshc: set RK_TAP_VALUE_SEL flag for rk3568 and rk3588
Set RK_TAP_VALUE_SEL flag to disabled dll auto update feature.

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: Id28b1800b8a4728c9919a75669b3f7e35ead18fd
2024-04-01 18:57:48 +08:00
Jianwei Fan
5229230d5c media: i2c: rk628: fix mipi dphy1 init by chip version
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: I1ecd099dde68b0caeaef9914a186660d5fa6e3f9
2024-04-01 18:47:35 +08:00
Weixin Zhou
750397f5bf arm64: dts: rockchip: rk3576-ebook: enable uboot charge
Signed-off-by: Weixin Zhou <zwx@rock-chips.com>
Change-Id: Idbc9c230c046807ebc0c88cc220e7e620ea68635
2024-04-01 17:38:07 +08:00
Sandy Huang
4796d94c3b drm/rockchip: vop2: enable vop urgency signal output for rk3576
The urgency signal can improve the performance of VOP accessing DDR, since VP0
support 4K120hz output, it usually needs high performance and bandwidth, so it's
enabled at RK3576 VP0.

RK3576 VP0 has 8 lines post linebuffer, when full post line buffer is less 4,
the urgency signal will be set to 1, when full post line buffer is over 6, the
urgency signal will be set to 0.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: If96a3bda6728b1faa36d03f0ae6f71b6a60558a3
2024-04-01 15:20:28 +08:00
Sandy Huang
84e4e6277c drm/rockchip: drv: remove unused rockchip_drm_get_dclk_by_width()
We can get the vp max dclk rate from vop reg data, so the function
rockchip_drm_get_dclk_by_width() is unused now.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I88ccb372cdd75db008bcf5ec7913924d046240b8
2024-04-01 15:18:51 +08:00
Sandy Huang
742e1e510b drm/rockchip: vop2: use pixel rate to verify vp performance
get vp max dclk rate from vop reg data is more correct, so we use it to
verify vp performance and report to userspace.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I1e590322829e551814ba84bf22d60a4e82b407d1
2024-04-01 15:18:40 +08:00
Sandy Huang
5a55616dcf drm/rockchip: vop2: add more debug info
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I668a943c07ffa424612259087faf38add1cd4e4e
2024-04-01 15:18:29 +08:00
Damon Ding
73ff3af384 arm64: dts: rockchip: rk3576: add second pd RK3576_PD_VO0 for vopl
The vopl is in RK3576_PD_VPU, but the 1to4 module is in
RK3576_PD_VO0.

Change-Id: Ided487b8a53f405a0172800fc1d3e1b4ab0283d6
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2024-04-01 14:20:40 +08:00
Damon Ding
7e45c8a92c drm/rockchip: vop: add multiple power domains support
For rk3576 vopl, the vopl is in RK3576_PD_VPU, but the
1to4 module, which helps to support eDP/HDMI/MIPI, is
in RK3576_PD_VO0.

Change-Id: I56e5f640c5fe94e6aa7cc4c7fb79df27e1410a00
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2024-04-01 14:20:40 +08:00
shengfei Xu
46bee21f7d regulator: rk806: Solve PWRCTL2/3 level inconsistency in the suspend/resume
Delete the code that forcibly modifies the PWRCTRL2 and PWRCTRL3 function.

Signed-off-by: shengfei Xu <xsf@rock-chips.com>
Change-Id: I25426e2a0d1794e1d52d87e8e157983b4e4b1021
2024-04-01 14:17:42 +08:00
shengfei Xu
205aaf1b9b regulator: rk806: Solve the initialization of non integer multiple step voltage
Resolve system error caused by the set voltage not being an integer
multiple of the uV_step.

Signed-off-by: shengfei Xu <xsf@rock-chips.com>
Change-Id: Icdae0985e0173289c66c1d6cc182da92508acd4c
2024-04-01 14:17:42 +08:00
shengfei Xu
3a4532abef power: supply: rockchip_charger_manager: supports JEITA profile
Supports JEITA profile when charging with the PD charger inserted.

Signed-off-by: shengfei Xu <xsf@rock-chips.com>
Change-Id: I02e417ae660f64f684ff03b429e44282c1911ab1
2024-04-01 14:17:42 +08:00
Wu Liangqing
a2a6ee5b39 arm64: dts: rockchip: rk3576-evb: enable i2c2
Change-Id: Ifad6f84e9114a476ed95c94989df377746401583
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
2024-04-01 09:35:14 +08:00
Sandy Huang
8a8629fbde ARM: dts: rockchip: rv1126: Fixes warning in unit address of drm-logo
/reserved-memory/drm-logo@00000000 refers to a node in the device tree.
The part after the @ symbol is the unit address, which should match the
physical or logical address of the device or memory region being
described.

The warning indicates that the unit name (in this case, 00000000) should
not have leading zeros. This is more about adhering to conventions and
ensuring compatibility and readability than about functional
correctness.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I5052698913a2ff8202dbc0f8c2144acd48cb4ac5
2024-04-01 09:21:01 +08:00
Sandy Huang
b5b88f4b97 ARM: dts: rockchip: Fixes warning in unit address of drm-logo
/reserved-memory/drm-logo@00000000 refers to a node in the device tree.
The part after the @ symbol is the unit address, which should match the
physical or logical address of the device or memory region being
described.

The warning indicates that the unit name (in this case, 00000000) should
not have leading zeros. This is more about adhering to conventions and
ensuring compatibility and readability than about functional
correctness.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I852aeecd22f5485790548a749f49bce4d1aa5ed9
2024-04-01 09:16:07 +08:00
Sandy Huang
7e2effdcac arm64: dts: rockchip: rk3562: Fixes warning in unit address of drm-logo
/reserved-memory/drm-logo@00000000 refers to a node in the device tree.
The part after the @ symbol is the unit address, which should match the
physical or logical address of the device or memory region being
described.

The warning indicates that the unit name (in this case, 00000000) should
not have leading zeros. This is more about adhering to conventions and
ensuring compatibility and readability than about functional
correctness.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I1dcb3212dcab9c7fb45caab428d5e25dd4860a45
2024-04-01 09:13:41 +08:00
Sandy Huang
1c670a89ed arm64: dts: rockchip: rk3328-evb: Fixes warning in unit address of drm-logo
/reserved-memory/drm-logo@00000000 refers to a node in the device tree.
The part after the @ symbol is the unit address, which should match the
physical or logical address of the device or memory region being
described.

The warning indicates that the unit name (in this case, 00000000) should
not have leading zeros. This is more about adhering to conventions and
ensuring compatibility and readability than about functional
correctness.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Ied5062144df7936cdd0a7476a62ccb03bfdcca0d
2024-04-01 09:13:18 +08:00
Sandy Huang
a0cb0a7dc8 arm64: dts: rockchip: rk3308: Fixes warning in unit address of drm-logo
/reserved-memory/drm-logo@00000000 refers to a node in the device tree.
The part after the @ symbol is the unit address, which should match the
physical or logical address of the device or memory region being
described.

The warning indicates that the unit name (in this case, 00000000) should
not have leading zeros. This is more about adhering to conventions and
ensuring compatibility and readability than about functional
correctness.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I947dc5b7e94bf1e1ba231eb6d6d6ef22390c5f62
2024-04-01 09:12:40 +08:00
Sandy Huang
2f8fbe0ac7 arm64: dts: rockchip: Fixes warning in unit address of drm-logo
/reserved-memory/drm-logo@00000000 refers to a node in the device tree.
The part after the @ symbol is the unit address, which should match the
physical or logical address of the device or memory region being
described.

The warning indicates that the unit name (in this case, 00000000) should
not have leading zeros. This is more about adhering to conventions and
ensuring compatibility and readability than about functional
correctness.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I0e3971d091e7935eab34db03ab55bbcf6dad1fb7
2024-04-01 09:11:51 +08:00
Damon Ding
2c7c07a288 arm64: dts: rockchip: rk3576-test1: add vopl mipi display dts
Change-Id: Ifb782a800b70a0c24ef00b66ca92f5bb080656b6
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2024-03-29 19:55:58 +08:00
Elaine Zhang
a84d45aa54 clk: rockchip: rk3576: remove CLK_IS_CRITICAL for lpll and bpll
litcore and bigcore use pvtpll, lpll and bpll if not used allow disabled.

Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: I1a625ccd2d9f299400ccaa518bb0496fdbf07f11
2024-03-29 19:48:54 +08:00
Jianwei Fan
6f07080e05 arm64: dts: rockchip: rk3576-evb1: add image reverse demo
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: I88a49c71a23304c590bb704ea60a1430e6d5d564
2024-03-29 19:23:51 +08:00
Jianwei Fan
8291933430 video: rockchip: vehicle: add rk3576 support image reverse
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: I5319bc7df0af265da1617b4df241d888f0bdedb5
2024-03-29 19:23:30 +08:00
Caesar Wang
db1b6ef571 arm64: dts: rockchip: Fixes warning in unit address of drm-logo for rk3576-android.dtsi
/reserved-memory/drm-logo@00000000 refers to a node in the device tree.
The part after the @ symbol is the unit address, which should match the
physical or logical address of the device or memory region being described.

The warning indicates that the unit name (in this case, 00000000) should
not have leading zeros. This is more about adhering to conventions and
ensuring compatibility and readability than about functional correctness.

Change-Id: Ifc2a7931c6a1dc43a390721a24250e9a80747cb4
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
2024-03-29 19:20:25 +08:00
Caesar Wang
84540c6335 arm64: dts: rockchip: Fixes warning in unit address of drm-logo for rk3576-linux.dtsi
/reserved-memory/drm-logo@00000000 refers to a node in the device tree.
The part after the @ symbol is the unit address, which should match the
physical or logical address of the device or memory region being described.

The warning indicates that the unit name (in this case, 00000000) should
not have leading zeros. This is more about adhering to conventions and
ensuring compatibility and readability than about functional correctness.

Change-Id: I85adad8caac6e2bfef0703640fecb6ff2c20b4f8
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
2024-03-29 19:20:25 +08:00
Luo Wei
8b65e45472 arm64: dts: rockchip: rk3588-vehicle-evb: close otg 5v
Signed-off-by: Luo Wei <lw@rock-chips.com>
Change-Id: I55630f9ac8fbca749504088af6752c02bc871788
2024-03-29 19:17:17 +08:00
Luo Wei
85067b3146 arm64: dts: rockchip: rk3576-vehicle-evb: update usb config
Signed-off-by: Luo Wei <lw@rock-chips.com>
Change-Id: I3bb671332ec636a75153018e5b7c356d58110db3
2024-03-29 19:16:43 +08:00
Luo Wei
50b575df6a arm64: dts: rockchip: rk3576-vehicle-evb: enable dsi route default
Signed-off-by: Luo Wei <lw@rock-chips.com>
Change-Id: If96be2015920cdac3d1fc78404e1ab027dc84164
2024-03-29 19:16:43 +08:00
Elaine Zhang
c3b2ae5f10 net: can: rockchip: Fixed compilation errors caused by kernel update
drivers/net/can/rockchip/rockchip_canfd:24:24: fatal error:
linux/can/led.h: No such file or directory

Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: I275af809bc9287ba2b5855164166aebcb348e259
2024-03-29 17:11:19 +08:00
Damon Ding
664c1ecc28 drm/rockchip: logo: add protect clocks for rk3576 vopl logo display
Change-Id: I12718cd9ac488f82fc4195c8ab3984caf4089740
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2024-03-29 16:29:58 +08:00
Elaine Zhang
3e366e3225 clk: rockchip: rk3576: remove all clk_extref_timeout_xxx
clk_extref_timeout_xxx is noc timeout function,
For debug the bus blocked, so use default status.

Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: I01a79f5fe834141cc066934e628f4375505fc707
2024-03-29 16:17:22 +08:00
Jason Zhu
c747ceb990 ASoC: codecs: rk_dsm: fix typo
There is no PWM function in DSM. Rename it as DSM.

Change-Id: I8d37a3b559c017d2f6dd6bdae9e70a77f0ea8038
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
2024-03-29 16:07:24 +08:00
Ding Wei
51020e2c46 arm64: dts: rockchip: rk3576: Add aclk_rkvdec_root_bak for rkvdec
aclk_rkvdec_root_bak only used by av1 decoder, while other formats
use aclk_rkvdec_root.

Change-Id: I106b61ff6125ea220231ea264cee43201afbbeaf
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
2024-03-29 15:23:52 +08:00
Elaine Zhang
3b55f28039 clk: rockchip: rk3576: export aclk_rkvdec_root_bak clk id
aclk_rkvdec_root and aclk_rkvdec_root_bak are automatically switched by
hardware to achieve high-performance.

Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: I49e20b86f93331b7c45054d0b42a71b897d391c4
2024-03-29 15:23:28 +08:00
Damon Ding
bbeca6dfc2 drm/rockchip: vop: use rockchip_drm_dclk_set_rate() for some special pll
In addition, fix the version check process to switch
for efficiency and readability.

Change-Id: I372e528f61403a72ea574de5aae28174ef3f95fa
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2024-03-29 14:44:36 +08:00
Sandy Huang
a24880f2a4 drm/rockchip: vop2: correctly config pld_ptr_range for rk3576
pld_ptr_range need config fb size to prevent afbc payload out of range
access.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I93392b065fd13bb3cd7e98c924317019b35a79ea
2024-03-29 14:30:37 +08:00
Elaine Zhang
ec2b60a5a5 clk: rockchip: rk3576: add protect clocks
Change-Id: I76e1197edc5f2e7582d28567e6a5927c9be5e0ab
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2024-03-29 14:23:22 +08:00