brintos

brintos / linux-shallow public Read only

0
0
Text · 3.0 KiB · 8887148 Raw
133 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/serial/nxp,sc16is7xx.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: NXP SC16IS7xx Advanced Universal Asynchronous Receiver-Transmitter (UART)8 9maintainers:10  - Hugo Villeneuve <hvilleneuve@dimonoff.com>11 12properties:13  compatible:14    enum:15      - nxp,sc16is74016      - nxp,sc16is74117      - nxp,sc16is75018      - nxp,sc16is75219      - nxp,sc16is76020      - nxp,sc16is76221 22  reg:23    maxItems: 124 25  interrupts:26    maxItems: 127 28  clocks:29    maxItems: 130 31  reset-gpios:32    maxItems: 133 34  clock-frequency:35    description:36      When there is no clock provider visible to the platform, this37      is the source crystal or external clock frequency for the IC in Hz.38    minimum: 139    maximum: 8000000040 41  gpio-controller: true42 43  "#gpio-cells":44    const: 245 46  gpio-line-names:47    minItems: 148    maxItems: 849 50  irda-mode-ports:51    description: |52      An array that lists the indices of the port that should operate in IrDA53      mode:54      0: port A55      1: port B56    $ref: /schemas/types.yaml#/definitions/uint32-array57    minItems: 158    maxItems: 259    items:60      minimum: 061      maximum: 162 63  nxp,modem-control-line-ports:64    description: |65      An array that lists the indices of the port that should have shared GPIO66      lines configured as modem control lines:67      0: port A68      1: port B69    $ref: /schemas/types.yaml#/definitions/uint32-array70    minItems: 171    maxItems: 272    items:73      minimum: 074      maximum: 175 76required:77  - compatible78  - reg79  - interrupts80 81allOf:82  - $ref: /schemas/spi/spi-peripheral-props.yaml#83  - $ref: /schemas/serial/serial.yaml#84  - $ref: /schemas/serial/rs485.yaml#85 86oneOf:87  - required:88      - clocks89  - required:90      - clock-frequency91 92unevaluatedProperties: false93 94examples:95  - |96    #include <dt-bindings/interrupt-controller/irq.h>97    #include <dt-bindings/gpio/gpio.h>98    i2c {99        #address-cells = <1>;100        #size-cells = <0>;101 102        serial@51 {103            compatible = "nxp,sc16is750";104            reg = <0x51>;105            clocks = <&clk20m>;106            interrupt-parent = <&gpio3>;107            interrupts = <7 IRQ_TYPE_EDGE_FALLING>;108            gpio-controller;109            #gpio-cells = <2>;110        };111 112        serial@53 {113            compatible = "nxp,sc16is752";114            reg = <0x53>;115            clocks = <&clk20m>;116            interrupt-parent = <&gpio3>;117            interrupts = <7 IRQ_TYPE_EDGE_FALLING>;118            nxp,modem-control-line-ports = <1>; /* Port 1 as modem control lines */119            gpio-controller; /* Port 0 as GPIOs */120            #gpio-cells = <2>;121        };122 123        serial@54 {124            compatible = "nxp,sc16is752";125            reg = <0x54>;126            clocks = <&clk20m>;127            reset-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>;128            interrupt-parent = <&gpio3>;129            interrupts = <7 IRQ_TYPE_EDGE_FALLING>;130            nxp,modem-control-line-ports = <0 1>; /* Ports 0 and 1 as modem control lines */131        };132    };133