[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240912-test-v1-18-458fa57c8ccf@analog.com>
Date: Thu, 12 Sep 2024 19:25:03 +0100
From: Arturs Artamonovs via B4 Relay <devnull+arturs.artamonovs.analog.com@...nel.org>
To: Catalin Marinas <catalin.marinas@....com>,
Will Deacon <will@...nel.org>, Greg Malysa <greg.malysa@...esys.com>,
Philipp Zabel <p.zabel@...gutronix.de>, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>,
Utsav Agarwal <Utsav.Agarwal@...log.com>,
Michael Turquette <mturquette@...libre.com>,
Stephen Boyd <sboyd@...nel.org>, Linus Walleij <linus.walleij@...aro.org>,
Bartosz Golaszewski <brgl@...ev.pl>, Thomas Gleixner <tglx@...utronix.de>,
Andi Shyti <andi.shyti@...nel.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Jiri Slaby <jirislaby@...nel.org>, Arnd Bergmann <arnd@...db.de>,
Olof Johansson <olof@...om.net>, soc@...nel.org
Cc: linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
devicetree@...r.kernel.org, linux-clk@...r.kernel.org,
linux-gpio@...r.kernel.org, linux-i2c@...r.kernel.org,
linux-serial@...r.kernel.org,
Arturs Artamonovs <arturs.artamonovs@...log.com>, adsp-linux@...log.com,
Arturs Artamonovs <Arturs.Artamonovs@...log.com>,
Nathan Barrett-Morrison <nathan.morrison@...esys.com>
Subject: [PATCH 18/21] dt-bindings: serial: adi,uart4: add adi,uart4 driver
documentation
From: Arturs Artamonovs <arturs.artamonovs@...log.com>
Add serial driver bindings.
Signed-off-by: Arturs Artamonovs <Arturs.Artamonovs@...log.com>
Signed-off-by: Utsav Agarwal <Utsav.Agarwal@...log.com>
Co-developed-by: Nathan Barrett-Morrison <nathan.morrison@...esys.com>
Signed-off-by: Nathan Barrett-Morrison <nathan.morrison@...esys.com>
Co-developed-by: Greg Malysa <greg.malysa@...esys.com>
Signed-off-by: Greg Malysa <greg.malysa@...esys.com>
---
.../devicetree/bindings/serial/adi,uart.yaml | 85 ++++++++++++++++++++++
1 file changed, 85 insertions(+)
diff --git a/Documentation/devicetree/bindings/serial/adi,uart.yaml b/Documentation/devicetree/bindings/serial/adi,uart.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..de58059efa7e21acaa5b7f4984ffadca18f7f53a
--- /dev/null
+++ b/Documentation/devicetree/bindings/serial/adi,uart.yaml
@@ -0,0 +1,85 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/serial/adi,uart4.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Analog Devices UART Driver for SC5XX-family processors
+
+maintainers:
+ - Arturs Artamonovs <arturs.artamonovs@...log.com>
+ - Utsav Agarwal <Utsav.Agarwal@...log.com>
+
+description: |
+ Analog Devices UART Driver for SC59X-family processors
+
+properties:
+ compatible:
+ enum:
+ - adi,uart
+
+ reg:
+ maxItems: 1
+
+ dmas:
+ maxItems: 2
+ minItems: 2
+ description: TX and RX DMA cluster numbers
+
+ dma-names:
+ maxItems: 2
+ minItems: 2
+ description: DMA channel names (tx and rx)
+
+ clocks:
+ maxItems: 1
+ description: Clock being used for UART
+
+ clock-names:
+ maxItems: 1
+ description: Clock name (sclk0)
+
+ interrupt-names:
+ minItems: 3
+ maxItems: 3
+ description: Interrupt names (tx + rx + status)
+
+ interrupts:
+ minItems: 3
+ maxItems: 3
+ description: GIC interrupt numbers
+
+ adi,use-edbo:
+ type: boolean
+ description: Enable divide by one in divisor
+
+required:
+ - compatible
+ - reg
+ - clocks
+ - clock-names
+ - interrupt-names
+ - interrupts
+
+additionalProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/interrupt-controller/arm-gic.h>
+ #include <dt-bindings/interrupt-controller/irq.h>
+ #include <dt-bindings/clock/adi-sc5xx-clock.h>
+
+ uart0: uart@...03000 {
+ compatible = "adi,uart";
+ reg = <0x31003000 0x40>;
+ clocks = <&clk ADSP_SC598_CLK_CGU0_SCLK0>;
+ clock-names = "sclk0";
+ interrupt-parent = <&gic>;
+ interrupt-names = "tx", "rx", "status";
+ interrupts = <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 139 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>;
+ adi,use-edbo;
+ status = "disabled";
+ };
+
--
2.25.1
Powered by blists - more mailing lists