dt-bindings: interrupt-controller: Convert google,goldfish-pic to DT schema

Convert the Google Goldfish PIC interrupt controller binding to schema
format. It's a straight-forward conversion of the typical interrupt
controller.

Link: https://lore.kernel.org/r/20250505144658.1289158-1-robh@kernel.org
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
This commit is contained in:
Rob Herring (Arm) 2025-05-05 09:46:57 -05:00
parent a911481b44
commit ee35e2ae49
3 changed files with 48 additions and 31 deletions

View File

@ -1,30 +0,0 @@
Android Goldfish PIC
Android Goldfish programmable interrupt device used by Android
emulator.
Required properties:
- compatible : should contain "google,goldfish-pic"
- reg : <registers mapping>
- interrupts : <interrupt mapping>
Example for mips when used in cascade mode:
cpuintc {
#interrupt-cells = <0x1>;
#address-cells = <0>;
interrupt-controller;
compatible = "mti,cpu-interrupt-controller";
};
interrupt-controller@1f000000 {
compatible = "google,goldfish-pic";
reg = <0x1f000000 0x1000>;
interrupt-controller;
#interrupt-cells = <0x1>;
interrupt-parent = <&cpuintc>;
interrupts = <0x2>;
};

View File

@ -0,0 +1,47 @@
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/interrupt-controller/google,goldfish-pic.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: Android Goldfish PIC
maintainers:
- Miodrag Dinic <miodrag.dinic@mips.com>
description:
Android Goldfish programmable interrupt device used by Android emulator.
properties:
compatible:
const: google,goldfish-pic
reg:
maxItems: 1
interrupts:
maxItems: 1
interrupt-controller: true
'#interrupt-cells':
const: 1
required:
- compatible
- reg
- interrupts
- interrupt-controller
- '#interrupt-cells'
examples:
- |
interrupt-controller@1f000000 {
compatible = "google,goldfish-pic";
reg = <0x1f000000 0x1000>;
interrupt-controller;
#interrupt-cells = <1>;
interrupts = <2>;
};
additionalProperties: false

View File

@ -1694,7 +1694,7 @@ F: drivers/android/
ANDROID GOLDFISH PIC DRIVER ANDROID GOLDFISH PIC DRIVER
M: Miodrag Dinic <miodrag.dinic@mips.com> M: Miodrag Dinic <miodrag.dinic@mips.com>
S: Supported S: Supported
F: Documentation/devicetree/bindings/interrupt-controller/google,goldfish-pic.txt F: Documentation/devicetree/bindings/interrupt-controller/google,goldfish-pic.yaml
F: drivers/irqchip/irq-goldfish-pic.c F: drivers/irqchip/irq-goldfish-pic.c
ANDROID GOLDFISH RTC DRIVER ANDROID GOLDFISH RTC DRIVER