treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / Documentation / devicetree / bindings / net / nfc / nfcmrvl.txt
blobc9b35251bb20d933f892bca518a7dc6752fa4c49
1 * Marvell International Ltd. NCI NFC Controller
3 Required properties:
4 - compatible: Should be:
5   - "marvell,nfc-uart" or "mrvl,nfc-uart" for UART devices
6   - "marvell,nfc-i2c" for I2C devices
7   - "marvell,nfc-spi" for SPI devices
9 Optional SoC specific properties:
10 - pinctrl-names: Contains only one value - "default".
11 - pintctrl-0: Specifies the pin control groups used for this controller.
12 - reset-n-io: Output GPIO pin used to reset the chip (active low).
13 - hci-muxed: Specifies that the chip is muxing NCI over HCI frames.
15 Optional UART-based chip specific properties:
16 - flow-control: Specifies that the chip is using RTS/CTS.
17 - break-control: Specifies that the chip needs specific break management.
19 Optional I2C-based chip specific properties:
20 - i2c-int-falling: Specifies that the chip read event shall be trigged on
21                    falling edge.
22 - i2c-int-rising: Specifies that the chip read event shall be trigged on
23                   rising edge.
25 Example (for ARM-based BeagleBoard Black with 88W8887 on UART5):
27 &uart5 {
29         nfcmrvluart: nfcmrvluart@5 {
30                 compatible = "marvell,nfc-uart";
32                 reset-n-io = <&gpio3 16 0>;
34                 hci-muxed;
35                 flow-control;
36         }
40 Example (for ARM-based BeagleBoard Black with 88W8887 on I2C1):
42 &i2c1 {
43         clock-frequency = <400000>;
45         nfcmrvli2c0: i2c@1 {
46                 compatible = "marvell,nfc-i2c";
48                 reg = <0x8>;
50                 /* I2C INT configuration */
51                 interrupt-parent = <&gpio3>;
52                 interrupts = <21 0>;
54                 /* I2C INT trigger configuration */
55                 i2c-int-rising;
57                 /* Reset IO */
58                 reset-n-io = <&gpio3 19 0>;
59         };
63 Example (for ARM-based BeagleBoard Black on SPI0):
65 &spi0 {
67         mrvlnfcspi0: spi@0 {
68                 compatible = "marvell,nfc-spi";
70                 reg = <0>;
72                 /* SPI Bus configuration */
73                 spi-max-frequency = <3000000>;
74                 spi-cpha;
75                 spi-cpol;
77                 /* SPI INT configuration */
78                 interrupt-parent = <&gpio1>;
79                 interrupts = <17 0>;
81                 /* Reset IO */
82                 reset-n-io = <&gpio3 19 0>;
83         };