-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
app: boards: add support for the candlelightFD board
Add support for the candlelightFD board from Linux Automation. The board optionally supports a second CAN channel, but only provides two LEDs (RX/TX) in total. To work around this limitation, the "dual" configuration uses the RX LED for channel 0 state/activity, and the TX LED for channel 1 state/activity. Signed-off-by: Henrik Brix Andersen <[email protected]>
- Loading branch information
1 parent
c9ca536
commit 68ccfc9
Showing
2 changed files
with
81 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/* | ||
* Copyright (c) 2024 Henrik Brix Andersen <[email protected]> | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#include <zephyr/dt-bindings/gpio/gpio.h> | ||
|
||
/ { | ||
cannectivity: cannectivity { | ||
compatible = "cannectivity"; | ||
timestamp-counter = <&counter2>; | ||
|
||
channel0 { | ||
compatible = "cannectivity-channel"; | ||
can-controller = <&fdcan1>; | ||
activity-gpios = <&gpioa 3 GPIO_ACTIVE_LOW>, | ||
<&gpioa 4 GPIO_ACTIVE_LOW>; | ||
}; | ||
}; | ||
}; | ||
|
||
&zephyr_udc0 { | ||
gs_usb0: gs_usb0 { | ||
compatible = "gs_usb"; | ||
}; | ||
}; | ||
|
||
&timers2 { | ||
status = "okay"; | ||
st,prescaler = <59>; | ||
|
||
counter2: counter2 { | ||
compatible = "st,stm32-counter"; | ||
status = "okay"; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/* | ||
* Copyright (c) 2024 Henrik Brix Andersen <[email protected]> | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#include <zephyr/dt-bindings/gpio/gpio.h> | ||
|
||
/ { | ||
cannectivity: cannectivity { | ||
compatible = "cannectivity"; | ||
timestamp-counter = <&counter2>; | ||
|
||
channel0 { | ||
compatible = "cannectivity-channel"; | ||
can-controller = <&fdcan1>; | ||
/* Use RX LED for channel 0 state + activity */ | ||
state-gpios = <&gpioa 3 GPIO_ACTIVE_LOW>; | ||
}; | ||
|
||
channel1 { | ||
compatible = "cannectivity-channel"; | ||
can-controller = <&fdcan2>; | ||
/* Use TX LED for channel 0 state + activity */ | ||
state-gpios = <&gpioa 4 GPIO_ACTIVE_LOW>; | ||
}; | ||
}; | ||
}; | ||
|
||
&zephyr_udc0 { | ||
gs_usb0: gs_usb0 { | ||
compatible = "gs_usb"; | ||
}; | ||
}; | ||
|
||
&timers2 { | ||
status = "okay"; | ||
st,prescaler = <59>; | ||
|
||
counter2: counter2 { | ||
compatible = "st,stm32-counter"; | ||
status = "okay"; | ||
}; | ||
}; |