Skip to content
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

(kernel-rolling) iio: adc: Add Phytium ADC support #206

Conversation

MingcongBai
Copy link
Contributor

@MingcongBai MingcongBai commented May 27, 2024

Picked and rebased from #193.

From original pull request:

Phytium Pe220x SoCs includes an 8-channel, 10-bit single ended ADC. This patch add this ADC's driver support.

Builds tested

  • amd64
  • arm64
  • loong64

@deepin-ci-robot deepin-ci-robot requested review from BLumia and myml May 27, 2024 00:29
@deepin-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign zccrs for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Phytium Pe220x SoCs includes an 8-channel, 10-bit single ended ADC.
This patch add this ADC's driver support.

Signed-off-by: Yang Liu <[email protected]>
Signed-off-by: Zhou Yulin <[email protected]>
Signed-off-by: Chen Baozi <[email protected]>
Signed-off-by: Wang Yinfeng <[email protected]>
Signed-off-by: Hu Yeqing <[email protected]>
@MingcongBai MingcongBai force-pushed the bai/kernel-rolling/phytium-adc branch from 5d07dc7 to f7992ba Compare May 29, 2024 00:38
@deepin-ci-robot
Copy link

deepin pr auto review

Phytium ADC driver

This driver is for Phytium's ADC module. It provides a simple IIO driver for
reading and writing ADC data. The driver supports multi-channel ADC
conversions and provides a threshold detection feature.

To build the driver, the following steps are needed:

  1. Copy the code to your kernel tree.
  2. Modify the driver structure to include the new ADC driver.
  3. Update the driver name in the platform driver structure.
  4. Implement the necessary functions for reading, writing, and configuring
    the ADC module.
  5. Add any necessary platform-specific code, such as GPIO configuration or
    clock initialization.
  6. Implement the necessary interrupt handling, if required.
  7. Add any necessary debugging code.

This driver is designed to be used with the Phytium ADC module. It provides a
simple IIO driver for reading and writing ADC data. The driver supports
multi-channel ADC conversions and provides a threshold detection feature.

@Avenger-285714 Avenger-285714 merged commit 3b5e588 into deepin-community:kernel-rolling Jun 1, 2024
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants