Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751700AbdFGLMj (ORCPT ); Wed, 7 Jun 2017 07:12:39 -0400 Received: from mx07-00252a01.pphosted.com ([62.209.51.214]:64307 "EHLO mx07-00252a01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751483AbdFGLLc (ORCPT ); Wed, 7 Jun 2017 07:11:32 -0400 To: Mark Rutland , Rob Herring , Stephen Boyd , Florian Fainelli , Eric Anholt , Stefan Wahren , devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-kernel@vger.kernel.org From: Phil Elwell Subject: [PATCH 0/2] Add bcm2835aux interrupt controller Message-ID: <6dc301c8-e5a2-1334-c476-1ce7e303787f@raspberrypi.org> Date: Wed, 7 Jun 2017 12:11:29 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-06-07_08:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_spam_notspam policy=outbound_spam score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1703280000 definitions=main-1706070206 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 891 Lines: 21 Devices in the AUX block share a common interrupt line, with a register indicating which devices have active IRQs. Expose this as a nested interrupt controller to avoid IRQ sharing problems (easily observed if UART1 and SPI1/2 are enabled simultaneously). The interrupt functionality could arguably be forked off as a separate irqchip driver, but the clock driver has already claimed the AUX_IRQ register so some driver and DT surgery would still be required. Eric Anholt thought that including it here is reasonable, but I'm prepared to split it out if this is considered too hacky. Phil Elwell (2): clk: bcm2835: Add AUX interrupt controller ARM: dts: bcm283x: Enable AUX interrupt controller arch/arm/boot/dts/bcm283x.dtsi | 12 +++- drivers/clk/bcm/clk-bcm2835-aux.c | 120 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 129 insertions(+), 3 deletions(-) -- 1.9.1