Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5558489imu; Mon, 26 Nov 2018 02:06:45 -0800 (PST) X-Google-Smtp-Source: AFSGD/WTqRI8/DUoXFGvIeqSHif1N2r9Eou2Ch8uYov0FXAz6fRUVDnUXuy6sDhAPAkyqYrDgHpo X-Received: by 2002:a63:1f4e:: with SMTP id q14mr23263625pgm.88.1543226805162; Mon, 26 Nov 2018 02:06:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543226805; cv=none; d=google.com; s=arc-20160816; b=UfQdmSbUwUdBLk4NK/Zl2xmuU5aGmhuEgpIRGN45h1hQnFDOhiIJx0M7ndkMUBNc6M 8mIktfnxUp8tyI1yYKslYlbgCU3M9Wt+n3qF5XSRfmh8gWOkXf/gPPv8i5kvzDTtz4s4 6kqHrbgIDKiAdexMU4kRmuiengSwg0CqHtvpolX9Ut0fYiBWVMnoRM7IHRzqkeHXV6id p1pRGWJfB2igIChH4t1kPyl1gAPA95vBi0EM+vOMc3kV62ZuQN5HlV5ErdBBCQzk+dXY hTGBPsykhXdsJHkj6UNlNR2XZ6WZNxjYMohDl+mZdz8DVOovUw9iu1RbVfhrRBKQH3mb kKYA== 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=+8BgtmrnzRV6jqEBmRfekSzAtFaPEhbFAVOG5oUU/2E=; b=L+E2zRUJZ2JPKP8WaPtM9FHLYmoR0GmqpSzUq5oC0nmgoPA5vriuyoID6nYYZ8/qOj oT+ccHzI5XXiu1MqPBszFFr0xQ0bl1t/iec9/2SFUV9G7zmKWZ6nQhEN5HXZkZ/0BgfG ZJ3LbWyqWQ+MoBRIEVc+cUXzSBeepCa8Gxtgk6r45Zcohq2Yx12YccaoK3BHIuN6NTcj thWgKGyXMmClLQ7KWQXlZvit9+Cz7gcqOplB++kawV8y7XY7jw9H9gdU+2EZB1FQhBXI +ir14NbpYllGknF40b12+XIytBRiu2BMfcDKl8M2aQQK+6e1c7gd4ptFNC9NQQbr5ec8 9hPA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u4si60929622pga.91.2018.11.26.02.06.12; Mon, 26 Nov 2018 02:06:45 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726309AbeKZU6E (ORCPT + 99 others); Mon, 26 Nov 2018 15:58:04 -0500 Received: from mail-out.m-online.net ([212.18.0.10]:45786 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726176AbeKZU6E (ORCPT ); Mon, 26 Nov 2018 15:58:04 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 433Mvp63zgz1r0gc; Mon, 26 Nov 2018 11:04:22 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 433Mvn70mxz1qrnD; Mon, 26 Nov 2018 11:04:21 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id o4M988OONLLE; Mon, 26 Nov 2018 11:04:19 +0100 (CET) X-Auth-Info: GFw8rKSdpbRcbWIH92I8BHAB1iLGsqN4VfwyPHTvRxA= Received: from xpert.denx.de (unknown [62.91.23.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Mon, 26 Nov 2018 11:04:19 +0100 (CET) From: Parthiban Nallathambi To: marc.zyngier@arm.com, tglx@linutronix.de, jason@lakedaemon.net, robh+dt@kernel.org, mark.rutland@arm.com, afaerber@suse.de, catalin.marinas@arm.com, will.deacon@arm.com, manivannan.sadhasivam@linaro.org Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, thomas.liau@actions-semi.com, mp-cs@actions-semi.com, linux@cubietech.com, edgar.righi@lsitec.org.br, laisa.costa@lsitec.org.br, guilherme.simoes@lsitec.org.br, mkzuffo@lsi.usp.br, Parthiban Nallathambi Subject: [PATCH v3 0/4] Add Actions Semi Owl family sirq support Date: Mon, 26 Nov 2018 11:03:52 +0100 Message-Id: <20181126100356.2840578-1-pn@denx.de> X-Mailer: git-send-email 2.17.2 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series add support for external interrupt controller in Actions Semi Owl famil of SoC's (S500, S700 and S900). Actions provides support for external interrupt controller to be connected with it's SoC's using 3 SIRQ pins. Each line can be configures independently, i.e 3 independent external interrupt controller can be connected and managed parallely. Device tree node is created only for S700 after testing it in Cubieboard7. Changelog in v3: - Set default operating frequency to 24MHz - Falling edge and Low Level interrupts translated to rising edge and high level - Introduced common function with lock handling for register read and write - Used direct GIC interrupt number for interrupt local hwirq and finding offset using DT entry (range) when registers are shared - Changed irq_ack to irq_eoi - Added translation method for irq_domain_ops - Clearing interrupt pending based on bitmask for edge triggered - Added pinctrl definition for sirq for cubieboard7. This depends on, https://lore.kernel.org/patchwork/patch/1012859/ Changelog in v2: - Added SIRQ as hierarchical chip GIC <----> SIRQ <----> External interrupt controller/Child devices - Device binding updates with vendor prefix - Register sharing handled globally and common init sequence/data for all actions SoC family Thanks, Parthiban Saravanan Parthiban Nallathambi (4): dt-bindings: interrupt-controller: Actions external interrupt controller drivers/irqchip: Add Actions external interrupts support arm64: dts: actions: Add sirq node for Actions Semi S700 arm64: dts: actions: s700-cubieboard7: Enable SIRQ .../interrupt-controller/actions,owl-sirq.txt | 57 ++++ .../boot/dts/actions/s700-cubieboard7.dts | 19 ++ arch/arm64/boot/dts/actions/s700.dtsi | 10 + drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-owl-sirq.c | 301 ++++++++++++++++++ 5 files changed, 388 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/actions,owl-sirq.txt create mode 100644 drivers/irqchip/irq-owl-sirq.c -- 2.17.2