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: 774665 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 3wmZtf2kZFz9s72 for ; Tue, 13 Jun 2017 00:25:30 +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="xxZMVyBM"; 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="eITjmB5e"; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752555AbdFLOZ0 (ORCPT ); Mon, 12 Jun 2017 10:25:26 -0400 Received: from mx07-00252a01.pphosted.com ([62.209.51.214]:63707 "EHLO mx07-00252a01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752488AbdFLOZZ (ORCPT ); Mon, 12 Jun 2017 10:25:25 -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 v5CELKFx002968 for ; Mon, 12 Jun 2017 15:25:18 +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 mx07-00252a01.pphosted.com with ESMTP id 2b065ys48v-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 n18so23203238wra.11 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=T1p2zR0RKPHJGzGnE0+En4rMfIzyZlVq0dt+qEc48q6VujFVKk6JWuy1UEbCh3G6dz kV8PaDCcm0AjycRZGtJklqJHIOt2mDrsh3wgY0qj3Vmn3ttILY/L7yGrzt9Y3I+3ANPZ D+Xe1FDrD6+IlGKrGQA6JJX69PQo1UKM1ORot/n2/N1V+uK0PRtrsL96leKnAuS/5HT/ /CVaj/Yi3+Ir9HXaW4T6yv48DTM+X7/F9pqNALRbI8RsZ1A1VVTTOUzOOB8kzrDSGeYc SXC8h3fZgyE49hnyWuhPm6A5eCx9VpTVUGnngdlDslFQDFQzreYQrjhYKS1HFnhcVwqZ jkHQ== X-Gm-Message-State: AKS2vOyg3dMJRSCK0j5jQNVigXWL8EZtVUhDCY8y11aAzgWsP/QjRzTB M5aU2Z3I3oVrVLnFplurSSfS8Q+N8zWosVJtB3Mbs8l1UuEnswyc6PsG2FEoXZ+msm4s7dKSw2t iGX7baaJu8ACg X-Received: by 10.28.87.72 with SMTP id l69mr7701148wmb.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: 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 | 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