nfcmrvl.txt 1.5 KB
Newer Older
V
Vincent Cuissard 已提交
1 2 3
* Marvell International Ltd. NCI NFC Controller

Required properties:
V
Vincent Cuissard 已提交
4 5 6
- compatible: Should be:
  - "mrvl,nfc-uart" for UART devices
  - "mrvl,nfc-i2c" for I2C devices
V
Vincent Cuissard 已提交
7 8 9 10 11 12 13 14 15 16 17

Optional SoC specific properties:
- pinctrl-names: Contains only one value - "default".
- pintctrl-0: Specifies the pin control groups used for this controller.
- reset-n-io: Output GPIO pin used to reset the chip (active low).
- hci-muxed: Specifies that the chip is muxing NCI over HCI frames.

Optional UART-based chip specific properties:
- flow-control: Specifies that the chip is using RTS/CTS.
- break-control: Specifies that the chip needs specific break management.

V
Vincent Cuissard 已提交
18 19 20 21 22 23
Optional I2C-based chip specific properties:
- i2c-int-falling: Specifies that the chip read event shall be trigged on
  		   falling edge.
- i2c-int-rising: Specifies that the chip read event shall be trigged on
  		  rising edge.

V
Vincent Cuissard 已提交
24 25 26 27 28 29 30 31 32 33 34 35 36 37
Example (for ARM-based BeagleBoard Black with 88W8887 on UART5):

&uart5 {
	status = "okay";

	nfcmrvluart: nfcmrvluart@5 {
		compatible = "mrvl,nfc-uart";

		reset-n-io = <&gpio3 16 0>;

		hci-muxed;
		flow-control;
        }
};
V
Vincent Cuissard 已提交
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61


Example (for ARM-based BeagleBoard Black with 88W8887 on I2C1):

&i2c1 {
	status = "okay";
	clock-frequency = <400000>;

	nfcmrvli2c0: i2c@1 {
		compatible = "mrvl,nfc-i2c";

		reg = <0x8>;

		/* I2C INT configuration */
		interrupt-parent = <&gpio3>;
		interrupts = <21 0>;

		/* I2C INT trigger configuration */
		i2c-int-rising;

		/* Reset IO */
		reset-n-io = <&gpio3 19 0>;
	};
};