From patchwork Mon Jun 12 14:25:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Phil Elwell X-Patchwork-Id: 9781231 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 01FE960212 for ; Mon, 12 Jun 2017 14:26:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EFC6428426 for ; Mon, 12 Jun 2017 14:26:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E45A12848F; Mon, 12 Jun 2017 14:26:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C29AB28426 for ; Mon, 12 Jun 2017 14:26:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752497AbdFLOZW (ORCPT ); Mon, 12 Jun 2017 10:25:22 -0400 Received: from mx08-00252a01.pphosted.com ([91.207.212.211]:58286 "EHLO mx08-00252a01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752491AbdFLOZU (ORCPT ); Mon, 12 Jun 2017 10:25:20 -0400 Received: from pps.filterd (m0102629.ppops.net [127.0.0.1]) by mx08-00252a01.pphosted.com (8.16.0.20/8.16.0.20) with SMTP id v5CEM6uo031589 for ; Mon, 12 Jun 2017 15:25:19 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.org; h=from : subject : to : message-id : date : mime-version : content-type : content-transfer-encoding; s=pp; bh=P9rVTxEQ2R6Q2Sum4WzuQS2DILyB5Qv73cQ0k2n8rtA=; b=xxZMVyBMsl7W+Y4Mz/PvVcAgh8azYhY4UD29wFv1jQzXfh66Dsml8btyqfDnofYFvNKX D+CADY1pRxpyOfBnd+cHXQmXqAVwhM6n77EBKy/v68AKt9PVg7K9OWOP3eyKsM70ikS7 +ZUQVxUz1G06kH22Vhz2WNEuDp6wceZJ7Z/iY24ZPYnHVqFuBKCZNxpdkJ4UdcwS4q/F 5hw4RCQQQJHx6DyzhmQIQs7G3aER+zArClYGjjLK99kqM3At59Yr4+NzgraLCjIUyXyd SVJz9V+0yQ3ZMr0tFtBPs0/0xEU1BtrXVXnvTqcALtPzTpLxd6KTXHrVCa8PbcFWX4I4 Eg== Received: from mail-wr0-f198.google.com (mail-wr0-f198.google.com [209.85.128.198]) by mx08-00252a01.pphosted.com with ESMTP id 2b058es5u4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=OK) for ; Mon, 12 Jun 2017 15:25:18 +0100 Received: by mail-wr0-f198.google.com with SMTP id v102so23156566wrc.8 for ; Mon, 12 Jun 2017 07:25:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi-org.20150623.gappssmtp.com; s=20150623; h=from:subject:to:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=P9rVTxEQ2R6Q2Sum4WzuQS2DILyB5Qv73cQ0k2n8rtA=; b=eITjmB5e1Z0ukcru6Vw9Qzi8EABcl9loPcPYYFwKMfhCA3kZRDO4H7M4AJ0UTmMR6Y 2NxgqiVRKPxwrvAnbWAWvvWwJK2adoytneTeH2bA08VPPfar1D5Pl3GlWNcYeZedeoop /ibhRfw+U1cO/0Kjge13rrbn5JZHEyQ7aX9y3H1+/Va6cSbORZFjeG1BsJ6XOio0kFtA 6NQGN6shP6RrxtgmGKaenLjEnaps6hgXe4F413AGGu4i99HSBTVtXPlxRXUEIwFpNnj4 RG9eTpfH4SXhc6YDpMCSFnJ02b2eq0x9iTCUcv8N3hddGmoIk6bTQjq48vTSbntQDUyX /5Xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=P9rVTxEQ2R6Q2Sum4WzuQS2DILyB5Qv73cQ0k2n8rtA=; b=fkg4KumKjXV0bEeDIvwKqh6nKnaJNUUBUVkvw4Che7P6uhLiLqfEhzh7fjP5tTvRn5 sdNzS3f28/uoP020O1D3j5EQqP4BJuCovmlepaFkp0lw/YMlSiU7B1TtvHFiSrok9Thy wFA1Gl6kAIBkSOgb9Ot2L7RzAo50xHH6I+3507RL2xbLO37x8oCNAppyHCAy5Ux2ScRt P/38lfYz7oltYwD5wBMyMUJwD1AtODxmcam4m8bv5cUgaGQdIStUWDSbWiO1YD4+FZAb dsAownD3AlXV7Nb+HPVI+LWGPBIzt8cGMUiZARhjXGr1KttdEhakPXKyT23eBbq8zf/r 3RfA== X-Gm-Message-State: AKS2vOwDY6qReEXGMSNa59gsQ/P9GfvqZOBCyfa0YlePn7PFiYI0gm4W RVLHSzkKLl6t2WpzLnf+ufXNvlznN4zgjZ0ly/XC0fgztpypeEse4T/tM3FJ+nG6Ax1bTwYmNZ+ 8FHqHRvsHKFk= X-Received: by 10.28.87.72 with SMTP id l69mr7701147wmb.111.1497277517874; Mon, 12 Jun 2017 07:25:17 -0700 (PDT) X-Received: by 10.28.87.72 with SMTP id l69mr7701127wmb.111.1497277517627; Mon, 12 Jun 2017 07:25:17 -0700 (PDT) Received: from ?IPv6:2a00:2381:fdf7:14:f582:83ae:5a04:a029? ([2a00:2381:fdf7:14:f582:83ae:5a04:a029]) by smtp.gmail.com with ESMTPSA id q16sm255411wmg.2.2017.06.12.07.25.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Jun 2017 07:25:17 -0700 (PDT) From: Phil Elwell Subject: [PATCH v2 2/4] dt: bindings: Add bindings for bcm2835-aux-intc 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 Message-ID: Date: Mon, 12 Jun 2017 15:25:16 +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-Language: en-GB X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-06-12_10:, , 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-1706120249 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 | 28 ++++++++++++++++++++++ .../interrupt-controller/bcm2835-aux-intc.h | 20 ++++++++++++++++ 2 files changed, 48 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..f3f895c --- /dev/null +++ b/Documentation/devicetree/bindings/interrupt-controller/brcm,bcm2835-aux-intc.txt @@ -0,0 +1,28 @@ +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. Valid values + are 0..2. + +Example: + + auxintc: interrupt-controller@7e215000 { + compatible = "brcm,bcm2835-aux-intc"; + reg = <0x7e215000 0x4>; + interrupts = <1 29>; + interrupt-controller; + #interrupt-cells = <1>; + }; 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