The comment about which drive strength option is high or low was
wrong and this commit fixes it. For example, ESP32_GPIO_DS_ALT
results in GPIO_DRIVE_CAP_0 being used which is the weakest
option according to the HAL file espressif-esp32-gpio.h.
Signed-off-by: Hein Wessels <heinwessels93@gmail.com>
Proceed if the environment variables ZEPHYR_EXTRA_MODULES or
EXTRA_ZEPHYR_MODULES are set to an empty string. Handle same way as if
the variable is unset.
Signed-off-by: Thorsten Klein <thorsten.klein@bshg.com>
Adds a variable that has the path of the module directory, this
is supplied as an argument when running cmake normally but is
not supplied when running the check compliance script, this
addition allows checks to be ran that use such syntax in Kconfig
files. This is then removed from cmake as the python file handles
it instead
Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
Add migration note with details to guide user to correct select the
clock reference.
Signed-off-by: BUDKE Gerson Fernando <gerson.budke@leica-geosystems.com>
The OTG_HS PHY from stm32u5a5xx device require the correct reference
clock frequency selction in SYSCFG_OTGHSPHYCR. The current default is
hard coded to 16Mhz (which matches the development board crystal).
However, a custom board my require a different crystal and then the
USB will not work. This add a required field in the
st,stm32u5-otghs-phy binding to force user to select the correct
clock reference. The current nucleo_u5a5zj_q baord was updated to
reflect the mandatory field.
Signed-off-by: BUDKE Gerson Fernando <gerson.budke@leica-geosystems.com>
Ensure the "Video Controls" do not show up as a top level device API
but are rather folded into the main video Doxygen group.
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
The Locally Administered Address (LAA) bit should be set on the first
octet of the MAC address.
Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
The IAR linker ilink does not have any optimization options, and
with the newly added linker optimization flags that default to
the compiler optimization flags, ilink will fail with an
"illegal command line option" error.
This temporary workaround will use a harmless option instead to
avoid errors, until we can update the linker.
Signed-off-by: Lars-Ove Karlsson <lars-ove.karlsson@iar.com>
Implementation should use a dedicated function to get OpenThread
instance instead of using the deprecated pointer from context.
Signed-off-by: Adrian Gielniewski <adrian.gielniewski@nordicsemi.no>
Add include of the stm32l4+ specific clock bindings in
stm32l4p5.dtsi in order to let all stm32l4+ benefit from it.
Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
On stm32l4+ series, the SAI1 and SAI2 clock source selection fields
are within a different register hence a different binding header
file is introduced to allow proper field usage on those platforms.
Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
Change 4e0e3c990d caused
a regression in that SPI_MCUX_FLEXCOMM_TX DMA
transfers weren't properly set to be a peripheral
transfer.
Signed-off-by: Mike J. Chen <mjchen@google.com>
Sam4l use different TC_CMR_WAVEFORM_EEVT macro name.
Update these macro names to be consistent with other sam mcu.
Signed-off-by: CHEN Xing <xing.chen@microchip.com>
The syntax was wrong for the chosen dtcm node. Also fixing build error
on 1180 by re-allowing the symbol on some tests.
Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
1.Enable dac_api test on mimxrt1180_evk
2.Reorganized the test_dac.c file so that the same
dac configuration items are placed under the one
conditional macro.
Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
extra_configs or extra_args can use additional filtering which was not
supported by the west build command. West is not aware of arch so that
filter type is not supported but platform (board) is known so it can
be used to apply expected configuration.
Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
This oscillator has better accuracy and is available by default
on this board.
Disable this in the ethernet variant where XTAL32 is disconnected
so we can use the ethernet pins.
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
Do not clutter the "Device Drivers" documentation with emulation
headers.
Ensure each emulated device API appears both in the device group as
well as "Emulator interfaces" (e.g. bbram_emul is showing up in
both BBRAM docs as well as Emulator Interfaces docs)
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Replacing the hexadecimal values with bit position is less error-prone
and easier to follow.
The change was done by following command (convert only values where one
bit is set):
```
find boards/st/ -type f \( -name "*.dts" -o -name "*.dtsi" \) \
-exec gawk -i inplace '{
if (match(\
$0,\
/(.*)STM32_CLOCK_BUS_([A-Z0-9_]+)[ \t]+0x([0-9A-Fa-f]+)>([;,]?)/,\
m)) {
val = strtonum("0x" m[3])
if (and(val, val-1) == 0) {
bit = int(log(val)/log(2))
print m[1] "STM32_CLOCK(" m[2] ", " bit ")>" m[4]
} else {
print $0
}
} else {
print
}
}' {} \;
```
Signed-off-by: Tomáš Juřena <jurenatomas@gmail.com>
Replacing the hexadecimal values with bit position is less error-prone
and easier to follow.
The change was done by following command (convert only values where one
bit is set):
```
find boards/st/ -type f \( -name "*.dts" -o -name "*.dtsi" \) \
-exec gawk -i inplace '{
if (match(\
$0,\
/(.*)STM32_CLOCK_BUS_([A-Z0-9_]+)[ \t]+0x([0-9A-Fa-f]+)>([;,]?)/,\
m)) {
val = strtonum("0x" m[3])
if (and(val, val-1) == 0) {
bit = int(log(val)/log(2))
print m[1] "STM32_CLOCK(" m[2] ", " bit ")>" m[4]
} else {
print $0
}
} else {
print
}
}' {} \;
```
Signed-off-by: Tomáš Juřena <jurenatomas@gmail.com>
Replacing the hexadecimal values with bit position is less error-prone
and easier to follow.
The change was done by following command (convert only values where one
bit is set):
```
find boards/st/ -type f \( -name "*.dts" -o -name "*.dtsi" \) \
-exec gawk -i inplace '{
if (match(\
$0,\
/(.*)STM32_CLOCK_BUS_([A-Z0-9_]+)[ \t]+0x([0-9A-Fa-f]+)>([;,]?)/,\
m)) {
val = strtonum("0x" m[3])
if (and(val, val-1) == 0) {
bit = int(log(val)/log(2))
print m[1] "STM32_CLOCK(" m[2] ", " bit ")>" m[4]
} else {
print $0
}
} else {
print
}
}' {} \;
```
Signed-off-by: Tomáš Juřena <jurenatomas@gmail.com>
Replacing the hexadecimal values with bit position is less error-prone
and easier to follow.
The change was done by following command (convert only values where one
bit is set):
```
find boards/st/ -type f \( -name "*.dts" -o -name "*.dtsi" \) \
-exec gawk -i inplace '{
if (match(\
$0,\
/(.*)STM32_CLOCK_BUS_([A-Z0-9_]+)[ \t]+0x([0-9A-Fa-f]+)>([;,]?)/,\
m)) {
val = strtonum("0x" m[3])
if (and(val, val-1) == 0) {
bit = int(log(val)/log(2))
print m[1] "STM32_CLOCK(" m[2] ", " bit ")>" m[4]
} else {
print $0
}
} else {
print
}
}' {} \;
```
Signed-off-by: Tomáš Juřena <jurenatomas@gmail.com>
Replacing the hexadecimal values with bit position is less error-prone
and easier to follow.
The change was done by following command (convert only values where one
bit is set):
```
find boards/st/ -type f \( -name "*.dts" -o -name "*.dtsi" \) \
-exec gawk -i inplace '{
if (match(\
$0,\
/(.*)STM32_CLOCK_BUS_([A-Z0-9_]+)[ \t]+0x([0-9A-Fa-f]+)>([;,]?)/,\
m)) {
val = strtonum("0x" m[3])
if (and(val, val-1) == 0) {
bit = int(log(val)/log(2))
print m[1] "STM32_CLOCK(" m[2] ", " bit ")>" m[4]
} else {
print $0
}
} else {
print
}
}' {} \;
```
Signed-off-by: Tomáš Juřena <jurenatomas@gmail.com>
Replacing the hexadecimal values with bit position is less error-prone
and easier to follow.
The change was done by following command (convert only values where one
bit is set):
```
find boards/st/ -type f \( -name "*.dts" -o -name "*.dtsi" \) \
-exec gawk -i inplace '{
if (match(\
$0,\
/(.*)STM32_CLOCK_BUS_([A-Z0-9_]+)[ \t]+0x([0-9A-Fa-f]+)>([;,]?)/,\
m)) {
val = strtonum("0x" m[3])
if (and(val, val-1) == 0) {
bit = int(log(val)/log(2))
print m[1] "STM32_CLOCK(" m[2] ", " bit ")>" m[4]
} else {
print $0
}
} else {
print
}
}' {} \;
```
Signed-off-by: Tomáš Juřena <jurenatomas@gmail.com>
Replacing the hexadecimal values with bit position is less error-prone
and easier to follow.
The change was done by following command (convert only values where one
bit is set):
```
find boards/st/ -type f \( -name "*.dts" -o -name "*.dtsi" \) \
-exec gawk -i inplace '{
if (match(\
$0,\
/(.*)STM32_CLOCK_BUS_([A-Z0-9_]+)[ \t]+0x([0-9A-Fa-f]+)>([;,]?)/,\
m)) {
val = strtonum("0x" m[3])
if (and(val, val-1) == 0) {
bit = int(log(val)/log(2))
print m[1] "STM32_CLOCK(" m[2] ", " bit ")>" m[4]
} else {
print $0
}
} else {
print
}
}' {} \;
```
Signed-off-by: Tomáš Juřena <jurenatomas@gmail.com>
Replacing the hexadecimal values with bit position is less error-prone
and easier to follow.
The change was done by following command (convert only values where one
bit is set):
```
find boards/st/ -type f \( -name "*.dts" -o -name "*.dtsi" \) \
-exec gawk -i inplace '{
if (match(\
$0,\
/(.*)STM32_CLOCK_BUS_([A-Z0-9_]+)[ \t]+0x([0-9A-Fa-f]+)>([;,]?)/,\
m)) {
val = strtonum("0x" m[3])
if (and(val, val-1) == 0) {
bit = int(log(val)/log(2))
print m[1] "STM32_CLOCK(" m[2] ", " bit ")>" m[4]
} else {
print $0
}
} else {
print
}
}' {} \;
```
Signed-off-by: Tomáš Juřena <jurenatomas@gmail.com>
Replacing the hexadecimal values with bit position is less error-prone
and easier to follow.
The change was done by following command (convert only values where one
bit is set):
```
find boards/st/ -type f \( -name "*.dts" -o -name "*.dtsi" \) \
-exec gawk -i inplace '{
if (match(\
$0,\
/(.*)STM32_CLOCK_BUS_([A-Z0-9_]+)[ \t]+0x([0-9A-Fa-f]+)>([;,]?)/,\
m)) {
val = strtonum("0x" m[3])
if (and(val, val-1) == 0) {
bit = int(log(val)/log(2))
print m[1] "STM32_CLOCK(" m[2] ", " bit ")>" m[4]
} else {
print $0
}
} else {
print
}
}' {} \;
```
Signed-off-by: Tomáš Juřena <jurenatomas@gmail.com>
Replacing the hexadecimal values with bit position is less error-prone
and easier to follow.
The change was done by following command (convert only values where one
bit is set):
```
find boards/st/ -type f \( -name "*.dts" -o -name "*.dtsi" \) \
-exec gawk -i inplace '{
if (match(\
$0,\
/(.*)STM32_CLOCK_BUS_([A-Z0-9_]+)[ \t]+0x([0-9A-Fa-f]+)>([;,]?)/,\
m)) {
val = strtonum("0x" m[3])
if (and(val, val-1) == 0) {
bit = int(log(val)/log(2))
print m[1] "STM32_CLOCK(" m[2] ", " bit ")>" m[4]
} else {
print $0
}
} else {
print
}
}' {} \;
```
Signed-off-by: Tomáš Juřena <jurenatomas@gmail.com>
Replacing the hexadecimal values with bit position is less error-prone
and easier to follow.
The change was done by following command (convert only values where one
bit is set):
```
find boards/st/ -type f \( -name "*.dts" -o -name "*.dtsi" \) \
-exec gawk -i inplace '{
if (match(\
$0,\
/(.*)STM32_CLOCK_BUS_([A-Z0-9_]+)[ \t]+0x([0-9A-Fa-f]+)>([;,]?)/,\
m)) {
val = strtonum("0x" m[3])
if (and(val, val-1) == 0) {
bit = int(log(val)/log(2))
print m[1] "STM32_CLOCK(" m[2] ", " bit ")>" m[4]
} else {
print $0
}
} else {
print
}
}' {} \;
```
Signed-off-by: Tomáš Juřena <jurenatomas@gmail.com>
Replacing the hexadecimal values with bit position is less error-prone
and easier to follow.
The change was done by following command (convert only values where one
bit is set):
```
find boards/st/ -type f \( -name "*.dts" -o -name "*.dtsi" \) \
-exec gawk -i inplace '{
if (match(\
$0,\
/(.*)STM32_CLOCK_BUS_([A-Z0-9_]+)[ \t]+0x([0-9A-Fa-f]+)>([;,]?)/,\
m)) {
val = strtonum("0x" m[3])
if (and(val, val-1) == 0) {
bit = int(log(val)/log(2))
print m[1] "STM32_CLOCK(" m[2] ", " bit ")>" m[4]
} else {
print $0
}
} else {
print
}
}' {} \;
```
Signed-off-by: Tomáš Juřena <jurenatomas@gmail.com>
Replacing the hexadecimal values with bit position is less error-prone
and easier to follow.
The change was done by following command (convert only values where one
bit is set):
```
find boards/st/ -type f \( -name "*.dts" -o -name "*.dtsi" \) \
-exec gawk -i inplace '{
if (match(\
$0,\
/(.*)STM32_CLOCK_BUS_([A-Z0-9_]+)[ \t]+0x([0-9A-Fa-f]+)>([;,]?)/,\
m)) {
val = strtonum("0x" m[3])
if (and(val, val-1) == 0) {
bit = int(log(val)/log(2))
print m[1] "STM32_CLOCK(" m[2] ", " bit ")>" m[4]
} else {
print $0
}
} else {
print
}
}' {} \;
```
Signed-off-by: Tomáš Juřena <jurenatomas@gmail.com>
Replacing the hexadecimal values with bit position is less error-prone
and easier to follow.
The change was done by following command (convert only values where one
bit is set):
```
find boards/st/ -type f \( -name "*.dts" -o -name "*.dtsi" \) \
-exec gawk -i inplace '{
if (match(\
$0,\
/(.*)STM32_CLOCK_BUS_([A-Z0-9_]+)[ \t]+0x([0-9A-Fa-f]+)>([;,]?)/,\
m)) {
val = strtonum("0x" m[3])
if (and(val, val-1) == 0) {
bit = int(log(val)/log(2))
print m[1] "STM32_CLOCK(" m[2] ", " bit ")>" m[4]
} else {
print $0
}
} else {
print
}
}' {} \;
```
Signed-off-by: Tomáš Juřena <jurenatomas@gmail.com>
Replacing the hexadecimal values with bit position is less error-prone
and easier to follow.
The change was done by following command (convert only values where one
bit is set):
```
find boards/st/ -type f \( -name "*.dts" -o -name "*.dtsi" \) \
-exec gawk -i inplace '{
if (match(\
$0,\
/(.*)STM32_CLOCK_BUS_([A-Z0-9_]+)[ \t]+0x([0-9A-Fa-f]+)>([;,]?)/,\
m)) {
val = strtonum("0x" m[3])
if (and(val, val-1) == 0) {
bit = int(log(val)/log(2))
print m[1] "STM32_CLOCK(" m[2] ", " bit ")>" m[4]
} else {
print $0
}
} else {
print
}
}' {} \;
```
Signed-off-by: Tomáš Juřena <jurenatomas@gmail.com>
Replacing the hexadecimal values with bit position is less error-prone
and easier to follow.
The change was done by following command (convert only values where one
bit is set):
```
find boards/st/ -type f \( -name "*.dts" -o -name "*.dtsi" \) \
-exec gawk -i inplace '{
if (match(\
$0,\
/(.*)STM32_CLOCK_BUS_([A-Z0-9_]+)[ \t]+0x([0-9A-Fa-f]+)>([;,]?)/,\
m)) {
val = strtonum("0x" m[3])
if (and(val, val-1) == 0) {
bit = int(log(val)/log(2))
print m[1] "STM32_CLOCK(" m[2] ", " bit ")>" m[4]
} else {
print $0
}
} else {
print
}
}' {} \;
```
Signed-off-by: Tomáš Juřena <jurenatomas@gmail.com>