kernel_optimize_test/drivers/nfc
Christophe Ricard 60cd6d8931 nfc: st-nci: Add support for acpi probing for spi device.
Add support for acpi probing.
SMO2101 is used for st21nfcb

It has been tested with the following acpi node on Minnowboard:
Note: Remove uicc-present or ese-present Package if one of 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 ()
		{
			SpiSerialBus (0, PolarityLow, FourWireMode, 8,
				      ControllerInitiated, 4000000, ClockPolarityLow,
				      ClockPhaseFirst, "\\_SB.SPI1",
				      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_.SPI1.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>
2015-12-29 19:06:16 +01:00
..
fdp NFC: Add Intel Fields Peak NFC solution driver 2015-10-25 20:29:16 +01:00
microread char/misc drivers for 4.4-rc1 2015-11-04 22:15:15 -08:00
nfcmrvl NFC: nfcmrvl: avoid being stuck on FW dnld timeout 2015-11-05 00:32:25 +01:00
nxp-nci nfc: nxp-nci: Remove #ifdef CONFIG_OF 2015-12-29 19:06:14 +01:00
pn544 nfc: pn544: Remove #ifdef CONFIG_OF 2015-12-29 19:06:14 +01:00
s3fwrn5 nfc: s3fwrn5: constify s3fwrn5_phy_ops structures 2015-12-20 18:32:39 +01:00
st-nci nfc: st-nci: Add support for acpi probing for spi device. 2015-12-29 19:06:16 +01:00
st21nfca nfc: st21nfca: Add macro for gpio name 2015-12-29 19:06:16 +01:00
st95hf NFC: st95hf: Fix build error 2015-12-29 19:06:12 +01:00
Kconfig NFC: Add STMicroelectronics ST95HF driver 2015-12-29 19:06:11 +01:00
Makefile NFC: Add STMicroelectronics ST95HF driver 2015-12-29 19:06:11 +01:00
mei_phy.c mei: bus: use mei_cldev_ prefix for the API functions 2015-09-20 19:31:10 -07:00
mei_phy.h mei: bus: complete variable rename of type struct mei_cl_device 2015-09-20 19:31:09 -07:00
nfcsim.c NFC: add rx delay sysfs parameter for nfcsim workqueue 2015-12-21 00:07:27 +01:00
nfcwilink.c NFC: nfcwilink: Drop a useless static qualifier 2015-10-19 20:06:13 +02:00
pn533.c NFC: netlink: Add mode parameter to deactivate_target functions 2015-10-27 03:55:12 +01:00
port100.c NFC: logging neatening 2015-04-07 12:05:12 +02:00
trf7970a.c NFC: trf7970a: use to_spi_device 2015-12-29 19:06:12 +01:00