mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-08-31 22:23:05 +00:00

On imx31.dtsi the rng compatible string contains "fsl,imx31-rnga" only. Adjust the binding to accept passing "fsl,imx31-rnga" only. This fixes the following dt-schema warning: imx31-lite.dtb: rng@53fb0000: compatible: 'oneOf' conditional failed, one must be fixed: ['fsl,imx31-rnga'] is too short 'fsl,imx21-rnga' was expected 'fsl,imx25-rngb' was expected 'fsl,imx31-rnga' is not one of ['fsl,imx6sl-rngb', 'fsl,imx6sll-rngb', 'fsl,imx6ull-rngb'] 'fsl,imx35-rngc' was expected Signed-off-by: Fabio Estevam <festevam@denx.de> Acked-by: Rob Herring (Arm) <robh@kernel.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
53 lines
1.0 KiB
YAML
53 lines
1.0 KiB
YAML
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/rng/imx-rng.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Freescale RNGA/RNGB/RNGC (Random Number Generator Versions A, B and C)
|
|
|
|
maintainers:
|
|
- Vladimir Zapolskiy <vz@mleia.com>
|
|
|
|
properties:
|
|
compatible:
|
|
oneOf:
|
|
- const: fsl,imx21-rnga
|
|
- const: fsl,imx25-rngb
|
|
- const: fsl,imx31-rnga
|
|
- items:
|
|
- const: fsl,imx21-rnga
|
|
- items:
|
|
- enum:
|
|
- fsl,imx6sl-rngb
|
|
- fsl,imx6sll-rngb
|
|
- fsl,imx6ull-rngb
|
|
- const: fsl,imx25-rngb
|
|
- const: fsl,imx35-rngc
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
interrupts:
|
|
maxItems: 1
|
|
|
|
clocks:
|
|
maxItems: 1
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
- interrupts
|
|
- clocks
|
|
|
|
additionalProperties: false
|
|
|
|
examples:
|
|
- |
|
|
rngb@53fb0000 {
|
|
compatible = "fsl,imx25-rngb";
|
|
reg = <0x53fb0000 0x4000>;
|
|
clocks = <&clks 109>;
|
|
interrupts = <22>;
|
|
};
|