boards: nxp: mimxrt1180_evk: add lpadc1 support
add lpadc1 ch0a/ch1a channel in pinctrl set lpadc1 status ok Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
This commit is contained in:
parent
23f58fd3a4
commit
ccd8464075
7 changed files with 26 additions and 0 deletions
|
|
@ -109,6 +109,8 @@ configuration supports the following hardware features:
|
|||
+-----------+------------+-------------------------------------+
|
||||
| ACMP | on-chip | analog comparator |
|
||||
+-----------+------------+-------------------------------------+
|
||||
| ADC | on-chip | adc |
|
||||
+-----------+------------+-------------------------------------+
|
||||
|
||||
The default configuration can be found in the defconfig file:
|
||||
:zephyr_file:`boards/nxp/mimxrt1180_evk/mimxrt1180_evk_mimxrt1189_cm33_defconfig`
|
||||
|
|
|
|||
|
|
@ -63,4 +63,14 @@
|
|||
input-enable;
|
||||
};
|
||||
};
|
||||
|
||||
pinmux_lpadc1: pinmux_lpadc1 {
|
||||
group0 {
|
||||
pinmux = <&iomuxc_gpio_ad_16_adc1_ch0a>,
|
||||
<&iomuxc_gpio_ad_14_adc1_ch1a>;
|
||||
drive-strength = "high";
|
||||
bias-pull-down;
|
||||
slew-rate = "fast";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -81,3 +81,8 @@
|
|||
pinctrl-0 = <&pinmux_lpi2c3>;
|
||||
pinctrl-names = "default";
|
||||
};
|
||||
|
||||
&lpadc1 {
|
||||
pinctrl-0 = <&pinmux_lpadc1>;
|
||||
pinctrl-names = "default";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -35,6 +35,9 @@
|
|||
current-speed = <115200>;
|
||||
};
|
||||
|
||||
&lpadc1 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&systick {
|
||||
status = "okay";
|
||||
|
|
|
|||
|
|
@ -19,4 +19,5 @@ supported:
|
|||
- uart
|
||||
- i2c
|
||||
- counter
|
||||
- adc
|
||||
vendor: nxp
|
||||
|
|
|
|||
|
|
@ -27,6 +27,10 @@
|
|||
current-speed = <115200>;
|
||||
};
|
||||
|
||||
&lpadc1 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&systick {
|
||||
status = "okay";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -19,4 +19,5 @@ supported:
|
|||
- uart
|
||||
- i2c
|
||||
- counter
|
||||
- adc
|
||||
vendor: nxp
|
||||
|
|
|
|||
Loading…
Reference in a new issue