This patch adds IRQ priority support for SiFive PLIC by device-tree. Some IRQ sources of plic use Kconfig to set priority of their IRQ. - AON: no driver - I2C, SPI, PWM: not use IRQ - GPIO, UART: default 1 So this patch specifies IRQ priority 1 for all sources. Currently these drivers (gpio and uart) do not support that they get and use IRQ priority from device-tree. We need more patches. Signed-off-by: Katsuhiro Suzuki <katsuhiro@katsuster.net>
23 lines
413 B
YAML
23 lines
413 B
YAML
# Copyright (c) 2018, SiFive Inc.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
# Common fields for the RISC-V platform-local interrupt controller
|
|
|
|
include: [interrupt-controller.yaml, base.yaml]
|
|
|
|
properties:
|
|
reg:
|
|
required: true
|
|
|
|
riscv,max-priority:
|
|
type: int
|
|
description: maximum interrupt priority
|
|
required: true
|
|
|
|
"#interrupt-cells":
|
|
const: 2
|
|
|
|
interrupt-cells:
|
|
- irq
|
|
- priority
|