From d83c55af85cc560a234736b718fe9bc36e15b123 Mon Sep 17 00:00:00 2001 From: aiamadeus <2789289348@qq.com> Date: Tue, 29 Oct 2024 23:01:02 +0800 Subject: [PATCH] rockchip: enable lcd/pwm-fan for srcm3588 --- .../boot/dts/rockchip/rk3588-srcm3588-io.dts | 17 +++++++++++++++-- target/linux/rockchip/image/armv8.mk | 2 +- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/target/linux/rockchip/files/arch/arm64/boot/dts/rockchip/rk3588-srcm3588-io.dts b/target/linux/rockchip/files/arch/arm64/boot/dts/rockchip/rk3588-srcm3588-io.dts index 6ec690f8bf6768..63719f05ec59a5 100644 --- a/target/linux/rockchip/files/arch/arm64/boot/dts/rockchip/rk3588-srcm3588-io.dts +++ b/target/linux/rockchip/files/arch/arm64/boot/dts/rockchip/rk3588-srcm3588-io.dts @@ -3,6 +3,7 @@ /dts-v1/; #include #include +#include #include "rk3588.dtsi" / { @@ -46,9 +47,11 @@ pwm-fan { compatible = "pwm-fan"; - cooling-levels = <50 100 150 200 255>; + cooling-levels = <100 150 200 255>; fan-supply = <&vcc12v_dcin>; - pwms = <&pwm1 0 50000 0>; + interrupt-parent = <&gpio1>; + interrupts = ; + pwms = <&pwm1 0 10000 PWM_POLARITY_INVERTED>; #cooling-cells = <2>; }; @@ -293,6 +296,16 @@ }; }; +/* + * fspi is unavailable + * use i2c instead + */ +&i2c8 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c8m1_xfer>; + status = "okay"; +}; + &i2s5_8ch { status = "okay"; }; diff --git a/target/linux/rockchip/image/armv8.mk b/target/linux/rockchip/image/armv8.mk index 99719d62fe5271..b304d33659aa28 100644 --- a/target/linux/rockchip/image/armv8.mk +++ b/target/linux/rockchip/image/armv8.mk @@ -420,7 +420,7 @@ define Device/seewo_srcm3588-io DEVICE_MODEL := 3588 IO Board SOC := rk3588 UBOOT_DEVICE_NAME := generic-rk3588 - DEVICE_PACKAGES := kmod-ata-ahci-dwc kmod-r8125-rss kmod-rfkill + DEVICE_PACKAGES := kmod-ata-ahci-dwc kmod-hwmon-pwmfan kmod-r8125-rss kmod-rfkill IMAGE/sysupgrade.img.gz := boot-common | boot-script | pine64-img | gzip | append-metadata endef TARGET_DEVICES += seewo_srcm3588-io