Commit 4f325e8c authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Rob Herring
Browse files

dt-bindings: serial: Convert UniPhier UART to json-schema



Convert the UniPhier UART binding to DT schema format.

Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: default avatarRob Herring <robh@kernel.org>
parent 0ac17439
Loading
Loading
Loading
Loading
+46 −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/socionext,uniphier-uart.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: UniPhier UART controller

maintainers:
  - Masahiro Yamada <yamada.masahiro@socionext.com>

properties:
  compatible:
    const: socionext,uniphier-uart

  reg:
    maxItems: 1

  interrupts:
    maxItems: 1

  clocks:
    minItems: 1

  auto-flow-control:
    description: enable automatic flow control support.
    $ref: /schemas/types.yaml#/definitions/flag

required:
  - compatible
  - reg
  - interrupts
  - clocks

examples:
  - |
    aliases {
        serial0 = &serial0;
    };

    serial0: serial@54006800 {
        compatible = "socionext,uniphier-uart";
        reg = <0x54006800 0x40>;
        interrupts = <0 33 4>;
        clocks = <&uart_clk>;
    };
+0 −22
Original line number Diff line number Diff line
UniPhier UART controller

Required properties:
- compatible: should be "socionext,uniphier-uart".
- reg: offset and length of the register set for the device.
- interrupts: a single interrupt specifier.
- clocks: phandle to the input clock.

Optional properties:
-auto-flow-control: enable automatic flow control support.

Example:
	aliases {
		serial0 = &serial0;
	};

	serial0: serial@54006800 {
		compatible = "socionext,uniphier-uart";
		reg = <0x54006800 0x40>;
		interrupts = <0 33 4>;
		clocks = <&uart_clk>;
	};