# \[PATCH v8 1/5\] Documentation: Add device tree binding for Goldfish PIC driver

- Subsystems: OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS, IRQCHIP DRIVERS, THE REST
- Maintainers: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Thomas Gleixner, Linus Torvalds
- Status: SUPERSEDED · 1 review, 0 by maintainers (Superseded by v12 posted 2017-12-29 Rob Herring)
- Superseded by v12 (posted 2017-12-29).
- Revision v8 (12 revisions archived); 1 review trailer.
- List: linux-devicetree
- 1 message, 1 author
- Page: https://ratatoskr.run/linux-devicetree/2017/11/5124607/t

## \[PATCH v8 1/5\] Documentation: Add device tree binding for Goldfish PIC driver

- From: Aleksandar Markovic \<hidden\>
- Date: 2017-11-03 17:22:48 
- Message: https://ratatoskr.run/linux-devicetree/2017/11/5124607.md

```text
From: Miodrag Dinic <redacted>

Add documentation for DT binding of Goldfish PIC driver. The compatible
string used by OS for binding the driver is "google,goldfish-pic".

Signed-off-by: Miodrag Dinic <redacted>
Signed-off-by: Goran Ferenc <redacted>
Signed-off-by: Aleksandar Markovic <redacted>
Acked-by: Rob Herring <redacted>
---
 .../interrupt-controller/google,goldfish-pic.txt   | 30 ++++++++++++++++++++++
 MAINTAINERS                                        |  5 ++++
 2 files changed, 35 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/interrupt-controller/google,goldfish-pic.txt

diff --git a/Documentation/devicetree/bindings/interrupt-controller/google,goldfish-pic.txt b/Documentation/devicetree/bindings/interrupt-controller/google,goldfish-pic.txt
new file mode 100644
index 0000000..35f7527
--- /dev/null
+++ b/Documentation/devicetree/bindings/interrupt-controller/google,goldfish-pic.txt
@@ -0,0 +1,30 @@
+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>;
+        };
diff --git a/MAINTAINERS b/MAINTAINERS
index a4cbb59..47f0b95 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -872,6 +872,11 @@ S:	Supported
 F:	drivers/android/
 F:	drivers/staging/android/
 
+ANDROID GOLDFISH PIC DRIVER
+M:	Miodrag Dinic <miodrag.dinic-8NJIiSa5LzA@public.gmane.org>
+S:	Supported
+F:	Documentation/devicetree/bindings/interrupt-controller/google,goldfish-pic.txt
+
 ANDROID GOLDFISH RTC DRIVER
 M:	Miodrag Dinic <miodrag.dinic-8NJIiSa5LzA@public.gmane.org>
 S:	Supported
-- 
2.7.4

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
```
