Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp468438ybz; Fri, 1 May 2020 02:26:43 -0700 (PDT) X-Google-Smtp-Source: APiQypLUJD1vAYalwmA+RATwUcR5hOewwO5R02c/NuMNXTnnXOnkjsKCERGdrpQqwSx122j2iqam X-Received: by 2002:a05:6402:3076:: with SMTP id bs22mr2821017edb.112.1588325203219; Fri, 01 May 2020 02:26:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588325203; cv=none; d=google.com; s=arc-20160816; b=oa2fsT4qy6Ts79bHlXOr5mkEoVlTvcV8LYmakoHhFozUdtRXMW5sPhy8tj2tb+xxkI dkNOu2oGBBV3Crk2s7HXlU6oGjOdAVCKEzQxwDtUaMKEltBZZUqfC4ZIunfOr3Rb54Qw GMRgAvdhWjF1JkEnT0N62bLVK/7ko5PrtNGeJekrpgFSxZ5aUwew8b0sE6EwFJpjHz1l ed2uHHn8zQMhQ+BH6mzcdMkXBVbk6eQvkrSjbOGx+cmD89SJ8fZ4FcP+6MSNPTzFvQ78 Gyzf3Mzpqf43zfY423tz8j3aC53o/LFmLfA66nxNM2Q0t+0wUnnfuqIO19K1HeBlXu4d Tbfw== 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=EjTXEXBDoN1gj5cD5nIjJDF92CBb6IliYIZ0dBRmY2Pihrw3YeeYXr1jTdJwgvtecA rrRsBqgZNxEKa00jKztYnRoYI1WUxj3ZcsYt3zLHTgFkTXMXpksgct/7Psi3NQegiMAQ OJZ+G8KJnIL32j5mm2aKt+l0stoLp9fkBtHeo3x5kISD2boGGpayGe38HYhSMX6+nF61 mgQxCrjxEJoijZ1zimc3NUWw8Oc8DO0qb4TTAjifNFZkr631Cp/YSBNvc9N8/L+O245P qkdQMrwN4HsHRNZrl65XKe5rVgOH+dv5hNB2ziXlFNP5hdaJGRuuaHeUIkmzJN7bd3HY G0dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@flygoat.com header.s=vultr header.b=BZK+D3L1; 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 c8si1317980ejr.252.2020.05.01.02.26.20; Fri, 01 May 2020 02:26:43 -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=BZK+D3L1; 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 S1728512AbgEAJWz (ORCPT + 99 others); Fri, 1 May 2020 05:22:55 -0400 Received: from vultr.net.flygoat.com ([149.28.68.211]:60842 "EHLO vultr.net.flygoat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728236AbgEAJWz (ORCPT ); Fri, 1 May 2020 05:22:55 -0400 Received: from localhost.localdomain (unknown [103.125.232.133]) by vultr.net.flygoat.com (Postfix) with ESMTPSA id C524620EE4; Fri, 1 May 2020 09:22:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=flygoat.com; s=vultr; t=1588324974; bh=tM9mU9m/7GbgevvpCla3WmP7vNgLDezA1ofrTasUkjQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BZK+D3L1ow8m+rmK6rVeXm9tvbtgTMot6N1cSMv4xuaSrYlCwHFIeZ9BULgasFGpC TiYMT23MxeDxTYoVOt2O9fVWefkTCN8yYEDHyQ7rnM7CzqDIJh/PxYaImFd8pcx9w7 73C28ZLHpuK9a1ZcRwDkbetzS+2c8dhhTwRRfaQr/43NHIGzWqNXjGx6F1g9a1O1zV o1MWrZ/se/APGPI8BaX82u7mqgZGaK5xQ1jibmqss1Cps+Lq3oL1z/AJi8gmaErVcI kCeJmFHM3GXKr5GcQP/Ya5SuUD/VDbYtrkSYc4hcWkp26ShTFYIfc128HTlFr37dBp UUhmQj+Bjj8UQ== 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 v3 2/6] dt-bindings: interrupt-controller: Add Loongson HTVEC Date: Fri, 1 May 2020 17:21:33 +0800 Message-Id: <20200501092139.2988670-2-jiaxun.yang@flygoat.com> X-Mailer: git-send-email 2.26.0.rc2 In-Reply-To: <20200501092139.2988670-1-jiaxun.yang@flygoat.com> References: <20200422142428.1249684-1-jiaxun.yang@flygoat.com> <20200501092139.2988670-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