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,pch-pic.yaml# 5*fac71e4eSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6c66ec88fSEmmanuel Vadot 7c66ec88fSEmmanuel Vadottitle: Loongson PCH PIC Controller 8c66ec88fSEmmanuel Vadot 9c66ec88fSEmmanuel Vadotmaintainers: 10c66ec88fSEmmanuel Vadot - Jiaxun Yang <jiaxun.yang@flygoat.com> 11c66ec88fSEmmanuel Vadot 12c66ec88fSEmmanuel Vadotdescription: 13c66ec88fSEmmanuel Vadot This interrupt controller is found in the Loongson LS7A family of PCH for 14c66ec88fSEmmanuel Vadot transforming interrupts from on-chip devices into HyperTransport vectorized 15c66ec88fSEmmanuel Vadot interrupts. 16c66ec88fSEmmanuel Vadot 17c66ec88fSEmmanuel Vadotproperties: 18c66ec88fSEmmanuel Vadot compatible: 19c66ec88fSEmmanuel Vadot const: loongson,pch-pic-1.0 20c66ec88fSEmmanuel Vadot 21c66ec88fSEmmanuel Vadot reg: 22c66ec88fSEmmanuel Vadot maxItems: 1 23c66ec88fSEmmanuel Vadot 24c66ec88fSEmmanuel Vadot loongson,pic-base-vec: 25c66ec88fSEmmanuel Vadot description: 26c66ec88fSEmmanuel Vadot u32 value of the base of parent HyperTransport vector allocated 27c66ec88fSEmmanuel Vadot to PCH PIC. 28*fac71e4eSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 29c66ec88fSEmmanuel Vadot minimum: 0 30c66ec88fSEmmanuel Vadot maximum: 192 31c66ec88fSEmmanuel Vadot 32c66ec88fSEmmanuel Vadot interrupt-controller: true 33c66ec88fSEmmanuel Vadot 34c66ec88fSEmmanuel Vadot '#interrupt-cells': 35c66ec88fSEmmanuel Vadot const: 2 36c66ec88fSEmmanuel Vadot 37c66ec88fSEmmanuel Vadotrequired: 38c66ec88fSEmmanuel Vadot - compatible 39c66ec88fSEmmanuel Vadot - reg 40c66ec88fSEmmanuel Vadot - loongson,pic-base-vec 41c66ec88fSEmmanuel Vadot - interrupt-controller 42c66ec88fSEmmanuel Vadot - '#interrupt-cells' 43c66ec88fSEmmanuel Vadot 446be33864SEmmanuel VadotadditionalProperties: false 456be33864SEmmanuel Vadot 46c66ec88fSEmmanuel Vadotexamples: 47c66ec88fSEmmanuel Vadot - | 48c66ec88fSEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 49c66ec88fSEmmanuel Vadot pic: interrupt-controller@10000000 { 50c66ec88fSEmmanuel Vadot compatible = "loongson,pch-pic-1.0"; 51c66ec88fSEmmanuel Vadot reg = <0x10000000 0x400>; 52c66ec88fSEmmanuel Vadot interrupt-controller; 53c66ec88fSEmmanuel Vadot #interrupt-cells = <2>; 54c66ec88fSEmmanuel Vadot loongson,pic-base-vec = <64>; 55c66ec88fSEmmanuel Vadot interrupt-parent = <&htvec>; 56c66ec88fSEmmanuel Vadot }; 57c66ec88fSEmmanuel Vadot... 58