Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2693830ybl; Sun, 12 Jan 2020 00:21:51 -0800 (PST) X-Google-Smtp-Source: APXvYqyEi3Z521kxm9Tzjf7KKZFAheHVqfSkSqhSHah7JPY9q2qsku7EYi1Tk8y0U2NsYrhRVvFD X-Received: by 2002:a05:6808:10d:: with SMTP id b13mr8936738oie.69.1578817311188; Sun, 12 Jan 2020 00:21:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578817311; cv=none; d=google.com; s=arc-20160816; b=AqeJwAFWq3HHgTzpFxIVCDrIWOeEsvIT+MBz91rBlov7bYNqHznS01Q6hs27Ap6/IL hkXorrlXjoFQFf5pYItU2I32gw7hWRNIf4fhXHo1O5frChtyrS5k290f/i0Suw3hpNol QERV22x+zvwIs1zyUDUR8pgLl8DGe2B5vUYQmZ3AMrtUNx1DPP3u9aKyvec/Feg+tAao ugeah+UV7ArAO3lmUcJ8eAjSZNcP8zHWVhkLy/XhfC79W/vaIIaK5aSPMJHlP3G5jIoV Tr76BfClbX5KTtcHSf6ruFf+OzizHFiq1hktxISGHGaF2AMoxLlPKanW79tSM4Q4gdTc VcTQ== 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=kFUYrcnxgHhYt9NZF/PFTRJ9jW7qOpJ8qLdxtiiXBEo=; b=aEQRWpuoYaPhfda9nfSFDDq8+VsS59d+GhtMpZ3VJfJsEfp2n5FHTciE9gv9Cp6YS3 LqaMO2yECtcA+pUMIWnFYwL6SX3l8hb/b1/xwoffURt7yxFFKP5ARGdBYgxy+xHtyzq1 bjEGOQFmEttb6Fmyo49sEXhw8L3TvFA5QmTWshv+rWFS+j6LpJYe9v3IPCGrAvOvRgtI vt20Eq8akavNz0pJqP63NqYnO6uD91KKZ3V3TM0iHEFhSOus//PislGIlis3udRGWg1d mtDgfslE0h0uR4+pu/ORV+TwdvsjnNmvSRG2BiYjvAmqF9t0lU/S/s5ZVs6EJ/w4rN41 KLYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@flygoat.com header.s=mail header.b=vtVOJ5uu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l20si4056259oil.224.2020.01.12.00.21.40; Sun, 12 Jan 2020 00:21:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@flygoat.com header.s=mail header.b=vtVOJ5uu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732414AbgALIUo (ORCPT + 99 others); Sun, 12 Jan 2020 03:20:44 -0500 Received: from forward104o.mail.yandex.net ([37.140.190.179]:48898 "EHLO forward104o.mail.yandex.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732369AbgALIUo (ORCPT ); Sun, 12 Jan 2020 03:20:44 -0500 Received: from forward100q.mail.yandex.net (forward100q.mail.yandex.net [IPv6:2a02:6b8:c0e:4b:0:640:4012:bb97]) by forward104o.mail.yandex.net (Yandex) with ESMTP id 440DD940B15; Sun, 12 Jan 2020 11:15:21 +0300 (MSK) Received: from mxback10q.mail.yandex.net (mxback10q.mail.yandex.net [IPv6:2a02:6b8:c0e:1b4:0:640:b6ef:cb3]) by forward100q.mail.yandex.net (Yandex) with ESMTP id 3EA1D7080004; Sun, 12 Jan 2020 11:15:21 +0300 (MSK) Received: from vla1-ee05250d997a.qloud-c.yandex.net (vla1-ee05250d997a.qloud-c.yandex.net [2a02:6b8:c0d:3495:0:640:ee05:250d]) by mxback10q.mail.yandex.net (mxback/Yandex) with ESMTP id zMZ6PamTTa-FKq0GxCt; Sun, 12 Jan 2020 11:15:21 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; s=mail; t=1578816921; bh=kFUYrcnxgHhYt9NZF/PFTRJ9jW7qOpJ8qLdxtiiXBEo=; h=In-Reply-To:Subject:To:From:Cc:References:Date:Message-Id; b=vtVOJ5uuuwcqZt3Wp7mDGcWm2RTU0ac3q6QqObK27nejqJ+QKpZyybI9vTpYCpsMh JxWONnunGnLvc21+FaEOMuWidfSRcIzrdpdhKy+x6o/Z/uKkZ3ZsbgVcGDIX7bKuhb VTRw3D1A/eOEQP6JVMH4Y98E3MU+c+5vvL6DodNU= Authentication-Results: mxback10q.mail.yandex.net; dkim=pass header.i=@flygoat.com Received: by vla1-ee05250d997a.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id 3jM5RHRYtF-FDV4R9L7; Sun, 12 Jan 2020 11:15:18 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) From: Jiaxun Yang To: linux-mips@vger.kernel.org Cc: chenhc@lemote.com, paul.burton@mips.com, tglx@linutronix.de, jason@lakedaemon.net, maz@kernel.org, linux-kernel@vger.kernel.org, robh+dt@kernel.org, mark.rutland@arm.co, devicetree@vger.kernel.org, Jiaxun Yang , Rob Herring Subject: [PATCH v3 05/10] dt-bindings: interrupt-controller: Add Loongson-3 HTPIC Date: Sun, 12 Jan 2020 16:14:11 +0800 Message-Id: <20200112081416.722218-6-jiaxun.yang@flygoat.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200112081416.722218-1-jiaxun.yang@flygoat.com> References: <20200112081416.722218-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 Document Loongson-3 HyperTransport PIC controller. Signed-off-by: Jiaxun Yang Reviewed-by: Rob Herring --- .../interrupt-controller/loongson,htpic.yaml | 59 +++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/loongson,htpic.yaml diff --git a/Documentation/devicetree/bindings/interrupt-controller/loongson,htpic.yaml b/Documentation/devicetree/bindings/interrupt-controller/loongson,htpic.yaml new file mode 100644 index 000000000000..efcc3f43e45b --- /dev/null +++ b/Documentation/devicetree/bindings/interrupt-controller/loongson,htpic.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,htpic.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Loongson-3 HyperTransport Interrupt Controller + +maintainers: + - Jiaxun Yang + +allOf: + - $ref: /schemas/interrupt-controller.yaml# + +description: | + This interrupt controller is found in the Loongson-3 family of chips to transfer + interrupts from PCH PIC connected on HyperTransport bus. + +properties: + compatible: + const: loongson,htpic-1.0 + + reg: + maxItems: 1 + + interrupts: + minItems: 1 + maxItems: 4 + description: | + Four parent interrupts that recieve chained interrupts. + + interrupt-controller: true + + '#interrupt-cells': + const: 1 + +required: + - compatible + - reg + - interrupts + - interrupt-controller + - '#interrupt-cells' + +examples: + - | + #include + htintc: interrupt-controller@1fb000080 { + compatible = "loongson,htintc-1.0"; + reg = <0x1fb000080 0x100>; + interrupt-controller; + #interrupt-cells = <1>; + + interrupt-parent = <&iointc>; + interrupts = <24 IRQ_TYPE_LEVEL_HIGH>, + <25 IRQ_TYPE_LEVEL_HIGH>, + <26 IRQ_TYPE_LEVEL_HIGH>, + <27 IRQ_TYPE_LEVEL_HIGH>; + }; +... -- 2.24.1