Commit 342465f5 authored by Linus Torvalds's avatar Linus Torvalds
Browse files
Pull tty/serial driver updates from Greg KH:
 "Here is the big set of tty/serial driver updates for 5.17-rc1.

  Nothing major in here, just lots of good updates and fixes, including:

   - more tty core cleanups from Jiri as well as mxser driver cleanups.
     This is the majority of the core diffstat

   - tty documentation updates from Jiri

   - platform_get_irq() updates

   - various serial driver updates for new features and hardware

   - fifo usage for 8250 console, reducing cpu load a lot

   - LED fix for keyboards, long-time bugfix that went through many
     revisions

   - minor cleanups

  All have been in linux-next for a while with no reported problems"

* tag 'tty-5.17-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty: (119 commits)
  serial: core: Keep mctrl register state and cached copy in sync
  serial: stm32: correct loop for dma error handling
  serial: stm32: fix flow control transfer in DMA mode
  serial: stm32: rework TX DMA state condition
  serial: stm32: move tx dma terminate DMA to shutdown
  serial: pl011: Drop redundant DTR/RTS preservation on close/open
  serial: pl011: Drop CR register reset on set_termios
  serial: pl010: Drop CR register reset on set_termios
  serial: liteuart: fix MODULE_ALIAS
  serial: 8250_bcm7271: Fix return error code in case of dma_alloc_coherent() failure
  Revert "serdev: BREAK/FRAME/PARITY/OVERRUN notification prototype V2"
  tty: goldfish: Use platform_get_irq() to get the interrupt
  serdev: BREAK/FRAME/PARITY/OVERRUN notification prototype V2
  tty: serial: meson: Drop the legacy compatible strings and clock code
  serial: pmac_zilog: Use platform_get_irq() to get the interrupt
  serial: bcm63xx: Use platform_get_irq() to get the interrupt
  serial: ar933x: Use platform_get_irq() to get the interrupt
  serial: vt8500: Use platform_get_irq() to get the interrupt
  serial: altera_jtaguart: Use platform_get_irq_optional() to get the interrupt
  serial: pxa: Use platform_get_irq() to get the interrupt
  ...
parents 22ef1219 93a770b7
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -29,6 +29,7 @@ properties:
              - amlogic,meson8-uart
              - amlogic,meson8b-uart
              - amlogic,meson-gx-uart
              - amlogic,meson-s4-uart
          - const: amlogic,meson-ao-uart
      - description: Everything-Else power domain UART controller
        enum:
@@ -36,6 +37,7 @@ properties:
          - amlogic,meson8-uart
          - amlogic,meson8b-uart
          - amlogic,meson-gx-uart
          - amlogic,meson-s4-uart

  reg:
    maxItems: 1
+7 −1
Original line number Diff line number Diff line
@@ -21,9 +21,15 @@ properties:
          - fsl,ls1028a-lpuart
          - fsl,imx7ulp-lpuart
          - fsl,imx8qm-lpuart
          - fsl,imxrt1050-lpuart
      - items:
          - const: fsl,imx8qxp-lpuart
          - enum:
              - fsl,imx8qxp-lpuart
              - fsl,imx8ulp-lpuart
          - const: fsl,imx7ulp-lpuart
      - items:
          - const: fsl,imx8qm-lpuart
          - const: fsl,imx8qxp-lpuart

  reg:
    maxItems: 1
+42 −6
Original line number Diff line number Diff line
@@ -14,7 +14,15 @@ allOf:

properties:
  compatible:
    const: renesas,sci
    oneOf:
      - items:
          - enum:
              - renesas,r9a07g044-sci     # RZ/G2{L,LC}
              - renesas,r9a07g054-sci     # RZ/V2L
          - const: renesas,sci            # generic SCI compatible UART

      - items:
          - const: renesas,sci            # generic SCI compatible UART

  reg:
    maxItems: 1
@@ -54,18 +62,46 @@ required:
  - clocks
  - clock-names

if:
  properties:
    compatible:
      contains:
        enum:
          - renesas,r9a07g044-sci
          - renesas,r9a07g054-sci
then:
  properties:
    resets:
      maxItems: 1

    power-domains:
      maxItems: 1

  required:
    - resets
    - power-domains

unevaluatedProperties: false

examples:
  - |
    #include <dt-bindings/clock/r9a07g044-cpg.h>
    #include <dt-bindings/interrupt-controller/arm-gic.h>

    aliases {
            serial0 = &sci0;
    };

    sci0: serial@ffff78 {
            compatible = "renesas,sci";
            reg = <0xffff78 8>;
            interrupts = <88 0>, <89 0>, <90 0>, <91 0>;
            clocks = <&fclk>;
    sci0: serial@1004d000 {
            compatible = "renesas,r9a07g044-sci", "renesas,sci";
            reg = <0x1004d000 0x400>;
            interrupts = <GIC_SPI 405 IRQ_TYPE_LEVEL_HIGH>,
                         <GIC_SPI 406 IRQ_TYPE_LEVEL_HIGH>,
                         <GIC_SPI 407 IRQ_TYPE_LEVEL_HIGH>,
                         <GIC_SPI 408 IRQ_TYPE_LEVEL_HIGH>;
            interrupt-names = "eri", "rxi", "txi", "tei";
            clocks = <&cpg CPG_MOD R9A07G044_SCI0_CLKP>;
            clock-names = "fck";
            power-domains = <&cpg>;
            resets = <&cpg R9A07G044_SCI0_RST>;
    };
+15 −0
Original line number Diff line number Diff line
@@ -64,9 +64,21 @@ properties:
          - const: renesas,rcar-gen3-scif # R-Car Gen3 and RZ/G2
          - const: renesas,scif           # generic SCIF compatible UART

      - items:
          - enum:
              - renesas,scif-r8a779f0     # R-Car S4-8
          - const: renesas,rcar-gen4-scif # R-Car Gen4
          - const: renesas,scif           # generic SCIF compatible UART

      - items:
          - enum:
              - renesas,scif-r9a07g044      # RZ/G2{L,LC}
              - renesas,scif-r9a07g054      # RZ/V2L

      - items:
          - enum:
              - renesas,scif-r9a07g054      # RZ/V2L
          - const: renesas,scif-r9a07g044   # RZ/G2{L,LC} fallback for RZ/V2L

  reg:
    maxItems: 1
@@ -153,6 +165,9 @@ if:
        enum:
          - renesas,rcar-gen2-scif
          - renesas,rcar-gen3-scif
          - renesas,rcar-gen4-scif
          - renesas,scif-r9a07g044
          - renesas,scif-r9a07g054
then:
  required:
    - resets
+0 −1
Original line number Diff line number Diff line
@@ -9,7 +9,6 @@ Support for Serial devices


    driver
    tty

Serial drivers
==============
Loading