samples: blinky_pwm: add overlay for bcf

- Add and test pwm for beagleconnect freedom

Signed-off-by: Ayush Singh <ayushdevel1325@gmail.com>
This commit is contained in:
Ayush Singh 2024-05-31 23:10:11 +05:30 committed by Carles Cufí
commit d9e2b0c707

View file

@ -0,0 +1,37 @@
/*
* Copyright (c) 2024 Ayush Singh <ayush@beagleboard.org>
*
* SPDX-License-Identifier: Apache-2.0
*/
/ {
aliases {
pwm-led0 = &pwm_led0;
};
pwmleds {
compatible = "pwm-leds";
pwm_led0: pwm_led_0 {
pwms = <&pwm0 0 255>;
label = "PWM MB1";
};
};
};
&pinctrl {
pwm0_default: pwm0_default {
pinmux = <17 IOC_PORT_MCU_PORT_EVENT1>;
bias-disable;
drive-strength = <8>;
};
};
&gpt0 {
status = "okay";
};
&pwm0 {
status = "okay";
pinctrl-0 = <&pwm0_default>;
pinctrl-names = "default";
};