Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c04c674f authored by Robert Baldyga's avatar Robert Baldyga Committed by Samuel Ortiz
Browse files

nfc: s3fwrn5: Add driver for Samsung S3FWRN5 NFC Chip



Add driver for Samsung S3FWRN5 NFC controller.
S3FWRN5 is using NCI protocol and I2C communication interface.

Signed-off-by: default avatarRobert Baldyga <r.baldyga@samsung.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent 025a0cb8
Loading
Loading
Loading
Loading
+27 −0
Original line number Original line Diff line number Diff line
* Samsung S3FWRN5 NCI NFC Controller

Required properties:
- compatible: Should be "samsung,s3fwrn5-i2c".
- reg: address on the bus
- interrupt-parent: phandle for the interrupt gpio controller
- interrupts: GPIO interrupt to which the chip is connected
- s3fwrn5,en-gpios: Output GPIO pin used for enabling/disabling the chip
- s3fwrn5,fw-gpios: Output GPIO pin used to enter firmware mode and
  sleep/wakeup control

Example:

&hsi2c_4 {
	status = "okay";
	s3fwrn5@27 {
		compatible = "samsung,s3fwrn5-i2c";

		reg = <0x27>;

		interrupt-parent = <&gpa1>;
		interrupts = <3 0 0>;

		s3fwrn5,en-gpios = <&gpf1 4 0>;
		s3fwrn5,fw-gpios = <&gpj0 2 0>;
	};
};
+6 −0
Original line number Original line Diff line number Diff line
@@ -8871,6 +8871,12 @@ L: linux-media@vger.kernel.org
S:	Supported
S:	Supported
F:	drivers/media/i2c/s5k5baf.c
F:	drivers/media/i2c/s5k5baf.c


SAMSUNG S3FWRN5 NFC DRIVER
M:	Robert Baldyga <r.baldyga@samsung.com>
L:	linux-nfc@lists.01.org (moderated for non-subscribers)
S:	Supported
F:	drivers/nfc/s3fwrn5

SAMSUNG SOC CLOCK DRIVERS
SAMSUNG SOC CLOCK DRIVERS
M:	Sylwester Nawrocki <s.nawrocki@samsung.com>
M:	Sylwester Nawrocki <s.nawrocki@samsung.com>
M:	Tomasz Figa <tomasz.figa@gmail.com>
M:	Tomasz Figa <tomasz.figa@gmail.com>
+1 −0
Original line number Original line Diff line number Diff line
@@ -74,4 +74,5 @@ source "drivers/nfc/nfcmrvl/Kconfig"
source "drivers/nfc/st21nfca/Kconfig"
source "drivers/nfc/st21nfca/Kconfig"
source "drivers/nfc/st-nci/Kconfig"
source "drivers/nfc/st-nci/Kconfig"
source "drivers/nfc/nxp-nci/Kconfig"
source "drivers/nfc/nxp-nci/Kconfig"
source "drivers/nfc/s3fwrn5/Kconfig"
endmenu
endmenu
+1 −0
Original line number Original line Diff line number Diff line
@@ -14,3 +14,4 @@ obj-$(CONFIG_NFC_TRF7970A) += trf7970a.o
obj-$(CONFIG_NFC_ST21NFCA)  	+= st21nfca/
obj-$(CONFIG_NFC_ST21NFCA)  	+= st21nfca/
obj-$(CONFIG_NFC_ST_NCI)	+= st-nci/
obj-$(CONFIG_NFC_ST_NCI)	+= st-nci/
obj-$(CONFIG_NFC_NXP_NCI)	+= nxp-nci/
obj-$(CONFIG_NFC_NXP_NCI)	+= nxp-nci/
obj-$(CONFIG_NFC_S3FWRN5)	+= s3fwrn5/
+19 −0
Original line number Original line Diff line number Diff line
config NFC_S3FWRN5
	tristate
	---help---
	  Core driver for Samsung S3FWRN5 NFC chip. Contains core utilities
	  of chip. It's intended to be used by PHYs to avoid duplicating lots
	  of common code.

config NFC_S3FWRN5_I2C
	tristate "Samsung S3FWRN5 I2C support"
	depends on NFC_NCI && I2C
	select NFC_S3FWRN5
	default n
	---help---
	  This module adds support for an I2C interface to the S3FWRN5 chip.
	  Select this if your platform is using the I2C bus.

	  To compile this driver as a module, choose m here. The module will
	  be called s3fwrn5_i2c.ko.
	  Say N if unsure.
Loading