Commit a34fc883 authored by Rob Herring (Arm)'s avatar Rob Herring (Arm) Committed by Greg Kroah-Hartman
Browse files

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: default avatar"Rob Herring (Arm)" <robh@kernel.org>
Reviewed-by: default avatarThierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/r/20250506220021.2545820-1-robh@kernel.org


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1dd62443
Loading
Loading
Loading
Loading
+0 −31
Original line number Diff line number Diff line
* Cirrus Logic CLPS711X Universal Asynchronous Receiver/Transmitter (UART)

Required properties:
- compatible: Should be "cirrus,ep7209-uart".
- reg: Address and length of the register set for the device.
- interrupts: Should contain UART TX and RX interrupt.
- clocks: Should contain UART core clock number.
- syscon: Phandle to SYSCON node, which contain UART control bits.

Optional properties:
- {rts,cts,dtr,dsr,rng,dcd}-gpios: specify a GPIO for RTS/CTS/DTR/DSR/RI/DCD
  line respectively.

Note: Each UART port should have an alias correctly numbered
in "aliases" node.

Example:
	aliases {
		serial0 = &uart1;
	};

	uart1: uart@80000480 {
		compatible = "cirrus,ep7312-uart","cirrus,ep7209-uart";
		reg = <0x80000480 0x80>;
		interrupts = <12 13>;
		clocks = <&clks 11>;
		syscon = <&syscon1>;
		cts-gpios = <&sysgpio 0 GPIO_ACTIVE_LOW>;
		dsr-gpios = <&sysgpio 1 GPIO_ACTIVE_LOW>;
		dcd-gpios = <&sysgpio 2 GPIO_ACTIVE_LOW>;
	};
+56 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/serial/cirrus,ep7209-uart.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Cirrus Logic CLPS711X Universal Asynchronous Receiver/Transmitter (UART)

maintainers:
  - Alexander Shiyan <shc_work@mail.ru>

allOf:
  - $ref: /schemas/serial/serial.yaml#

properties:
  compatible:
    const: cirrus,ep7209-uart

  reg:
    maxItems: 1

  interrupts:
    items:
      - description: UART TX interrupt
      - description: UART RX interrupt

  clocks:
    maxItems: 1

  syscon:
    description: Phandle to SYSCON node, which contains UART control bits.
    $ref: /schemas/types.yaml#/definitions/phandle

required:
  - compatible
  - reg
  - interrupts
  - clocks
  - syscon

unevaluatedProperties: false

examples:
  - |
    #include <dt-bindings/gpio/gpio.h>

    serial@80000480 {
        compatible = "cirrus,ep7209-uart";
        reg = <0x80000480 0x80>;
        interrupts = <12>, <13>;
        clocks = <&clks 11>;
        syscon = <&syscon1>;
        cts-gpios = <&sysgpio 0 GPIO_ACTIVE_LOW>;
        dsr-gpios = <&sysgpio 1 GPIO_ACTIVE_LOW>;
        dcd-gpios = <&sysgpio 2 GPIO_ACTIVE_LOW>;
    };