From: Alexander Stein <alexander.stein-93q1YBGzJSMe9JSWTWOYM3xStJ4P+DSV@public.gmane.org>
To: linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: x86: Add SPI slaves to PCIe SPI master?
Date: Wed, 11 Jan 2017 16:08:41 +0100 [thread overview]
Message-ID: <3363354.jZif7TNsT8@ws-stein> (raw)
Hi,
I have a customer board using Baytrail E3805 CPU. I want to access a chip
attached to SPI using spidev. but for this the slave has to be attached.
This is the corresponding lspci entry:
> 00:1e.5 Serial bus controller [0c80]: Intel Corporation Atom Processor
Z36xxx/Z37xxx Series LPIO1 SPI Controller (rev 11)
PCIe vendor and product ID is 8086:0f0e
I tried using the following entry in APCI DSDT as a subnode to the SPI device:
> Device (TAMP)
> {
> Name (_ADR, 1)
> Name (_CID, "SPT0001") // Dummy name for spidev
> Method (_CRS, 0, Serialized) // _CRS: Current Resource Settings
> {
> Name (UBUF, ResourceTemplate ()
> {
> SPISerialBus
> (
> 1, //Slave select CS0 (_ADR)
> PolarityLow, //Polarity of CS0 output(_DPL)
> FourWireMode, //(_MOD)
> 8, //8-bit frame(_LEN)
> ControllerInitiated, //(_SLV)
> 2000000, //Speed Hz (_SPE)
> ClockPolarityLow, //(_POL)
> ClockPhaseFirst, //(_PHA)
> "\\_SB.SPI1", //Controller
> )
> })
> Return (UBUF)
> }
>
> Method (_STA, 0, NotSerialized) // _STA: Status
> {
> Return (0x0F)
> }
> }
Apparently this only works when the device is probed by ACPI but not when
using PCIe (driver: pxa2xx_spi_pci). So I am wondering: How can I add a slave
to this PCIe spi master.
Best regards,
Alexander
--
Dipl.-Inf. Alexander Stein
SYS TEC electronic GmbH
alexander.stein-93q1YBGzJSMe9JSWTWOYM3xStJ4P+DSV@public.gmane.org
Legal and Commercial Address:
Am Windrad 2
08468 Heinsdorfergrund
Germany
Office: +49 (0) 3765 38600-0
Fax: +49 (0) 3765 38600-4100
Managing Directors:
Director Technology/CEO: Dipl.-Phys. Siegmar Schmidt;
Director Commercial Affairs/COO: Dipl. Ing. (FH) Armin von Collrepp
Commercial Registry:
Amtsgericht Chemnitz, HRB 28082; USt.-Id Nr. DE150534010
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next reply other threads:[~2017-01-11 15:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-11 15:08 Alexander Stein [this message]
2017-01-12 11:48 ` x86: Add SPI slaves to PCIe SPI master? Andy Shevchenko
[not found] ` <CAHp75VePTOd9WhkOTxW6GwKE2X3VR39J-7Song-P6iKsi7V6Ww-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-01-12 12:01 ` Mika Westerberg
[not found] ` <20170112120111.GY2330-3PARRvDOhMZrdx17CPfAsdBPR1lH4CV8@public.gmane.org>
2017-01-12 13:39 ` Alexander Stein
2017-01-12 13:47 ` Mika Westerberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3363354.jZif7TNsT8@ws-stein \
--to=alexander.stein-93q1ybgzjsme9jswtwoym3xstj4p+dsv@public.gmane.org \
--cc=linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.