Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7560306imu; Tue, 22 Jan 2019 07:56:20 -0800 (PST) X-Google-Smtp-Source: ALg8bN5+Nm5KP1BnKWDyEQamGp1qOfi5c2jcGmXs3PKWs4aY6Ob4BP4lK+LNvmWGesRgkoQZ0GwI X-Received: by 2002:a63:4f20:: with SMTP id d32mr25291649pgb.47.1548172580492; Tue, 22 Jan 2019 07:56:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548172580; cv=none; d=google.com; s=arc-20160816; b=SBvY6SM1Zgo2r8tOD0cfqd0u72jC27lprv44YP4vl4YxV1Aii2k7qKXP6Z7UqnnaXK nblAZVLA88yG8FfJguM3hRz7CDGsXhTSc/nlYQ3awPoNLtkKnkdfeplGefTmviJfvXcS hDSsgC4WMNN8WbeD1v8t1Adt9LlZw1J40cPGTYxFShVjp4LOKyPP5LpDiSh5R90SWuoB HucbdMbVWwCOa5Tsf/eZK8i4CC3Ig7vnwRiBtGH2SpMfbegPdd2rAjvo0nWtsz5bEAEm GIT6JJqMSLoGI7UF3P/IBWteohdKo5rWXfr5lfnie96Ko4z33itDMUDW2FqPuC/A93R/ AhhQ== 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=Cy3YfTKVedlMOPcvsbreKGh2HuxKAuYCCTP2n4egK9M=; b=RbJBALuYSaQ6Pb06p7TfBHvWpLYJb0DWQfI/IpRRh9IWQdRqiP1qqPXcnhrmbs9hnT bBm9YJvd2ILQgHMY9AR76m/hWBTz2/L8bwX1KH1jBC5VPtqRka00w4ALm1w2LmSqm6tu xNY+HY453M4xTX62/LtCbqW+YZKHnnhGwr5TjXGeUdMylCDjWZXBt2d90HTef52O21vb oXAmS1RFMybruXwz6klWNbUuScioLEszx0Gy9+3ZhWAGYCRMUssc7ZKDPXvugI7VuQj8 SemV/C3tSWg+cQpOYg2iek78b0Kk15VSJ0vlX3y2T0iNeKHNs3lYXzt3KQ0r48b1Stip TJ8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@flygoat.com header.s=mail header.b=hgPaeVZB; 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 d9si15479813pgb.105.2019.01.22.07.56.04; Tue, 22 Jan 2019 07:56:20 -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=hgPaeVZB; 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 S1728895AbfAVPyr (ORCPT + 99 others); Tue, 22 Jan 2019 10:54:47 -0500 Received: from forward100p.mail.yandex.net ([77.88.28.100]:35693 "EHLO forward100p.mail.yandex.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728886AbfAVPyq (ORCPT ); Tue, 22 Jan 2019 10:54:46 -0500 X-Greylist: delayed 500 seconds by postgrey-1.27 at vger.kernel.org; Tue, 22 Jan 2019 10:54:44 EST Received: from mxback16g.mail.yandex.net (mxback16g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:316]) by forward100p.mail.yandex.net (Yandex) with ESMTP id 13B765980743; Tue, 22 Jan 2019 18:46:23 +0300 (MSK) Received: from smtp3p.mail.yandex.net (smtp3p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:8]) by mxback16g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 313qSiJdMK-kMZqsANZ; Tue, 22 Jan 2019 18:46:23 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; s=mail; t=1548171983; bh=Cy3YfTKVedlMOPcvsbreKGh2HuxKAuYCCTP2n4egK9M=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=hgPaeVZBQjvsKGLI97fLxxUAlMxpB6FqbXW0Jud/4KdoC1KEj+9PZGDWsldN/Ht3A i9tSaAUDGP0YTcOvpVaa+LBwELL/EcnQQweIBOhVig/uC1nNJETOsm9AfNLrgObc+N qftLiSrccIMdIysJpIxHi6L37KgeUhrUQFBGnIKE= Authentication-Results: mxback16g.mail.yandex.net; dkim=pass header.i=@flygoat.com Received: by smtp3p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id h0vAak8Ad8-kH48AfkH; Tue, 22 Jan 2019 18:46:20 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) From: Jiaxun Yang To: linux-mips@vger.kernel.org Cc: linux-kernel@vger.kernel.org, paul.burton@mips.com, devicetree@vger.kernel.org, tglx@linutronix.de, robh+dt@kernel.org, Jiaxun Yang Subject: [PATCH 2/2] dt-bindings: interrupt-controller: loongson ls1x intc Date: Tue, 22 Jan 2019 23:45:57 +0800 Message-Id: <20190122154557.22689-2-jiaxun.yang@flygoat.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190122154557.22689-1-jiaxun.yang@flygoat.com> References: <20190122154557.22689-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 Dt-bindings doc about Loongson-1 interrupt controller Signed-off-by: Jiaxun Yang --- .../loongson,ls1x-intc.txt | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/loongson,ls1x-intc.txt diff --git a/Documentation/devicetree/bindings/interrupt-controller/loongson,ls1x-intc.txt b/Documentation/devicetree/bindings/interrupt-controller/loongson,ls1x-intc.txt new file mode 100644 index 000000000000..afa8fec45f88 --- /dev/null +++ b/Documentation/devicetree/bindings/interrupt-controller/loongson,ls1x-intc.txt @@ -0,0 +1,28 @@ +Loongson ls1x Interrupt Controller + +Required properties: + +- compatible : should be "ingenic,-intc". Valid strings are: + loongson,ls1b-intc + loongson,ls1c-intc + +- reg : Specifies base physical address and size of the registers. +- interrupt-controller : Identifies the node as an interrupt controller +- #interrupt-cells : Specifies the number of cells needed to encode an + interrupt source. The value shall be 1. +- interrupts : Specifies the CPU interrupts the controller is connected to, + - For ls1b, it must have 4 interrupts. + - For ls1c, it must have 5 interrupts. + +Example: + +intc: interrupt-controller@1fd01040 { + compatible = "loongson,ls1c-intc"; + reg = <0x1fd01040 0x78>; + + interrupt-controller; + #interrupt-cells = <1>; + + interrupt-parent = <&cpu_intc>; + interrupts = <2>, <3>, <4>, <5>, <6>; +}; \ No newline at end of file -- 2.20.1