Skip to content

Commit

Permalink
dt-bindings: add Canaan boards compatible strings
Browse files Browse the repository at this point in the history
Introduce the file riscv/canaan.yaml to document compatible strings
related to the Canaan Kendryte K210 SoC. The compatible string
"canaan,kendryte-k210" used to indicate the use of this SoC to the
early SoC init code is added. This new file also defines the compatible
strings of all supported boards based on this SoC.

Signed-off-by: Damien Le Moal <[email protected]>
Reviewed-by: Atish Patra <[email protected]>
Reviewed-by: Rob Herring <[email protected]>
Signed-off-by: Palmer Dabbelt <[email protected]>
  • Loading branch information
damien-lemoal authored and palmer-dabbelt committed Feb 23, 2021
1 parent e7d9fea commit 11481d6
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions Documentation/devicetree/bindings/riscv/canaan.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/riscv/canaan.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Canaan SoC-based boards

maintainers:
- Damien Le Moal <[email protected]>

description:
Canaan Kendryte K210 SoC-based boards

properties:
$nodename:
const: '/'
compatible:
oneOf:
- items:
- const: sipeed,maix-bit
- const: sipeed,maix-bitm
- const: canaan,kendryte-k210

- items:
- const: sipeed,maix-go
- const: canaan,kendryte-k210

- items:
- const: sipeed,maix-dock-m1
- const: sipeed,maix-dock-m1w
- const: canaan,kendryte-k210

- items:
- const: sipeed,maixduino
- const: canaan,kendryte-k210

- items:
- const: canaan,kendryte-kd233
- const: canaan,kendryte-k210

- items:
- const: canaan,kendryte-k210

additionalProperties: true

...

0 comments on commit 11481d6

Please sign in to comment.