Skip to content

Please add CONFIG_MCP320X=m to standard config #1189

Closed

Description

@tgaryet

mcp320x.c is the driver for a set of Microchip A2D converters:

10 Bit converters
MCP3001
MCP3002
MCP3004
MCP3008

12 bit converters
MCP3201
MCP3202
MCP3204
MCP3208

I am creating a HAT module that contains the MCP3004 A2D converter attached to the SPI. Since the HAT device tree would reference this driver, it would be advantageous to have it in the standard configuration.

Please add:
CONFIG_MPC320X=m

to the standard configuration.

Activity

  1. popcornmix commented on Nov 4, 2015

    @popcornmix
    Collaborator

    Sounds okay.

  2. tgaryet commented on Nov 4, 2015

    @tgaryet
    Author

    Thank you.

    I am unfamiliar with how I get access to this when it is done.

  3. added a commit that references this issue on Nov 5, 2015
  4. pelwell commented on Nov 5, 2015

    @pelwell
    Contributor

    I've pushed the patch that enables this option. This will cause future builds to include the required driver.

    The driver will appear first in the next rpi-update release, available via:

    sudo rpi-update
    

    Some time later it will appear in a Raspbian release, available via:

    sudo apt-get update
    sudo apt-get upgrade
    
  5. tgaryet commented on Nov 5, 2015

    @tgaryet
    Author

    Thank you,
    Terry

    On Nov 5, 2015, at 6:13 AM, Phil Elwell <notifications@github.commailto:notifications@github.com> wrote:

    I've pushed the patch that enables this option. This will cause future builds to include the required driver.

    The driver will appear first in the next rpi-update release, available via:

    sudo rpi-update

    Some time later it will appear in a Raspbian release, available via:

    sudo apt-get update
    sudo apt-get upgrade

    Reply to this email directly or view it on GitHubhttps://github.com//issues/1189#issuecomment-154042821.

  6. popcornmix commented on Nov 7, 2015

    @popcornmix
    Collaborator

    This is now in latest rpi-update firmware. Please test and close if happy.

  7. tgaryet commented on Nov 7, 2015

    @tgaryet
    Author

    Tested using:

    Linux raspberrypi 4.1.12+ #825 PREEMPT Fri Nov 6 17:53:21 GMT 2015 armv6l

    iio device exists...

    pi@raspberrypi /sys/bus/iio/devices/iio:device0 $pi@raspberrypi /sys/bus/iio/devices/iio:device0 $ ls in_voltage*_raw
    in_voltage0_raw in_voltage0-voltage1_raw in_voltage1_raw in_voltage2_raw in_voltage2-voltage3_raw in_voltage3_raw

    A2D data reported...

    pi@raspberrypi /sys/bus/iio/devices/iio:device0 $ cat in_voltage*_raw
    1
    0
    1
    0
    0
    0

    Looks like it works.
    Thank You!

  8. added a commit that references this issue on Feb 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions