Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp756548ybz; Wed, 22 Apr 2020 07:28:09 -0700 (PDT) X-Google-Smtp-Source: APiQypKGGFgm0u1Jl23WAbsqrXb/dwcX0OzdgsIk+/uOd8wdClM1WCERu5peUDUB5t0L2pvMcbiP X-Received: by 2002:a17:906:3296:: with SMTP id 22mr27037126ejw.195.1587565689185; Wed, 22 Apr 2020 07:28:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587565689; cv=none; d=google.com; s=arc-20160816; b=QphX/lPCvRHnCqGFutXyI0IacErLKbFRocYIqXZLliyaIW9dyB5nJLSWfl6tt2Uo86 VU61qg511Tkp5b0oMKaWTJvENULng10HE6AQM5gbYBqZU58G0bmqR3G6sYR8P9sDYUx2 tNUYdso93MsCAMPdeHzynjStBPGcFx2qWOr6HN9PhAo7tE0hX/gzJ0bt9KiDpyKcJbGM EBtZzJcfaPUVxnW1uGiFnQDvHwew9dyMQzlsRkAon4+7uTT5wLg1RhbXqyQEqJKkxBgD ZKJuSRAEMRrpbNA9XjHJFrtDJF4LuR/RnK+7O9jPMWdx6SBuneF8Rd3Nqf8czEKjiH67 8dYg== 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=WBDZJq97Taie2A1Cb8Nhxbzgam/YK2kXpFpx5c1u0q99Zc6jC6wD/GwXsa82V0BLdt bh4T/JasTNuISFcNrYaOrfwOXw/vQKwgsP6qr4/4n4lXQFy8ZwIWxLz9/HFxjFmo5if1 sHCDFMMnLYrk6nPYdbOIIlfSCdlU7MPzzIh7G+OuiLXMDXDXSWudUa1ZO4f01mjopz6N EYNTOfTFroxIw1ikRbgc8sqek4sy6MpAN9+4qpD6ySozF0AUcpA7nuo+OZY8pYW+l4nX p5Jiux4GLvYvErOFXqxiXsPd3yDg/d6vIQW/AXi6m3ZPqYTzKzmXNqlFkVtx1l+fwT4d 7V2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@flygoat.com header.s=vultr header.b=mzeMyuWe; 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 a11si3438109edx.62.2020.04.22.07.27.40; Wed, 22 Apr 2020 07:28:09 -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=mzeMyuWe; 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 S1727913AbgDVO0Y (ORCPT + 99 others); Wed, 22 Apr 2020 10:26:24 -0400 Received: from vultr.net.flygoat.com ([149.28.68.211]:59282 "EHLO vultr.net.flygoat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727876AbgDVO0X (ORCPT ); Wed, 22 Apr 2020 10:26:23 -0400 Received: from localhost.localdomain (unknown [IPv6:2001:da8:20f:4430:250:56ff:fe9a:7470]) by vultr.net.flygoat.com (Postfix) with ESMTPSA id 2354D20CDD; Wed, 22 Apr 2020 14:26:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=flygoat.com; s=vultr; t=1587565571; bh=tM9mU9m/7GbgevvpCla3WmP7vNgLDezA1ofrTasUkjQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mzeMyuWei9ItHJ8IJsuBBUvTjxZroCC4Gg7Xf67IYSRA6Ddilwn4mK5unjPI4p3ZB 67tQtoyAgeF/X7zLGgAWmoXEL8TyUfstlQjr9diKRp0uMmmiTVOP9iNF7GFiyALntM OGnfAYgUoSCxU2oYlGY2LMT8YsA8rRUol99K558SbQy5HrUp1mQH445q/hgFLtuCcD UDVbFshUGXnSFH6RKH+YAoemcDSIltpqutWFeb7l6/+Vfg3YsVwuihgxK7I3htl4K0 nIbljcHuAv6B4MzUUqZaMHH2gSiV9WjXroF1gUjmBpPdFSaJfe/NfFi4ZgAOwAkc1/ 8H4Lmzz9u1Dpg== From: Jiaxun Yang To: linux-mips@vger.kernel.org, maz@kernel.org Cc: Jiaxun Yang , Thomas Gleixner , Jason Cooper , Rob Herring , Huacai Chen , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 2/6] dt-bindings: interrupt-controller: Add Loongson HTVEC Date: Wed, 22 Apr 2020 22:24:22 +0800 Message-Id: <20200422142428.1249684-3-jiaxun.yang@flygoat.com> X-Mailer: git-send-email 2.26.0.rc2 In-Reply-To: <20200422142428.1249684-1-jiaxun.yang@flygoat.com> References: <20200422142428.1249684-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