From patchwork Tue Sep 8 07:11:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Leizhen \(ThunderTown\)" X-Patchwork-Id: 249276 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp4304021ilg; Tue, 8 Sep 2020 00:12:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyjADHEmVABRKv0eFF3FDXwCBrN627Ya8QBvxONROPfmlqT9E5V9P8Ay1/+Kibp6aUv1/su X-Received: by 2002:a50:fd19:: with SMTP id i25mr25882293eds.142.1599549176773; Tue, 08 Sep 2020 00:12:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599549176; cv=none; d=google.com; s=arc-20160816; b=bpGOtLu3oCPcghHvXBiLhh90sy8wc49xfwila2Z5J1p6rTxegWLIv/16fzDBdDI6BT OtJbOv2HSQKR7bZzZI/jTHqDN8zRGYNDg/l94MdN3ulwuvjk+SPgTYxDXdEjGj/QIVzM y47/vGWfTP7dqNmX/czVzW6RZWpwMg/A4SKP2QIqTpkSunWOsJ/dQCGGknMkdi7T751s BLo2LExYxhJYSLTLxSumbzNTnKv0yGVcP1SFN6HZRHih3same3F10xOvVNg+TeOCRV4E 6pLqvk/CbkWgrv6WaVqq7qHBGkM18w8u6i35Vmrkgk0+A0gPnBSQAb86s07pUT9d1k6o WqVw== 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; bh=iUstKOcRXWvctkwm7cmQ8UcU2WOqTT8VxzBSfwidEoc=; b=awyp/pkSEdbR9PTIGJoVhrx5nfKB4DQqluZKJkbNCkYDO3qXNZr98TcXqXlVgrxhh7 yNpWuzB1xLd9WHirUAr0YUfPlaohFpH2EV21JaOSDTHAD2+ITDRFPUSBx/+K1E0PRhhN BCUOgX0qRcbj395Z5SiHElox3jFG9+FpaOL3j1g1I/1Me0jjjwPEdE99ZTxfabT8NAn1 eqs8iBHS6VUoeF5K4iM5niVbgtf4kfPIw5IfM+wYOenRKW4GywYRtRgS7UzeqgMrzuBq wPccd0YmSZ28KtooSyDZoX8vTXKyaAh46BGCuOYpv7FIZLaIBhqr6IXrdOg4m0q5rLMz FQ4w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x15si11076770eje.180.2020.09.08.00.12.56; Tue, 08 Sep 2020 00:12:56 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728562AbgIHHMs (ORCPT + 6 others); Tue, 8 Sep 2020 03:12:48 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:57894 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729028AbgIHHMk (ORCPT ); Tue, 8 Sep 2020 03:12:40 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 69EFF89B22D7942ADF0F; Tue, 8 Sep 2020 15:12:36 +0800 (CST) Received: from thunder-town.china.huawei.com (10.174.177.253) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.487.0; Tue, 8 Sep 2020 15:12:29 +0800 From: Zhen Lei To: Thomas Gleixner , Jason Cooper , Marc Zyngier , Rob Herring , devicetree , linux-kernel CC: Zhen Lei , Sebastian Hesselbarth , Haoyu Lv , Libin , Kefeng Wang Subject: [PATCH v2 3/3] dt-bindings: dw-apb-ictl: support hierarchy irq domain Date: Tue, 8 Sep 2020 15:11:34 +0800 Message-ID: <20200908071134.2578-4-thunder.leizhen@huawei.com> X-Mailer: git-send-email 2.26.0.windows.1 In-Reply-To: <20200908071134.2578-1-thunder.leizhen@huawei.com> References: <20200908071134.2578-1-thunder.leizhen@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.174.177.253] X-CFilter-Loop: Reflected Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add support to use dw-apb-ictl as primary interrupt controller. Signed-off-by: Zhen Lei --- .../interrupt-controller/snps,dw-apb-ictl.txt | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) -- 2.26.0.106.g9fadedd diff --git a/Documentation/devicetree/bindings/interrupt-controller/snps,dw-apb-ictl.txt b/Documentation/devicetree/bindings/interrupt-controller/snps,dw-apb-ictl.txt index 086ff08322db..2db59df9408f 100644 --- a/Documentation/devicetree/bindings/interrupt-controller/snps,dw-apb-ictl.txt +++ b/Documentation/devicetree/bindings/interrupt-controller/snps,dw-apb-ictl.txt @@ -2,7 +2,8 @@ Synopsys DesignWare APB interrupt controller (dw_apb_ictl) Synopsys DesignWare provides interrupt controller IP for APB known as dw_apb_ictl. The IP is used as secondary interrupt controller in some SoCs with -APB bus, e.g. Marvell Armada 1500. +APB bus, e.g. Marvell Armada 1500. It can also be used as primary interrupt +controller in some SoCs, e.g. Hisilicon SD5203. Required properties: - compatible: shall be "snps,dw-apb-ictl" @@ -10,6 +11,8 @@ Required properties: region starting with ENABLE_LOW register - interrupt-controller: identifies the node as an interrupt controller - #interrupt-cells: number of cells to encode an interrupt-specifier, shall be 1 + +Additional required property when it's used as secondary interrupt controller: - interrupts: interrupt reference to primary interrupt controller The interrupt sources map to the corresponding bits in the interrupt @@ -21,6 +24,7 @@ registers, i.e. - (optional) fast interrupts start at 64. Example: + /* dw_apb_ictl is used as secondary interrupt controller */ aic: interrupt-controller@3000 { compatible = "snps,dw-apb-ictl"; reg = <0x3000 0xc00>; @@ -29,3 +33,11 @@ Example: interrupt-parent = <&gic>; interrupts = ; }; + + /* dw_apb_ictl is used as primary interrupt controller */ + vic: interrupt-controller@10130000 { + compatible = "snps,dw-apb-ictl"; + reg = <0x10130000 0x1000>; + interrupt-controller; + #interrupt-cells = <1>; + };