dts: bindings: riscv: Add sifive-e24 cpu

Add sifive-e24 cpu binding.  This introduce riscv,cpu binding to
be used as riscv cpu base and riscv,sifive, which define specific
properties for this vendor.  Both are necessary to create the e24
core.

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
This commit is contained in:
Gerson Fernando Budke 2021-08-02 22:32:23 -03:00 committed by Christopher Friedt
parent 70dd3d6b0d
commit dca54e69f2
3 changed files with 51 additions and 0 deletions

View file

@ -0,0 +1,31 @@
# Copyright (c) 2021 Gerson Fernando Budke <nandojve@gmail.com>
# SPDX-License-Identifier: Apache-2.0
include: cpu.yaml
properties:
mmu-type:
description: Memory Management Unit (MMU)
required: false
type: string
enum:
- riscv,sv32
- riscv,sv39
- riscv,sv48
- riscv,none
riscv,isa:
description: RISC-V instruction set architecture
required: true
type: string
enum:
- rv32imac
- rv32imafc
- rv32imafcb
- rv64imac
- rv64imafdc
riscv,pmpregions:
description: Physical Memory Protection (PMP)
required: true
type: int

View file

@ -0,0 +1,8 @@
# Copyright (c) 2021 Gerson Fernando Budke <nandojve@gmail.com>
# SPDX-License-Identifier: Apache-2.0
description: SiFive E24 Standard Core CPU
compatible: "riscv,sifive-e24"
include: riscv,sifive.yaml

View file

@ -0,0 +1,12 @@
# Copyright (c) 2021 Gerson Fernando Budke <nandojve@gmail.com>
# SPDX-License-Identifier: Apache-2.0
# Common fields for SiFive RISC-V CPUs
include: riscv,cpus.yaml
properties:
hardware-exec-breakpoint-count:
type: int
required: false
description: Number of hardware break points