summaryrefslogtreecommitdiffstats
path: root/drivers/nfc/st-nci/spi.c
diff options
context:
space:
mode:
authorChristophe Ricard2015-12-23 23:45:09 +0100
committerSamuel Ortiz2015-12-29 19:06:16 +0100
commited6a2f3fb770acc18bba8c9bc86f09e95d7fc641 (patch)
tree672e449e9fce4a0005fa8b71806255a2aafc1db0 /drivers/nfc/st-nci/spi.c
parentnfc: st21nfca: Add macro for gpio name (diff)
downloadkernel-qcow2-linux-ed6a2f3fb770acc18bba8c9bc86f09e95d7fc641.tar.gz
kernel-qcow2-linux-ed6a2f3fb770acc18bba8c9bc86f09e95d7fc641.tar.xz
kernel-qcow2-linux-ed6a2f3fb770acc18bba8c9bc86f09e95d7fc641.zip
nfc: st-nci: Add support for acpi probing for i2c device.
Add support for acpi probing. SMO2101 is used for st21nfcb SMO2102 is used for st21nfcc It has been tested with the following acpi node on Minnowboard: Note: Remove uicc-present or ese-present Package if one them is not supported. Device (NFC1) { Name (_ADR, Zero) // _ADR: Address Name (_HID, "SMO2101") // _HID: Hardware ID Name (_CID, "SMO2101") // _CID: Compatible ID Name (_DDN, "SMO NFC") // _DDN: DOS Device Name Name (_UID, One) // _UID: Unique ID Name (_DSD, Package (0x02) { /* Device Properties for _DSD */ ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), Package (0x02) { Package (0x02) { "uicc-present", 1 }, Package (0x02) { "ese-present", 1 } } }) Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings { Name (SBUF, ResourceTemplate () { I2cSerialBus (0x0008, ControllerInitiated, 400000, AddressingMode7Bit, "\\_SB.I2C7", 0x00, ResourceConsumer, ,) GpioInt (Edge, ActiveHigh, ExclusiveAndWake, PullNone, 0x0000, "\\_SB.GPO2", 0x00, ResourceConsumer, ,) { // Pin list 0x0001 } GpioIo (Exclusive, PullDefault, 0x0000, 0x0000, IoRestrictionOutputOnly, "\\_SB.GPO2", 0x00, ResourceConsumer, ,) { // Pin list 0x0002, } }) Return (SBUF) /* \_SB_.I2C7.NFC1._CRS.SBUF */ } Method (_STA, 0, NotSerialized) // _STA: Status { Return (0x0F) } } Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/nfc/st-nci/spi.c')
0 files changed, 0 insertions, 0 deletions