diff options
author | Ayush Singh <ayush@beagleboard.org> | 2024-10-19 12:27:14 +0530 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2025-04-30 00:30:27 +1000 |
commit | f9a755c91c8b002407ffb930d2bdaa7e85b2c350 (patch) | |
tree | 88287158718566db32d881b5a6eb0d2d41234822 /ports | |
parent | c9c39b88afe1d51b9bb4984cb19b787ac5834c52 (diff) | |
download | micropython-master.tar.gz micropython-master.zip |
Enable PWM config for bcf.
Signed-off-by: Ayush Singh <ayush@beagleboard.org>
Diffstat (limited to 'ports')
-rw-r--r-- | ports/zephyr/boards/beagleconnect_freedom.conf | 1 | ||||
-rw-r--r-- | ports/zephyr/boards/beagleconnect_freedom.overlay | 41 |
2 files changed, 42 insertions, 0 deletions
diff --git a/ports/zephyr/boards/beagleconnect_freedom.conf b/ports/zephyr/boards/beagleconnect_freedom.conf index 14ce9c526e..1e3f6037bd 100644 --- a/ports/zephyr/boards/beagleconnect_freedom.conf +++ b/ports/zephyr/boards/beagleconnect_freedom.conf @@ -1,4 +1,5 @@ # Hardware features +CONFIG_PWM=y CONFIG_I2C=y CONFIG_SPI=y diff --git a/ports/zephyr/boards/beagleconnect_freedom.overlay b/ports/zephyr/boards/beagleconnect_freedom.overlay new file mode 100644 index 0000000000..7dd4469c99 --- /dev/null +++ b/ports/zephyr/boards/beagleconnect_freedom.overlay @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2024 Ayush Singh <ayush@beagleboard.org> + * + * SPDX-License-Identifier: Apache-2.0 + */ + +&pinctrl { + /* MB1 PWM */ + pwm0_default: pwm0_default { + pinmux = <17 IOC_PORT_MCU_PORT_EVENT1>; + bias-disable; + drive-strength = <2>; + }; + + /* MB2 PWM */ + pwm1_default: pwm1_default { + pinmux = <19 IOC_PORT_MCU_PORT_EVENT3>; + bias-disable; + drive-strength = <2>; + }; +}; + +&gpt0 { + status = "okay"; +}; + +&gpt1 { + status = "okay"; +}; + +&pwm0 { + status = "okay"; + pinctrl-0 = <&pwm0_default>; + pinctrl-names = "default"; +}; + +&pwm1 { + status = "okay"; + pinctrl-0 = <&pwm1_default>; + pinctrl-names = "default"; +}; |