1*8cc087a1SEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause 2*8cc087a1SEmmanuel Vadot%YAML 1.2 3*8cc087a1SEmmanuel Vadot--- 4*8cc087a1SEmmanuel Vadot$id: http://devicetree.org/schemas/serial/xlnx,opb-uartlite.yaml# 5*8cc087a1SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*8cc087a1SEmmanuel Vadot 7*8cc087a1SEmmanuel Vadottitle: Xilinx Axi Uartlite 8*8cc087a1SEmmanuel Vadot 9*8cc087a1SEmmanuel Vadotmaintainers: 10*8cc087a1SEmmanuel Vadot - Peter Korsgaard <jacmet@sunsite.dk> 11*8cc087a1SEmmanuel Vadot 12*8cc087a1SEmmanuel Vadotproperties: 13*8cc087a1SEmmanuel Vadot compatible: 14*8cc087a1SEmmanuel Vadot contains: 15*8cc087a1SEmmanuel Vadot enum: 16*8cc087a1SEmmanuel Vadot - xlnx,xps-uartlite-1.00.a 17*8cc087a1SEmmanuel Vadot - xlnx,opb-uartlite-1.00.b 18*8cc087a1SEmmanuel Vadot 19*8cc087a1SEmmanuel Vadot reg: 20*8cc087a1SEmmanuel Vadot maxItems: 1 21*8cc087a1SEmmanuel Vadot 22*8cc087a1SEmmanuel Vadot interrupts: 23*8cc087a1SEmmanuel Vadot maxItems: 1 24*8cc087a1SEmmanuel Vadot 25*8cc087a1SEmmanuel Vadot port-number: 26*8cc087a1SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 27*8cc087a1SEmmanuel Vadot description: Set Uart port number 28*8cc087a1SEmmanuel Vadot 29*8cc087a1SEmmanuel Vadot clocks: 30*8cc087a1SEmmanuel Vadot maxItems: 1 31*8cc087a1SEmmanuel Vadot 32*8cc087a1SEmmanuel Vadot clock-names: 33*8cc087a1SEmmanuel Vadot const: s_axi_aclk 34*8cc087a1SEmmanuel Vadot 35*8cc087a1SEmmanuel Vadot current-speed: 36*8cc087a1SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 37*8cc087a1SEmmanuel Vadot description: 38*8cc087a1SEmmanuel Vadot The fixed baud rate that the device was configured for. 39*8cc087a1SEmmanuel Vadot 40*8cc087a1SEmmanuel Vadot xlnx,data-bits: 41*8cc087a1SEmmanuel Vadot enum: [5, 6, 7, 8] 42*8cc087a1SEmmanuel Vadot description: 43*8cc087a1SEmmanuel Vadot The fixed number of data bits that the device was configured for. 44*8cc087a1SEmmanuel Vadot 45*8cc087a1SEmmanuel Vadot xlnx,use-parity: 46*8cc087a1SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 47*8cc087a1SEmmanuel Vadot enum: [0, 1] 48*8cc087a1SEmmanuel Vadot description: 49*8cc087a1SEmmanuel Vadot Whether parity checking was enabled when the device was configured. 50*8cc087a1SEmmanuel Vadot 51*8cc087a1SEmmanuel Vadot xlnx,odd-parity: 52*8cc087a1SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 53*8cc087a1SEmmanuel Vadot enum: [0, 1] 54*8cc087a1SEmmanuel Vadot description: 55*8cc087a1SEmmanuel Vadot Whether odd parity was configured. 56*8cc087a1SEmmanuel Vadot 57*8cc087a1SEmmanuel Vadotrequired: 58*8cc087a1SEmmanuel Vadot - compatible 59*8cc087a1SEmmanuel Vadot - reg 60*8cc087a1SEmmanuel Vadot - interrupts 61*8cc087a1SEmmanuel Vadot - current-speed 62*8cc087a1SEmmanuel Vadot - xlnx,data-bits 63*8cc087a1SEmmanuel Vadot - xlnx,use-parity 64*8cc087a1SEmmanuel Vadot 65*8cc087a1SEmmanuel VadotallOf: 66*8cc087a1SEmmanuel Vadot - $ref: /schemas/serial.yaml# 67*8cc087a1SEmmanuel Vadot - if: 68*8cc087a1SEmmanuel Vadot properties: 69*8cc087a1SEmmanuel Vadot xlnx,use-parity: 70*8cc087a1SEmmanuel Vadot contains: 71*8cc087a1SEmmanuel Vadot const: 1 72*8cc087a1SEmmanuel Vadot then: 73*8cc087a1SEmmanuel Vadot required: 74*8cc087a1SEmmanuel Vadot - xlnx,odd-parity 75*8cc087a1SEmmanuel Vadot 76*8cc087a1SEmmanuel VadotunevaluatedProperties: false 77*8cc087a1SEmmanuel Vadot 78*8cc087a1SEmmanuel Vadotexamples: 79*8cc087a1SEmmanuel Vadot - | 80*8cc087a1SEmmanuel Vadot serial@800c0000 { 81*8cc087a1SEmmanuel Vadot compatible = "xlnx,xps-uartlite-1.00.a"; 82*8cc087a1SEmmanuel Vadot reg = <0x800c0000 0x10000>; 83*8cc087a1SEmmanuel Vadot interrupts = <0x0 0x6e 0x1>; 84*8cc087a1SEmmanuel Vadot port-number = <0>; 85*8cc087a1SEmmanuel Vadot current-speed = <115200>; 86*8cc087a1SEmmanuel Vadot xlnx,data-bits = <8>; 87*8cc087a1SEmmanuel Vadot xlnx,use-parity = <0>; 88*8cc087a1SEmmanuel Vadot }; 89*8cc087a1SEmmanuel Vadot... 90