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

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: serial: Convert microchip,pic32mzda-uart to DT schema

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>

authored by

Rob Herring (Arm) and committed by
Greg Kroah-Hartman
76619c4f 7282b8ad

+53 -29
-29
Documentation/devicetree/bindings/serial/microchip,pic32-uart.txt
··· 1 - * Microchip Universal Asynchronous Receiver Transmitter (UART) 2 - 3 - Required properties: 4 - - compatible: Should be "microchip,pic32mzda-uart" 5 - - reg: Should contain registers location and length 6 - - interrupts: Should contain interrupt 7 - - clocks: Phandle to the clock. 8 - See: Documentation/devicetree/bindings/clock/clock-bindings.txt 9 - - pinctrl-names: A pinctrl state names "default" must be defined. 10 - - pinctrl-0: Phandle referencing pin configuration of the UART peripheral. 11 - See: Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt 12 - 13 - Optional properties: 14 - - cts-gpios: CTS pin for UART 15 - 16 - Example: 17 - uart1: serial@1f822000 { 18 - compatible = "microchip,pic32mzda-uart"; 19 - reg = <0x1f822000 0x50>; 20 - interrupts = <112 IRQ_TYPE_LEVEL_HIGH>, 21 - <113 IRQ_TYPE_LEVEL_HIGH>, 22 - <114 IRQ_TYPE_LEVEL_HIGH>; 23 - clocks = <&rootclk PB2CLK>; 24 - pinctrl-names = "default"; 25 - pinctrl-0 = <&pinctrl_uart1 26 - &pinctrl_uart1_cts 27 - &pinctrl_uart1_rts>; 28 - cts-gpios = <&gpio1 15 0>; 29 - };
+53
Documentation/devicetree/bindings/serial/microchip,pic32mzda-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/microchip,pic32mzda-uart.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Microchip PIC32 UART 8 + 9 + maintainers: 10 + - Andrei Pistirica <andrei.pistirica@microchip.com> 11 + - Purna Chandra Mandal <purna.mandal@microchip.com> 12 + 13 + allOf: 14 + - $ref: /schemas/serial/serial.yaml# 15 + 16 + properties: 17 + compatible: 18 + const: microchip,pic32mzda-uart 19 + 20 + reg: 21 + maxItems: 1 22 + 23 + interrupts: 24 + items: 25 + - description: Fault 26 + - description: RX 27 + - description: TX 28 + 29 + clocks: 30 + maxItems: 1 31 + 32 + required: 33 + - compatible 34 + - reg 35 + - interrupts 36 + - clocks 37 + 38 + unevaluatedProperties: false 39 + 40 + examples: 41 + - | 42 + #include <dt-bindings/interrupt-controller/irq.h> 43 + #include <dt-bindings/clock/microchip,pic32-clock.h> 44 + 45 + serial@1f822000 { 46 + compatible = "microchip,pic32mzda-uart"; 47 + reg = <0x1f822000 0x50>; 48 + interrupts = <112 IRQ_TYPE_LEVEL_HIGH>, 49 + <113 IRQ_TYPE_LEVEL_HIGH>, 50 + <114 IRQ_TYPE_LEVEL_HIGH>; 51 + clocks = <&rootclk PB2CLK>; 52 + cts-gpios = <&gpio1 15 0>; 53 + };