-
Notifications
You must be signed in to change notification settings - Fork 8.3k
samples: adc_dt: adding silabs xg24_dk2601b #96805
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,77 @@ | ||
| /* | ||
| * SPDX-License-Identifier: Apache-2.0 | ||
| * | ||
| * Copyright (c) 2025 Silicon Laboratories Inc. | ||
| */ | ||
|
|
||
| #include <dt-bindings/pinctrl/silabs/xg24-pinctrl.h> | ||
| #include <dt-bindings/adc/silabs-adc.h> | ||
|
|
||
| /* | ||
| * ch0: VDD: does not need analog bus | ||
| * ch1: button0 on GPIO port B2 pin: requires even analog bus | ||
| * ch2: button1 on GPIO port B3 pin: requires odd analog bus | ||
| * ch3: U.FL connector on AIN0 pin: does not need analog bus | ||
| */ | ||
|
|
||
| / { | ||
| zephyr,user { | ||
| io-channels = <&adc0 0>, <&adc0 1>, <&adc0 2>, <&adc0 3>; | ||
| }; | ||
| }; | ||
|
|
||
| &pinctrl { | ||
| adc0_default: adc0_default { | ||
| group0 { | ||
| silabs,analog-bus = <ABUS_BODD0_IADC0>, <ABUS_BEVEN0_IADC0>; | ||
| }; | ||
| }; | ||
| }; | ||
|
|
||
| &adc0 { | ||
| pinctrl-0 = <&adc0_default>; | ||
| pinctrl-names = "default"; | ||
| #address-cells = <1>; | ||
| #size-cells = <0>; | ||
| status = "okay"; | ||
|
|
||
| channel@0 { | ||
| reg = <0>; | ||
| zephyr,gain = "ADC_GAIN_1"; | ||
| zephyr,reference = "ADC_REF_INTERNAL"; | ||
| zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>; | ||
| zephyr,resolution = <12>; | ||
| zephyr,input-positive = <IADC_INPUT_AVDD>; | ||
| }; | ||
|
|
||
| channel@1 { | ||
| reg = <1>; | ||
| zephyr,gain = "ADC_GAIN_1"; | ||
| zephyr,reference = "ADC_REF_VDD_1"; | ||
| zephyr,vref-mv = <3300>; | ||
| zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>; | ||
| zephyr,resolution = <12>; | ||
| zephyr,input-positive = <IADC_INPUT_PB2>; | ||
| }; | ||
|
|
||
| channel@2 { | ||
| reg = <2>; | ||
| zephyr,gain = "ADC_GAIN_1"; | ||
| zephyr,reference = "ADC_REF_VDD_1"; | ||
| zephyr,vref-mv = <3300>; | ||
| zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>; | ||
| zephyr,resolution = <12>; | ||
| zephyr,input-positive = <IADC_INPUT_PB3>; | ||
| }; | ||
|
|
||
| channel@3 { | ||
| reg = <3>; | ||
| zephyr,gain = "ADC_GAIN_1"; | ||
| zephyr,reference = "ADC_REF_VDD_1"; | ||
| zephyr,vref-mv = <3300>; | ||
| zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>; | ||
| zephyr,resolution = <12>; | ||
| zephyr,input-positive = <IADC_INPUT_AIN0>; | ||
| }; | ||
|
|
||
| }; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -37,6 +37,7 @@ tests: | |
| - mcx_n9xx_evk/mcxn947/cpu0 | ||
| - frdm_mcxc242 | ||
| - ucans32k1sic | ||
| - xg24_dk2601b | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is the added value of building this in CI in addition to xg24_rb4187c?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thank you to point it out, it doesn't need testing and I will remove it from here. |
||
| - xg24_rb4187c | ||
| - xg29_rb4412a | ||
| - raytac_an54l15q_db/nrf54l15/cpuapp | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.