Skip to content

Commit ab06b59

Browse files
committed
commit before make additional changes
1 parent e27336f commit ab06b59

File tree

6 files changed

+138
-148
lines changed

6 files changed

+138
-148
lines changed

boards/bronco_space/proves_flight_control_board_v4/Kconfig.defconfig

Lines changed: 0 additions & 12 deletions
This file was deleted.

boards/bronco_space/proves_flight_control_board_v4/proves_flight_control_board_v4.dtsi

Lines changed: 0 additions & 132 deletions
This file was deleted.
Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,12 @@
1-
source "../../../boards/bronco_space/proves_flight_control_board_v4/Kconfig.defconfig"
1+
config SOC_RP2040
2+
bool "Enable Cortex-M0+ core"
3+
default y
4+
5+
config USB_SELF_POWERED
6+
default n
7+
8+
config USB_CDC_ACM_LOG_LEVEL
9+
default 0
10+
11+
config USB_DEVICE_LOG_LEVEL
12+
default 1

boards/bronco_space/proves_flight_control_board_v4b/proves_flight_control_board_v4b_rp2040.dts

Lines changed: 125 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,128 @@
1616
#include <raspberrypi/rpi_pico/rp2040.dtsi>
1717

1818

19-
#include "../proves_flight_control_board_v4/proves_flight_control_board_v4.dtsi"
19+
#include <freq.h>
20+
21+
#include <zephyr/dt-bindings/i2c/i2c.h>
22+
#include <zephyr/dt-bindings/pwm/pwm.h>
23+
24+
#include "proves_flight_control_board_v4b_rp2040-pinctrl.dtsi"
25+
26+
/ {
27+
chosen {
28+
zephyr,sram = &sram0;
29+
zephyr,flash = &flash0;
30+
zephyr,console = &cdc_acm_uart0;
31+
zephyr,shell-uart = &cdc_acm_uart0;
32+
zephyr,code-partition = &code_partition;
33+
};
34+
35+
aliases {
36+
watchdog0 = &wdt0;
37+
};
38+
39+
leds {
40+
compatible = "gpio-leds";
41+
led0: led0 {
42+
gpios = <&gpio0 24 GPIO_ACTIVE_HIGH>;
43+
label = "User LED GPIO24";
44+
};
45+
};
46+
};
47+
48+
zephyr_udc0: &usbd {
49+
status = "okay";
50+
};
51+
52+
&zephyr_udc0 {
53+
cdc_acm_uart0: cdc_acm_uart0 {
54+
compatible = "zephyr,cdc-acm-uart";
55+
label = "CDC_ACM_0";
56+
};
57+
};
58+
59+
&flash0 {
60+
reg = <0x10000000 DT_SIZE_M(4)>;
61+
62+
partitions {
63+
compatible = "fixed-partitions";
64+
#address-cells = <1>;
65+
#size-cells = <1>;
66+
67+
/* Reserved memory for an image definition block. The block is much
68+
* smaller than 256 bytes, but in practice the linker places the vector
69+
* table at a much larger alignment offset.
70+
*/
71+
image_def: partition@0 {
72+
label = "image_def";
73+
reg = <0x00000000 0x100>;
74+
read-only;
75+
};
76+
77+
/*
78+
* Usable flash. Starts at 0x100, after the image definition block.
79+
* The partition size is 4MB minus the 0x100 bytes taken by the
80+
* image definition.
81+
*/
82+
code_partition: partition@100 {
83+
label = "code-partition";
84+
reg = <0x100 (DT_SIZE_M(4) - 0x100)>;
85+
read-only;
86+
};
87+
};
88+
};
89+
90+
&timer {
91+
status = "okay";
92+
};
93+
94+
&wdt0 {
95+
status = "okay";
96+
};
97+
98+
&gpio0 {
99+
status = "okay";
100+
};
101+
102+
&spi1 {
103+
status = "okay";
104+
cs-gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
105+
pinctrl-0 = <&spi1_default>;
106+
pinctrl-names = "default";
107+
108+
lora0: sx1276@0 {
109+
compatible = "semtech,sx1276";
110+
reg = <0>;
111+
spi-max-frequency = <125000>;
112+
dio-gpios = <&gpio0 23 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>;
113+
reset-gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
114+
power-amplifier-output = "pa-boost";
115+
label = "HOPE_RF";
116+
};
117+
};
118+
119+
&i2c1 {
120+
status = "okay";
121+
pinctrl-0 = <&i2c1_default>;
122+
pinctrl-names = "default";
123+
clock-frequency = <100000>;
124+
125+
lsm6dso0: lsm6dso0@6b {
126+
compatible = "st,lsm6dso";
127+
reg = <0x6b>;
128+
label = "LSM6DSO";
129+
};
130+
131+
lis2mdl: lis2mdl@1e {
132+
compatible = "st,lis2mdl";
133+
reg = <0x1e>;
134+
label = "LIS2MDL";
135+
};
136+
rv3028: rv3028@52 {
137+
compatible = "microcrystal,rv3028";
138+
reg = <0x52>;
139+
int-gpios = <&gpio0 27 GPIO_ACTIVE_HIGH>;
140+
backup-switch-mode = "level";
141+
label = "RV3028";
142+
};
143+
};

boards/bronco_space/proves_flight_control_board_v4b/proves_flight_control_board_v4b_rp2040_defconfig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,12 @@ CONFIG_UART_INTERRUPT_DRIVEN=y
1010
CONFIG_USE_DT_CODE_PARTITION=y
1111
CONFIG_USB_DEVICE_STACK=y
1212
CONFIG_USB_DEVICE_PRODUCT="PROVES Flight Control Board v4b"
13-
CONFIG_USB_DEVICE_VID=0x0028
13+
CONFIG_USB_DEVICE_VID=0x1209
1414

1515
# Sensors
1616
CONFIG_LSM6DSO=y
1717
CONFIG_LSM6DSO_ENABLE_TEMP=y
1818
CONFIG_LIS2MDL=y
19-
CONFIG_INA219=y
2019

2120
# Radio
2221
CONFIG_LORA=y

0 commit comments

Comments
 (0)