Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1936155ybl; Thu, 5 Dec 2019 09:16:23 -0800 (PST) X-Google-Smtp-Source: APXvYqz5j9ujtRx7Qocr/LZAjPQeAyBKg/EbjS7Aodun1PdlXtQg5jJOHzTF9/kiue6EMthS4JR9 X-Received: by 2002:a9d:1449:: with SMTP id h67mr7700867oth.317.1575566183648; Thu, 05 Dec 2019 09:16:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575566183; cv=none; d=google.com; s=arc-20160816; b=PuDkYVKh7rmbwiTqC6XB4rsAtuaudqLzMImd/m8W8J7O/chIR7NaAPJMwyzeyVQ+Ne aCYFI9EWfbNQ6cEhhMyFpH+sptj7qq+scGTr4+C0ipngoMshDmfuYm9k0ta8hIrRZYvG diVck3towbB9PeBvJZpx5gcxn6q7ZjkjbQztpAgORMkNEvSuuHUWFaazQxI6JHnbCT12 jpf8RVb7pe/5egH9p4+Q3rHQHRFkXYQWSgOTGYXTzQBfDDpLKRjk66K6IvtZmtXwFyqC pGS57APB389gzgmE6sEn1NhDFytqIzd5Ali7SXe7aSQ+jY9B4aVsmDKtjs4iyxZxNr0U fR1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=V7T8hQjcHFqHv/wXvm7As/l+bisB+E9HGsxVmwcKexg=; b=tT6VyHrN03NiIA7ZPPrq1NGFdKlB126ZKuHiwPbItgytHc3DWXi6jcAXFehIm1j7nD e0T30hbaR0Pa3KM3Rm5aXjFH/4FkroMYr8ea5mpFn9wj74TCnDDrHeBXDaLCaRa2Zqxn 7nGsdABJlxwBSROPDL58QIhSltpY3qqr38M6VLWm+TmhQFmyuJnnUd0UjQmbj4zdSEzX 2JrlONLQozVoOw9sAfuG7fMe4taJw20eKvaaAyMkr9xnbXqmxMCRAPqW5eoCtAmwnAIx 1pqk8HPArbQWlCMUyHF/gIeXnQ3hEsd80DNCjjY1PCP1H2teZ4J5jKPROz+Wwcwt8phF fPGg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c12si4743991otp.310.2019.12.05.09.16.10; Thu, 05 Dec 2019 09:16:23 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730086AbfLERPg (ORCPT + 99 others); Thu, 5 Dec 2019 12:15:36 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:38310 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729450AbfLERPf (ORCPT ); Thu, 5 Dec 2019 12:15:35 -0500 Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id xB5H7pWV064799; Thu, 5 Dec 2019 12:15:16 -0500 Received: from ppma03dal.us.ibm.com (b.bd.3ea9.ip4.static.sl-reverse.com [169.62.189.11]) by mx0a-001b2d01.pphosted.com with ESMTP id 2wq14kr5e7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 05 Dec 2019 12:15:15 -0500 Received: from pps.filterd (ppma03dal.us.ibm.com [127.0.0.1]) by ppma03dal.us.ibm.com (8.16.0.27/8.16.0.27) with SMTP id xB5HAIYb032681; Thu, 5 Dec 2019 17:15:15 GMT Received: from b03cxnp07029.gho.boulder.ibm.com (b03cxnp07029.gho.boulder.ibm.com [9.17.130.16]) by ppma03dal.us.ibm.com with ESMTP id 2wkg27mku0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 05 Dec 2019 17:15:14 +0000 Received: from b03ledav001.gho.boulder.ibm.com (b03ledav001.gho.boulder.ibm.com [9.17.130.232]) by b03cxnp07029.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id xB5HFDeL32244076 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 5 Dec 2019 17:15:13 GMT Received: from b03ledav001.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B3AC96E053; Thu, 5 Dec 2019 17:15:13 +0000 (GMT) Received: from b03ledav001.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 04F8B6E050; Thu, 5 Dec 2019 17:15:12 +0000 (GMT) Received: from talon7.ibm.com (unknown [9.41.103.158]) by b03ledav001.gho.boulder.ibm.com (Postfix) with ESMTP; Thu, 5 Dec 2019 17:15:12 +0000 (GMT) From: Eddie James To: linux-kernel@vger.kernel.org Cc: devicetree@vger.kernel.org, jason@lakedaemon.net, linux-aspeed@lists.ozlabs.org, maz@kernel.org, robh+dt@kernel.org, tglx@linutronix.de, mark.rutland@arm.com, joel@jms.id.au, andrew@aj.id.au Subject: [PATCH v2 00/12] Aspeed: Add SCU interrupt controller and XDMA engine drivers Date: Thu, 5 Dec 2019 11:15:00 -0600 Message-Id: <1575566112-11658-1-git-send-email-eajames@linux.ibm.com> X-Mailer: git-send-email 1.8.3.1 X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,18.0.572 definitions=2019-12-05_05:2019-12-04,2019-12-05 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 spamscore=0 phishscore=0 mlxscore=0 priorityscore=1501 lowpriorityscore=0 clxscore=1015 suspectscore=1 adultscore=0 mlxlogscore=552 bulkscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1910280000 definitions=main-1912050144 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series first adds a driver to control the interrupt controller provided by the System Control Unit (SCU) on the AST2500 and AST2600 SOCs. The interrupts made available are necessary for the control of the XDMA engine embedded in the same Aspeed SOCs. This series then adds a driver to control the XDMA engine. This driver was previously sent to the list without support for the AST2600, and has been refactored significantly to enable that support. The XDMA engine performs automatic DMA operations between the Aspeed SOC (acting as a BMC) and a host processor. Changes since v1: - See individual patches - In summary, first the irqchip driver switched to use the parent SCU regmap rather than iomapping it's register. Secondly, the XDMA initialization switched to use properties from the device tree rather than dynamically calculate memory spaces, and system config. Eddie James (12): dt-bindings: interrupt-controller: Add Aspeed SCU interrupt controller irqchip: Add Aspeed SCU interrupt controller ARM: dts: aspeed: ast2500: Add SCU interrupt controller ARM: dts: aspeed: ast2600: Add SCU interrupt controllers dt-bindings: soc: Add Aspeed XDMA Engine drivers/soc: Add Aspeed XDMA Engine Driver drivers/soc: xdma: Add user interface ARM: dts: aspeed: ast2500: Add XDMA Engine ARM: dts: aspeed: ast2600: Add XDMA Engine ARM: dts: aspeed: witherspoon: Enable XDMA Engine ARM: dts: aspeed: rainier: Enable XDMA engine ARM: dts: aspeed: tacoma: Enable XDMA engine .../interrupt-controller/aspeed,ast2xxx-scu-ic.txt | 23 + .../devicetree/bindings/soc/aspeed/xdma.txt | 43 + MAINTAINERS | 16 + arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts | 5 + arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts | 5 + arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts | 5 + arch/arm/boot/dts/aspeed-g5.dtsi | 25 +- arch/arm/boot/dts/aspeed-g6.dtsi | 33 + drivers/irqchip/Makefile | 2 +- drivers/irqchip/irq-aspeed-scu-ic.c | 239 +++++ drivers/soc/aspeed/Kconfig | 8 + drivers/soc/aspeed/Makefile | 1 + drivers/soc/aspeed/aspeed-xdma.c | 1007 ++++++++++++++++++++ .../interrupt-controller/aspeed-scu-ic.h | 23 + include/uapi/linux/aspeed-xdma.h | 41 + 15 files changed, 1473 insertions(+), 3 deletions(-) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/aspeed,ast2xxx-scu-ic.txt create mode 100644 Documentation/devicetree/bindings/soc/aspeed/xdma.txt create mode 100644 drivers/irqchip/irq-aspeed-scu-ic.c create mode 100644 drivers/soc/aspeed/aspeed-xdma.c create mode 100644 include/dt-bindings/interrupt-controller/aspeed-scu-ic.h create mode 100644 include/uapi/linux/aspeed-xdma.h -- 1.8.3.1