element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum PiFaceCAD 2, 4.1.6+ and new device tree
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 0 replies
  • Subscribers 704 subscribers
  • Views 250 views
  • Users 0 members are here
  • pifacecad
  • 4.1.6
Related

PiFaceCAD 2, 4.1.6+ and new device tree

e14 Contributor
e14 Contributor over 11 years ago

I built a timing device using a B+ and PiFaceCAD 2 which has been working for a while but I'm now looking to expanding it and adding additional relays. To provide a development environment I brought a second board and added another PiFaceCAD that I have.

 

When I  installed raspbian and did the updates/upgrades before cloning the code from github it would not work. I then wrote some code, based on the PiFace examples to explore the button operation I found that there was something going on around the interrupts. This lead me to look at the SPI driver that the PiFaceCAD uses. I greped dmesg and found that the old one was on an irq whereas the new one seemed to be on GPIO pins.

 

(old - 3.18.11+ kernel)

bcm2708_spi 20204000.spi: master is unqueued, this is deprecated
bcm2708_spi 20204000.spi: SPI Controller at 0x20204000 (irq 80)

 

(new - 4.1.6+ kernel)

spi spi0.0: setting up native-CS0 as GPIO 8
spi spi0.1: setting up native-CS1 as GPIO 7

 

Grepping /var/log/kern.log I found that the new built was using interrupts until the kernel was updated. I validated this by reinstalling and cloning the module again which worked. This lead to done some googling around the bcm2708 device which lead me to establish that there were device tree changes (see noted below from http://forum.kodi.tv/showthread.php?pid=2016570).

 

This could be over written and I’ve managed to get this to work by using in dtoverlay=spi-bcm2708 /boot/config.txt.

 

The install notes for PiFaceCAD make no mention of this and wonder if there is a patch for the drivers that will with the 4.1.x kernels?

 

 

With dtparam=spi=on /dev/spidev0.{0,1} show up fine and lsmod/dmesg show that the new driver is used

Code:

OpenELEC:~ # lsmod | grep spi
spi_bcm2835 3659  0
OpenELEC:~ # dmesg | grep -i spi
[    5.608210] spi spi0.0: setting up native-CS0 as GPIO 8
[    5.618668] spi spi0.1: setting up native-CS1 as GPIO 7


When also adding dtoverlay=spi-bcm2708 to use the old driver the device nodes show up fine again and lsmod/dmesg output is also as expected

Code:

OpenELEC:~ # lsmod | grep -i spi
spi_bcm2708 4682  0
OpenELEC:~ # dmesg | grep spi
[    5.563134] bcm2708_spi 3f204000.spi: master is unqueued, this is deprecated
[    5.605692] bcm2708_spi 3f204000.spi: SPI Controller at 0x3f204000 (irq 80)

  • Sign in to reply
  • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube