Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3775669ybz; Mon, 27 Apr 2020 23:37:37 -0700 (PDT) X-Google-Smtp-Source: APiQypIJQXPn8sWc5DW+p0YHuQjdyz+trlxwx0bavii9I7qdK/hjA+QEJt2sZPaUdlr8S2hkrwj/ X-Received: by 2002:a17:906:4810:: with SMTP id w16mr22463406ejq.226.1588055857745; Mon, 27 Apr 2020 23:37:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588055857; cv=none; d=google.com; s=arc-20160816; b=fUf+4dFpLE/g5wxm3IApA/L4d9ORBJ2+rkKPHbrhWDpa2ogn6i8WP4DOy4VTmUZ80x htVkyf6n7Q+nO8djMUYHiJqGcedfc9TfuQvpuYn0TtdLoy1K7Zk4Xg7AzpCjzy5nGhAL 5jh6YBg+kO0dA+6HHDHkRAfZefGgqn+THFK77StTT5hrFgmj9Ih8pzu0+mtONRv94lO+ SiCv20cMlDxn0VNQwqxhB7tDVW/duUBWvO2ixTjSLfoSk1UHaMfZX99aOCMuIBGs2hT9 9sDUlGg/0qC7jdosiO88+iz7DwBb+14LbJa6Gw07gGZ1I4+PugtH5hMOxqpQg/D3Ox2d U6EQ== 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:message-id:date:subject:cc:to:from :dkim-signature; bh=z0I/X+jeUTZ6dj5LjQgzBB/3C4MKAUwaO0j992NoIBg=; b=wjGwPBWrOTnjH3sKtadnBoeLV+Ve4o0bfQ14jq4RNRgWhWSwqcSFUQOB4Qpn9l3ZgL m19YR/yt7IZM/p6uxgHNZS9/X9Nxi7jcRswxsSU7woMuptXu2Ckv7P0CrLptfTo7FwkX zt5HgSC/SclRKmvIBijHf6PApdFp7A8drLvWHB743Fet9Xwqp3TpAvFBkipB6OreG/Cq OjOrwZFEZx2oFhgIwTLSkpGv53LClL1h/H03soqSAWCQcvd4poLu2JcxGIutPKvbZOJJ sO0+pgIc6iCOsBN3oVt6izX6aMkv5or/lRgoCztsx4fEE/7SIlIjw52gKXfVYkImM2+G hbVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@flygoat.com header.s=vultr header.b=exRDfo3x; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y8si1059199edw.356.2020.04.27.23.37.14; Mon, 27 Apr 2020 23:37:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@flygoat.com header.s=vultr header.b=exRDfo3x; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726599AbgD1Gdi (ORCPT + 99 others); Tue, 28 Apr 2020 02:33:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726284AbgD1Gdg (ORCPT ); Tue, 28 Apr 2020 02:33:36 -0400 Received: from vultr.net.flygoat.com (vultr.net.flygoat.com [IPv6:2001:19f0:6001:3633:5400:2ff:fe8c:553]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 018FEC03C1A9; Mon, 27 Apr 2020 23:33:36 -0700 (PDT) Received: from localhost.localdomain (unknown [IPv6:2001:da8:20f:4430:250:56ff:fe9a:7470]) by vultr.net.flygoat.com (Postfix) with ESMTPSA id 2138820CDE; Tue, 28 Apr 2020 06:33:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=flygoat.com; s=vultr; t=1588055615; bh=tM9mU9m/7GbgevvpCla3WmP7vNgLDezA1ofrTasUkjQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=exRDfo3x0Xum/awSZYLfgFGUj3eiROPhW6nOGPM8n1pxv1rnr5gL+8BrA1CsQJM9r ovDO7wJkSLxviH/wnPcQhWlVFaNVY/+UzXJ6jilPtkV74CRwO3y5ef8BuTC4e5xVyy Sl6/5vnMGIffkUVcEZTl/6NExNNQc2d9jeuwbt17xGWsmPqXeCwcZf55qz1JjtG7l8 +aZgNus9vaIcoRqKbuYBwBMIOJkKlDIJiip4TWL3fYYzGq+vUaZk3ibVB2zK0Ip3Gf A4EUQAUwsd4mxl8gBQH3fd5brKIYp0ZmBUpE1ID+pKwxi01nDgHou0BpseAA63JCk8 +EP+3Cht6DguA== From: Jiaxun Yang To: maz@kernel.org Cc: Jiaxun Yang , Thomas Gleixner , Jason Cooper , Rob Herring , Huacai Chen , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-mips@vger.kernel.org Subject: [PATCH v2 2/6] dt-bindings: interrupt-controller: Add Loongson HTVEC Date: Tue, 28 Apr 2020 14:32:41 +0800 Message-Id: <20200428063247.2223499-2-jiaxun.yang@flygoat.com> X-Mailer: git-send-email 2.26.0.rc2 In-Reply-To: <20200428063247.2223499-1-jiaxun.yang@flygoat.com> References: <20200422142428.1249684-1-jiaxun.yang@flygoat.com> <20200428063247.2223499-1-jiaxun.yang@flygoat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add binding for Loongson-3 HyperTransport Interrupt Vector Controller. Signed-off-by: Jiaxun Yang --- .../interrupt-controller/loongson,htvec.yaml | 59 +++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/loongson,htvec.yaml diff --git a/Documentation/devicetree/bindings/interrupt-controller/loongson,htvec.yaml b/Documentation/devicetree/bindings/interrupt-controller/loongson,htvec.yaml new file mode 100644 index 000000000000..547a80c89eba --- /dev/null +++ b/Documentation/devicetree/bindings/interrupt-controller/loongson,htvec.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,htvec.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Loongson-3 HyperTransport Interrupt Vector Controller + +maintainers: + - Jiaxun Yang + +allOf: + - $ref: /schemas/interrupt-controller.yaml# + +description: | + This interrupt controller is found in the Loongson-3 family of chips for + receiving vectorized interrupts from PCH's interrupt controller. + +properties: + compatible: + const: loongson,htvec-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 + htvec: interrupt-controller@1fb000080 { + compatible = "loongson,htvec-1.0"; + reg = <0xfb000080 0x40>; + interrupt-controller; + #interrupt-cells = <1>; + + interrupt-parent = <&liointc>; + interrupts = <24 IRQ_TYPE_LEVEL_HIGH>, + <25 IRQ_TYPE_LEVEL_HIGH>, + <26 IRQ_TYPE_LEVEL_HIGH>, + <27 IRQ_TYPE_LEVEL_HIGH>; + }; +... -- 2.26.0.rc2