Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+48 -31
-30
Documentation/devicetree/bindings/interrupt-controller/google,goldfish-pic.txt
··· 1 - Android Goldfish PIC 2 - 3 - Android Goldfish programmable interrupt device used by Android 4 - emulator. 5 - 6 - Required properties: 7 - 8 - - compatible : should contain "google,goldfish-pic" 9 - - reg : <registers mapping> 10 - - interrupts : <interrupt mapping> 11 - 12 - Example for mips when used in cascade mode: 13 - 14 - cpuintc { 15 - #interrupt-cells = <0x1>; 16 - #address-cells = <0>; 17 - interrupt-controller; 18 - compatible = "mti,cpu-interrupt-controller"; 19 - }; 20 - 21 - interrupt-controller@1f000000 { 22 - compatible = "google,goldfish-pic"; 23 - reg = <0x1f000000 0x1000>; 24 - 25 - interrupt-controller; 26 - #interrupt-cells = <0x1>; 27 - 28 - interrupt-parent = <&cpuintc>; 29 - interrupts = <0x2>; 30 - };
+47
Documentation/devicetree/bindings/interrupt-controller/google,goldfish-pic.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/interrupt-controller/google,goldfish-pic.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Android Goldfish PIC 8 + 9 + maintainers: 10 + - Miodrag Dinic <miodrag.dinic@mips.com> 11 + 12 + description: 13 + Android Goldfish programmable interrupt device used by Android emulator. 14 + 15 + properties: 16 + compatible: 17 + const: google,goldfish-pic 18 + 19 + reg: 20 + maxItems: 1 21 + 22 + interrupts: 23 + maxItems: 1 24 + 25 + interrupt-controller: true 26 + 27 + '#interrupt-cells': 28 + const: 1 29 + 30 + required: 31 + - compatible 32 + - reg 33 + - interrupts 34 + - interrupt-controller 35 + - '#interrupt-cells' 36 + 37 + examples: 38 + - | 39 + interrupt-controller@1f000000 { 40 + compatible = "google,goldfish-pic"; 41 + reg = <0x1f000000 0x1000>; 42 + interrupt-controller; 43 + #interrupt-cells = <1>; 44 + interrupts = <2>; 45 + }; 46 + 47 + additionalProperties: false
+1 -1
MAINTAINERS
··· 1694 1694 ANDROID GOLDFISH PIC DRIVER 1695 1695 M: Miodrag Dinic <miodrag.dinic@mips.com> 1696 1696 S: Supported 1697 - F: Documentation/devicetree/bindings/interrupt-controller/google,goldfish-pic.txt 1697 + F: Documentation/devicetree/bindings/interrupt-controller/google,goldfish-pic.yaml 1698 1698 F: drivers/irqchip/irq-goldfish-pic.c 1699 1699 1700 1700 ANDROID GOLDFISH RTC DRIVER