Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4975832ybb; Tue, 24 Mar 2020 08:40:58 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtjE1ux5Dm56JMii4WfFpRiC0N6ULJ5pzosJIwh8Km2TmfJwE5R9sspJC3MHSNH1Nauc7uF X-Received: by 2002:a05:6830:1f0c:: with SMTP id u12mr21909978otg.59.1585064458430; Tue, 24 Mar 2020 08:40:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585064458; cv=none; d=google.com; s=arc-20160816; b=FyYIc97/Sti7N8kDp1M8+HtgPop9AjimwslnGO0L0MsziZEiuKZnqjA9yKRnrnlAKX RWYq3D7BWq56gcZrunGtoEUNkDjG6Ul/C9j+kiarCsIEMeeYqonahgaVtyYLPYeVAxH6 JG972mXMm3jJNDUfGiW0yig8QINGr61nCpexeU92uweXsmARjx/yvkjg28wWpHJz7ckD nIBvpY1d/uALvW8BczSOfBFaY2hNqGPD0UaqXhkaHWkd+6OMWayoFmaU2jalNch/ZvO2 YJJ+uvCyk9m21QGIijjvkMJQVLlJ+X7MKNVqK+zZjlfSxkTel8iABIviJZK/P6MKJkCS cwfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:subject:message-id:cc:to:from :dkim-signature; bh=xZKLAkmJ3p4vaTmh3kFSXV3wDhQH3iUKqe9BfCmhbuk=; b=cgQ3VOs1Rt9qeZ1JrFWrK6B+qFFnVWrWIKZgjQmFRuDXfvCPoCMHRAV+UEICYRrL/u WIYEZMIrBtQ37QznNs3DNcL3q+LeAsWNs/GAk3f6ZgRY/6jBAURqnnmdbBDZ+HaIxw97 wZKbwPgZ4vXeuG47ZkTyfFIAxxyoe5F2Fk2GhT3jCB3daD71Zg2L4tqcCpeodSPgezXf SMJC+pE0CqA5Bo840s7vAsvO52v62FgEooY2kRvEps9rKwRIz5GJyn3wZovtOCbvfoxz ae0BQ7h6OstDUIKLP1EvJKWp3/dd0HvD3hxg4me7UZvw2ksHUspD0e9J/hX8dGc9dhTO BGnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@flygoat.com header.s=mail header.b=DssRYcty; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 18si9211398oie.242.2020.03.24.08.40.45; Tue, 24 Mar 2020 08:40:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@flygoat.com header.s=mail header.b=DssRYcty; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728672AbgCXPkH (ORCPT + 99 others); Tue, 24 Mar 2020 11:40:07 -0400 Received: from sender3-op-o12.zoho.com.cn ([124.251.121.243]:17801 "EHLO sender3-op-o12.zoho.com.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727665AbgCXPkH (ORCPT ); Tue, 24 Mar 2020 11:40:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1585064281; s=mail; d=flygoat.com; i=jiaxun.yang@flygoat.com; h=From:To:Cc:Message-ID:Subject:Date:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Content-Type; bh=xZKLAkmJ3p4vaTmh3kFSXV3wDhQH3iUKqe9BfCmhbuk=; b=DssRYctyLDc6coGjtrxpUhL6V4aJdXR8WsqGH6B4IM2tY61QYHpT3ZfzPx8NaADP xDx6dyC0/hUGFJPU8WyUaErg4jCo+vAsx0rWpraiG6wDkICbRC8QqaU+P0hr0+Xkp+4 PiB3/5yCUhOvU1LQc1VRleW2s+KPBamlW1p0aAh8= Received: from localhost.localdomain (39.155.141.144 [39.155.141.144]) by mx.zoho.com.cn with SMTPS id 1585064279398694.8568644949094; Tue, 24 Mar 2020 23:37:59 +0800 (CST) From: Jiaxun Yang To: linux-mips@vger.kernel.org Cc: Jiaxun Yang , Huacai Chen , Rob Herring , Thomas Gleixner , Jason Cooper , Marc Zyngier , Rob Herring , Mark Rutland , Thomas Bogendoerfer , Greg Kroah-Hartman , Allison Randal , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Message-ID: <20200324153624.23109-6-jiaxun.yang@flygoat.com> Subject: [PATCH v6 05/11] dt-bindings: interrupt-controller: Add Loongson-3 HTPIC Date: Tue, 24 Mar 2020 23:36:02 +0800 X-Mailer: git-send-email 2.26.0.rc2 In-Reply-To: <20200324153624.23109-1-jiaxun.yang@flygoat.com> References: <20200324153624.23109-1-jiaxun.yang@flygoat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoCNMailClient: External Content-Type: text/plain; charset=utf8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Document Loongson-3 HyperTransport PIC controller. Co-developed-by: Huacai Chen Signed-off-by: Jiaxun Yang Reviewed-by: Rob Herring --- .../interrupt-controller/loongson,htpic.yaml | 59 +++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/= loongson,htpic.yaml diff --git a/Documentation/devicetree/bindings/interrupt-controller/loongso= n,htpic.yaml b/Documentation/devicetree/bindings/interrupt-controller/loong= son,htpic.yaml new file mode 100644 index 000000000000..c8861cbbb8b5 --- /dev/null +++ b/Documentation/devicetree/bindings/interrupt-controller/loongson,htpic= .yaml @@ -0,0 +1,59 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/interrupt-controller/loongson,htpic.ya= ml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Loongson-3 HyperTransport Interrupt Controller + +maintainers: + - Jiaxun Yang + +allOf: + - $ref: /schemas/interrupt-controller.yaml# + +description: | + This interrupt controller is found in the Loongson-3 family of chips to = transmit + interrupts from PCH PIC connected on HyperTransport bus. + +properties: + compatible: + const: loongson,htpic-1.0 + + reg: + maxItems: 1 + + interrupts: + minItems: 1 + maxItems: 4 + description: | + Four parent interrupts that receive chained interrupts. + + interrupt-controller: true + + '#interrupt-cells': + const: 1 + +required: + - compatible + - reg + - interrupts + - interrupt-controller + - '#interrupt-cells' + +examples: + - | + #include + htintc: interrupt-controller@1fb000080 { + compatible =3D "loongson,htintc-1.0"; + reg =3D <0xfb000080 0x40>; + interrupt-controller; + #interrupt-cells =3D <1>; + + interrupt-parent =3D <&liointc>; + interrupts =3D <24 IRQ_TYPE_LEVEL_HIGH>, + <25 IRQ_TYPE_LEVEL_HIGH>, + <26 IRQ_TYPE_LEVEL_HIGH>, + <27 IRQ_TYPE_LEVEL_HIGH>; + }; +... --=20 2.26.0.rc2