Skip to contentSkip to conversation

serial: sc16is7xx: Enable use on ACPI-enabled platforms

PATCH New Andy Shevchenko 1 participant 2 messages Mar 18, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

v2 cover serial: sc16is7xx: Enable use on ACPI-enabled platforms

Enable SC16IS7xx to be usable on ACPI-enabled platforms.

In v2:
- rebase on top of latest linux-next
- fix typo in title of patch 1
- explain when the new property can be used
- append Tested-by tags

Andy Shevchenko (4):
dt-bindings: sc16is7xx: Add alternative clock-frequency property
serial: sc16is7xx: Respect clock-frequency property
serial: sc16is7xx: Switch to use device_get_match_data()
serial: sc16is7xx: Drop of_match_ptr() use

 .../bindings/serial/nxp,sc16is7xx.txt         |  2 ++
 drivers/tty/serial/sc16is7xx.c                | 34 +++++++++----------
 2 files changed, 19 insertions(+), 17 deletions(-)
Signature · 1 line
2.20.1
#1 lore raw

PATCH v2 1/4 dt-bindings: sc16is7xx: Add alternative clock-frequency property

For the platforms which have no clock provider for the sc16is7xx type of UART, introduce an alternative clock-frequency property which would be used instead.

---
 Documentation/devicetree/bindings/serial/nxp,sc16is7xx.txt | 2 ++
 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/serial/nxp,sc16is7xx.txt +2 -0
index e7921a8e276b..c1091a923a89 100644
@@ -12,6 +12,8 @@ Required properties:
 - reg: I2C address of the SC16IS7xx device.
 - interrupts: Should contain the UART interrupt
 - clocks: Reference to the IC source clock.
+	OR (when there is no clock provider visible to the platform)
+- clock-frequency: The source clock frequency for the IC.
 
 Optional properties:
 - gpio-controller: Marks the device node as a GPIO controller.
Signature · 1 line
2.20.1