Commit 378ec25a authored by Linus Torvalds's avatar Linus Torvalds
Browse files
Pull tty/serial updates from Greg KH:
 "Here is the big set of tty and serial driver changes for 6.16-rc1.

  A little more churn than normal in this portion of the kernel for this
  development cycle, Jiri and Nicholas were busy with cleanups and
  reviews and fixes for the vt unicode handling logic which composed
  most of the overall work in here.

  Major changes are:

   - vt unicode changes/reverts/changes from Nicholas. This should help
     out a lot with screen readers and others that rely on vt console
     support

   - lock guard additions to the core tty/serial code to clean up lots
     of error handling logic

   - 8250 driver updates and fixes

   - device tree conversions to yaml

   - sh-sci driver updates

   - other small cleanups and updates for serial drivers and tty core
     portions

  All of these have been in linux-next for 2 weeks with no reported issues"

* tag 'tty-6.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty: (105 commits)
  tty: serial: 8250_omap: fix TX with DMA for am33xx
  vt: add VT_GETCONSIZECSRPOS to retrieve console size and cursor position
  vt: bracketed paste support
  vt: remove VT_RESIZE and VT_RESIZEX from vt_compat_ioctl()
  vt: process the full-width ASCII fallback range programmatically
  vt: make use of ucs_get_fallback() when glyph is unavailable
  vt: add ucs_get_fallback()
  vt: create ucs_fallback_table.h_shipped with gen_ucs_fallback_table.py
  vt: introduce gen_ucs_fallback_table.py to create ucs_fallback_table.h
  vt: move glyph determination to a separate function
  vt: make sure displayed double-width characters are remembered as such
  vt: ucs.c: fix misappropriate in_range() usage
  serial: max3100: Replace open-coded parity calculation with parity8()
  dt-bindings: serial: 8250_omap: Drop redundant properties
  dt-bindings: serial: Convert socionext,milbeaut-usio-uart to DT schema
  dt-bindings: serial: Convert microchip,pic32mzda-uart to DT schema
  dt-bindings: serial: Convert arm,sbsa-uart to DT schema
  dt-bindings: serial: Convert snps,arc-uart to DT schema
  dt-bindings: serial: Convert marvell,armada-3700-uart to DT schema
  dt-bindings: serial: Convert lantiq,asc to DT schema
  ...
parents c26f4fbd b495021a
Loading
Loading
Loading
Loading
+29 −1
Original line number Diff line number Diff line
@@ -135,7 +135,16 @@ properties:
  clock-frequency: true

  clocks:
    maxItems: 1
    minItems: 1
    items:
      - description: The core function clock
      - description: An optional bus clock

  clock-names:
    minItems: 1
    items:
      - const: core
      - const: bus

  resets:
    maxItems: 1
@@ -224,6 +233,25 @@ required:
  - reg
  - interrupts

if:
  properties:
    compatible:
      contains:
        const: spacemit,k1-uart
then:
  required: [clock-names]
  properties:
    clocks:
      minItems: 2
    clock-names:
      minItems: 2
else:
  properties:
    clocks:
      maxItems: 1
    clock-names:
      maxItems: 1

unevaluatedProperties: false

examples:
+0 −7
Original line number Diff line number Diff line
@@ -64,14 +64,7 @@ properties:
  clock-names:
    const: fclk

  rts-gpios: true
  cts-gpios: true
  dtr-gpios: true
  dsr-gpios: true
  rng-gpios: true
  dcd-gpios: true
  rs485-rts-active-high: true
  rts-gpio: true
  power-domains: true
  clock-frequency: true
  current-speed: true
+3 −0
Original line number Diff line number Diff line
@@ -56,6 +56,9 @@ properties:
        items:
          - enum:
              - amlogic,a4-uart
              - amlogic,s6-uart
              - amlogic,s7-uart
              - amlogic,s7d-uart
              - amlogic,t7-uart
          - const: amlogic,meson-s4-uart

+0 −25
Original line number Diff line number Diff line
* Synopsys ARC UART : Non standard UART used in some of the ARC FPGA boards

Required properties:
- compatible		: "snps,arc-uart"
- reg			: offset and length of the register set for the device.
- interrupts		: device interrupt
- clock-frequency	: the input clock frequency for the UART
- current-speed		: baud rate for UART

e.g.

arcuart0: serial@c0fc1000 {
	compatible = "snps,arc-uart";
	reg = <0xc0fc1000 0x100>;
	interrupts = <5>;
	clock-frequency = <80000000>;
	current-speed = <115200>;
};

Note: Each port should have an alias correctly numbered in "aliases" node.

e.g.
aliases {
	serial0 = &arcuart0;
};
+0 −19
Original line number Diff line number Diff line
ARM MPS2 UART

Required properties:
- compatible	: Should be "arm,mps2-uart"
- reg		: Address and length of the register set
- interrupts	: Reference to the UART RX, TX and overrun interrupts

Required clocking property:
- clocks	  : The input clock of the UART


Examples:

uart0: serial@40004000 {
	compatible = "arm,mps2-uart";
	reg = <0x40004000 0x1000>;
	interrupts = <0 1 12>;
	clocks = <&sysclk>;
};
Loading