From patchwork Wed Jun 14 16:29:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Phil Elwell X-Patchwork-Id: 775870 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 3wnsZX2Ffpz9s5L for ; Thu, 15 Jun 2017 02:31:00 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=raspberrypi.org header.i=@raspberrypi.org header.b="nnJ5JvBR"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=raspberrypi-org.20150623.gappssmtp.com header.i=@raspberrypi-org.20150623.gappssmtp.com header.b="pxGTjX9s"; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752441AbdFNQap (ORCPT ); Wed, 14 Jun 2017 12:30:45 -0400 Received: from mx07-00252a01.pphosted.com ([62.209.51.214]:20803 "EHLO mx07-00252a01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752042AbdFNQ3i (ORCPT ); Wed, 14 Jun 2017 12:29:38 -0400 Received: from pps.filterd (m0102628.ppops.net [127.0.0.1]) by mx07-00252a01.pphosted.com (8.16.0.20/8.16.0.20) with SMTP id v5EGTIY3023574 for ; Wed, 14 Jun 2017 17:29:37 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.org; h=from : to : cc : subject : date : message-id : in-reply-to : references; s=pp; bh=PLLi+xe2rxTAKrfsirjuvNMH/hHYZieFtYrmaGUonrU=; b=nnJ5JvBRnOFpFMA7S+gLxjrFXRfZYpZLTlzFWnfx90Np7IP5zJYWd3E2hh6wznZZRymO j3kf7d2GghWlfrW4MkQREhPsiyCfA+ngfRd0wRTCV16iOuSIZAb5Yw3Oei7h2Y4qQjMB CUN1GPzVLQnO1bw3RI8L3HjOyOVJ4ljGXi/Iylx9TNB8tlQo0kSP/8zb7TAT7miqnISV HjEw7yQWuHZCfIkVnQm1HBxjZwZbK4tX0bP3l1Fn+RKuKR2/ES/7Jluj+WtK2nOvWGdO 2P8NEqmA/dxSiC12pHNCEDzzDxVvMkxOo+BkxvKaXKopRCc6teqHzdHTrorLADGxATVy qA== Received: from mail-wr0-f199.google.com (mail-wr0-f199.google.com [209.85.128.199]) by mx07-00252a01.pphosted.com with ESMTP id 2b065yt4y7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=OK) for ; Wed, 14 Jun 2017 17:29:36 +0100 Received: by mail-wr0-f199.google.com with SMTP id 56so1567343wrx.5 for ; Wed, 14 Jun 2017 09:29:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=PLLi+xe2rxTAKrfsirjuvNMH/hHYZieFtYrmaGUonrU=; b=pxGTjX9sSJCKJSjYlSALijfCRDMO2R7/y+UV2v5OwDjxzvCBhjVG+mGAb/4Jg+ungr qyLTqRzbUvs/tPOSu9n/d84sfefULZvNxAe/l+54q6Z5uTRqsaXoN4PVRlz9wDXaFrrs WMuJT0YDVewl/kWebzHfu42r5+9rqK2TKTy49DlVNYtgUlIh6zrpCTJKbsYkoyuhjHrH GzraDMCMK4J94TVG50d26aRF8tk4PJGsvBZTKaJnL11vIoHcKppGp0UyEZCVg0tr2y6z 4OaROFjUk0WsrxJDZf7VpcEOT6AlecGXsAi9xekSe5JMLf/xFV+3wi16/6M6gpz2G04R J1WA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=PLLi+xe2rxTAKrfsirjuvNMH/hHYZieFtYrmaGUonrU=; b=cjM2nSRnb/Ac5yGyiv3G+TEkO2XbsRy+C6tzugLM4mKmlt6mHq/W3aNnR4rkW9lB2P AK3Ag1Z7VOAOsxPJHUkjQ0N8kimd2xF527Td217I0EUAu5JWKL3Ipd5ICbNs3jIt9RMi liI5+VeyWC+9sVw5+1BkTAA88DlWPtdjVClUcahU+2JMDXVxjwgaLrMkdsyqij84MeZJ ZQPy5qPPAS4JtXIYM3S4FHWfMk7z0idFDpWbhaHXj6HJWzZXcT4jivZS4f6djujh19Ka H8JaD+DAqBV4pC3g1IdZrLo2/6RzWQIe4Grx0i7/wRVv4lDqf8pCo6Dna3biI9Sa2nAg U6gw== X-Gm-Message-State: AKS2vOw6SZN+HLWL2sGw1MUTKc6dIOvJ5YYv/9+Sy0soNtLicvUYFYuQ 1MoDY0VMYzs6DZTKtkgwj1oLDA/nMy8ozpNsbpIV/KWfaSJxiQk1jWQ9z62V6ZMikYBVvkRfPBx tNRkGmkBz0MAT X-Received: by 10.223.174.180 with SMTP id y49mr653462wrc.2.1497457775757; Wed, 14 Jun 2017 09:29:35 -0700 (PDT) X-Received: by 10.223.174.180 with SMTP id y49mr653443wrc.2.1497457775555; Wed, 14 Jun 2017 09:29:35 -0700 (PDT) Received: from buildbot.pitowers.org ([217.33.127.173]) by smtp.gmail.com with ESMTPSA id e24sm545129wre.54.2017.06.14.09.29.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 14 Jun 2017 09:29:35 -0700 (PDT) From: Phil Elwell To: Thomas Gleixner , Jason Cooper , Marc Zyngier , Rob Herring , Mark Rutland , Florian Fainelli , Stefan Wahren , Eric Anholt , Russell King , Michael Turquette , Stephen Boyd , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-clk@vger.kernel.org Cc: Phil Elwell Subject: [PATCH v3 2/4] dt: bindings: Add bindings for bcm2835-aux-intc Date: Wed, 14 Jun 2017 17:29:08 +0100 Message-Id: <1497457750-35585-3-git-send-email-phil@raspberrypi.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1497457750-35585-1-git-send-email-phil@raspberrypi.org> References: <4ceb6c92-f752-180e-6a6e-a94dcd120737@raspberrypi.org> <1497457750-35585-1-git-send-email-phil@raspberrypi.org> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-06-14_03:, , 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-1706140277 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add bindings documentation for brcm,bcm2835-aux-intc and human-readable declarations for the BCM2835 AUX IRQs. Signed-off-by: Phil Elwell Reviewed-by: Florian Fainelli --- .../interrupt-controller/brcm,bcm2835-aux-intc.txt | 27 ++++++++++++++++++++++ .../interrupt-controller/bcm2835-aux-intc.h | 20 ++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/brcm,bcm2835-aux-intc.txt create mode 100644 include/dt-bindings/interrupt-controller/bcm2835-aux-intc.h diff --git a/Documentation/devicetree/bindings/interrupt-controller/brcm,bcm2835-aux-intc.txt b/Documentation/devicetree/bindings/interrupt-controller/brcm,bcm2835-aux-intc.txt new file mode 100644 index 0000000..9cbbab6 --- /dev/null +++ b/Documentation/devicetree/bindings/interrupt-controller/brcm,bcm2835-aux-intc.txt @@ -0,0 +1,27 @@ +BCM2835 Auxiliary ("AUXIRQ") Interrupt Controller + +The BCM2835 family of SoCs multiplexes the interrupts for peripherals in +the AUX block into a single IRQ. The AUXIRQ register shows the IRQ status +of each of the peripherals. Note that there are no masking or clearing +facilities - interrupts must be enabled and acknowledged in the +individual peripherals. + +Required properties: +- compatible : Should be "brcm,bcm2835-aux-intc". +- reg : Specifies base physical address and size of the registers. +- interrupts : The interrupt number - see + bindings/interrupt-controller/brcm,bcm2835-armctrl-ic.txt +- interrupt-controller : Identifies the node as an interrupt controller +- #interrupt-cells : Specifies the number of cells needed to encode an + interrupt source. The value shall be 1. + + The cell contains the interrupt specifier, as found in + include/dt-bindings/interrupt-controller/bcm2835-aux-intc.h. + +Example: + + auxintc: interrupt-controller@7e215000 { + compatible = "brcm,bcm2835-aux-intc"; + reg = <0x7e215000 0x4>; + interrupts = <1 29>; + interrupt-controller; diff --git a/include/dt-bindings/interrupt-controller/bcm2835-aux-intc.h b/include/dt-bindings/interrupt-controller/bcm2835-aux-intc.h new file mode 100644 index 0000000..8b9fc12 --- /dev/null +++ b/include/dt-bindings/interrupt-controller/bcm2835-aux-intc.h @@ -0,0 +1,20 @@ +/* + * Copyright (C) 2017 Raspberry Pi (Trading) Ltd. + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#define BCM2835_AUX_IRQ_UART 0 +#define BCM2835_AUX_IRQ_SPI1 1 +#define BCM2835_AUX_IRQ_SPI2 2 +#define BCM2835_AUX_IRQ_COUNT 3