Skip to content

Commit a589e21

Browse files
jan-kiszkalinusw
authored andcommitted
gpio: exar: Use correct property prefix and document bindings
The device-specific property should be prefixed with the vendor name, not "linux,", as Linus Walleij pointed out. Change this and document the bindings of this platform device. We didn't ship the old binding in a release yet. So we can still change it without breaking an official API. Fixes: 380b1e2 ("gpio-exar/8250-exar: Make set of exported GPIOs configurable") Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent cc9269f commit a589e21

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Exportable MPIO interface of Exar UART chips
2+
3+
Required properties of the device:
4+
- exar,first-pin: first exportable pins (0..15)
5+
- ngpios: number of exportable pins (1..16)

drivers/gpio/gpio-exar.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ static int gpio_exar_probe(struct platform_device *pdev)
132132
if (!p)
133133
return -ENOMEM;
134134

135-
ret = device_property_read_u32(&pdev->dev, "linux,first-pin",
135+
ret = device_property_read_u32(&pdev->dev, "exar,first-pin",
136136
&first_pin);
137137
if (ret)
138138
return ret;

drivers/tty/serial/8250/8250_exar.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ __xr17v35x_register_gpio(struct pci_dev *pcidev,
261261
}
262262

263263
static const struct property_entry exar_gpio_properties[] = {
264-
PROPERTY_ENTRY_U32("linux,first-pin", 0),
264+
PROPERTY_ENTRY_U32("exar,first-pin", 0),
265265
PROPERTY_ENTRY_U32("ngpios", 16),
266266
{ }
267267
};
@@ -326,7 +326,7 @@ static int iot2040_rs485_config(struct uart_port *port,
326326
}
327327

328328
static const struct property_entry iot2040_gpio_properties[] = {
329-
PROPERTY_ENTRY_U32("linux,first-pin", 10),
329+
PROPERTY_ENTRY_U32("exar,first-pin", 10),
330330
PROPERTY_ENTRY_U32("ngpios", 1),
331331
{ }
332332
};

0 commit comments

Comments
 (0)