Skip to content

Commit

Permalink
feat: add radxa cm3j rpi cm4 io 40 pin pwm overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
Radxa-Alvin committed Jun 17, 2024
1 parent 13772a2 commit 2b47513
Show file tree
Hide file tree
Showing 8 changed files with 61 additions and 10 deletions.
2 changes: 2 additions & 0 deletions arch/arm64/boot/dts/rockchip/overlays/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -382,8 +382,10 @@ dtb-$(CONFIG_CLK_RK3588) += \
rk3588-pwm7-m2.dtbo \
rk3588-pwm7-m3.dtbo \
rk3588-pwm8-m0.dtbo \
rk3568-pwm10-m0.dtbo \
rk3588-pwm10-m2.dtbo \
rk3588-pwm11-m1.dtbo \
rk3568-pwm11-m0.dtbo \
rk3588-pwm11-m2.dtbo \
rk3588-pwm12-m0.dtbo \
rk3588-pwm12-m1.dtbo \
Expand Down
20 changes: 20 additions & 0 deletions arch/arm64/boot/dts/rockchip/overlays/rk3568-pwm10-m0.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/dts-v1/;
/plugin/;

/ {
metadata {
title = "Enable PWM10-M0";
compatible = "radxa,cm3j-rpi-cm4-io";
category = "misc";
exclusive = "GPIO3_B5";
description = "Enable PWM10-M0.
On Radxa CM3J RPI CM4 IO this is pin 5.
";
};
};

&pwm10 {
status = "okay";
pinctrl-names = "active";
pinctrl-0 = <&pwm10m0_pins>;
};
20 changes: 20 additions & 0 deletions arch/arm64/boot/dts/rockchip/overlays/rk3568-pwm11-m0.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/dts-v1/;
/plugin/;

/ {
metadata {
title = "Enable PWM11-M0";
compatible = "radxa,cm3j-rpi-cm4-io";
category = "misc";
exclusive = "GPIO3_B6", "pwm11";
description = "Enable PWM11-M0.
On Radxa CM3J RPI CM4 IO this is pin 3.
";
};
};

&pwm11 {
status = "okay";
pinctrl-names = "active";
pinctrl-0 = <&pwm11m0_pins>;
};
5 changes: 3 additions & 2 deletions arch/arm64/boot/dts/rockchip/overlays/rk3568-pwm12-m0.dts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@
/ {
metadata {
title = "Enable PWM12-M0";
compatible = "unknown";
compatible = "radxa,cm3j-rpi-cm4-io";
category = "misc";
exclusive = "GPIO3_B7";
description = "Enable PWM12-M0.
On Radxa ROCK 3A <= v1.2 this is pin 7.";
On Radxa CM3J RPI CM4 IO this is pin 32.
";
};
};

Expand Down
6 changes: 4 additions & 2 deletions arch/arm64/boot/dts/rockchip/overlays/rk3568-pwm13-m0.dts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@
/ {
metadata {
title = "Enable PWM13-M0";
compatible = "radxa,e25";
compatible = "radxa,e25", "radxa,cm3j-rpi-cm4-io";
category = "misc";
exclusive = "GPIO3_C0";
description = "Enable PWM13-M0.
On Radxa ROCK 3A <= v1.2 this is pin 37.
On Radxa E25 this is pin 26";
On Radxa E25 this is pin 26.
On Radxa CM3J RPI CM4 IO this is pin 15.
";
};
};

Expand Down
6 changes: 4 additions & 2 deletions arch/arm64/boot/dts/rockchip/overlays/rk3568-pwm15-m0.dts
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@
/ {
metadata {
title = "Enable PWM15-M0";
compatible = "radxa,rock-3a", "radxa,rock-3b", "radxa,e25";
compatible = "radxa,rock-3a", "radxa,rock-3b", "radxa,e25", "radxa,cm3j-rpi-cm4-io";
category = "misc";
exclusive = "GPIO3_C5";
description = "Enable PWM15-M0.
On Radxa ROCK 3A <= v1.2 this is pin 13.
On Radxa ROCK 3A >= v1.3 this is pin 13.
On Radxa ROCK 3B this is pin 13.
On Radxa E25 this is pin 13.";
On Radxa E25 this is pin 13.
On Radxa CM3J RPI CM4 IO this is pin 37.
";
};
};

Expand Down
6 changes: 4 additions & 2 deletions arch/arm64/boot/dts/rockchip/overlays/rk3568-pwm8-m0.dts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@
/ {
metadata {
title = "Enable PWM8-M0";
compatible = "radxa,rock-3c", "radxa,zero3";
compatible = "radxa,rock-3c", "radxa,zero3", "radxa,cm3j-rpi-cm4-io";
category = "misc";
exclusive = "GPIO3_B1";
description = "Enable PWM8-M0.
On Radxa ROCK 3C this is pin 16.
On Radxa ZERO 3 this is pin 16.";
On Radxa ZERO 3 this is pin 16.
On Radxa CM3J RPI CM4 IO this is pin 13.
";
};
};

Expand Down
6 changes: 4 additions & 2 deletions arch/arm64/boot/dts/rockchip/overlays/rk3568-pwm9-m0.dts
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,17 @@
/ {
metadata {
title = "Enable PWM9-M0";
compatible = "radxa,rock-3a", "radxa,rock-3b", "radxa,rock-3c", "radxa,zero3";
compatible = "radxa,rock-3a", "radxa,rock-3b", "radxa,rock-3c", "radxa,zero3", "radxa,cm3j-rpi-cm4-io";
category = "misc";
exclusive = "GPIO3_B2";
description = "Enable PWM9-M0.
On Radxa ROCK 3A <= v1.2 this is pin 18.
On Radxa ROCK 3A >= v1.3 this is pin 18.
On Radxa ROCK 3B this is pin 18.
On Radxa ROCK 3C this is pin 18.
On Radxa ZERO 3 this is pin 18.";
On Radxa ZERO 3 this is pin 18.
On Radxa CM3J RPI CM4 IO this is pin 11.
";
};
};

Expand Down

0 comments on commit 2b47513

Please sign in to comment.