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:
parent
70dd3d6b0d
commit
dca54e69f2
31
dts/bindings/riscv/riscv,cpus.yaml
Normal file
31
dts/bindings/riscv/riscv,cpus.yaml
Normal 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
|
8
dts/bindings/riscv/riscv,sifive-e24.yaml
Normal file
8
dts/bindings/riscv/riscv,sifive-e24.yaml
Normal 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
|
12
dts/bindings/riscv/riscv,sifive.yaml
Normal file
12
dts/bindings/riscv/riscv,sifive.yaml
Normal 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
|
Loading…
Reference in a new issue