From patchwork Thu Nov 19 18:33:45 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?TcOlbnMgUnVsbGfDpXJk?= X-Patchwork-Id: 546601 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 466E4141474 for ; Fri, 20 Nov 2015 05:35:21 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934297AbbKSSen (ORCPT ); Thu, 19 Nov 2015 13:34:43 -0500 Received: from unicorn.mansr.com ([81.2.72.234]:51304 "EHLO unicorn.mansr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934289AbbKSSel (ORCPT ); Thu, 19 Nov 2015 13:34:41 -0500 Received: by unicorn.mansr.com (Postfix, from userid 51770) id 66C831538C; Thu, 19 Nov 2015 18:34:38 +0000 (GMT) From: Mans Rullgard To: Thomas Gleixner , Jason Cooper , Marc Zyngier , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 1/2] devicetree: add binding for Sigma Designs SMP86xx interrupt controller Date: Thu, 19 Nov 2015 18:33:45 +0000 Message-Id: <1447958026-3015-2-git-send-email-mans@mansr.com> X-Mailer: git-send-email 2.6.3 In-Reply-To: <1447958026-3015-1-git-send-email-mans@mansr.com> References: <1447958026-3015-1-git-send-email-mans@mansr.com> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This adds a binding for the secondary interrupt controller in Sigma Designs SMP86xx and SMP87xx chips. Signed-off-by: Mans Rullgard --- .../interrupt-controller/sigma,smp8642-intc.txt | 47 ++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/sigma,smp8642-intc.txt diff --git a/Documentation/devicetree/bindings/interrupt-controller/sigma,smp8642-intc.txt b/Documentation/devicetree/bindings/interrupt-controller/sigma,smp8642-intc.txt new file mode 100644 index 0000000..f82cddf --- /dev/null +++ b/Documentation/devicetree/bindings/interrupt-controller/sigma,smp8642-intc.txt @@ -0,0 +1,47 @@ +Sigma Designs SMP86xx/SMP87xx secondary interrupt controller + +Required properties: +- compatible: should be "sigma,smp8642-intc" +- reg: physical address of MMIO region +- interrupt-parent: phandle of parent interrupt controller +- interrupt-controller: boolean + +One child node per control block with properties: +- sigma,reg-offset: offset of registers from main base address +- interrupt-controller: boolean +- #interrupt-cells: should be <2>, interrupt index and flags per interrupts.txt +- interrupts: interrupt spec of primary interrupt controller +- label: (optional) name for display purposes + +Example: + +intc: interrupt-controller@6e000 { + compatible = "sigma,smp8642-intc"; + reg = <0x6e000 0x400>; + interrupt-parent = <&gic>; + interrupt-controller; + + irq0: irq0 { + sigma,reg-offset = <0x000>; + interrupt-controller; + #interrupt-cells = <2>; + interrupts = ; + label = "IRQ0"; + }; + + irq1: irq1 { + sigma,reg-offset = <0x100>; + interrupt-controller; + #interrupt-cells = <2>; + interrupts = ; + label = "IRQ1"; + }; + + irq2: irq2 { + sigma,reg-offset = <0x300>; + interrupt-controller; + #interrupt-cells = <2>; + interrupts = ; + label = "IRQ2"; + }; +};