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

dt-bindings: serial: convert st,asc to DT schema

'clocks' property is required regarding the device. Convert st,asc
binding to DT schema format in order to add this property, and update
example.

Signed-off-by: Raphael Gallais-Pou <rgallaispou@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240226152135.8671-1-rgallaispou@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Raphael Gallais-Pou and committed by
Greg Kroah-Hartman
28e4c31e 675c00eb

+55 -18
+55
Documentation/devicetree/bindings/serial/st,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/st,asc.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: STMicroelectronics STi SoCs Serial Port 8 + 9 + maintainers: 10 + - Patrice Chotard <patrice.chotard@foss.st.com> 11 + 12 + allOf: 13 + - $ref: serial.yaml# 14 + 15 + properties: 16 + compatible: 17 + const: st,asc 18 + 19 + reg: 20 + maxItems: 1 21 + 22 + interrupts: 23 + maxItems: 1 24 + 25 + clocks: 26 + maxItems: 1 27 + 28 + st,hw-flow-ctrl: 29 + description: When set, enable hardware flow control. 30 + type: boolean 31 + 32 + st,force-m1: 33 + description: When set, force asc to be in Mode-1. This is recommended for 34 + high bit rates above 19.2K. 35 + type: boolean 36 + 37 + required: 38 + - compatible 39 + - reg 40 + - interrupts 41 + - clocks 42 + 43 + unevaluatedProperties: false 44 + 45 + examples: 46 + - | 47 + #include <dt-bindings/clock/stih407-clks.h> 48 + #include <dt-bindings/interrupt-controller/arm-gic.h> 49 + serial@9830000 { 50 + compatible = "st,asc"; 51 + reg = <0x9830000 0x2c>; 52 + interrupts = <GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>; 53 + clocks = <&clk_s_c0_flexgen CLK_EXT2F_A9>; 54 + }; 55 + ...
-18
Documentation/devicetree/bindings/serial/st-asc.txt
··· 1 - *st-asc(Serial Port) 2 - 3 - Required properties: 4 - - compatible : Should be "st,asc". 5 - - reg, reg-names, interrupts, interrupt-names : Standard way to define device 6 - resources with names. look in 7 - Documentation/devicetree/bindings/resource-names.txt 8 - 9 - Optional properties: 10 - - st,hw-flow-ctrl bool flag to enable hardware flow control. 11 - - st,force-m1 bool flat to force asc to be in Mode-1 recommended 12 - for high bit rates (above 19.2K) 13 - Example: 14 - serial@fe440000{ 15 - compatible = "st,asc"; 16 - reg = <0xfe440000 0x2c>; 17 - interrupts = <0 209 0>; 18 - };