# Re: \[PATCH 04/13\] dt-bindings: serial: correct ref to serial.yaml

- From: Michal Simek \<michal.simek@amd.com\>
- Date: 2023-01-23 15:40:35 
- List: linux-arm-kernel
- Page: https://ratatoskr.run/linux-arm-kernel/2023/01/2076472
- Thread: https://ratatoskr.run/linux-devicetree/2023/01/2076393/t.md

```text


On 1/23/23 16:12, Krzysztof Kozlowski wrote:
> CAUTION: This message has originated from an External Source. Please use proper judgment and caution when opening attachments, clicking links, or responding to this email.
>
>
> The serial bindings should reference the local (in kernel) serial.yaml,
> not the /schemas/serial.yaml.  The latter comes from dtschema package
> and is a small subset of serial bindings.
>
> Usage of the local serial.yaml allows typical properties and children:
>
>    xilinx/avnet-ultra96-rev1.dtb: serial@ff000000: Unevaluated properties are not allowed ('bluetooth' were unexpected)
>
> Signed-off-by: Krzysztof Kozlowski <redacted>
> ---
>   Documentation/devicetree/bindings/serial/cdns,uart.yaml         | 2 +-
>   Documentation/devicetree/bindings/serial/xlnx,opb-uartlite.yaml | 2 +-
>   2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/serial/cdns,uart.yaml b/Documentation/devicetree/bindings/serial/cdns,uart.yaml
> index 876b8cf1cafb..0c118d5336cc 100644
> --- a/Documentation/devicetree/bindings/serial/cdns,uart.yaml
> +++ b/Documentation/devicetree/bindings/serial/cdns,uart.yaml
> @@ -10,7 +10,7 @@ maintainers:
>     - Michal Simek [ref]
>
>   allOf:
> -  - $ref: /schemas/serial.yaml#
> +  - $ref: serial.yaml#
>
>   properties:
>     compatible:
> diff --git a/Documentation/devicetree/bindings/serial/xlnx,opb-uartlite.yaml b/Documentation/devicetree/bindings/serial/xlnx,opb-uartlite.yaml
> index 2f4390e8d4e8..6f65e9a81c29 100644
> --- a/Documentation/devicetree/bindings/serial/xlnx,opb-uartlite.yaml
> +++ b/Documentation/devicetree/bindings/serial/xlnx,opb-uartlite.yaml
> @@ -63,7 +63,7 @@ required:
>     - xlnx,use-parity
>
>   allOf:
> -  - $ref: /schemas/serial.yaml#
> +  - $ref: serial.yaml#
>     - if:
>         properties:
>           xlnx,use-parity:
> --
> 2.34.1
>

Acked-by: Michal Simek <michal.simek@amd.com>

Thanks,
Michal

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
```
