linux-kernel-test/drivers/nfc
Christophe Ricard 2a19697505 nfc: st21nfca: i2c: Change ST21NFCA_GPIO_NAME_RESET to match DT
Since
commit 10cf4899f8 ("gpiolib: tighten up ACPI legacy gpio lookups")

If _DSD properties are available in an ACPI node, we are not
allowed to fallback to _CRS data to retrieve gpio properties.
This was causing us to fail if uicc-present and/or ese-present
are defined.

To be consistent with devicetree change ST_NCI_GPIO_NAME_RESET
content to reset so that acpi_find_gpio in drivers/gpio/gpiolib.c
will look for reset-gpios. In the mean time the ACPI table needs
to be fixed as follow:

Device (NFC1)
{
    Name (_ADR, Zero)  // _ADR: Address
    Name (_HID, "SMO2100")  // _HID: Hardware ID
    Name (_CID, "SMO2100")  // _CID: Compatible ID
    Name (_DDN, "SMO NFC")  // _DDN: DOS Device Name
    Name (_UID, One)  // _UID: Unique ID
    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,
             }
        })
        Name (_DSD, Package (0x02)
        {
             ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301") /* Device Properties for _DSD */,
             Package (0x03)
             {
                 Package (0x02) { "uicc-present", 1 },
                 Package (0x02) { "ese-present", 1 },
                 Package (0x02) { "enable-gpios", Package(0x04) { ^NFC1, 1, 0, 0} },
             }
        })
        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>
2016-05-04 01:28:47 +02:00
..
fdp nfc: fdp: Move i2c client irq checking 2015-12-29 19:06:21 +01:00
microread NFC: microread: Drop platform data header file 2016-03-09 23:25:45 +01:00
nfcmrvl NFC: nfcmrvl: avoid being stuck on FW dnld timeout 2015-11-05 00:32:25 +01:00
nxp-nci nfc: Drop owner assignment from i2c_driver 2016-05-01 23:38:14 +02:00
pn533 NFC: pn533: add I2C phy driver 2016-04-09 23:53:20 +02:00
pn544 nfc: Drop owner assignment from i2c_driver 2016-05-01 23:38:14 +02:00
s3fwrn5 nfc: s3fwrn5: Use shash 2016-01-27 20:36:09 +08:00
st21nfca nfc: st21nfca: i2c: Change ST21NFCA_GPIO_NAME_RESET to match DT 2016-05-04 01:28:47 +02:00
st95hf NFC: st95hf: Fix build error 2015-12-29 19:06:12 +01:00
st-nci nfc: st-nci: spi: Change ST_NCI_GPIO_NAME_RESET to match DT 2016-05-04 01:27:24 +02:00
Kconfig NFC: pn533: Separate physical layer from the core implementation 2016-04-09 23:53:15 +02:00
Makefile NFC: pn533: Separate physical layer from the core implementation 2016-04-09 23:53:15 +02: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
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