samples: servo-motor: Add overlay for Cytron Maker Pi RP2040

Enable servo port GP12. Add commented-out entries for the other ports,
as is done for the other overlay files.

Signed-off-by: Jonas Berg <jonas.s.t.berg@gmail.com>
This commit is contained in:
Jonas Berg
2025-12-21 18:07:45 +01:00
committed by Henrik Brix Andersen
parent 29c95ff3fd
commit 2e6955100e

View File

@@ -0,0 +1,16 @@
/* SPDX-License-Identifier: Apache-2.0 */
/* Copyright 2025 Jonas Berg */
#include <zephyr/dt-bindings/pwm/pwm.h>
/ {
servo: servo {
compatible = "pwm-servo";
pwms = <&pwm 12 PWM_MSEC(20) PWM_POLARITY_NORMAL>; /* GP12 */
/* <&pwm 13 PWM_MSEC(20) PWM_POLARITY_NORMAL> */ /* GP13 */
/* <&pwm 14 PWM_MSEC(20) PWM_POLARITY_NORMAL> */ /* GP14 */
/* <&pwm 15 PWM_MSEC(20) PWM_POLARITY_NORMAL> */ /* GP15 */
min-pulse = <PWM_USEC(700)>;
max-pulse = <PWM_USEC(2500)>;
};
};