Skip to content

Commit 6181073

Browse files
committed
Merge tag 'tty-6.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty
Pull tty/serial driver updates from Greg KH: "Here is the big set of TTY and Serial driver updates for 6.1-rc1. Lots of cleanups in here, no real new functionality this time around, with the diffstat being that we removed more lines than we added! Included in here are: - termios unification cleanups from Al Viro, it's nice to finally get this work done - tty serial transmit cleanups in various drivers in preparation for more cleanup and unification in future releases (that work was not ready for this release) - n_gsm fixes and updates - ktermios cleanups and code reductions - dt bindings json conversions and updates for new devices - some serial driver updates for new devices - lots of other tiny cleanups and janitorial stuff. Full details in the shortlog. All of these have been in linux-next for a while with no reported issues" * tag 'tty-6.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty: (102 commits) serial: cpm_uart: Don't request IRQ too early for console port tty: serial: do unlock on a common path in altera_jtaguart_console_putc() tty: serial: unify TX space reads under altera_jtaguart_tx_space() tty: serial: use FIELD_GET() in lqasc_tx_ready() tty: serial: extend lqasc_tx_ready() to lqasc_console_putchar() tty: serial: allow pxa.c to be COMPILE_TESTed serial: stm32: Fix unused-variable warning tty: serial: atmel: Add COMMON_CLK dependency to SERIAL_ATMEL serial: 8250: Fix restoring termios speed after suspend serial: Deassert Transmit Enable on probe in driver-specific way serial: 8250_dma: Convert to use uart_xmit_advance() serial: 8250_omap: Convert to use uart_xmit_advance() MAINTAINERS: Solve warning regarding inexistent atmel-usart binding serial: stm32: Deassert Transmit Enable on ->rs485_config() serial: ar933x: Deassert Transmit Enable on ->rs485_config() tty: serial: atmel: Use FIELD_PREP/FIELD_GET tty: serial: atmel: Make the driver aware of the existence of GCLK tty: serial: atmel: Only divide Clock Divisor if the IP is USART tty: serial: atmel: Separate mode clearing between UART and USART dt-bindings: serial: atmel,at91-usart: Add gclk as a possible USART clock ...
2 parents 881eccb + 30963b2 commit 6181073

File tree

188 files changed

+1432
-1764
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

188 files changed

+1432
-1764
lines changed

Documentation/devicetree/bindings/mfd/atmel-usart.txt

Lines changed: 0 additions & 98 deletions
This file was deleted.
Lines changed: 190 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,190 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
# Copyright (C) 2022 Microchip Technology, Inc. and its subsidiaries
3+
%YAML 1.2
4+
---
5+
$id: http://devicetree.org/schemas/serial/atmel,at91-usart.yaml#
6+
$schema: http://devicetree.org/meta-schemas/core.yaml#
7+
8+
title: Atmel Universal Synchronous Asynchronous Receiver/Transmitter (USART)
9+
10+
maintainers:
11+
- Richard Genoud <richard.genoud@gmail.com>
12+
13+
properties:
14+
compatible:
15+
oneOf:
16+
- enum:
17+
- atmel,at91rm9200-usart
18+
- atmel,at91sam9260-usart
19+
- microchip,sam9x60-usart
20+
- items:
21+
- const: atmel,at91rm9200-dbgu
22+
- const: atmel,at91rm9200-usart
23+
- items:
24+
- const: atmel,at91sam9260-dbgu
25+
- const: atmel,at91sam9260-usart
26+
- items:
27+
- const: microchip,sam9x60-dbgu
28+
- const: microchip,sam9x60-usart
29+
- const: atmel,at91sam9260-dbgu
30+
- const: atmel,at91sam9260-usart
31+
32+
reg:
33+
maxItems: 1
34+
35+
interrupts:
36+
maxItems: 1
37+
38+
clock-names:
39+
minItems: 1
40+
items:
41+
- const: usart
42+
- const: gclk
43+
44+
clocks:
45+
minItems: 1
46+
items:
47+
- description: USART Peripheral Clock
48+
- description: USART Generic Clock
49+
50+
dmas:
51+
items:
52+
- description: TX DMA Channel
53+
- description: RX DMA Channel
54+
55+
dma-names:
56+
items:
57+
- const: tx
58+
- const: rx
59+
60+
atmel,usart-mode:
61+
$ref: /schemas/types.yaml#/definitions/uint32
62+
description:
63+
Must be either <AT91_USART_MODE_SPI> for SPI or
64+
<AT91_USART_MODE_SERIAL> for USART (found in dt-bindings/mfd/at91-usart.h).
65+
enum: [ 0, 1 ]
66+
67+
atmel,use-dma-rx:
68+
type: boolean
69+
description: use of PDC or DMA for receiving data
70+
71+
atmel,use-dma-tx:
72+
type: boolean
73+
description: use of PDC or DMA for transmitting data
74+
75+
atmel,fifo-size:
76+
$ref: /schemas/types.yaml#/definitions/uint32
77+
description:
78+
Maximum number of data the RX and TX FIFOs can store for FIFO
79+
capable USARTS.
80+
enum: [ 16, 32 ]
81+
82+
required:
83+
- compatible
84+
- reg
85+
- interrupts
86+
- clock-names
87+
- clocks
88+
- atmel,usart-mode
89+
90+
allOf:
91+
- if:
92+
properties:
93+
atmel,usart-mode:
94+
const: 1
95+
then:
96+
allOf:
97+
- $ref: /schemas/spi/spi-controller.yaml#
98+
99+
properties:
100+
atmel,use-dma-rx: false
101+
102+
atmel,use-dma-tx: false
103+
104+
atmel,fifo-size: false
105+
106+
"#size-cells":
107+
const: 0
108+
109+
"#address-cells":
110+
const: 1
111+
112+
required:
113+
- "#size-cells"
114+
- "#address-cells"
115+
116+
else:
117+
allOf:
118+
- $ref: /schemas/serial/serial.yaml#
119+
- $ref: /schemas/serial/rs485.yaml#
120+
121+
unevaluatedProperties: false
122+
123+
examples:
124+
- |
125+
#include <dt-bindings/gpio/gpio.h>
126+
#include <dt-bindings/interrupt-controller/irq.h>
127+
#include <dt-bindings/mfd/at91-usart.h>
128+
#include <dt-bindings/dma/at91.h>
129+
130+
/* use PDC */
131+
usart0: serial@fff8c000 {
132+
compatible = "atmel,at91sam9260-usart";
133+
reg = <0xfff8c000 0x4000>;
134+
atmel,usart-mode = <AT91_USART_MODE_SERIAL>;
135+
interrupts = <7>;
136+
clocks = <&usart0_clk>;
137+
clock-names = "usart";
138+
atmel,use-dma-rx;
139+
atmel,use-dma-tx;
140+
rts-gpios = <&pioD 15 GPIO_ACTIVE_LOW>;
141+
cts-gpios = <&pioD 16 GPIO_ACTIVE_LOW>;
142+
dtr-gpios = <&pioD 17 GPIO_ACTIVE_LOW>;
143+
dsr-gpios = <&pioD 18 GPIO_ACTIVE_LOW>;
144+
dcd-gpios = <&pioD 20 GPIO_ACTIVE_LOW>;
145+
rng-gpios = <&pioD 19 GPIO_ACTIVE_LOW>;
146+
};
147+
148+
- |
149+
#include <dt-bindings/gpio/gpio.h>
150+
#include <dt-bindings/interrupt-controller/irq.h>
151+
#include <dt-bindings/mfd/at91-usart.h>
152+
#include <dt-bindings/dma/at91.h>
153+
154+
/* use DMA */
155+
usart1: serial@f001c000 {
156+
compatible = "atmel,at91sam9260-usart";
157+
reg = <0xf001c000 0x100>;
158+
atmel,usart-mode = <AT91_USART_MODE_SERIAL>;
159+
interrupts = <12 IRQ_TYPE_LEVEL_HIGH 5>;
160+
clocks = <&usart0_clk>;
161+
clock-names = "usart";
162+
atmel,use-dma-rx;
163+
atmel,use-dma-tx;
164+
dmas = <&dma0 2 AT91_DMA_CFG_PER_ID(3)>,
165+
<&dma0 2 (AT91_DMA_CFG_PER_ID(4) | AT91_DMA_CFG_FIFOCFG_ASAP)>;
166+
dma-names = "tx", "rx";
167+
atmel,fifo-size = <32>;
168+
};
169+
170+
- |
171+
#include <dt-bindings/gpio/gpio.h>
172+
#include <dt-bindings/interrupt-controller/irq.h>
173+
#include <dt-bindings/mfd/at91-usart.h>
174+
#include <dt-bindings/dma/at91.h>
175+
176+
/* SPI mode */
177+
spi0: spi@f001c000 {
178+
compatible = "atmel,at91sam9260-usart";
179+
reg = <0xf001c000 0x100>;
180+
#address-cells = <1>;
181+
#size-cells = <0>;
182+
atmel,usart-mode = <AT91_USART_MODE_SPI>;
183+
interrupts = <12 IRQ_TYPE_LEVEL_HIGH 5>;
184+
clocks = <&usart0_clk>;
185+
clock-names = "usart";
186+
dmas = <&dma0 2 AT91_DMA_CFG_PER_ID(3)>,
187+
<&dma0 2 (AT91_DMA_CFG_PER_ID(4) | AT91_DMA_CFG_FIFOCFG_ASAP)>;
188+
dma-names = "tx", "rx";
189+
cs-gpios = <&pioB 3 GPIO_ACTIVE_HIGH>;
190+
};

Documentation/devicetree/bindings/serial/mediatek,uart.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ properties:
4242
- mediatek,mt8173-uart
4343
- mediatek,mt8183-uart
4444
- mediatek,mt8186-uart
45+
- mediatek,mt8188-uart
4546
- mediatek,mt8192-uart
4647
- mediatek,mt8195-uart
4748
- mediatek,mt8516-uart

Documentation/devicetree/bindings/serial/pl011.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,12 @@ properties:
9494
resets:
9595
maxItems: 1
9696

97+
reg-io-width:
98+
description:
99+
The size (in bytes) of the IO accesses that should be performed
100+
on the device.
101+
enum: [1, 4]
102+
97103
required:
98104
- compatible
99105
- reg

Documentation/devicetree/bindings/serial/renesas,scif.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ properties:
7676

7777
- items:
7878
- enum:
79-
- renesas,scif-r9a07g043 # RZ/G2UL
79+
- renesas,scif-r9a07g043 # RZ/G2UL and RZ/Five
8080
- renesas,scif-r9a07g054 # RZ/V2L
8181
- const: renesas,scif-r9a07g044 # RZ/G2{L,LC} fallback
8282

Documentation/devicetree/bindings/serial/samsung_uart.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ properties:
4040
description: |
4141
The size (in bytes) of the IO accesses that should be performed
4242
on the device.
43-
$ref: /schemas/types.yaml#/definitions/uint32
4443
enum: [ 1, 4 ]
4544

4645
clocks:
@@ -72,6 +71,9 @@ properties:
7271
minItems: 1
7372
maxItems: 2
7473

74+
power-domains:
75+
maxItems: 1
76+
7577
samsung,uart-fifosize:
7678
description: The fifo size supported by the UART channel.
7779
$ref: /schemas/types.yaml#/definitions/uint32

Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ properties:
2626
- rockchip,rk1808-uart
2727
- rockchip,rk3036-uart
2828
- rockchip,rk3066-uart
29+
- rockchip,rk3128-uart
2930
- rockchip,rk3188-uart
3031
- rockchip,rk3288-uart
3132
- rockchip,rk3308-uart

Documentation/process/magic-number.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ Magic Name Number Structure File
7171
PG_MAGIC 'P' pg_{read,write}_hdr ``include/linux/pg.h``
7272
CMAGIC 0x0111 user ``include/linux/a.out.h``
7373
MKISS_DRIVER_MAGIC 0x04bf mkiss_channel ``drivers/net/mkiss.h``
74-
HDLC_MAGIC 0x239e n_hdlc ``drivers/char/n_hdlc.c``
7574
APM_BIOS_MAGIC 0x4101 apm_user ``arch/x86/kernel/apm_32.c``
7675
DB_MAGIC 0x4442 fc_info ``drivers/net/iph5526_novram.c``
7776
DL_MAGIC 0x444d fc_info ``drivers/net/iph5526_novram.c``
@@ -84,9 +83,6 @@ SLIP_MAGIC 0x5302 slip ``drivers/net/sl
8483
STRIP_MAGIC 0x5303 strip ``drivers/net/strip.c``
8584
SIXPACK_MAGIC 0x5304 sixpack ``drivers/net/hamradio/6pack.h``
8685
AX25_MAGIC 0x5316 ax_disp ``drivers/net/mkiss.h``
87-
TTY_MAGIC 0x5401 tty_struct ``include/linux/tty.h``
88-
MGSL_MAGIC 0x5401 mgsl_info ``drivers/char/synclink.c``
89-
TTY_DRIVER_MAGIC 0x5402 tty_driver ``include/linux/tty_driver.h``
9086
MGSLPC_MAGIC 0x5402 mgslpc_info ``drivers/char/pcmcia/synclink_cs.c``
9187
USB_SERIAL_MAGIC 0x6702 usb_serial ``drivers/usb/serial/usb-serial.h``
9288
FULL_DUPLEX_MAGIC 0x6969 ``drivers/net/ethernet/dec/tulip/de2104x.c``

Documentation/translations/it_IT/process/magic-number.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ Nome magico Numero Struttura File
7777
PG_MAGIC 'P' pg_{read,write}_hdr ``include/linux/pg.h``
7878
CMAGIC 0x0111 user ``include/linux/a.out.h``
7979
MKISS_DRIVER_MAGIC 0x04bf mkiss_channel ``drivers/net/mkiss.h``
80-
HDLC_MAGIC 0x239e n_hdlc ``drivers/char/n_hdlc.c``
8180
APM_BIOS_MAGIC 0x4101 apm_user ``arch/x86/kernel/apm_32.c``
8281
DB_MAGIC 0x4442 fc_info ``drivers/net/iph5526_novram.c``
8382
DL_MAGIC 0x444d fc_info ``drivers/net/iph5526_novram.c``
@@ -90,9 +89,6 @@ SLIP_MAGIC 0x5302 slip ``drivers/net/sl
9089
STRIP_MAGIC 0x5303 strip ``drivers/net/strip.c``
9190
SIXPACK_MAGIC 0x5304 sixpack ``drivers/net/hamradio/6pack.h``
9291
AX25_MAGIC 0x5316 ax_disp ``drivers/net/mkiss.h``
93-
TTY_MAGIC 0x5401 tty_struct ``include/linux/tty.h``
94-
MGSL_MAGIC 0x5401 mgsl_info ``drivers/char/synclink.c``
95-
TTY_DRIVER_MAGIC 0x5402 tty_driver ``include/linux/tty_driver.h``
9692
MGSLPC_MAGIC 0x5402 mgslpc_info ``drivers/char/pcmcia/synclink_cs.c``
9793
USB_SERIAL_MAGIC 0x6702 usb_serial ``drivers/usb/serial/usb-serial.h``
9894
FULL_DUPLEX_MAGIC 0x6969 ``drivers/net/ethernet/dec/tulip/de2104x.c``

Documentation/translations/zh_CN/process/magic-number.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ Linux 魔术数
6060
PG_MAGIC 'P' pg_{read,write}_hdr ``include/linux/pg.h``
6161
CMAGIC 0x0111 user ``include/linux/a.out.h``
6262
MKISS_DRIVER_MAGIC 0x04bf mkiss_channel ``drivers/net/mkiss.h``
63-
HDLC_MAGIC 0x239e n_hdlc ``drivers/char/n_hdlc.c``
6463
APM_BIOS_MAGIC 0x4101 apm_user ``arch/x86/kernel/apm_32.c``
6564
DB_MAGIC 0x4442 fc_info ``drivers/net/iph5526_novram.c``
6665
DL_MAGIC 0x444d fc_info ``drivers/net/iph5526_novram.c``
@@ -73,9 +72,6 @@ SLIP_MAGIC 0x5302 slip ``drivers/net/sl
7372
STRIP_MAGIC 0x5303 strip ``drivers/net/strip.c``
7473
SIXPACK_MAGIC 0x5304 sixpack ``drivers/net/hamradio/6pack.h``
7574
AX25_MAGIC 0x5316 ax_disp ``drivers/net/mkiss.h``
76-
TTY_MAGIC 0x5401 tty_struct ``include/linux/tty.h``
77-
MGSL_MAGIC 0x5401 mgsl_info ``drivers/char/synclink.c``
78-
TTY_DRIVER_MAGIC 0x5402 tty_driver ``include/linux/tty_driver.h``
7975
MGSLPC_MAGIC 0x5402 mgslpc_info ``drivers/char/pcmcia/synclink_cs.c``
8076
USB_SERIAL_MAGIC 0x6702 usb_serial ``drivers/usb/serial/usb-serial.h``
8177
FULL_DUPLEX_MAGIC 0x6969 ``drivers/net/ethernet/dec/tulip/de2104x.c``

0 commit comments

Comments
 (0)