Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: serial: Convert cirrus,ep7209-uart to DT schema

Convert the Cirrus EP7209 UART binding to DT schema. There is no user of
"cirrus,ep7312-uart" other than the example, so drop it. Drop the
"aliases" node part as it is not relevant to the schema. The modem
control GPIOs are covered by the serial.yaml schema and don't have to be
listed in the schema.

Signed-off-by: "Rob Herring (Arm)" <robh@kernel.org>
Reviewed-by: Thierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/r/20250506220021.2545820-1-robh@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Rob Herring (Arm) and committed by
Greg Kroah-Hartman
a34fc883 1dd62443

+56 -31
-31
Documentation/devicetree/bindings/serial/cirrus,clps711x-uart.txt
··· 1 - * Cirrus Logic CLPS711X Universal Asynchronous Receiver/Transmitter (UART) 2 - 3 - Required properties: 4 - - compatible: Should be "cirrus,ep7209-uart". 5 - - reg: Address and length of the register set for the device. 6 - - interrupts: Should contain UART TX and RX interrupt. 7 - - clocks: Should contain UART core clock number. 8 - - syscon: Phandle to SYSCON node, which contain UART control bits. 9 - 10 - Optional properties: 11 - - {rts,cts,dtr,dsr,rng,dcd}-gpios: specify a GPIO for RTS/CTS/DTR/DSR/RI/DCD 12 - line respectively. 13 - 14 - Note: Each UART port should have an alias correctly numbered 15 - in "aliases" node. 16 - 17 - Example: 18 - aliases { 19 - serial0 = &uart1; 20 - }; 21 - 22 - uart1: uart@80000480 { 23 - compatible = "cirrus,ep7312-uart","cirrus,ep7209-uart"; 24 - reg = <0x80000480 0x80>; 25 - interrupts = <12 13>; 26 - clocks = <&clks 11>; 27 - syscon = <&syscon1>; 28 - cts-gpios = <&sysgpio 0 GPIO_ACTIVE_LOW>; 29 - dsr-gpios = <&sysgpio 1 GPIO_ACTIVE_LOW>; 30 - dcd-gpios = <&sysgpio 2 GPIO_ACTIVE_LOW>; 31 - };
+56
Documentation/devicetree/bindings/serial/cirrus,ep7209-uart.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/serial/cirrus,ep7209-uart.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Cirrus Logic CLPS711X Universal Asynchronous Receiver/Transmitter (UART) 8 + 9 + maintainers: 10 + - Alexander Shiyan <shc_work@mail.ru> 11 + 12 + allOf: 13 + - $ref: /schemas/serial/serial.yaml# 14 + 15 + properties: 16 + compatible: 17 + const: cirrus,ep7209-uart 18 + 19 + reg: 20 + maxItems: 1 21 + 22 + interrupts: 23 + items: 24 + - description: UART TX interrupt 25 + - description: UART RX interrupt 26 + 27 + clocks: 28 + maxItems: 1 29 + 30 + syscon: 31 + description: Phandle to SYSCON node, which contains UART control bits. 32 + $ref: /schemas/types.yaml#/definitions/phandle 33 + 34 + required: 35 + - compatible 36 + - reg 37 + - interrupts 38 + - clocks 39 + - syscon 40 + 41 + unevaluatedProperties: false 42 + 43 + examples: 44 + - | 45 + #include <dt-bindings/gpio/gpio.h> 46 + 47 + serial@80000480 { 48 + compatible = "cirrus,ep7209-uart"; 49 + reg = <0x80000480 0x80>; 50 + interrupts = <12>, <13>; 51 + clocks = <&clks 11>; 52 + syscon = <&syscon1>; 53 + cts-gpios = <&sysgpio 0 GPIO_ACTIVE_LOW>; 54 + dsr-gpios = <&sysgpio 1 GPIO_ACTIVE_LOW>; 55 + dcd-gpios = <&sysgpio 2 GPIO_ACTIVE_LOW>; 56 + };