-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Add overlay for mcp3008 adc #1818
Conversation
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.
A few minor nit-picks, otherwise this looks good.
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
mcp3008_20: mcp3008@2 { |
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.
I think this is a cut-and-paste error - the node should be mcp3008@0
.
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
mcp3008_21: mcp3008@2 { |
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.
And this should be mcp3008@1
.
target = <&spi0>; | ||
__dormant__ { | ||
status = "okay"; | ||
#address-cells = <1>; |
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.
Since you will be making some other changes, you might as well fix the indentation on the #address-cells
and #size-cells
throughout the overlay - they use spaces where everything else is tabs.
Typos and tabs are fixed now. Sorry about that. |
No problem - thanks for the overlay. |
Some example usage: SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-1-present SPI0.0 and SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-1-present SPI1.0 dtparam=spi=on dtoverlay=spi1-1cs dtoverlay=mcp3008:spi1-0-present SPI1.2 dtparam=spi=on dtoverlay=spi1-1cs:cs0_pin=16 dtoverlay=mcp3008:spi1-0-present SPI1.0 and SPI1.1 dtoverlay=spi1-2cs dtoverlay=mcp3008:spi1-0-present,spi1-1-present Changing the speed SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-0-speed=2000000
Some example usage: SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-1-present SPI0.0 and SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-1-present SPI1.0 dtparam=spi=on dtoverlay=spi1-1cs dtoverlay=mcp3008:spi1-0-present SPI1.2 dtparam=spi=on dtoverlay=spi1-1cs:cs0_pin=16 dtoverlay=mcp3008:spi1-0-present SPI1.0 and SPI1.1 dtoverlay=spi1-2cs dtoverlay=mcp3008:spi1-0-present,spi1-1-present Changing the speed SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-0-speed=2000000
kernel: config: add slcan kernel module See: raspberrypi/linux#1819 kernel: Add overlay for mcp3008 adc See: raspberrypi/linux#1818 firmware: arm_display: Fix limit of aspect ratio of two to one See: https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=5851&start=475#p1101545 firmware: raspicam: Fixed dummy error: SIGUSR2 should capture and exit even if verbose is false See: raspberrypi/userland#372 firmware: leds: Allow controlled re-initialisation firmware: platform: Always bit-bash the SMPS and GPIO expander firmware: i2c_gpio: Remove pointless latch get/put firmware: platform: Remove unused/incorrect CEC_OSD_NAME define
kernel: config: add slcan kernel module See: raspberrypi/linux#1819 kernel: Add overlay for mcp3008 adc See: raspberrypi/linux#1818 firmware: arm_display: Fix limit of aspect ratio of two to one See: https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=5851&start=475#p1101545 firmware: raspicam: Fixed dummy error: SIGUSR2 should capture and exit even if verbose is false See: raspberrypi/userland#372 firmware: leds: Allow controlled re-initialisation firmware: platform: Always bit-bash the SMPS and GPIO expander firmware: i2c_gpio: Remove pointless latch get/put firmware: platform: Remove unused/incorrect CEC_OSD_NAME define
Some example usage: SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-1-present SPI0.0 and SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-1-present SPI1.0 dtparam=spi=on dtoverlay=spi1-1cs dtoverlay=mcp3008:spi1-0-present SPI1.2 dtparam=spi=on dtoverlay=spi1-1cs:cs0_pin=16 dtoverlay=mcp3008:spi1-0-present SPI1.0 and SPI1.1 dtoverlay=spi1-2cs dtoverlay=mcp3008:spi1-0-present,spi1-1-present Changing the speed SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-0-speed=2000000
Some example usage: SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-1-present SPI0.0 and SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-1-present SPI1.0 dtparam=spi=on dtoverlay=spi1-1cs dtoverlay=mcp3008:spi1-0-present SPI1.2 dtparam=spi=on dtoverlay=spi1-1cs:cs0_pin=16 dtoverlay=mcp3008:spi1-0-present SPI1.0 and SPI1.1 dtoverlay=spi1-2cs dtoverlay=mcp3008:spi1-0-present,spi1-1-present Changing the speed SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-0-speed=2000000
Some example usage: SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-1-present SPI0.0 and SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-1-present SPI1.0 dtparam=spi=on dtoverlay=spi1-1cs dtoverlay=mcp3008:spi1-0-present SPI1.2 dtparam=spi=on dtoverlay=spi1-1cs:cs0_pin=16 dtoverlay=mcp3008:spi1-0-present SPI1.0 and SPI1.1 dtoverlay=spi1-2cs dtoverlay=mcp3008:spi1-0-present,spi1-1-present Changing the speed SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-0-speed=2000000
Some example usage: SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-1-present SPI0.0 and SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-1-present SPI1.0 dtparam=spi=on dtoverlay=spi1-1cs dtoverlay=mcp3008:spi1-0-present SPI1.2 dtparam=spi=on dtoverlay=spi1-1cs:cs0_pin=16 dtoverlay=mcp3008:spi1-0-present SPI1.0 and SPI1.1 dtoverlay=spi1-2cs dtoverlay=mcp3008:spi1-0-present,spi1-1-present Changing the speed SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-0-speed=2000000
Some example usage: SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-1-present SPI0.0 and SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-1-present SPI1.0 dtparam=spi=on dtoverlay=spi1-1cs dtoverlay=mcp3008:spi1-0-present SPI1.2 dtparam=spi=on dtoverlay=spi1-1cs:cs0_pin=16 dtoverlay=mcp3008:spi1-0-present SPI1.0 and SPI1.1 dtoverlay=spi1-2cs dtoverlay=mcp3008:spi1-0-present,spi1-1-present Changing the speed SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-0-speed=2000000
Some example usage: SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-1-present SPI0.0 and SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-1-present SPI1.0 dtparam=spi=on dtoverlay=spi1-1cs dtoverlay=mcp3008:spi1-0-present SPI1.2 dtparam=spi=on dtoverlay=spi1-1cs:cs0_pin=16 dtoverlay=mcp3008:spi1-0-present SPI1.0 and SPI1.1 dtoverlay=spi1-2cs dtoverlay=mcp3008:spi1-0-present,spi1-1-present Changing the speed SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-0-speed=2000000
Some example usage: SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-1-present SPI0.0 and SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-1-present SPI1.0 dtparam=spi=on dtoverlay=spi1-1cs dtoverlay=mcp3008:spi1-0-present SPI1.2 dtparam=spi=on dtoverlay=spi1-1cs:cs0_pin=16 dtoverlay=mcp3008:spi1-0-present SPI1.0 and SPI1.1 dtoverlay=spi1-2cs dtoverlay=mcp3008:spi1-0-present,spi1-1-present Changing the speed SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-0-speed=2000000
Some example usage: SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-1-present SPI0.0 and SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-1-present SPI1.0 dtparam=spi=on dtoverlay=spi1-1cs dtoverlay=mcp3008:spi1-0-present SPI1.2 dtparam=spi=on dtoverlay=spi1-1cs:cs0_pin=16 dtoverlay=mcp3008:spi1-0-present SPI1.0 and SPI1.1 dtoverlay=spi1-2cs dtoverlay=mcp3008:spi1-0-present,spi1-1-present Changing the speed SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-0-speed=2000000
Some example usage: SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-1-present SPI0.0 and SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-1-present SPI1.0 dtparam=spi=on dtoverlay=spi1-1cs dtoverlay=mcp3008:spi1-0-present SPI1.2 dtparam=spi=on dtoverlay=spi1-1cs:cs0_pin=16 dtoverlay=mcp3008:spi1-0-present SPI1.0 and SPI1.1 dtoverlay=spi1-2cs dtoverlay=mcp3008:spi1-0-present,spi1-1-present Changing the speed SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-0-speed=2000000
Some example usage: SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-1-present SPI0.0 and SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-1-present SPI1.0 dtparam=spi=on dtoverlay=spi1-1cs dtoverlay=mcp3008:spi1-0-present SPI1.2 dtparam=spi=on dtoverlay=spi1-1cs:cs0_pin=16 dtoverlay=mcp3008:spi1-0-present SPI1.0 and SPI1.1 dtoverlay=spi1-2cs dtoverlay=mcp3008:spi1-0-present,spi1-1-present Changing the speed SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-0-speed=2000000
Some example usage: SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-1-present SPI0.0 and SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-1-present SPI1.0 dtparam=spi=on dtoverlay=spi1-1cs dtoverlay=mcp3008:spi1-0-present SPI1.2 dtparam=spi=on dtoverlay=spi1-1cs:cs0_pin=16 dtoverlay=mcp3008:spi1-0-present SPI1.0 and SPI1.1 dtoverlay=spi1-2cs dtoverlay=mcp3008:spi1-0-present,spi1-1-present Changing the speed SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-0-speed=2000000
Some example usage: SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-1-present SPI0.0 and SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-1-present SPI1.0 dtparam=spi=on dtoverlay=spi1-1cs dtoverlay=mcp3008:spi1-0-present SPI1.2 dtparam=spi=on dtoverlay=spi1-1cs:cs0_pin=16 dtoverlay=mcp3008:spi1-0-present SPI1.0 and SPI1.1 dtoverlay=spi1-2cs dtoverlay=mcp3008:spi1-0-present,spi1-1-present Changing the speed SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-0-speed=2000000
Some example usage: SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-1-present SPI0.0 and SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-1-present SPI1.0 dtparam=spi=on dtoverlay=spi1-1cs dtoverlay=mcp3008:spi1-0-present SPI1.2 dtparam=spi=on dtoverlay=spi1-1cs:cs0_pin=16 dtoverlay=mcp3008:spi1-0-present SPI1.0 and SPI1.1 dtoverlay=spi1-2cs dtoverlay=mcp3008:spi1-0-present,spi1-1-present Changing the speed SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-0-speed=2000000
kernel: config: add slcan kernel module See: raspberrypi/linux#1819 kernel: Add overlay for mcp3008 adc See: raspberrypi/linux#1818 firmware: arm_display: Fix limit of aspect ratio of two to one See: https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=5851&start=475#p1101545 firmware: raspicam: Fixed dummy error: SIGUSR2 should capture and exit even if verbose is false See: raspberrypi/userland#372 firmware: leds: Allow controlled re-initialisation firmware: platform: Always bit-bash the SMPS and GPIO expander firmware: i2c_gpio: Remove pointless latch get/put firmware: platform: Remove unused/incorrect CEC_OSD_NAME define
Some example usage: SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-1-present SPI0.0 and SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-1-present SPI1.0 dtparam=spi=on dtoverlay=spi1-1cs dtoverlay=mcp3008:spi1-0-present SPI1.2 dtparam=spi=on dtoverlay=spi1-1cs:cs0_pin=16 dtoverlay=mcp3008:spi1-0-present SPI1.0 and SPI1.1 dtoverlay=spi1-2cs dtoverlay=mcp3008:spi1-0-present,spi1-1-present Changing the speed SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-0-speed=2000000
Some example usage: SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-1-present SPI0.0 and SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-1-present SPI1.0 dtparam=spi=on dtoverlay=spi1-1cs dtoverlay=mcp3008:spi1-0-present SPI1.2 dtparam=spi=on dtoverlay=spi1-1cs:cs0_pin=16 dtoverlay=mcp3008:spi1-0-present SPI1.0 and SPI1.1 dtoverlay=spi1-2cs dtoverlay=mcp3008:spi1-0-present,spi1-1-present Changing the speed SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-0-speed=2000000
Some example usage: SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-1-present SPI0.0 and SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-1-present SPI1.0 dtparam=spi=on dtoverlay=spi1-1cs dtoverlay=mcp3008:spi1-0-present SPI1.2 dtparam=spi=on dtoverlay=spi1-1cs:cs0_pin=16 dtoverlay=mcp3008:spi1-0-present SPI1.0 and SPI1.1 dtoverlay=spi1-2cs dtoverlay=mcp3008:spi1-0-present,spi1-1-present Changing the speed SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-0-speed=2000000
Some example usage: SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-1-present SPI0.0 and SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-1-present SPI1.0 dtparam=spi=on dtoverlay=spi1-1cs dtoverlay=mcp3008:spi1-0-present SPI1.2 dtparam=spi=on dtoverlay=spi1-1cs:cs0_pin=16 dtoverlay=mcp3008:spi1-0-present SPI1.0 and SPI1.1 dtoverlay=spi1-2cs dtoverlay=mcp3008:spi1-0-present,spi1-1-present Changing the speed SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-0-speed=2000000
Some example usage: SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-1-present SPI0.0 and SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-1-present SPI1.0 dtparam=spi=on dtoverlay=spi1-1cs dtoverlay=mcp3008:spi1-0-present SPI1.2 dtparam=spi=on dtoverlay=spi1-1cs:cs0_pin=16 dtoverlay=mcp3008:spi1-0-present SPI1.0 and SPI1.1 dtoverlay=spi1-2cs dtoverlay=mcp3008:spi1-0-present,spi1-1-present Changing the speed SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-0-speed=2000000
Some example usage: SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-1-present SPI0.0 and SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-1-present SPI1.0 dtparam=spi=on dtoverlay=spi1-1cs dtoverlay=mcp3008:spi1-0-present SPI1.2 dtparam=spi=on dtoverlay=spi1-1cs:cs0_pin=16 dtoverlay=mcp3008:spi1-0-present SPI1.0 and SPI1.1 dtoverlay=spi1-2cs dtoverlay=mcp3008:spi1-0-present,spi1-1-present Changing the speed SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-0-speed=2000000
Some example usage: SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-1-present SPI0.0 and SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-1-present SPI1.0 dtparam=spi=on dtoverlay=spi1-1cs dtoverlay=mcp3008:spi1-0-present SPI1.2 dtparam=spi=on dtoverlay=spi1-1cs:cs0_pin=16 dtoverlay=mcp3008:spi1-0-present SPI1.0 and SPI1.1 dtoverlay=spi1-2cs dtoverlay=mcp3008:spi1-0-present,spi1-1-present Changing the speed SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-0-speed=2000000
Some example usage: SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-1-present SPI0.0 and SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-1-present SPI1.0 dtparam=spi=on dtoverlay=spi1-1cs dtoverlay=mcp3008:spi1-0-present SPI1.2 dtparam=spi=on dtoverlay=spi1-1cs:cs0_pin=16 dtoverlay=mcp3008:spi1-0-present SPI1.0 and SPI1.1 dtoverlay=spi1-2cs dtoverlay=mcp3008:spi1-0-present,spi1-1-present Changing the speed SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-0-speed=2000000
Some example usage: SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-1-present SPI0.0 and SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-1-present SPI1.0 dtparam=spi=on dtoverlay=spi1-1cs dtoverlay=mcp3008:spi1-0-present SPI1.2 dtparam=spi=on dtoverlay=spi1-1cs:cs0_pin=16 dtoverlay=mcp3008:spi1-0-present SPI1.0 and SPI1.1 dtoverlay=spi1-2cs dtoverlay=mcp3008:spi1-0-present,spi1-1-present Changing the speed SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-0-speed=2000000
Some example usage: SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-1-present SPI0.0 and SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-1-present SPI1.0 dtparam=spi=on dtoverlay=spi1-1cs dtoverlay=mcp3008:spi1-0-present SPI1.2 dtparam=spi=on dtoverlay=spi1-1cs:cs0_pin=16 dtoverlay=mcp3008:spi1-0-present SPI1.0 and SPI1.1 dtoverlay=spi1-2cs dtoverlay=mcp3008:spi1-0-present,spi1-1-present Changing the speed SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-0-speed=2000000
Some example usage: SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-1-present SPI0.0 and SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-1-present SPI1.0 dtparam=spi=on dtoverlay=spi1-1cs dtoverlay=mcp3008:spi1-0-present SPI1.2 dtparam=spi=on dtoverlay=spi1-1cs:cs0_pin=16 dtoverlay=mcp3008:spi1-0-present SPI1.0 and SPI1.1 dtoverlay=spi1-2cs dtoverlay=mcp3008:spi1-0-present,spi1-1-present Changing the speed SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-0-speed=2000000
Some example usage: SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-1-present SPI0.0 and SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-1-present SPI1.0 dtparam=spi=on dtoverlay=spi1-1cs dtoverlay=mcp3008:spi1-0-present SPI1.2 dtparam=spi=on dtoverlay=spi1-1cs:cs0_pin=16 dtoverlay=mcp3008:spi1-0-present SPI1.0 and SPI1.1 dtoverlay=spi1-2cs dtoverlay=mcp3008:spi1-0-present,spi1-1-present Changing the speed SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-0-speed=2000000
Some example usage: SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-1-present SPI0.0 and SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-1-present SPI1.0 dtparam=spi=on dtoverlay=spi1-1cs dtoverlay=mcp3008:spi1-0-present SPI1.2 dtparam=spi=on dtoverlay=spi1-1cs:cs0_pin=16 dtoverlay=mcp3008:spi1-0-present SPI1.0 and SPI1.1 dtoverlay=spi1-2cs dtoverlay=mcp3008:spi1-0-present,spi1-1-present Changing the speed SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-0-speed=2000000
Some example usage: SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-1-present SPI0.0 and SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-1-present SPI1.0 dtparam=spi=on dtoverlay=spi1-1cs dtoverlay=mcp3008:spi1-0-present SPI1.2 dtparam=spi=on dtoverlay=spi1-1cs:cs0_pin=16 dtoverlay=mcp3008:spi1-0-present SPI1.0 and SPI1.1 dtoverlay=spi1-2cs dtoverlay=mcp3008:spi1-0-present,spi1-1-present Changing the speed SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-0-speed=2000000
Some example usage: SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-1-present SPI0.0 and SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-1-present SPI1.0 dtparam=spi=on dtoverlay=spi1-1cs dtoverlay=mcp3008:spi1-0-present SPI1.2 dtparam=spi=on dtoverlay=spi1-1cs:cs0_pin=16 dtoverlay=mcp3008:spi1-0-present SPI1.0 and SPI1.1 dtoverlay=spi1-2cs dtoverlay=mcp3008:spi1-0-present,spi1-1-present Changing the speed SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-0-speed=2000000
Some example usage: SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-1-present SPI0.0 and SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-1-present SPI1.0 dtparam=spi=on dtoverlay=spi1-1cs dtoverlay=mcp3008:spi1-0-present SPI1.2 dtparam=spi=on dtoverlay=spi1-1cs:cs0_pin=16 dtoverlay=mcp3008:spi1-0-present SPI1.0 and SPI1.1 dtoverlay=spi1-2cs dtoverlay=mcp3008:spi1-0-present,spi1-1-present Changing the speed SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-0-speed=2000000
Some example usage: SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-1-present SPI0.0 and SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-1-present SPI1.0 dtparam=spi=on dtoverlay=spi1-1cs dtoverlay=mcp3008:spi1-0-present SPI1.2 dtparam=spi=on dtoverlay=spi1-1cs:cs0_pin=16 dtoverlay=mcp3008:spi1-0-present SPI1.0 and SPI1.1 dtoverlay=spi1-2cs dtoverlay=mcp3008:spi1-0-present,spi1-1-present Changing the speed SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-0-speed=2000000
Some example usage: SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-1-present SPI0.0 and SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-1-present SPI1.0 dtparam=spi=on dtoverlay=spi1-1cs dtoverlay=mcp3008:spi1-0-present SPI1.2 dtparam=spi=on dtoverlay=spi1-1cs:cs0_pin=16 dtoverlay=mcp3008:spi1-0-present SPI1.0 and SPI1.1 dtoverlay=spi1-2cs dtoverlay=mcp3008:spi1-0-present,spi1-1-present Changing the speed SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-0-speed=2000000
Some example usage: SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-1-present SPI0.0 and SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-1-present SPI1.0 dtparam=spi=on dtoverlay=spi1-1cs dtoverlay=mcp3008:spi1-0-present SPI1.2 dtparam=spi=on dtoverlay=spi1-1cs:cs0_pin=16 dtoverlay=mcp3008:spi1-0-present SPI1.0 and SPI1.1 dtoverlay=spi1-2cs dtoverlay=mcp3008:spi1-0-present,spi1-1-present Changing the speed SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-0-speed=2000000
Some example usage: SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-1-present SPI0.0 and SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-1-present SPI1.0 dtparam=spi=on dtoverlay=spi1-1cs dtoverlay=mcp3008:spi1-0-present SPI1.2 dtparam=spi=on dtoverlay=spi1-1cs:cs0_pin=16 dtoverlay=mcp3008:spi1-0-present SPI1.0 and SPI1.1 dtoverlay=spi1-2cs dtoverlay=mcp3008:spi1-0-present,spi1-1-present Changing the speed SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-0-speed=2000000
Some example usage: SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-1-present SPI0.0 and SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-1-present SPI1.0 dtparam=spi=on dtoverlay=spi1-1cs dtoverlay=mcp3008:spi1-0-present SPI1.2 dtparam=spi=on dtoverlay=spi1-1cs:cs0_pin=16 dtoverlay=mcp3008:spi1-0-present SPI1.0 and SPI1.1 dtoverlay=spi1-2cs dtoverlay=mcp3008:spi1-0-present,spi1-1-present Changing the speed SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-0-speed=2000000
Some example usage: SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-1-present SPI0.0 and SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-1-present SPI1.0 dtparam=spi=on dtoverlay=spi1-1cs dtoverlay=mcp3008:spi1-0-present SPI1.2 dtparam=spi=on dtoverlay=spi1-1cs:cs0_pin=16 dtoverlay=mcp3008:spi1-0-present SPI1.0 and SPI1.1 dtoverlay=spi1-2cs dtoverlay=mcp3008:spi1-0-present,spi1-1-present Changing the speed SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-0-speed=2000000
Some example usage: SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-1-present SPI0.0 and SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-1-present SPI1.0 dtparam=spi=on dtoverlay=spi1-1cs dtoverlay=mcp3008:spi1-0-present SPI1.2 dtparam=spi=on dtoverlay=spi1-1cs:cs0_pin=16 dtoverlay=mcp3008:spi1-0-present SPI1.0 and SPI1.1 dtoverlay=spi1-2cs dtoverlay=mcp3008:spi1-0-present,spi1-1-present Changing the speed SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-0-speed=2000000
Some example usage: SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-1-present SPI0.0 and SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-1-present SPI1.0 dtparam=spi=on dtoverlay=spi1-1cs dtoverlay=mcp3008:spi1-0-present SPI1.2 dtparam=spi=on dtoverlay=spi1-1cs:cs0_pin=16 dtoverlay=mcp3008:spi1-0-present SPI1.0 and SPI1.1 dtoverlay=spi1-2cs dtoverlay=mcp3008:spi1-0-present,spi1-1-present Changing the speed SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-0-speed=2000000
Some example usage: SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-1-present SPI0.0 and SPI0.1 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-1-present SPI1.0 dtparam=spi=on dtoverlay=spi1-1cs dtoverlay=mcp3008:spi1-0-present SPI1.2 dtparam=spi=on dtoverlay=spi1-1cs:cs0_pin=16 dtoverlay=mcp3008:spi1-0-present SPI1.0 and SPI1.1 dtoverlay=spi1-2cs dtoverlay=mcp3008:spi1-0-present,spi1-1-present Changing the speed SPI0.0 dtparam=spi=on dtoverlay=mcp3008:spi0-0-present,spi0-0-speed=2000000
The default 1.6MHz speed in the dts gives me 1MHz SCLK watching with a scope. Not sure why. 1MHz is I think the preferred default running at 3.3.v. Changing speeds works. The mcp320x kernel module is already part of the defconfigs.
Some example usage:
SPI0.0
dtparam=spi=on
dtoverlay=mcp3008:spi0-0-present
SPI0.1
dtparam=spi=on
dtoverlay=mcp3008:spi0-1-present
SPI0.0 and SPI0.1
dtparam=spi=on
dtoverlay=mcp3008:spi0-0-present,spi0-1-present
SPI1.0
dtparam=spi=on
dtoverlay=spi1-1cs
dtoverlay=mcp3008:spi1-0-present
SPI1.2
dtparam=spi=on
dtoverlay=spi1-1cs:cs0_pin=16
dtoverlay=mcp3008:spi1-0-present
SPI1.0 and SPI1.1
dtoverlay=spi1-2cs
dtoverlay=mcp3008:spi1-0-present,spi1-1-present
Changing the speed
SPI0.0
dtparam=spi=on
dtoverlay=mcp3008:spi0-0-present,spi0-0-speed=2000000