Skip to content

Commit

Permalink
radxa zero: add pwm overlays
Browse files Browse the repository at this point in the history
Signed-off-by: Nascs Fang <[email protected]>
  • Loading branch information
nascs committed Apr 19, 2024
1 parent ab4aab3 commit d39052c
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
1 change: 1 addition & 0 deletions arch/arm64/boot/dts/amlogic/overlays/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ dtb-$(CONFIG_ARCH_MESON) += \
meson-g12-pwm-d-z.dtbo \
meson-g12-pwm-f-h.dtbo \
meson-g12-pwmao-a.dtbo \
meson-g12-pwmao-c.dtbo \
meson-g12-spdif.dtbo \
meson-g12-spi-a-spidev.dtbo \
meson-g12-spi-b-enc28j60.dtbo \
Expand Down
2 changes: 1 addition & 1 deletion arch/arm64/boot/dts/amlogic/overlays/meson-g12-pwm-f-h.dts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/ {
metadata {
title = "Enable PWM-F on GPIOH_5";
compatible = "radxa,zero2";
compatible = "radxa,zero", "radxa,zero2";
category = "misc";
exclusive = "pwm_ef", "GPIOH_5";
description = "Enable PWM-F on GPIOH_5.";
Expand Down
20 changes: 20 additions & 0 deletions arch/arm64/boot/dts/amlogic/overlays/meson-g12-pwmao-c.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/dts-v1/;
/plugin/;

/ {
metadata {
title = "Enable PWMAO_C on GPIOAO_4";
compatible = "radxa,zero";
category = "misc";
exclusive = "pwm_AO_cd", "GPIOAO_4";
description = "Enable PWMAO_C on GPIOAO_4.";
};
};

&pwm_AO_cd {
status = "okay";
pinctrl-0 = <&pwm_ao_c_4_pins>;
pinctrl-names = "default";
clocks = <&xtal>;
clock-names = "clkin1";
};

0 comments on commit d39052c

Please sign in to comment.