Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1119820ybk; Sat, 16 May 2020 01:31:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzTFh+0XiSkRWundjgs826DqoHA4I+TPMjezz/rfxmjA9zgqrGkGamANj0glqfKDxtnxb0q X-Received: by 2002:a17:907:10c2:: with SMTP id rv2mr6033357ejb.309.1589617897052; Sat, 16 May 2020 01:31:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589617897; cv=none; d=google.com; s=arc-20160816; b=spA1MGgcBg3twHbFVuDimZGRr1XiYwSXxHwV8rNtap2aVQBKmu3jatjtCLLsSoG0g+ 4a6DtvDo5mr6qOJOxz08YyV6jut0JCrdHiEsbHEIH/gkOOV5AIcvJUtDYXJQz4UF/Mfu Y9MWbmnPFWsZbkJbFrl4PpCgJmPhUWGQ4qEzuJfUmIPCCT2eAb5kk7G/LRbOVqnmoJpR /Apxy3tXcikqB+bKP3VQmn1JehI0T00SzuOahBcvrggyVeYjKUixv+vm06pbTWpeX5tI dOzzx8+MpMALCFzxViTg5H6cCmvMaagdgoVJJU0jjuAn4KlcThFVUmXCJApY0OumdhMt VBVQ== 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=I2cwZBX0w0215QCOBVlePTsWffnweK7QkeEKd1njLPk=; b=USi65HRL/Br0xHWa/di/SkoZSD09Y3IeBGMitV+myc2VotED6+eBVSeUczo8EqMSzS 1UqhYrbiAooPxehWJ6eMPYiegUf9/J+/ROBU81Rt7wNTJc5HXEOF/M+JTbbmEzJiG6OF IUOEqdEUJd6YIDoLUqSRv/njNcm3kajzP3vYET0JIRGw0Q3AAka86L0qEL5lAT443Mpj X0WFfDVXDbGL0TyK2QKkJaFXMSGM5deBYV/6YAzx200MSQdB7Z6euMtTZY1CoFu6j+ac 1GzxNuJIoeFNkvMjBDQTiUuIL1j+Ows/JF4p5R+Kop5/N+94Gkii1R4rGknDXCiRSVKd e+BQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@flygoat.com header.s=vultr header.b=wqc+eH54; 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 y13si3367354edm.59.2020.05.16.01.31.13; Sat, 16 May 2020 01:31: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=wqc+eH54; 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 S1726925AbgEPI3u (ORCPT + 99 others); Sat, 16 May 2020 04:29:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725934AbgEPI3t (ORCPT ); Sat, 16 May 2020 04:29:49 -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 C4FC8C061A0C; Sat, 16 May 2020 01:29:49 -0700 (PDT) Received: from localhost.localdomain (unknown [142.147.94.151]) by vultr.net.flygoat.com (Postfix) with ESMTPSA id 9ED9821015; Sat, 16 May 2020 08:29:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=flygoat.com; s=vultr; t=1589617788; bh=A4oRxq0dMuOpx/3aB5frBbz3pdt/tjtxdcwCB5u6kPw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wqc+eH543srFNFdzr5zzVl7gxufd3RZKeSiFcyLT9dPzHtsDLwNntqFTADHaVt0RU L8TUCd8VEF1egSUwci0V4MFyJCz6MCr8aMdjOe9DYSpIy50Ir4Aq9/hRbW+ADBxJqa 5p5r15rmKJSyppzlgQSVFeXybo0wPp/5ZreK+cJIMLJ2ZEef4fNJJLiMZkpmg2dukh hFkG1b+2yq57N8cH1zLTdwRX/J006OyVR0NQv0Y2WccGKECuihOASyQBnPyK0R6v2q moFdau1Xb5ukvJtkDbXCLY9k9U/AP3N1sNy9hm9tvIfA7lPd8LH06AZv6ndPNV6GFf gROlbaxboPLTg== 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 v4 2/6] dt-bindings: interrupt-controller: Add Loongson HTVEC Date: Sat, 16 May 2020 16:29:02 +0800 Message-Id: <20200516082912.3673033-2-jiaxun.yang@flygoat.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200516082912.3673033-1-jiaxun.yang@flygoat.com> References: <20200427060551.1372591-1-jiaxun.yang@flygoat.com> <20200516082912.3673033-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 -- v4: Drop ref, '|', add additionalProperties, fix example --- .../interrupt-controller/loongson,htvec.yaml | 58 +++++++++++++++++++ 1 file changed, 58 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..19f0109c2afd --- /dev/null +++ b/Documentation/devicetree/bindings/interrupt-controller/loongson,htvec.yaml @@ -0,0 +1,58 @@ +# 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 + +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' + +additionalProperties: false + +examples: + - | + #include + htvec: interrupt-controller@fb000080 { + 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.2