Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: serial: Convert lantiq,asc to DT schema

Convert the Lantiq SoC ASC UART binding to DT schema. There are no such
clock identifier defines nor a user with clocks, so drop the example
with clocks.

Signed-off-by: "Rob Herring (Arm)" <robh@kernel.org>
Reviewed-by: Thierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/r/20250506220029.2546179-1-robh@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Rob Herring (Arm) and committed by
Greg Kroah-Hartman
6f5ff13b a34fc883

+56 -31
+56
Documentation/devicetree/bindings/serial/lantiq,asc.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/serial/lantiq,asc.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Lantiq SoC ASC serial controller 8 + 9 + maintainers: 10 + - John Crispin <john@phrozen.org> 11 + - Songjun Wu <songjun.wu@linux.intel.com> 12 + 13 + allOf: 14 + - $ref: /schemas/serial/serial.yaml# 15 + 16 + properties: 17 + compatible: 18 + const: lantiq,asc 19 + 20 + reg: 21 + maxItems: 1 22 + 23 + interrupts: 24 + items: 25 + - description: TX interrupt 26 + - description: RX interrupt 27 + - description: Error interrupt 28 + 29 + clocks: 30 + items: 31 + - description: Frequency clock 32 + - description: Gate clock 33 + 34 + clock-names: 35 + items: 36 + - const: freq 37 + - const: asc 38 + 39 + required: 40 + - compatible 41 + - reg 42 + - interrupts 43 + 44 + unevaluatedProperties: false 45 + 46 + examples: 47 + - | 48 + #include <dt-bindings/interrupt-controller/mips-gic.h> 49 + 50 + serial@16600000 { 51 + compatible = "lantiq,asc"; 52 + reg = <0x16600000 0x100000>; 53 + interrupts = <GIC_SHARED 103 IRQ_TYPE_LEVEL_HIGH>, 54 + <GIC_SHARED 105 IRQ_TYPE_LEVEL_HIGH>, 55 + <GIC_SHARED 106 IRQ_TYPE_LEVEL_HIGH>; 56 + };
-31
Documentation/devicetree/bindings/serial/lantiq_asc.txt
··· 1 - Lantiq SoC ASC serial controller 2 - 3 - Required properties: 4 - - compatible : Should be "lantiq,asc" 5 - - reg : Address and length of the register set for the device 6 - - interrupts: the 3 (tx rx err) interrupt numbers. The interrupt specifier 7 - depends on the interrupt-parent interrupt controller. 8 - 9 - Optional properties: 10 - - clocks: Should contain frequency clock and gate clock 11 - - clock-names: Should be "freq" and "asc" 12 - 13 - Example: 14 - 15 - asc0: serial@16600000 { 16 - compatible = "lantiq,asc"; 17 - reg = <0x16600000 0x100000>; 18 - interrupt-parent = <&gic>; 19 - interrupts = <GIC_SHARED 103 IRQ_TYPE_LEVEL_HIGH>, 20 - <GIC_SHARED 105 IRQ_TYPE_LEVEL_HIGH>, 21 - <GIC_SHARED 106 IRQ_TYPE_LEVEL_HIGH>; 22 - clocks = <&cgu CLK_SSX4>, <&cgu GCLK_UART>; 23 - clock-names = "freq", "asc"; 24 - }; 25 - 26 - asc1: serial@e100c00 { 27 - compatible = "lantiq,asc"; 28 - reg = <0xE100C00 0x400>; 29 - interrupt-parent = <&icu0>; 30 - interrupts = <112 113 114>; 31 - };