Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp197880ybl; Thu, 29 Aug 2019 21:29:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqydOsmwGX9vEPfgmSxT5J0/GuEQ7RGmY4qgQjcbu+PYka9CX+RdmsLWJmlkdS4sgaT4lGv0 X-Received: by 2002:aa7:8c4c:: with SMTP id e12mr15924818pfd.258.1567139376270; Thu, 29 Aug 2019 21:29:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567139376; cv=none; d=google.com; s=arc-20160816; b=1FYSTS+A0OU9uovYjOArJitNJNuSWWLri43Ylguz30cKSVBm/LhQQLI/SiqbD+JCme x3M/1or1MFGxXcgHQxVlBjhCLN6QPRr88fxC6EQn+5zeUMX/KmB7Jm66NBmU6rtVFmNf ZU51eZPE4Un00eBcwFyhYG2kzocDmXqFqbXcQ5XKfUMoI6DP9lt0LqcB5JMje3aB660w P8FzwlE8OilS4SfCZ7Oap/iM1xDTnbSgkw/dbInjr04918JzSDskspJFokkZrt73RF2Y kjdvG3PwOBKYFRKEBNLK3+eQIEndCxDaq0p7+91OanisWz10bOxB/XRagNuWjbQJSrIX iUjQ== 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=VD9k6EC93VnKj/3YVMc7QTVJI+Lj0puUJgN+sd5hBPM=; b=JzNImbCPihVrAJM5KU71AConBLD5fXil3/K6A8DwCXzOizED9u/M1ZAAflYj6LpEkE 29I7zjh/CKeqPAU8TAnOjGisRRaL1dWzHsjn3obbR7hVeUP/K2SIcsf61if9pQ150VEG t1BLJ6DJer6qfzOUzHCqMO4e0/SVzx1+JIbCDuEvKtUqBEFOFssp06aiGL8KeCjPpPcV gS9CVQJEgcR2qoPBFq22DWOIjsFf7GhEw8Vsp+iskN4nXDJT3sHKM0e9COwvdA/KdTFj ggxRec7f9ffhsFasx37WRYf6AOm7UD1vEwqX2caI1INpXYlq+CJ1h0XM+YpCuTNtRXD4 Uzqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@flygoat.com header.s=mail header.b=oHRiTfPQ; 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 c9si786145pjr.0.2019.08.29.21.29.21; Thu, 29 Aug 2019 21:29:36 -0700 (PDT) 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=oHRiTfPQ; 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 S1727945AbfH3E1x (ORCPT + 99 others); Fri, 30 Aug 2019 00:27:53 -0400 Received: from forward103p.mail.yandex.net ([77.88.28.106]:40595 "EHLO forward103p.mail.yandex.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726090AbfH3E1x (ORCPT ); Fri, 30 Aug 2019 00:27:53 -0400 Received: from mxback8o.mail.yandex.net (mxback8o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::22]) by forward103p.mail.yandex.net (Yandex) with ESMTP id E7F5318C0E9E; Fri, 30 Aug 2019 07:27:48 +0300 (MSK) Received: from smtp4o.mail.yandex.net (smtp4o.mail.yandex.net [2a02:6b8:0:1a2d::28]) by mxback8o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id RIxjjpkRAh-RmsmRf6L; Fri, 30 Aug 2019 07:27:48 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; s=mail; t=1567139268; bh=VD9k6EC93VnKj/3YVMc7QTVJI+Lj0puUJgN+sd5hBPM=; h=In-Reply-To:Subject:To:From:Cc:References:Date:Message-Id; b=oHRiTfPQvlpN9rsAvt54byqExEQqsvzjnFxtvzvZOwXJYxJ7/7isFeCyS+W8TXmeb N/tyXDlwNQS8W1eLyYJQRdTCM5HFz+/MJDzfGgDN5+IolGmZrtdHT4g2tc9kF/K8Ev 5czEle95liyXYIOrinz4Fy+G/kxiYcvV3EQTSE3c= Authentication-Results: mxback8o.mail.yandex.net; dkim=pass header.i=@flygoat.com Received: by smtp4o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 77UXTEcPDw-RdT0QfP1; Fri, 30 Aug 2019 07:27:46 +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 Subject: [PATCH v1 06/18] dt-bindings: interrupt-controller: Add Loongson-3 IOINTC Date: Fri, 30 Aug 2019 12:25:56 +0800 Message-Id: <20190830042608.19569-7-jiaxun.yang@flygoat.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190830042608.19569-1-jiaxun.yang@flygoat.com> References: <20190830042608.19569-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 I/O Interrupt controller. Signed-off-by: Jiaxun Yang --- .../loongson,ls3-iointc.yaml | 75 +++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/loongson,ls3-iointc.yaml diff --git a/Documentation/devicetree/bindings/interrupt-controller/loongson,ls3-iointc.yaml b/Documentation/devicetree/bindings/interrupt-controller/loongson,ls3-iointc.yaml new file mode 100644 index 000000000000..9aee10abd5cd --- /dev/null +++ b/Documentation/devicetree/bindings/interrupt-controller/loongson,ls3-iointc.yaml @@ -0,0 +1,75 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/interrupt-controller/loongson,ls3-iointc.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Loongson-3 I/O Interrupt Controller + +maintainers: + - Jiaxun Yang + +description: | + This interrupt controller is found in the Loongson-3 family of chips as the primary + package interrupt source which can route interrupt to interrupt line of cores. + +properties: + compatible: + const: loongson,ls3-iointc + + reg: + maxItems: 1 + + + interrupt-controller: true + + "#interrupt-cells": + description: | + Specifies the number of cells needed to encode an interrupt source. + Must be 2 or 4. + If the system requires describing interrupt line & core mapping, than + it must be 4. + + The 1st cell is the hardware interrupt number. + + The 2nd cell is the flags, encoded as follows: + bits[3:0] trigger type and level flags. + 1 = low-to-high edge triggered + 2 = high-to-low edge triggered + 4 = active high level-sensitive + 8 = active low level-sensitive. + + The 3rd is the parent interrupt line that interrupt would map to. + As the CPU preserved 4 interrupt lines for I/O, in theory any of the iointc + interrupt can be chained to any interrupt lines on a core. But currently + we can only map all the interrupt to a single parent, so this cell must be + set uniformly for all the child interrupts corresponding to the parent + interrupt. + + The 4th is the parent core that interrupt would map to. The interrupt + contoller can map any of the interrupt to the specified core on a package. + This cell determined the core. It must be the bootcore. + + If the 3rd, 4th cell is not set, it will default to the 0# interrupt line + and bootcore. + + enum: [ 2, 4 ] + +required: + - compatible + - reg + - interrupts + - interrupt-controller + - '#interrupt-cells' + + +examples: + - | + iointc: interrupt-controller@3ff01400 { + compatible = "loongson,ls3-io-intc"; + reg = <0x3ff01400 0x60>; + interrupts = <2>; + interrupt-controller; + #interrupt-cells = <4>; + }; +... -- 2.22.0