0

I am looking for how I can configure a kernel devices ports, I have a MAX3421 usb host shield and I found and compiled the kernel driver for it ( http://lxr.free-electrons.com/source/drivers/usb/host/max3421-hcd.c?v=4.4 ) But am unable to figure out how to tell the module what ports to use for the spi

  • Distro: Raspbian ( Raspberry pi variant of debian )
  • Kernel version : 4.9.22+
  • module : max3421-hcd

Any help would be greatly appriciated

a link to the shield https://www.sparkfun.com/products/9947

I also have the ability to take 5v to 3.3

4
  • 1
    Could you edit your question to link to the shield and explain how you are planning to use the shield (in broad terms) as I don't understand what it is used for? Will the (presumably) 5V shield work with the 3V3 Pi GPIO? Commented Apr 19, 2017 at 15:01
  • 1
    What do you mean by what ports to use? MAX3421E seems to have a single USB port and a single SPI interface. Commented Apr 19, 2017 at 15:16
  • how does it know which spi port to run over? Commented Apr 19, 2017 at 15:18
  • 1
    Chatting with some people on FreeNode, they mentioned I have to create a Device Tree binding Commented Apr 19, 2017 at 15:41

1 Answer 1

0

From pinout.xyz:

SPI0 pins in BCM mode are: 9, 10, 11 + 7/8

SPI0 pins in WiringPi are: 12, 13, 14 + 10/11

1
  • 1
    This is not an answer to the question. Please read it again more carefully. Commented Apr 19, 2017 at 20:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.