mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 03:23:53 -04:00
Convert the Microchip PIC32 UART binding to DT schema. The binding was unclear there are 3 interrupts. The functions were determined from the driver. The 'cts-gpios' property is covered by serial.yaml schema. Signed-off-by: "Rob Herring (Arm)" <robh@kernel.org> Reviewed-by: Conor Dooley <conor.dooley@microchip.com> Link: https://lore.kernel.org/r/20250507154937.1603190-1-robh@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
54 lines
1.1 KiB
YAML
54 lines
1.1 KiB
YAML
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/serial/microchip,pic32mzda-uart.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Microchip PIC32 UART
|
|
|
|
maintainers:
|
|
- Andrei Pistirica <andrei.pistirica@microchip.com>
|
|
- Purna Chandra Mandal <purna.mandal@microchip.com>
|
|
|
|
allOf:
|
|
- $ref: /schemas/serial/serial.yaml#
|
|
|
|
properties:
|
|
compatible:
|
|
const: microchip,pic32mzda-uart
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
interrupts:
|
|
items:
|
|
- description: Fault
|
|
- description: RX
|
|
- description: TX
|
|
|
|
clocks:
|
|
maxItems: 1
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
- interrupts
|
|
- clocks
|
|
|
|
unevaluatedProperties: false
|
|
|
|
examples:
|
|
- |
|
|
#include <dt-bindings/interrupt-controller/irq.h>
|
|
#include <dt-bindings/clock/microchip,pic32-clock.h>
|
|
|
|
serial@1f822000 {
|
|
compatible = "microchip,pic32mzda-uart";
|
|
reg = <0x1f822000 0x50>;
|
|
interrupts = <112 IRQ_TYPE_LEVEL_HIGH>,
|
|
<113 IRQ_TYPE_LEVEL_HIGH>,
|
|
<114 IRQ_TYPE_LEVEL_HIGH>;
|
|
clocks = <&rootclk PB2CLK>;
|
|
cts-gpios = <&gpio1 15 0>;
|
|
};
|