Skip to content

boards: beagle: beagleconnect_freedom: Update capabilities #78667

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Sep 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,18 @@
pinmux = <30 IOC_PORT_RFC_GPO0>;
bias-disable;
};

/* 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>;
};
};
81 changes: 79 additions & 2 deletions boards/beagle/beagleconnect_freedom/beagleconnect_freedom.dts
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,87 @@
};
};

&ieee802154 {
&ieee802154g {
status = "okay";
};

&ieee802154g {
&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";
};

&adc0 {
status = "okay";

#address-cells = <1>;
#size-cells = <0>;

/* MB1 AN */
channel@9 {
reg = <9>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,resolution = <12>;
};

/* MB2 AN */
channel@a {
reg = <10>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,resolution = <12>;
};

/* MB1/2 SCL */
channel@b {
reg = <11>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,resolution = <12>;
};

/* MB1/2 SDA */
channel@c {
reg = <12>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,resolution = <12>;
};

/* MB2 CS */
channel@d {
reg = <13>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,resolution = <12>;
};

/* MB1 CS */
channel@e {
reg = <14>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,resolution = <12>;
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ supported:
- spi
- uart
- hwinfo
- adc
- pwm
vendor: beagle
8 changes: 8 additions & 0 deletions boards/beagle/beagleconnect_freedom/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,14 @@ The board configuration supports the following hardware features:
+-----------+------------+----------------------+
| I2C | off-chip | BCF_BRIDGE_MCU |
+-----------+------------+----------------------+
| ADC | on-chip | adc |
+-----------+------------+----------------------+
| PWM | on-chip | pwm |
+-----------+------------+----------------------+
| FLASH | on-chip | flash |
+-----------+------------+----------------------+
| RADIO | on-chip | ieee802154 |
+-----------+------------+----------------------+

Connections and IOs
===================
Expand Down
18 changes: 0 additions & 18 deletions samples/basic/blinky_pwm/boards/beagleconnect_freedom.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,3 @@
};
};
};

&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";
};
61 changes: 0 additions & 61 deletions samples/drivers/adc/adc_dt/boards/beagleconnect_freedom.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -16,64 +16,3 @@
*/
};
};

&adc0 {
status = "okay";

#address-cells = <1>;
#size-cells = <0>;

/* MB1 AN */
channel@9 {
reg = <9>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,resolution = <12>;
};

/* MB2 AN */
channel@a {
reg = <10>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,resolution = <12>;
};

/* MB1/2 SCL */
channel@b {
reg = <11>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,resolution = <12>;
};

/* MB1/2 SDA */
channel@c {
reg = <12>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,resolution = <12>;
};

/* MB2 CS */
channel@d {
reg = <13>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,resolution = <12>;
};

/* MB1 CS */
channel@e {
reg = <14>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,resolution = <12>;
};
};
12 changes: 12 additions & 0 deletions tests/drivers/adc/adc_api/boards/beagleconnect_freedom.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright (c) Ayush Singh <ayush@beagleboard.org>
*/

/ {
zephyr,user {
io-channels = <&adc0 0x09>, <&adc0 0x0a>, <&adc0 0x0b>, <&adc0 0x0c>,
<&adc0 0x0d>, <&adc0 0x0e>;
};
};
Loading