Commit Graph

1268750 Commits

Author SHA1 Message Date
Xu Xuehui
b127652f30 net: phy: motorcomm: support YT8011 Automotive Gigabit Ethernet
Signed-off-by: Xu Xuehui <xxh@rock-chips.com>
Change-Id: I6ca777f3f3af4c778404e848755f8223aede14f8
2024-03-28 20:25:46 +08:00
Jianwei Fan
39afee029e media: i2c: rk628: enable CSI/DSI before enable HDMI video
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: I86f57202811a5616d774be5e67538adb34fdb5e2
2024-03-28 20:20:50 +08:00
Liang Chen
c48fad7057 arm64: dts: rockchip: rk3576-rk806: remove regulator-always-on for vdd_npu
Disable vdd_npu when npu is suspended to save power.

Signed-off-by: Liang Chen <cl@rock-chips.com>
Change-Id: I6459790d55969f2cb5083c39eaa671b2a87d21f9
2024-03-28 20:19:55 +08:00
Liang Chen
c5c580568d driver: rknpu: enable regulator when suspend
BL31 will check pd stats when suspend, if vdd_npu is disabled,
pd stats will be wrong and cause system reboot.

Signed-off-by: Liang Chen <cl@rock-chips.com>
Change-Id: I887da586b99ee1ee6b8e5b0c376e2aaf7a26093d
2024-03-28 20:19:55 +08:00
Lin Jianhua
7c82b0b5d7 arm64: dts: rockchip: enable vccio3 io-retention for rk3576 industry evb
Change-Id: Ie06221442700d718b4ed75cb0c04898b43a102df
Signed-off-by: Lin Jianhua <linjh@rock-chips.com>
2024-03-28 20:19:20 +08:00
Lin Jianhua
3133e46dda arm64: dts: rockchip: rk3576-industry-evb: uart1 support rs485 mode
Change-Id: Iba37469557ebaa7bdd3105ae203eb49914998892
Signed-off-by: Lin Jianhua <linjh@rock-chips.com>
2024-03-28 20:18:47 +08:00
Lin Jianhua
f9e4384b36 arm64: rockchip_linux_defconfig: enable can and canfd for rk3576
Change-Id: If1dfbe96a2c29b18d84172a2bb90e1fa51b8d788
Signed-off-by: Lin Jianhua <linjh@rock-chips.com>
2024-03-28 20:17:51 +08:00
Sugar Zhang
7fe38189aa arm64: dts: rockchip: rk3588: Add power-domain for MCLKOUT_I2Sx
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I5f9b38bc8a50915fc86b4969f231960614e017de
2024-03-28 20:01:07 +08:00
Zhang Yubing
1700ff17d4 drm/rockchip: dw-dp: fix no export symbols for GKI
In GKI, the drm_debugfs_remove_files can't be find in the
exported symbols list. Avoid call this function when build
modules for GKI.

Change-Id: If0921670931511f8a34adb5affbc6f5b9245732c
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2024-03-28 15:48:03 +08:00
Zhang Yubing
b7d13294d3 drm/rockchip: dw-dp: align hfp with 2 pixels
The DPTX controller limit the hfp aligned 2 pixels. if it not
aligned with 2 pixel. It may be not display normally.

Change-Id: I3b64182d2fa67285ba8192b588eb06545a9f2244
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2024-03-27 18:55:56 +08:00
Liang Chen
48987319f9 arm64: dts: rockchip: rk3576: add cpu idle-states
Signed-off-by: Liang Chen <cl@rock-chips.com>
Change-Id: Ia3094a7194abd12114db3ee81072ce9e099213f3
2024-03-27 17:41:09 +08:00
Xu Xuehui
bfa3a2200a arm64: dts: rockchip: rk3576-vehicle-evb: fix phydisb pinctrl for gmac0
Signed-off-by: Xu Xuehui <xxh@rock-chips.com>
Change-Id: Icaaaefcb55716ae1bf3c357ea4082f946d0fe982
2024-03-27 16:54:11 +08:00
Jianwei Fan
e99d0a6604 media: platform: vicap: fix vicap buf round when hdmi2csi for rk3588 and later
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: Ifcb644d93d3f3493b1f1df5afac23b9cbfb3b6db
2024-03-27 15:19:05 +08:00
Weixin Zhou
a00fe0ff5d arm64: dts: rockchip: rk3576-ebook: enable tsadc
Signed-off-by: Weixin Zhou <zwx@rock-chips.com>
Change-Id: Id4b5412047f1b93e4de17ad3fa669431262b8ad7
2024-03-27 11:35:07 +08:00
Jon Lin
3ba2953faa mtd: spinand: dosilicon: Support new device
DS35M4GB-IB, DS35Q4GB-IB, DS35Q12C-IB, DS35M12C-IB

Change-Id: I0c6f02b4391f058447d1ddaf4bce33b0e5442bf8
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-03-26 21:40:48 +08:00
Chaoyi Chen
002120b4c1 drm/rockchip: Add common interface for rockchip_drm_is_afbc/rfbc
rockchip_drm_is_abfc() / rockchip_drm_is_rfbc() is used to determine
if the frame buffer is in afbc or rfbc format. The same code can be
shared between different rockchip vop architectures.

Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com>
Change-Id: I7c409a09044aa54e0690eed29551a6b3416fb10c
2024-03-26 19:31:41 +08:00
Xu Xuehui
700dda3539 rtc: s35390a: enable 32K status register
Signed-off-by: Xu Xuehui <xxh@rock-chips.com>
Change-Id: Ie723fa0b3656d2862aba1e56b2fcfa4e77d6027e
2024-03-26 17:48:25 +08:00
Lin Jinhan
c58b0cefaa crypto: rockchip: skip hash/tag valid check for V4
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
Change-Id: I52fb9608dfa50b5049e14397e68e8e04edab3877
2024-03-26 17:45:30 +08:00
Wu Liangqing
75cfb32865 arm64: dts: rockchip: rk3576-tablet: set PWRON_ON_TIME 500ms
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
Change-Id: I975e622cb6ae0bbc0325367baeda65ceaf2990c7
2024-03-26 17:41:37 +08:00
Xu Xuehui
4f750b4572 arm64: rk3576_vehicle.config: enable RTC_DRV_S35390A
Signed-off-by: Xu Xuehui <xxh@rock-chips.com>
Change-Id: I8ca43e596a4d275c70d5f2ac59aabb80345d7355
2024-03-26 14:32:30 +08:00
Xu Xuehui
4bd2abe950 arm64: dts: rockchip: rk3576-vehicle-evb: enable uart5 for gnss
Signed-off-by: Xu Xuehui <xxh@rock-chips.com>
Change-Id: I248d3178444105a76c42230c536f3775819905ac
2024-03-26 14:32:30 +08:00
Ding Wei
ad38ebefe5 arm64: dts: rockchip: rk3576: Update the clk for the hevc_ca
For rk3576, the signoff clock of the hevc_ca is 1G.

Change-Id: Idba9fc08f6e24a26e20901c347fa3ac9f1054c4a
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
2024-03-26 14:25:57 +08:00
Ding Wei
b6a726b6ca video: rockchip: mpp: rkvdec2: init the value of max outstanding reads
tips: If not init, it can be any value, when power on.

Change-Id: I64569e0e24c61f718ecec6b8da0e695a7ed25195
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
2024-03-26 08:57:02 +08:00
Jianwei Fan
e6d387b501 iommu: rockchip: modify driver probe early when enable CONFIG_VIDEO_REVERSE_IMAGE
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: I0721c416eac6d83c61666e254df9a52ddc5d4739
2024-03-25 20:00:28 +08:00
Wang Panzhenzhuan
f2aca31d8b arm64: configs: add rockchip_vehicle_reverse.config for vehicle fast reverse
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: I375bddc26eb1bf273335af38f776d708239112c2
2024-03-25 17:15:17 +08:00
Zorro Liu
ca3525c441 input: sensors: hall: add ebc fb notify for mh248
Change-Id: Ibafbb35dfac4636a444fa8a0dfd679a052ef035a
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
2024-03-25 17:06:55 +08:00
Zorro Liu
2ef8801a98 soc: rockchip: rockchip_system_monitor: include linux/ebc.h
Change-Id: Iea8a4bb08acec0eb27446c4e645bcc6f9c4087d4
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
2024-03-25 17:06:39 +08:00
Zorro Liu
020b9ddb80 input: tp_suspend: include linux/ebc.h
Change-Id: Idb5b67c0300d504023383f654cb9b9404d306e92
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
2024-03-25 17:06:21 +08:00
Zorro Liu
97872f0a58 include: linux: add ebc.h
Change-Id: Id475a878e770f37f9110391d8864f8fcccbd3bfa
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
2024-03-25 17:01:34 +08:00
Zhang Yubing
32d4d06685 drm/rockchip: dw-dp: support dump dp mst info
Change-Id: I88d458a69c36af2db09c959c4dae42f8269e69fb
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2024-03-25 16:49:18 +08:00
Ye Zhang
a03a86ca9d FROMLIST: thermal: devfreq_cooling: Fix perf state when calculate dfc res_util
The issue occurs when the devfreq cooling device uses the EM power model
and the get_real_power() callback is provided by the driver.

The EM power table is sorted ascending,can't index the table by cooling
device state,so convert cooling state to performance state by
dfc->max_state - dfc->capped_state.

Fixes: 615510fe13 ("thermal: devfreq_cooling: remove old power model and use EM")
Cc: 5.11+ <stable@vger.kernel.org> # 5.11+
Signed-off-by: Ye Zhang <ye.zhang@rock-chips.com>
Reviewed-by: Dhruva Gole <d-gole@ti.com>
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
Link: https://lore.kernel.org/all/20240321102100.2401340-1-ye.zhang@rock-chips.com/
Change-Id: Id798d67d913c95b59095bc1d06497fb23d644637
2024-03-25 16:48:15 +08:00
shengfei Xu
8b2140d905 power: supply: rockchip_charger_manager: Update charging function
Add the following features:
1. Support DC detection
2. Support 4:1 mode charge pump charging
3. Support charging temperature control

Signed-off-by: shengfei Xu <xsf@rock-chips.com>
Change-Id: I9b2dc18fd59a6926f8a40bdf38a2e6aba3820cb9
2024-03-25 16:47:14 +08:00
Sugar Zhang
6d9f8e6931 arm64: dts: rockchip: rk3576: Add power-domain for MCLKOUT_SAIx
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I89a267cbc6d25415b4758f5a17d819983e2152c2
2024-03-25 14:33:26 +08:00
Yu Qiaowei
ba424a5b94 video: rockchip: rga3: get clk through dts
Update driver version to 1.3.3

Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I99175b79f4aa669c772b53c0c414122361173c2a
2024-03-25 14:15:28 +08:00
Yu Qiaowei
d3ef937537 video: rockchip: rga3: probe using dev_err/dev_info
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I6a62bd444ecf5e521d6dbce3c8a507e637770bb1
2024-03-25 14:15:15 +08:00
Yu Qiaowei
4f79b4e8d9 arm64: dts: rockchip: rk3576: modify compatible and clock-names of rga_node
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I3abad87dde92e05bf6d156f6b207b30e0ddd7a5a
2024-03-25 14:14:54 +08:00
Yu Qiaowei
6e39594c7b video: rockchip: rga3: fix for dts compatibility
Remove the expression core0/core1 in compatible of dts.

Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: Ia1a4c09d2f9194458bdc6a62d465bcaaf8c6076a
2024-03-25 14:14:44 +08:00
Yu Qiaowei
78f5fae279 video: rockchip: rga3: fixed crash caused by failure to get_clk
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: Ic6ead5efae8ca63e2e6960a7990a0d936b9d75a8
2024-03-25 14:14:44 +08:00
Felix Zeng
8c61367c57 driver: rknpu: Update rknpu driver, version: 0.9.6
* Add rknpu iommu domain switch support

Signed-off-by: Felix Zeng <felix.zeng@rock-chips.com>
Change-Id: Ifa756eee01d2d7002ca78a0e1f36ba92a01f4454
2024-03-22 19:39:41 +08:00
Zhang Yubing
21084cb7e0 drm/rockchip: dw-dp: get hdcp status when irq coming
The hdcp irq status need clear as soon as possible.

Change-Id: I17eda476d30fec6f57f53c1de25e8a0e7dc3f5b2
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2024-03-22 19:17:27 +08:00
Huibin Hong
807863f905 serial: 8250_dwlib: support simple rs485
Change-Id: Ic32dd4ca47a3f83c5efaf232c61fd036e72b539f
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
2024-03-22 19:16:59 +08:00
Huibin Hong
604c04bbd1 arm64: dts: rockchip: rk3576: higer frac for uart
96MHz is for 6M baudrate, 128MHz is for 8M baudrate

Change-Id: I292240b1dcca3f358393b28ec52051fd67ecba19
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
2024-03-22 19:11:46 +08:00
Algea Cao
19bc7529b9 drm/rockchip: vop2: Fix no signal when switch YUV420 to RGB/YUV444 in hdmi frl mode
The timing of YUV420 at the same resolution is different from other
color formats. Therefore, if timing switch of vop is later than the
switching process of hdmi, hdmi timing will be abnormal.

In hdmi frl mode, input ipi clk is different from output link clk
frequency, which makes it difficult to restore after the timing
error.

Therefore, it is necessary to ensure that the output mode of
vop is switched before hdmi switch to ensure the correct timing

Change-Id: I4633670f13a28975eb37a68ad597956d87a159c3
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2024-03-22 19:05:26 +08:00
Binyuan Lan
3133279020 input: touchscreen: chipone_9551r add early_suspend
Signed-off-by: Binyuan Lan <lby@rock-chips.com>
Change-Id: Ic0ee4a18af52e785f0d4001b3c55e36ae4b8eaed
2024-03-22 19:03:28 +08:00
Sugar Zhang
8c74ab6a7a ASoC: rockchip: multi-dais: Add support for 1-DAI-N-DAILINKS
e.g.

multidais_sound: multidais-sound {
	compatible = "simple-audio-card";
	simple-audio-card,format = "i2s";
	simple-audio-card,name = "rockchip-es8388";
	simple-audio-card,mclk-fs = <256>;
	#address-cells = <1>;
	#size-cells = <0>;
	status = "okay";

	simple-audio-card,dai-link@1 {
		format = "i2s";
		cpu {
			sound-dai = <&multi_dais>;
		};
		codec {
			sound-dai = <&es8388>;
		};
	};

	simple-audio-card,dai-link@2 {
		format = "i2s";
		cpu {
			sound-dai = <&multi_dais>;
		};
		codec {
			sound-dai = <&pdmics>;
		};
	};
};

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I2064a71979a0a96d683f1daecb21533c1fb3a2f7
2024-03-22 14:54:31 +08:00
Sandy Huang
aedb0ca73c arm64: dts: rockchip: rk3576-evb: assigned vpll as vp2 dclk parent
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Icbff9534a4c6b0b5c09c3879e85a33ef764e166f
2024-03-22 14:54:02 +08:00
Sandy Huang
4b46ff4a58 drm/rockchip: vop2: add max dclk to filter unsupported resolution
Before this commit, we use max_output.width to filter unsupported resolution,
but just like rk3576 vp0 can support 4k120 but can't support 4k144hz, so
we add max dclk to filer this resolution.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I44e8b7db33ca426226afb2137b2643ae09b97425
2024-03-22 14:54:02 +08:00
Sandy Huang
077e48341d drm/rockchip: vop2: remove afbc disable when close cluster at rk356x
Disable cluster afbc when close cluster is a reasonable operation,
but for some design reasons, this will lead to VOP iommu pagefault at rk356x,
so we keep it always on at rk356x.

Fixes: 8379fd7555 ("drm/rockchip: vop2: add support rk3576")
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I9931da7f45171161b46fb46ab6b8e1e377debab0
2024-03-22 14:54:02 +08:00
Sandy Huang
9a148a7c75 drm/rockchip: vop2: add VU24 linear format support for rk3576
The VU24 format can described both linear and nonlinear formats,
At rk3576:
  Esmart can support linear VU24 format;
  Cluster can support nonlinear VU24 format[RFBC].

The IC design linear VU24 format reuses the logic of RB24 format, so need to do
some special swap and force enable y2r when is at rgb overlay.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I795629b81008fc62cb57a2f07fbdb2f05f21cbee
2024-03-22 14:54:02 +08:00
Jianwei Fan
6d6f06bbd9 media: i2c: rk628_csi: add set quick stream
Change-Id: I986db277914a26168049905e50572b07ba99cc69
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
2024-03-22 14:51:58 +08:00