From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leif Liddy Subject: ACPI: SPI slave device Date: Mon, 22 Feb 2016 20:37:25 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from mail-ig0-f171.google.com ([209.85.213.171]:37150 "EHLO mail-ig0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751236AbcBVTh0 convert rfc822-to-8bit (ORCPT ); Mon, 22 Feb 2016 14:37:26 -0500 Received: by mail-ig0-f171.google.com with SMTP id 5so89554495igt.0 for ; Mon, 22 Feb 2016 11:37:25 -0800 (PST) Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: linux-acpi@vger.kernel.org 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=3Dpxa2xx_spi_pci latency=3D0 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. =E2=80=93------------UDEV INFO--------------- P: /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/INT33C1:00/APP000D:00 E: DEVPATH=3D/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/INT33C1:00/APP= 000D:00 E: ID_VENDOR_FROM_DATABASE=3DApple Computer Inc E: MODALIAS=3Dacpi:APP000D:APPLE-SPI-TOPCASE: E: SUBSYSTEM=3Dacpi E: USEC_INITIALIZED=3D13574842 **INT33C1 is the SPI master controller **APP000D is the slave device The ACPI DSDT table (decoded): https://bugzilla.kernel.org/attachment.cgi?id=3D202141 The full bug report: https://bugzilla.kernel.org/show_bug.cgi?id=3D108331 Any help no matter how brief would be useful. Thanks, Leif Liddy -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" i= n the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html