Browse Source
Add MCXW72 Overlay for PWM, ADC, SPI testing Signed-off-by: Emilio Benavente <emilio.benavente@nxp.com> enabled supportpull/85131/head
7 changed files with 100 additions and 0 deletions
@ -0,0 +1,29 @@
@@ -0,0 +1,29 @@
|
||||
/* |
||||
* Copyright 2024 NXP |
||||
* SPDX-License-Identifier: Apache-2.0 |
||||
*/ |
||||
|
||||
#include <zephyr/dt-bindings/adc/adc.h> |
||||
#include <zephyr/dt-bindings/adc/mcux-lpadc.h> |
||||
|
||||
/ { |
||||
zephyr,user { |
||||
io-channels = <&adc0 0>; |
||||
}; |
||||
}; |
||||
|
||||
&adc0 { |
||||
#address-cells = <1>; |
||||
#size-cells = <0>; |
||||
|
||||
channel@0 { |
||||
reg = <0>; |
||||
zephyr,gain = "ADC_GAIN_1"; |
||||
zephyr,reference = "ADC_REF_EXTERNAL1"; |
||||
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>; |
||||
zephyr,resolution = <12>; |
||||
zephyr,vref-mv = <1800>; |
||||
/* channel 2 signal 6A */ |
||||
zephyr,input-positive = <MCUX_LPADC_CH2A>; |
||||
}; |
||||
}; |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
CONFIG_I2C_VIRTUAL=n |
@ -0,0 +1,33 @@
@@ -0,0 +1,33 @@
|
||||
/* |
||||
* Copyright 2025 NXP |
||||
* |
||||
* SPDX-License-Identifier: Apache-2.0 |
||||
*/ |
||||
|
||||
/* |
||||
* This is a loopback setup for the mcxw72_evk |
||||
* To test this sample, connect J1.5 <-> J2.1 and J1.7 <-> J2.3 |
||||
*/ |
||||
&lpi2c1 { |
||||
status = "okay"; |
||||
eeprom0: eeprom@54 { |
||||
compatible = "zephyr,i2c-target-eeprom"; |
||||
reg = <0x54>; |
||||
size = <256>; |
||||
}; |
||||
}; |
||||
|
||||
&lpi2c0 { |
||||
status = "okay"; |
||||
pinctrl-0 = <&pinmux_lpi2c0>; |
||||
pinctrl-names = "default"; |
||||
eeprom1: eeprom@56 { |
||||
compatible = "zephyr,i2c-target-eeprom"; |
||||
reg = <0x56>; |
||||
size = <256>; |
||||
}; |
||||
}; |
||||
|
||||
&gpiob { |
||||
status = "okay"; |
||||
}; |
@ -0,0 +1,11 @@
@@ -0,0 +1,11 @@
|
||||
/* |
||||
* Copyright 2024 NXP |
||||
* |
||||
* SPDX-License-Identifier: Apache-2.0 |
||||
*/ |
||||
|
||||
/ { |
||||
aliases { |
||||
pwm-0 = &tpm0; |
||||
}; |
||||
}; |
@ -0,0 +1,7 @@
@@ -0,0 +1,7 @@
|
||||
# |
||||
# Copyright 2024 NXP |
||||
# |
||||
# SPDX-License-Identifier: Apache-2.0 |
||||
# |
||||
CONFIG_SPI_MCUX_LPSPI_DMA=y |
||||
CONFIG_SPI_ASYNC=n |
@ -0,0 +1,18 @@
@@ -0,0 +1,18 @@
|
||||
/* |
||||
* Copyright 2024 NXP |
||||
* |
||||
* SPDX-License-Identifier: Apache-2.0 |
||||
*/ |
||||
|
||||
&lpspi1 { |
||||
slow@0 { |
||||
compatible = "test-spi-loopback-slow"; |
||||
reg = <0>; |
||||
spi-max-frequency = <500000>; |
||||
}; |
||||
fast@0 { |
||||
compatible = "test-spi-loopback-fast"; |
||||
reg = <0>; |
||||
spi-max-frequency = <16000000>; |
||||
}; |
||||
}; |
Loading…
Reference in new issue