Skip to content

Commit

Permalink
rockchip: enable lcd/pwm-fan for srcm3588
Browse files Browse the repository at this point in the history
  • Loading branch information
aiamadeus committed Nov 5, 2024
1 parent 6cbe4f5 commit d83c55a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
/dts-v1/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/pinctrl/rockchip.h>
#include <dt-bindings/pwm/pwm.h>
#include "rk3588.dtsi"

/ {
Expand Down Expand Up @@ -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 = <RK_PB7 IRQ_TYPE_EDGE_RISING>;
pwms = <&pwm1 0 10000 PWM_POLARITY_INVERTED>;
#cooling-cells = <2>;
};

Expand Down Expand Up @@ -293,6 +296,16 @@
};
};

/*
* fspi is unavailable
* use i2c instead
*/
&i2c8 {
pinctrl-names = "default";
pinctrl-0 = <&i2c8m1_xfer>;
status = "okay";
};

&i2s5_8ch {
status = "okay";
};
Expand Down
2 changes: 1 addition & 1 deletion target/linux/rockchip/image/armv8.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d83c55a

Please sign in to comment.