Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp520960ybm; Thu, 28 May 2020 08:31:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz1uGZRd01g5pCsvdHaq6qAak1RPXD4lV3/TTrNPzkynb7Uh2fRWzT8Mw0fJB3kVPuPVarX X-Received: by 2002:a50:f983:: with SMTP id q3mr3818723edn.259.1590679882646; Thu, 28 May 2020 08:31:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590679882; cv=none; d=google.com; s=arc-20160816; b=luXK38W78yrRIketmUplk7k2nDVxo1xDsm/XHbx7GwD7PgcLEYtelY3pafhImPngZk TAe928I9VQzocBour17dwdyuyPgg1EL6sj2YEbMGr6QpxMjbDdsqZQdrleBYTA2DIKum /B+roC7WabJ7IO+Me+ARxipjrMIvakhbJAZac5icWNOFx1TN8BXVH3r+F/Alq1Yy/cLB 3qW5hesBQJvgt8dZ2xlJLraMghHF8CUbkXRmYLL9nIJx0wGTj+17A+EiloxW4pTxw0Y9 dp3gCnoDaMOgRBp8yLefKLRQ8HcLzE7+Q5cl9xogLsKHWuq5sdNtzwyvy6xerbwkAtIz jsaQ== 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=wsJHtz4wfCbiojXXh9We8rVdjk2Lf4oVubGVZHEYrcI=; b=un4MmaxVw5bHcMWqpwdLJEDvd74HUh3SUERzzg5b0XaVQuk6ZYtkcKV2bVixUevuTi djFSEYGQBsat571k3BgeNhvF3Svlx8c9v2bfdTeH7XAzrVPRbY69QdFYSgadj9SQM20Q a+nO6uv8bh52b/xEoKakdUE9PG7c5FbJTA+3WBZwUkmKYhAsMMrzWmU+VWlKokByk016 Nw4JaK9vQKn8agtl6iWDal0fT5C67jtaeLlghgPf9ak14wd3ebg+Vv4779z2o2KKjfW0 jAL2+MZfeceSqVly+q3K1IYYSx+6QVpHmVbG/lqJvpbLcHdg3cyVS0zkr5IzT0/rNHzG RaIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@flygoat.com header.s=vultr header.b="FzuqW0/l"; 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 w4si3986057ede.150.2020.05.28.08.30.59; Thu, 28 May 2020 08:31:22 -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="FzuqW0/l"; 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 S2404420AbgE1P3B (ORCPT + 99 others); Thu, 28 May 2020 11:29:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404404AbgE1P2w (ORCPT ); Thu, 28 May 2020 11:28:52 -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 08007C08C5C6; Thu, 28 May 2020 08:28:52 -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 2B5E120F11; Thu, 28 May 2020 15:28:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=flygoat.com; s=vultr; t=1590679731; bh=itQq/GtS9SPzJ5vE89BkS0b5jPSUmzZaIbqMNYrziTA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FzuqW0/lo6SZ29zIQXxPXq+Jx+2mIdhpFW1GunOjumykePHwpotGlJgxGzr1Ghc7T nM/VIKG2b7+r5702pMnqbQdw5pe+SlOxgFZHdmQ4ScH6peV2AI+1kCb93w8r2hH+1J ID3AH33I5HVmOu7pW7BRyDMf9Fiku/MxFKrXnhCDGToHOQf97sBdq1Uqt9ygOpKveH GXNApTTpHm7VaewGaaqsplT4/BHfa/KkCU+VEZOOM1Eftn4M/YebKw3qA8FJ4Io6jO YdXe+MEbfpaTW8Gs+AmgYDiWWfQZTGs4Tb3lhfR8Vetqsf1MzuaRJh4XUJdyMts1If jyer7p0uERmag== 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 v5 2/6] dt-bindings: interrupt-controller: Add Loongson HTVEC Date: Thu, 28 May 2020 23:27:50 +0800 Message-Id: <20200528152757.1028711-3-jiaxun.yang@flygoat.com> X-Mailer: git-send-email 2.27.0.rc0 In-Reply-To: <20200528152757.1028711-1-jiaxun.yang@flygoat.com> References: <20200528152757.1028711-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 | 57 +++++++++++++++++++ 1 file changed, 57 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..e865cd8f96a9 --- /dev/null +++ b/Documentation/devicetree/bindings/interrupt-controller/loongson,htvec.yaml @@ -0,0 +1,57 @@ +# 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.27.0.rc0