Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/serial/8250_omap.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Bindings for 8250 compliant UARTs on TI's OMAP2+ and K3 SoCs
0008 
0009 maintainers:
0010   - Vignesh Raghavendra <vigneshr@ti.com>
0011 
0012 allOf:
0013   - $ref: /schemas/serial/serial.yaml#
0014   - $ref: /schemas/serial/rs485.yaml#
0015 
0016 properties:
0017   compatible:
0018     oneOf:
0019       - enum:
0020           - ti,am3352-uart
0021           - ti,am4372-uart
0022           - ti,am654-uart
0023           - ti,dra742-uart
0024           - ti,omap2-uart
0025           - ti,omap3-uart
0026           - ti,omap4-uart
0027       - items:
0028           - enum:
0029               - ti,am64-uart
0030               - ti,j721e-uart
0031           - const: ti,am654-uart
0032 
0033   ti,hwmods:
0034     description:
0035       Must be "uart<n>", n being the instance number (1-based)
0036       This property is applicable only on legacy platforms mainly omap2/3
0037       and ti81xx and should not be used on other platforms.
0038     $ref: /schemas/types.yaml#/definitions/string
0039     deprecated: true
0040 
0041   dmas:
0042     minItems: 1
0043     maxItems: 2
0044 
0045   dma-names:
0046     items:
0047       - const: tx
0048       - const: rx
0049 
0050   reg:
0051     maxItems: 1
0052 
0053   interrupts:
0054     minItems: 1
0055     maxItems: 2
0056     description:
0057       First entry is module IRQ required for normal IO operation.
0058       Second entry is optional and corresponds to system wakeup IRQ
0059       where supported.
0060 
0061   clocks:
0062     maxItems: 1
0063 
0064   clock-names:
0065     const: fclk
0066 
0067   rts-gpios: true
0068   cts-gpios: true
0069   dtr-gpios: true
0070   dsr-gpios: true
0071   rng-gpios: true
0072   dcd-gpios: true
0073   rs485-rts-delay: true
0074   rs485-rts-active-low: true
0075   rs485-rx-during-tx: true
0076   rs485-rts-active-high: true
0077   linux,rs485-enabled-at-boot-time: true
0078   rts-gpio: true
0079   power-domains: true
0080   clock-frequency: true
0081   current-speed: true
0082   overrun-throttle-ms: true
0083 
0084 required:
0085   - compatible
0086   - reg
0087   - interrupts
0088 
0089 unevaluatedProperties: false
0090 
0091 if:
0092   properties:
0093     compatible:
0094       contains:
0095         enum:
0096           - ti,omap2-uart
0097           - ti,omap3-uart
0098           - ti,omap4-uart
0099 
0100 then:
0101   properties:
0102     ti,hwmods:
0103       items:
0104         - pattern: "^uart([1-9])$"
0105 
0106 else:
0107   properties:
0108     ti,hwmods: false
0109 
0110 examples:
0111   - |
0112           serial@49042000 {
0113             compatible = "ti,omap3-uart";
0114             reg = <0x49042000 0x400>;
0115             interrupts = <80>;
0116             dmas = <&sdma 81 &sdma 82>;
0117             dma-names = "tx", "rx";
0118             ti,hwmods = "uart4";
0119             clock-frequency = <48000000>;
0120           };