Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp225152ybb; Tue, 24 Mar 2020 20:59:49 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtrEvLVR+TBB1qSgOp38MhKHprDn9zUi9iyTL4rvQH+YXuFE3TH5YyG7zHX9qHqPTCCiHDC X-Received: by 2002:aca:fd48:: with SMTP id b69mr1123139oii.126.1585108788948; Tue, 24 Mar 2020 20:59:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585108788; cv=none; d=google.com; s=arc-20160816; b=u3WEKX9aNpc+L3NMEjfJfyUHxb0YPaAGqocIh+pPsBjUXa008Y48hfXOVvyNFJUtNT vHlqeDta8lSw7mJCSxUnlWnCFd5QKnuKcU0WNNk/nfyLaAJ22PcxucqXyuOBFyBwG0cY g+bEkuAAJbwhUiBfbsgPjb3t8v0dzswDzJVJjVyEjOAdLOh8bVeHSIv3hjEAlkF/DVlP 8+W+Kf5ag2qwIkcUgmi1qgfbfO3grWKpq5vqX2/SjeHiVghOV/b+zs1i0PyHAtFZ6/di M93uEkfT46Akz9RdeTvMuZcA7w9FT3GLTNgoX3uy/aG1ciKPRleUAcdiviQHQma2mU97 bdiQ== 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=q3522WmCMcchsrcIlYC+4bPpCWTc6GzKb+1Lr0erI0g=; b=OzlwpxSEewD3VNmdzP8eY7Np6KINlsn358OtYkpHnz8OukNaX2GMO4skhyqsI+xOzj ZMnb+29Fc51A93gpRtCNrfkTTR/xzmDKU86P4dNpCYXFkuQsH5G6jCuXg8hCHl1NKu84 2WbRv54lsc9j2WFjd2pdt59/IZrnoq6Wd6f9esn4dtKNKukOP/gKpLMfNl5LmmCP0brl UhaqJac35zLw6YhjD/GSYruCo6BP/mouBWe5V6tfxj/FU4L7JT3xvC7eMcEHrJ7Ila0U l3oKxKGpe7AqTDPCk9y7025uNDZw9UW/vEQSCVi1NbA/AKPpVN2Afa8I8Twgu9+q4pOX qO8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@flygoat.com header.s=mail header.b=XU6g+LuF; 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 z6si9802718oia.219.2020.03.24.20.59.37; Tue, 24 Mar 2020 20:59:48 -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=XU6g+LuF; 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 S1727297AbgCYD6o (ORCPT + 99 others); Tue, 24 Mar 2020 23:58:44 -0400 Received: from sender3-op-o12.zoho.com.cn ([124.251.121.243]:17877 "EHLO sender3-op-o12.zoho.com.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726842AbgCYD6o (ORCPT ); Tue, 24 Mar 2020 23:58:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1585108646; 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=q3522WmCMcchsrcIlYC+4bPpCWTc6GzKb+1Lr0erI0g=; b=XU6g+LuFRvJNkIbrMfhJS6XtY1O0yl6IdY4qec1jaZUpbApVlt+Xeywmz1YNA1f9 WXvPXRM5W4YB6NHoYBEQX7sv5X6pFKRKKl4fOgv/ZlNxXyL2D4WvOOHqfYTGpT8sT4N rCWB2DREUy35SgiVc+4AkuLJcKt9u28urP4fBPLc= Received: from localhost.localdomain (39.155.141.144 [39.155.141.144]) by mx.zoho.com.cn with SMTPS id 1585108645117321.1449493995693; Wed, 25 Mar 2020 11:57:25 +0800 (CST) From: Jiaxun Yang To: linux-mips@vger.kernel.org Cc: Jiaxun Yang , Rob Herring , Huacai Chen , Thomas Gleixner , Jason Cooper , Marc Zyngier , Rob Herring , Mark Rutland , Thomas Bogendoerfer , Mauro Carvalho Chehab , "David S. Miller" , Greg Kroah-Hartman , Jonathan Cameron , Andy Shevchenko , Allison Randal , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Message-ID: <20200325035537.156911-4-jiaxun.yang@flygoat.com> Subject: [PATCH v8 03/11] dt-bindings: interrupt-controller: Add Loongson LIOINTC Date: Wed, 25 Mar 2020 11:54:56 +0800 X-Mailer: git-send-email 2.26.0.rc2 In-Reply-To: <20200325035537.156911-1-jiaxun.yang@flygoat.com> References: <20200325035537.156911-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 I/O Interrupt controller. Signed-off-by: Jiaxun Yang Reviewed-by: Rob Herring Co-developed-by: Huacai Chen Signed-off-by: Huacai Chen --- .../loongson,liointc.yaml | 93 +++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/= loongson,liointc.yaml diff --git a/Documentation/devicetree/bindings/interrupt-controller/loongso= n,liointc.yaml b/Documentation/devicetree/bindings/interrupt-controller/loo= ngson,liointc.yaml new file mode 100644 index 000000000000..9c6b91fee477 --- /dev/null +++ b/Documentation/devicetree/bindings/interrupt-controller/loongson,lioin= tc.yaml @@ -0,0 +1,93 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/interrupt-controller/loongson,liointc.= yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Loongson Local I/O Interrupt Controller + +maintainers: + - Jiaxun Yang + +description: | + This interrupt controller is found in the Loongson-3 family of chips as = the primary + package interrupt controller which can route local I/O interrupt to inte= rrupt lines + of cores. + +allOf: + - $ref: /schemas/interrupt-controller.yaml# + +properties: + compatible: + oneOf: + - const: loongson,liointc-1.0 + - const: loongson,liointc-1.0a + + reg: + maxItems: 1 + + interrupt-controller: true + + interrupts: + description: + Interrupt source of the CPU interrupts. + minItems: 1 + maxItems: 4 + + interrupt-names: + description: List of names for the parent interrupts. + items: + - const: int0 + - const: int1 + - const: int2 + - const: int3 + minItems: 1 + maxItems: 4 + + '#interrupt-cells': + const: 2 + + 'loongson,parent_int_map': + description: | + This property points how the children interrupts will be mapped into= CPU + interrupt lines. Each cell refers to a parent interrupt line from 0 = to 3 + and each bit in the cell refers to a children interrupt fron 0 to 31= . + If a CPU interrupt line didn't connected with liointc, then keep it'= s + cell with zero. + allOf: + - $ref: /schemas/types.yaml#/definitions/uint32-array + - items: + minItems: 4 + maxItems: 4 + + +required: + - compatible + - reg + - interrupts + - interrupt-controller + - '#interrupt-cells' + - 'loongson,parent_int_map' + + +examples: + - | + iointc: interrupt-controller@3ff01400 { + compatible =3D "loongson,liointc-1.0"; + reg =3D <0x3ff01400 0x64>; + + interrupt-controller; + #interrupt-cells =3D <2>; + + interrupt-parent =3D <&cpuintc>; + interrupts =3D <2>, <3>; + interrupt-names =3D "int0", "int1"; + + loongson,parent_int_map =3D <0xf0ffffff>, /* int0 */ + <0x0f000000>, /* int1 */ + <0x00000000>, /* int2 */ + <0x00000000>; /* int3 */ + + }; + +... --=20 2.26.0.rc2