1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2c66ec88fSEmmanuel Vadot%YAML 1.2 3c66ec88fSEmmanuel Vadot--- 4*fac71e4eSEmmanuel Vadot$id: http://devicetree.org/schemas/interrupt-controller/loongson,htpic.yaml# 5*fac71e4eSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6c66ec88fSEmmanuel Vadot 7c66ec88fSEmmanuel Vadottitle: Loongson-3 HyperTransport Interrupt Controller 8c66ec88fSEmmanuel Vadot 9c66ec88fSEmmanuel Vadotmaintainers: 10c66ec88fSEmmanuel Vadot - Jiaxun Yang <jiaxun.yang@flygoat.com> 11c66ec88fSEmmanuel Vadot 12c66ec88fSEmmanuel VadotallOf: 13c66ec88fSEmmanuel Vadot - $ref: /schemas/interrupt-controller.yaml# 14c66ec88fSEmmanuel Vadot 15c66ec88fSEmmanuel Vadotdescription: | 16c66ec88fSEmmanuel Vadot This interrupt controller is found in the Loongson-3 family of chips to transmit 17c66ec88fSEmmanuel Vadot interrupts from PCH PIC connected on HyperTransport bus. 18c66ec88fSEmmanuel Vadot 19c66ec88fSEmmanuel Vadotproperties: 20c66ec88fSEmmanuel Vadot compatible: 21c66ec88fSEmmanuel Vadot const: loongson,htpic-1.0 22c66ec88fSEmmanuel Vadot 23c66ec88fSEmmanuel Vadot reg: 24c66ec88fSEmmanuel Vadot maxItems: 1 25c66ec88fSEmmanuel Vadot 26c66ec88fSEmmanuel Vadot interrupts: 27c66ec88fSEmmanuel Vadot minItems: 1 28c66ec88fSEmmanuel Vadot maxItems: 4 29c66ec88fSEmmanuel Vadot description: | 30c66ec88fSEmmanuel Vadot Four parent interrupts that receive chained interrupts. 31c66ec88fSEmmanuel Vadot 32c66ec88fSEmmanuel Vadot interrupt-controller: true 33c66ec88fSEmmanuel Vadot 34c66ec88fSEmmanuel Vadot '#interrupt-cells': 35c66ec88fSEmmanuel Vadot const: 1 36c66ec88fSEmmanuel Vadot 37c66ec88fSEmmanuel Vadotrequired: 38c66ec88fSEmmanuel Vadot - compatible 39c66ec88fSEmmanuel Vadot - reg 40c66ec88fSEmmanuel Vadot - interrupts 41c66ec88fSEmmanuel Vadot - interrupt-controller 42c66ec88fSEmmanuel Vadot - '#interrupt-cells' 43c66ec88fSEmmanuel Vadot 446be33864SEmmanuel VadotunevaluatedProperties: false 456be33864SEmmanuel Vadot 46c66ec88fSEmmanuel Vadotexamples: 47c66ec88fSEmmanuel Vadot - | 48c66ec88fSEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 49c66ec88fSEmmanuel Vadot htintc: interrupt-controller@1fb000080 { 502eb4d8dcSEmmanuel Vadot compatible = "loongson,htpic-1.0"; 51c66ec88fSEmmanuel Vadot reg = <0xfb000080 0x40>; 52c66ec88fSEmmanuel Vadot interrupt-controller; 53c66ec88fSEmmanuel Vadot #interrupt-cells = <1>; 54c66ec88fSEmmanuel Vadot 55c66ec88fSEmmanuel Vadot interrupt-parent = <&liointc>; 56c66ec88fSEmmanuel Vadot interrupts = <24 IRQ_TYPE_LEVEL_HIGH>, 57c66ec88fSEmmanuel Vadot <25 IRQ_TYPE_LEVEL_HIGH>, 58c66ec88fSEmmanuel Vadot <26 IRQ_TYPE_LEVEL_HIGH>, 59c66ec88fSEmmanuel Vadot <27 IRQ_TYPE_LEVEL_HIGH>; 60c66ec88fSEmmanuel Vadot }; 61c66ec88fSEmmanuel Vadot... 62