2020-01-12 08:18:34

by Jiaxun Yang

[permalink] [raw]
Subject: [PATCH v3 08/10] dt-bindings: mips: Add loongson boards

Prepare for later dts.

Signed-off-by: Jiaxun Yang <[email protected]>
---
.../bindings/mips/loongson/devices.yaml | 29 +++++++++++++++++++
1 file changed, 29 insertions(+)
create mode 100644 Documentation/devicetree/bindings/mips/loongson/devices.yaml

diff --git a/Documentation/devicetree/bindings/mips/loongson/devices.yaml b/Documentation/devicetree/bindings/mips/loongson/devices.yaml
new file mode 100644
index 000000000000..3c7c59a29c1b
--- /dev/null
+++ b/Documentation/devicetree/bindings/mips/loongson/devices.yaml
@@ -0,0 +1,29 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/mips/loongson/devices.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Loongson based Platforms Device Tree Bindings
+
+maintainers:
+ - Jiaxun Yang <[email protected]>
+description: |
+ Devices with a Loongson CPU shall have the following properties.
+ Note that generic device is used for built-in dtbs and will be
+ patched during boot on firmware without OF support.
+
+properties:
+ $nodename:
+ const: '/'
+ compatible:
+ oneOf:
+
+ - description: Generic Loongson3 4Core + RS780E
+ items:
+ - const: loongson,loongson3-4core-780e
+
+ - description: Generic Loongson3 8Core + RS780E
+ items:
+ - const: loongson,loongson3-8core-780e
+...
--
2.24.1


2020-01-13 03:35:21

by Huacai Chen

[permalink] [raw]
Subject: Re: [PATCH v3 08/10] dt-bindings: mips: Add loongson boards

Hi, Jiaxun,

On Sun, Jan 12, 2020 at 4:15 PM Jiaxun Yang <[email protected]> wrote:
>
> Prepare for later dts.
>
> Signed-off-by: Jiaxun Yang <[email protected]>
> ---
> .../bindings/mips/loongson/devices.yaml | 29 +++++++++++++++++++
> 1 file changed, 29 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/mips/loongson/devices.yaml
>
> diff --git a/Documentation/devicetree/bindings/mips/loongson/devices.yaml b/Documentation/devicetree/bindings/mips/loongson/devices.yaml
> new file mode 100644
> index 000000000000..3c7c59a29c1b
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/mips/loongson/devices.yaml
> @@ -0,0 +1,29 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/mips/loongson/devices.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Loongson based Platforms Device Tree Bindings
> +
> +maintainers:
> + - Jiaxun Yang <[email protected]>
> +description: |
> + Devices with a Loongson CPU shall have the following properties.
> + Note that generic device is used for built-in dtbs and will be
> + patched during boot on firmware without OF support.
> +
> +properties:
> + $nodename:
> + const: '/'
> + compatible:
> + oneOf:
> +
> + - description: Generic Loongson3 4Core + RS780E
> + items:
> + - const: loongson,loongson3-4core-780e
> +
> + - description: Generic Loongson3 8Core + RS780E
> + items:
> + - const: loongson,loongson3-8core-780e
Please use loongson3-4core-rs780e and loongson3-8core-rs780e, thanks.

Huacai
> +...
> --
> 2.24.1
>