You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
650 B
42 lines
650 B
/* |
|
* Copyright (c) 2024 Accenture |
|
* |
|
* SPDX-License-Identifier: Apache-2.0 |
|
*/ |
|
|
|
#include <zephyr/dt-bindings/adc/adc.h> |
|
|
|
/ { |
|
zephyr,user { |
|
io-channels = <&adc0 28>; |
|
}; |
|
}; |
|
|
|
&pinctrl { |
|
adc0_default: adc0_default { |
|
group_1 { |
|
pinmux = <ADC0_SE28_PTC28>; |
|
drive-strength = "low"; |
|
}; |
|
}; |
|
}; |
|
|
|
&adc0 { |
|
#address-cells = <1>; |
|
#size-cells = <0>; |
|
pinctrl-0 = <&adc0_default>; |
|
pinctrl-names = "default"; |
|
status = "okay"; |
|
|
|
channel@1c { |
|
reg = <28>; |
|
zephyr,gain = "ADC_GAIN_1"; |
|
zephyr,reference = "ADC_REF_INTERNAL"; |
|
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>; |
|
zephyr,resolution = <12>; |
|
}; |
|
}; |
|
|
|
&adc1 { |
|
status = "disabled"; |
|
};
|
|
|