Skip to content

Commit d8e018c

Browse files
Vincent CuissardSamuel Ortiz
authored andcommitted
NFC: nfcmrvl: update device tree bindings for Marvell NFC
Align NFC bindgins to use marvell instead of mrvl. Signed-off-by: Vincent Cuissard <cuissard@marvell.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
1 parent caf6e49 commit d8e018c

File tree

4 files changed

+15
-11
lines changed

4 files changed

+15
-11
lines changed

Documentation/devicetree/bindings/net/nfc/nfcmrvl.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
Required properties:
44
- compatible: Should be:
5-
- "mrvl,nfc-uart" for UART devices
6-
- "mrvl,nfc-i2c" for I2C devices
7-
- "mrvl,nfc-spi" for SPI devices
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
88

99
Optional SoC specific properties:
1010
- pinctrl-names: Contains only one value - "default".
@@ -28,7 +28,7 @@ Example (for ARM-based BeagleBoard Black with 88W8887 on UART5):
2828
status = "okay";
2929

3030
nfcmrvluart: nfcmrvluart@5 {
31-
compatible = "mrvl,nfc-uart";
31+
compatible = "marvell,nfc-uart";
3232

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

@@ -45,7 +45,7 @@ Example (for ARM-based BeagleBoard Black with 88W8887 on I2C1):
4545
clock-frequency = <400000>;
4646

4747
nfcmrvli2c0: i2c@1 {
48-
compatible = "mrvl,nfc-i2c";
48+
compatible = "marvell,nfc-i2c";
4949

5050
reg = <0x8>;
5151

@@ -67,7 +67,7 @@ Example (for ARM-based BeagleBoard Black on SPI0):
6767
&spi0 {
6868

6969
mrvlnfcspi0: spi@0 {
70-
compatible = "mrvl,nfc-spi";
70+
compatible = "marvell,nfc-spi";
7171

7272
reg = <0>;
7373

drivers/nfc/nfcmrvl/i2c.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ static int nfcmrvl_i2c_remove(struct i2c_client *client)
261261

262262

263263
static const struct of_device_id of_nfcmrvl_i2c_match[] = {
264-
{ .compatible = "mrvl,nfc-i2c", },
264+
{ .compatible = "marvell,nfc-i2c", },
265265
{},
266266
};
267267
MODULE_DEVICE_TABLE(of, of_nfcmrvl_i2c_match);

drivers/nfc/nfcmrvl/spi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ static int nfcmrvl_spi_remove(struct spi_device *spi)
199199
}
200200

201201
static const struct of_device_id of_nfcmrvl_spi_match[] = {
202-
{ .compatible = "mrvl,nfc-spi", },
202+
{ .compatible = "marvell,nfc-spi", },
203203
{},
204204
};
205205
MODULE_DEVICE_TABLE(of, of_nfcmrvl_spi_match);

drivers/nfc/nfcmrvl/uart.c

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,13 @@ static int nfcmrvl_uart_parse_dt(struct device_node *node,
7575
struct device_node *matched_node;
7676
int ret;
7777

78-
matched_node = of_find_compatible_node(node, NULL, "mrvl,nfc-uart");
79-
if (!matched_node)
80-
return -ENODEV;
78+
matched_node = of_find_compatible_node(node, NULL, "marvell,nfc-uart");
79+
if (!matched_node) {
80+
matched_node = of_find_compatible_node(node, NULL,
81+
"mrvl,nfc-uart");
82+
if (!matched_node)
83+
return -ENODEV;
84+
}
8185

8286
ret = nfcmrvl_parse_dt(matched_node, pdata);
8387
if (ret < 0) {

0 commit comments

Comments
 (0)