All of lore.kernel.org
 help / color / mirror / Atom feed
* ACPI SPI slave device
@ 2016-02-23  1:54 Leif Liddy
  2016-02-23  7:38 ` Mika Westerberg
  0 siblings, 1 reply; 24+ messages in thread
From: Leif Liddy @ 2016-02-23  1:54 UTC (permalink / raw)
  To: linux-acpi

I'm new to kernel development, and there's few fairly large gaps in my
understanding about
how drivers are meant to work, but hopefully you guys can point me in
the right direction.

The macbook8,1 (early 2015) has a keyboard/trackpad that is seen by
ACPI as a single SPI slave device.
It appears the only method to access the keyboard/trackpad is via
the SPI bus --my goal is the get keyboard/trackpad working.

I've recently submitted a kernel patch that binds the spi-pxa2xx-pci
driver to the Wildcat Point-LP Serial IO GSPI Controller. With this
patch, the SPI controller appears to be working...
http://www.spinics.net/lists/linux-spi/msg06867.html

----------LSHW INFO------------
*-serial:1
             description: Serial bus controller
             product: Wildcat Point-LP Serial IO GSPI Controller #1
             vendor: Intel Corporation
             physical id: 15.4
             bus info: pci@0000:00:15.4
             version: 03
             width: 32 bits
             clock: 33MHz
             capabilities: pm cap_list
             configuration: driver=pxa2xx_spi_pci latency=0
             resources: irq:21 memory:c181a000-c181afff


What I'm having trouble with is sorting out how to register the SPI
slave device with the SPI controller.
**no slave devices are found when I modprobe the driver.
I'm not sure if this is something that should be done by the spi
driver (by calling an acpi function), or whether I must manually do
it.

–------------UDEV INFO---------------

P: /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/INT33C1:00/APP000D:00
E: DEVPATH=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/INT33C1:00/APP000D:00
E: ID_VENDOR_FROM_DATABASE=Apple Computer Inc
E: MODALIAS=acpi:APP000D:APPLE-SPI-TOPCASE:
E: SUBSYSTEM=acpi
E: USEC_INITIALIZED=13574842

**INT33C1 is the SPI master controller
**APP000D is the slave device

----------------SPI modules loaded-----------

spi_pxa2xx_platform    24576  0
spi_pxa2xx_pci         16384  0


The ACPI DSDT table (decoded):
https://bugzilla.kernel.org/attachment.cgi?id=202141


The full bug report:
https://bugzilla.kernel.org/show_bug.cgi?id=108331


ANY help would be appreciated

Leif Liddy
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 24+ messages in thread
* ACPI: SPI slave device
@ 2016-02-22 19:37 Leif Liddy
  0 siblings, 0 replies; 24+ messages in thread
From: Leif Liddy @ 2016-02-22 19:37 UTC (permalink / raw)
  To: linux-acpi

I'm extremely new to kernel development, and I'm reaching out to the
ACPI community in an effort to gain a better understanding of the
issue I'm experiencing.

The macbook8,1 (early 2015) has a keyboard/trackpad that is seen by
ACPI as a single SPI slave device.
The appears the only method the access the keyboard/trackpad is via
the SPI bus, and that's what I'm trying to get working.

I've recently submitted a kernel patch that binds the spi-pxa2xx
driver to the Wildcat Point-LP Serial IO GSPI Controller. With this
patch, the SPI controller appears to be working.
http://www.spinics.net/lists/linux-spi/msg06867.html

----------LSHW INFO------------
*-serial:1
             description: Serial bus controller
             product: Wildcat Point-LP Serial IO GSPI Controller #1
             vendor: Intel Corporation
             physical id: 15.4
             bus info: pci@0000:00:15.4
             version: 03
             width: 32 bits
             clock: 33MHz
             capabilities: pm cap_list
             configuration: driver=pxa2xx_spi_pci latency=0
             resources: irq:21 memory:c181a000-c181afff


I'm now attempting to write an SPI protocol driver, but I have no idea
on how to reference the SPI slave device as it only exists in the ACPI
name space.
I'm not sure if I should be using a platform or an acpi driver to
register/enable it.

–------------UDEV INFO---------------

P: /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/INT33C1:00/APP000D:00
E: DEVPATH=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/INT33C1:00/APP000D:00
E: ID_VENDOR_FROM_DATABASE=Apple Computer Inc
E: MODALIAS=acpi:APP000D:APPLE-SPI-TOPCASE:
E: SUBSYSTEM=acpi
E: USEC_INITIALIZED=13574842

**INT33C1 is the SPI master controller
**APP000D is the slave device


The ACPI DSDT table (decoded):
https://bugzilla.kernel.org/attachment.cgi?id=202141


The full bug report:
https://bugzilla.kernel.org/show_bug.cgi?id=108331


Any help no matter how brief would be useful.


Thanks,

Leif Liddy
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2016-03-10 18:12 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-23  1:54 ACPI SPI slave device Leif Liddy
2016-02-23  7:38 ` Mika Westerberg
2016-02-23 14:18   ` Leif Liddy
2016-02-23 15:02     ` Mika Westerberg
2016-02-23 15:32       ` Mika Westerberg
2016-02-23 20:30         ` Leif Liddy
2016-02-29  8:21           ` Mika Westerberg
2016-02-29 17:21             ` Leif Liddy
2016-03-01 15:42               ` Leif Liddy
2016-03-01 16:07                 ` Lukas Wunner
2016-03-01 23:33                   ` Leif Liddy
2016-03-02  3:13                     ` Leif Liddy
2016-03-02 11:42                       ` Lukas Wunner
2016-03-02 13:07                         ` Leif Liddy
2016-03-02 14:37                           ` Leif Liddy
2016-03-03 11:47                             ` Lukas Wunner
     [not found]                               ` <20160303114740.GA24132-JFq808J9C/izQB+pC5nmwQ@public.gmane.org>
2016-03-03 17:45                                 ` Matthew Garrett
2016-03-03 18:55                                   ` Lukas Wunner
2016-03-03 19:12                                     ` Matthew Garrett
2016-03-08 14:40                                       ` Leif Liddy
     [not found]                                         ` <CAAbRKOu8UWrn5bhxjrHx5cykFWOChyxr_ZCWK=R4nYCc11cvsw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-03-09 12:36                                           ` Lukas Wunner
     [not found]                                             ` <20160309123625.GA26143-JFq808J9C/izQB+pC5nmwQ@public.gmane.org>
2016-03-10 18:12                                               ` Leif Liddy
2016-03-03 17:48                                 ` Matthew Garrett
  -- strict thread matches above, loose matches on Subject: below --
2016-02-22 19:37 ACPI: " Leif Liddy

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.