From 27021928724f0d740f968dbde2c4bc8ceff85e9f Mon Sep 17 00:00:00 2001 From: John Batch Date: Fri, 18 Apr 2025 15:39:15 -0700 Subject: [PATCH] Samples: basic: blinky_pwm: Add support for cyw920829m2evk_02 board Origin: Zephyr OS License: Apache-2.0 URL: https://github.com/zephyrproject-rtos/zephyr/blame/main/samples/basic/fade_led/boards/cyw920829m2evk_02.overlay commit: abca729367fdf49d26899a712410c3ac6d6ee31d Purpose: Add overlay to enable and configure PWM device on IFX CYW920829M2EVK-02 board. Signed-off-by: John Batch --- .../boards/cyw920829m2evk_02.overlay | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 samples/basic/blinky_pwm/boards/cyw920829m2evk_02.overlay diff --git a/samples/basic/blinky_pwm/boards/cyw920829m2evk_02.overlay b/samples/basic/blinky_pwm/boards/cyw920829m2evk_02.overlay new file mode 100644 index 00000000000..26dd161b1cf --- /dev/null +++ b/samples/basic/blinky_pwm/boards/cyw920829m2evk_02.overlay @@ -0,0 +1,39 @@ +/* + * SPDX-License-Identifier: Apache-2.0 + * + * Copyright (c) 2024 Cypress Semiconductor Corporation (an Infineon company) or + * an affiliate of Cypress Semiconductor Corporation + */ + +#include +#include + +/ { + aliases { + pwm-led0 = &pwm_led0; + }; + + pwmleds { + compatible = "pwm-leds"; + pwm_led0: pwm_led_0 { + pwms = <&pwm0_0 0 PWM_MSEC(20) PWM_POLARITY_INVERTED>; + label = "PWM MB1"; + }; + }; +}; + +&pwm0_0 { + status = "okay"; + pinctrl-0 = <&p1_1_pwm0_0>; + pinctrl-names = "default"; + divider-type = ; + divider-sel = <1>; + divider-val = <9599>; +}; + + +&pinctrl { + p1_1_pwm0_0: p1_1_pwm0_0 { + drive-push-pull; + }; +};