-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: drivers: adc: adc_api: support numaker_pfm_m467
Add support for Nuvoton numaker board numaker_pfm_m467. Signed-off-by: cyliang tw <[email protected]>
- Loading branch information
1 parent
9ad8e1a
commit d001258
Showing
2 changed files
with
41 additions
and
1 deletion.
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,40 @@ | ||
/* SPDX-License-Identifier: Apache-2.0 */ | ||
|
||
/ { | ||
zephyr,user { | ||
io-channels = <&eadc0 0>, <&eadc0 2>; | ||
}; | ||
}; | ||
|
||
&pinctrl { | ||
/* EVB's UNO Pin A4 & D0 for channel 0 & 2 --> PB0, PB2 */ | ||
eadc0_default: eadc0_default { | ||
group0 { | ||
pinmux = <PB0MFP_EADC0_CH0>, <PB2MFP_EADC0_CH2>; | ||
}; | ||
}; | ||
}; | ||
|
||
&eadc0 { | ||
status = "okay"; | ||
pinctrl-0 = <&eadc0_default>; | ||
pinctrl-names = "default"; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
channel@0 { | ||
reg = <0>; | ||
zephyr,gain = "ADC_GAIN_1"; | ||
zephyr,reference = "ADC_REF_INTERNAL"; | ||
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>; | ||
zephyr,resolution = <10>; | ||
}; | ||
|
||
channel@2 { | ||
reg = <2>; | ||
zephyr,gain = "ADC_GAIN_1"; | ||
zephyr,reference = "ADC_REF_INTERNAL"; | ||
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>; | ||
zephyr,resolution = <10>; | ||
}; | ||
}; |
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