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

Please add CONFIG_MCP320X=m to standard config #1189

Closed
tgaryet opened this issue Nov 4, 2015 · 6 comments
Closed

Please add CONFIG_MCP320X=m to standard config #1189

tgaryet opened this issue Nov 4, 2015 · 6 comments

Comments

@tgaryet
Copy link

tgaryet commented Nov 4, 2015

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.

@popcornmix
Copy link
Collaborator

Sounds okay.

@tgaryet
Copy link
Author

tgaryet commented Nov 4, 2015

Thank you.

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

pelwell pushed a commit that referenced this issue Nov 5, 2015
@pelwell
Copy link
Contributor

pelwell commented Nov 5, 2015

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

@tgaryet
Copy link
Author

tgaryet commented Nov 5, 2015

Thank you,
Terry

On Nov 5, 2015, at 6:13 AM, Phil Elwell <[email protected]mailto:[email protected]> 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.

popcornmix added a commit to raspberrypi/firmware that referenced this issue Nov 6, 2015
…m edges

See: #463

firmware: di_adv: Add config setting to add nop delays to shader
See: http://forum.kodi.tv/showthread.php?tid=231092&pid=2150605#pid2150605

firmware: vcilcs: Avoid a potential deadlock when very threaded
See: #449

firmware: vrf: Add spinlock around vrf acquire/release calls to avoid restoring an invalid p10 from ISR context

firmware: rpi_display: only ratelimit if the backlight is actually changed
See: raspberrypi/linux#1179

firmware: di_adv: Support multiple instances of qpu deinterlace at SD resolution
See: popcornmix/omxplayer#386

linux: rpi-ft5406: Use interruptible sleep to avoid high load reported
See: https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=125034

linux: dts: Added overlay for Adafruit PiTFT 2.8 capacitive touch screen
See: raspberrypi/linux#1192

linux: config: Add MCP320X
See: raspberrypi/linux#1189

linux: Build i2c_gpio module and add a device tree overlay to configure it
See: raspberrypi/linux#1183
popcornmix added a commit to Hexxeh/rpi-firmware that referenced this issue Nov 6, 2015
…m edges

See: raspberrypi/firmware#463

firmware: di_adv: Add config setting to add nop delays to shader
See: http://forum.kodi.tv/showthread.php?tid=231092&pid=2150605#pid2150605

firmware: vcilcs: Avoid a potential deadlock when very threaded
See: raspberrypi/firmware#449

firmware: vrf: Add spinlock around vrf acquire/release calls to avoid restoring an invalid p10 from ISR context

firmware: rpi_display: only ratelimit if the backlight is actually changed
See: raspberrypi/linux#1179

firmware: di_adv: Support multiple instances of qpu deinterlace at SD resolution
See: popcornmix/omxplayer#386

linux: rpi-ft5406: Use interruptible sleep to avoid high load reported
See: https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=125034

linux: dts: Added overlay for Adafruit PiTFT 2.8 capacitive touch screen
See: raspberrypi/linux#1192

linux: config: Add MCP320X
See: raspberrypi/linux#1189

linux: Build i2c_gpio module and add a device tree overlay to configure it
See: raspberrypi/linux#1183
@popcornmix
Copy link
Collaborator

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

@tgaryet
Copy link
Author

tgaryet commented Nov 7, 2015

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!

@tgaryet tgaryet closed this as completed Nov 7, 2015
pelwell pushed a commit that referenced this issue Dec 2, 2015
pelwell pushed a commit that referenced this issue Dec 2, 2015
pelwell pushed a commit that referenced this issue Dec 2, 2015
pelwell pushed a commit that referenced this issue Dec 8, 2015
pelwell pushed a commit that referenced this issue Dec 10, 2015
pelwell pushed a commit that referenced this issue Dec 10, 2015
pelwell pushed a commit that referenced this issue Dec 13, 2015
pelwell pushed a commit that referenced this issue Dec 15, 2015
pelwell pushed a commit that referenced this issue Dec 15, 2015
pelwell pushed a commit that referenced this issue Dec 15, 2015
popcornmix pushed a commit that referenced this issue Feb 20, 2016
neuschaefer pushed a commit to neuschaefer/raspi-binary-firmware that referenced this issue Feb 27, 2017
…m edges

See: raspberrypi#463

firmware: di_adv: Add config setting to add nop delays to shader
See: http://forum.kodi.tv/showthread.php?tid=231092&pid=2150605#pid2150605

firmware: vcilcs: Avoid a potential deadlock when very threaded
See: raspberrypi#449

firmware: vrf: Add spinlock around vrf acquire/release calls to avoid restoring an invalid p10 from ISR context

firmware: rpi_display: only ratelimit if the backlight is actually changed
See: raspberrypi/linux#1179

firmware: di_adv: Support multiple instances of qpu deinterlace at SD resolution
See: popcornmix/omxplayer#386

linux: rpi-ft5406: Use interruptible sleep to avoid high load reported
See: https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=125034

linux: dts: Added overlay for Adafruit PiTFT 2.8 capacitive touch screen
See: raspberrypi/linux#1192

linux: config: Add MCP320X
See: raspberrypi/linux#1189

linux: Build i2c_gpio module and add a device tree overlay to configure it
See: raspberrypi/linux#1183
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

No branches or pull requests

3 participants