-
Notifications
You must be signed in to change notification settings - Fork 904
Add Support for ADMT4000 #2944
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
Open
adiceline
wants to merge
4
commits into
analogdevicesinc:main
Choose a base branch
from
adiceline:dev/admt4000
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Add Support for ADMT4000 #2944
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,41 @@ | ||
What: /sys/bus/iio/devices/deviceX/in_angl_h1ph_corr | ||
What: /sys/bus/iio/devices/deviceX/in_angl_h2ph_corr | ||
What: /sys/bus/iio/devices/deviceX/in_angl_h3ph_corr | ||
What: /sys/bus/iio/devices/deviceX/in_angl_h8ph_corr | ||
KernelVersion: 6.6.0 | ||
Contact: [email protected] | ||
Description: | ||
These attributes expose per-harmonic phase correction angles used by the | ||
device to compensate for phase errors in signal measurement. Each attribute | ||
corresponds to a specific harmonic order (h1, h2, h3, h8). | ||
|
||
What: /sys/bus/iio/devices/deviceX/in_angl_h1mag_corr | ||
What: /sys/bus/iio/devices/deviceX/in_angl_h2mag_corr | ||
What: /sys/bus/iio/devices/deviceX/in_angl_h3mag_corr | ||
What: /sys/bus/iio/devices/deviceX/in_angl_h8mag_corr | ||
KernelVersion: 6.6.0 | ||
Contact: [email protected] | ||
Description: | ||
These attributes expose per-harmonic magnitude correction factors used by | ||
the device to compensate for amplitude errors in harmonic signal measurement. | ||
Each attribute corresponds to a specific harmonic order (h1, h2, h3, h8). | ||
|
||
What: /sys/bus/iio/devices/deviceX/in_angl_h8_corr_src | ||
KernelVersion: 6.6.0 | ||
Contact: [email protected] | ||
Description: | ||
This attribute selects the source of the correction coefficients for the 8th | ||
harmonic angular measurement. | ||
|
||
What: /sys/bus/iio/devices/deviceX/in_angl_h8_corr_src_available | ||
KernelVersion: 6.6.0 | ||
Contact: [email protected] | ||
Description: | ||
Supported values are "factory" for built-in device calibration and "user" | ||
for software-provided calibration data. | ||
|
||
What: /sys/bus/iio/devices/deviceX/in_angl_filter_en | ||
KernelVersion: 6.6.0 | ||
Contact: [email protected] | ||
Description: | ||
Enable or disable the device's angle measurement filter. | ||
85 changes: 85 additions & 0 deletions
85
Documentation/devicetree/bindings/iio/position/adi,admt4000.yaml
This file contains hidden or 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,85 @@ | ||
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) | ||
# Copyright (c) 2025 Analog Devices, Inc. | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/iio/position/adi,admt4000.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Analog Devices ADMT4000 True Power-On Multiturn Sensor | ||
maintainers: | ||
- Celine Joy Capua <[email protected]> | ||
|
||
description: | | ||
The ADMT4000 is a magnetic turn count sensor capable of recording the number | ||
of rotations of a magnetic system even while the device is powered down. On | ||
power-up, the device can be interrogated to report the absolute position of | ||
the system. Datasheet can be found here: | ||
https://www.analog.com/media/en/technical-documentation/data-sheets/admt4000.pdf | ||
|
||
properties: | ||
compatible: | ||
enum: | ||
- adi,admt4000 | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
spi-max-frequency: | ||
maximum: 10000000 | ||
|
||
vdd-supply: | ||
description: Power Supply Input. | ||
|
||
acalc-gpios: | ||
description: | ||
Angle Calculation Status. Indicates when the angle is being calculated. | ||
maxItems: 1 | ||
|
||
busy-gpios: | ||
description: | ||
Busy indicator gpio. Indicates when the part is performing measurement. | ||
maxItems: 1 | ||
|
||
cnv-gpios: | ||
description: | ||
Conversion start gpio. Used when an external convert start | ||
signal is desired. If not present, the conversion start is done via device | ||
registers. | ||
maxItems: 1 | ||
|
||
adi,one-shot-conversion: | ||
description: | ||
If present, this indicates that the device is operation at a one-shot | ||
conversion mode. | ||
type: boolean | ||
|
||
adi,cnv-sync-mode: | ||
description: | ||
Convert start synchronization mode. | ||
enum: [seq_ctrl, start_edge] | ||
default: seq_ctrl | ||
|
||
required: | ||
- compatible | ||
- reg | ||
- vdd-supply | ||
|
||
allOf: | ||
- $ref: /schemas/spi/spi-peripheral-props.yaml# | ||
|
||
unevaluatedProperties: false | ||
|
||
examples: | ||
- | | ||
spi { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
pos@0 { | ||
compatible = "adi,admt4000"; | ||
reg = <0>; | ||
spi-max-frequency = <1000000>; | ||
|
||
vdd-supply = <&vdd>; | ||
}; | ||
}; | ||
... |
This file contains hidden or 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 |
---|---|---|
|
@@ -216,3 +216,5 @@ config IIO_ALL_ADI_DRIVERS | |
imply LTC2309 | ||
imply AD7091R8 | ||
imply AD9739A | ||
imply ADMT4000_POS | ||
|
This file contains hidden or 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
This file contains hidden or 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 |
---|---|---|
|
@@ -4,5 +4,7 @@ | |
|
||
# When adding new entries keep the list in alphabetical order | ||
|
||
obj-$(CONFIG_ADMT4000_POS) += admt4000.o | ||
obj-$(CONFIG_ADMT4000_ADG714) += adg714.o | ||
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. Forgot to remove this. |
||
obj-$(CONFIG_HID_SENSOR_CUSTOM_INTEL_HINGE) += hid-sensor-custom-intel-hinge.o | ||
obj-$(CONFIG_IQS624_POS) += iqs624-pos.o |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add empty line at EOF.