Tom Rini | 6bb92fc | 2024-05-20 09:54:58 -0600 | [diff] [blame] | 1 | # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 | %YAML 1.2 |
| 3 | --- |
| 4 | $id: http://devicetree.org/schemas/serial/st,asc.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: STMicroelectronics STi SoCs Serial Port |
| 8 | |
| 9 | maintainers: |
| 10 | - Patrice Chotard <patrice.chotard@foss.st.com> |
| 11 | |
| 12 | allOf: |
| 13 | - $ref: serial.yaml# |
| 14 | |
| 15 | properties: |
| 16 | compatible: |
| 17 | const: st,asc |
| 18 | |
| 19 | reg: |
| 20 | maxItems: 1 |
| 21 | |
| 22 | interrupts: |
| 23 | maxItems: 1 |
| 24 | |
| 25 | clocks: |
| 26 | maxItems: 1 |
| 27 | |
| 28 | st,hw-flow-ctrl: |
| 29 | description: When set, enable hardware flow control. |
| 30 | type: boolean |
| 31 | |
| 32 | st,force-m1: |
| 33 | description: When set, force asc to be in Mode-1. This is recommended for |
| 34 | high bit rates above 19.2K. |
| 35 | type: boolean |
| 36 | |
| 37 | required: |
| 38 | - compatible |
| 39 | - reg |
| 40 | - interrupts |
| 41 | - clocks |
| 42 | |
| 43 | unevaluatedProperties: false |
| 44 | |
| 45 | examples: |
| 46 | - | |
| 47 | #include <dt-bindings/clock/stih407-clks.h> |
| 48 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
| 49 | serial@9830000 { |
| 50 | compatible = "st,asc"; |
| 51 | reg = <0x9830000 0x2c>; |
| 52 | interrupts = <GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>; |
| 53 | clocks = <&clk_s_c0_flexgen CLK_EXT2F_A9>; |
| 54 | }; |
| 55 | ... |