All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/4] serial: sc16is7xx: Enable use on ACPI-enabled platforms
@ 2019-03-18 10:29 Andy Shevchenko
  2019-03-18 10:29 ` [PATCH v2 1/4] dt-bindings: sc16is7xx: Add alternative clock-frequency property Andy Shevchenko
  0 siblings, 1 reply; 2+ messages in thread
From: Andy Shevchenko @ 2019-03-18 10:29 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Jiri Slaby, linux-serial, Georgii Staroselskii
  Cc: Andy Shevchenko, Rob Herring, devicetree

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

Cc: Rob Herring <robh+dt@kernel.org>,
Cc: devicetree@vger.kernel.org

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(-)

-- 
2.20.1

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH v2 1/4] dt-bindings: sc16is7xx: Add alternative clock-frequency property
  2019-03-18 10:29 [PATCH v2 0/4] serial: sc16is7xx: Enable use on ACPI-enabled platforms Andy Shevchenko
@ 2019-03-18 10:29 ` Andy Shevchenko
  0 siblings, 0 replies; 2+ messages in thread
From: Andy Shevchenko @ 2019-03-18 10:29 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Jiri Slaby, linux-serial, Georgii Staroselskii
  Cc: Andy Shevchenko, Rob Herring, devicetree

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.

Cc: Rob Herring <robh+dt@kernel.org>
Cc: devicetree@vger.kernel.org
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 Documentation/devicetree/bindings/serial/nxp,sc16is7xx.txt | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Documentation/devicetree/bindings/serial/nxp,sc16is7xx.txt b/Documentation/devicetree/bindings/serial/nxp,sc16is7xx.txt
index e7921a8e276b..c1091a923a89 100644
--- a/Documentation/devicetree/bindings/serial/nxp,sc16is7xx.txt
+++ b/Documentation/devicetree/bindings/serial/nxp,sc16is7xx.txt
@@ -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.
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-03-18 10:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-18 10:29 [PATCH v2 0/4] serial: sc16is7xx: Enable use on ACPI-enabled platforms Andy Shevchenko
2019-03-18 10:29 ` [PATCH v2 1/4] dt-bindings: sc16is7xx: Add alternative clock-frequency property Andy Shevchenko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.