2019-04-06 21:08:09 +08:00
|
|
|
/* SPDX-License-Identifier: Apache-2.0 */
|
2020-05-14 04:12:19 +08:00
|
|
|
/ {
|
2022-04-05 03:06:11 +08:00
|
|
|
servo: servo {
|
|
|
|
compatible = "pwm-servo";
|
|
|
|
pwms = <&sw_pwm 0 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
|
|
|
|
min-pulse = <PWM_USEC(700)>;
|
|
|
|
max-pulse = <PWM_USEC(2500)>;
|
2020-05-14 04:12:19 +08:00
|
|
|
};
|
|
|
|
};
|
2019-03-12 16:06:07 +08:00
|
|
|
|
|
|
|
&sw_pwm {
|
2022-04-16 01:06:08 +08:00
|
|
|
status = "okay";
|
2019-03-12 16:06:07 +08:00
|
|
|
clock-prescaler = <3>;
|
2022-04-16 01:06:08 +08:00
|
|
|
channel-gpios = <&edge_connector 19 GPIO_ACTIVE_HIGH>;
|
2019-03-12 16:06:07 +08:00
|
|
|
};
|