Skip to content

Commit

Permalink
feat: add missing RK3399 PWM overlays
Browse files Browse the repository at this point in the history
Signed-off-by: ZHANG Yuntian <[email protected]>
  • Loading branch information
RadxaYuntian committed Jul 22, 2024
1 parent 6edee5b commit 9768397
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/arm64/boot/dts/rockchip/overlays/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ dtb-$(CONFIG_CLK_RK3399) += \
rk3399-pwm0.dtbo \
rk3399-pwm1-ir-rx.dtbo \
rk3399-pwm1.dtbo \
rk3399-pwm2.dtbo \
rk3399-pwm3a.dtbo \
rk3399-pwm3b.dtbo \
rk3399-radxa-25w-poe.dtbo \
rk3399-rga-400.dtbo \
rk3399-spi-gpio-enc28j60.dtbo \
Expand Down
16 changes: 16 additions & 0 deletions arch/arm64/boot/dts/rockchip/overlays/rk3399-pwm2.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/dts-v1/;
/plugin/;

/ {
metadata {
title = "Enable PWM2";
compatible = "unknown";
category = "misc";
exclusive = "GPIO1_C3";
description = "Enable PWM2.";
};
};

&pwm2 {
status = "okay";
};
17 changes: 17 additions & 0 deletions arch/arm64/boot/dts/rockchip/overlays/rk3399-pwm3a.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/dts-v1/;
/plugin/;

/ {
metadata {
title = "Enable PWM3 on GPIO0_A6";
compatible = "unknown";
category = "misc";
exclusive = "GPIO0_A6", "pwm3";
description = "Enable PWM3 on GPIO0_A6.";
};
};

&pwm3 {
status = "okay";
pinctrl-0 = <&pwm3a_pin>;
};
17 changes: 17 additions & 0 deletions arch/arm64/boot/dts/rockchip/overlays/rk3399-pwm3b.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/dts-v1/;
/plugin/;

/ {
metadata {
title = "Enable PWM3 on GPIO1_B6";
compatible = "unknown";
category = "misc";
exclusive = "GPIO1_B6", "pwm3";
description = "Enable PWM3 on GPIO1_B6.";
};
};

&pwm3 {
status = "okay";
pinctrl-0 = <&pwm3b_pin>;
};

0 comments on commit 9768397

Please sign in to comment.