]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - Documentation/devicetree/bindings/net/nfc/nfcmrvl.txt
Merge remote-tracking branch 'nvdimm/libnvdimm-for-next'
[karo-tx-linux.git] / Documentation / devicetree / bindings / net / nfc / nfcmrvl.txt
1 * Marvell International Ltd. NCI NFC Controller
2
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
8
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.
14
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.
18
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.
24
25 Example (for ARM-based BeagleBoard Black with 88W8887 on UART5):
26
27 &uart5 {
28         status = "okay";
29
30         nfcmrvluart: nfcmrvluart@5 {
31                 compatible = "marvell,nfc-uart";
32
33                 reset-n-io = <&gpio3 16 0>;
34
35                 hci-muxed;
36                 flow-control;
37         }
38 };
39
40
41 Example (for ARM-based BeagleBoard Black with 88W8887 on I2C1):
42
43 &i2c1 {
44         status = "okay";
45         clock-frequency = <400000>;
46
47         nfcmrvli2c0: i2c@1 {
48                 compatible = "marvell,nfc-i2c";
49
50                 reg = <0x8>;
51
52                 /* I2C INT configuration */
53                 interrupt-parent = <&gpio3>;
54                 interrupts = <21 0>;
55
56                 /* I2C INT trigger configuration */
57                 i2c-int-rising;
58
59                 /* Reset IO */
60                 reset-n-io = <&gpio3 19 0>;
61         };
62 };
63
64
65 Example (for ARM-based BeagleBoard Black on SPI0):
66
67 &spi0 {
68
69         mrvlnfcspi0: spi@0 {
70                 compatible = "marvell,nfc-spi";
71
72                 reg = <0>;
73
74                 /* SPI Bus configuration */
75                 spi-max-frequency = <3000000>;
76                 spi-cpha;
77                 spi-cpol;
78
79                 /* SPI INT configuration */
80                 interrupt-parent = <&gpio1>;
81                 interrupts = <17 0>;
82
83                 /* Reset IO */
84                 reset-n-io = <&gpio3 19 0>;
85         };
86 };