From patchwork Mon Oct 9 22:46:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Packham X-Patchwork-Id: 823593 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=alliedtelesis.co.nz header.i=@alliedtelesis.co.nz header.b="mAAtw155"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3y9wPw0JGWz9t5R for ; Tue, 10 Oct 2017 09:48:20 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755724AbdJIWsG (ORCPT ); Mon, 9 Oct 2017 18:48:06 -0400 Received: from gate2.alliedtelesis.co.nz ([202.36.163.20]:42786 "EHLO gate2.alliedtelesis.co.nz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755506AbdJIWrN (ORCPT ); Mon, 9 Oct 2017 18:47:13 -0400 Received: from mmarshal3.atlnz.lc (mmarshal3.atlnz.lc [10.32.18.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by gate2.alliedtelesis.co.nz (Postfix) with ESMTPS id AF9B184482; Tue, 10 Oct 2017 11:47:07 +1300 (NZDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail; t=1507589227; bh=+BGDHPG9NUao1+QKbF975lJohmvrg8nehLf2OYDDlOw=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=mAAtw155DVmXg+419Css2vvq1yNCTjJyaOXyX559EyBwTERquqxb60vNAlBATbaUl 3MTv9S93BgBiGPm+ZS1uO29PeK+vmUr1LFhCLCod00VBMG7XAOZyxa5j7MdlWqjfmd ZbqRUE1lIH2GTdirX/7k3qvGnM/UyZN4PfNODJeY= Received: from smtp (Not Verified[10.32.16.33]) by mmarshal3.atlnz.lc with Trustwave SEG (v7, 5, 8, 10121) id ; Tue, 10 Oct 2017 11:47:08 +1300 Received: from chrisp-dl.ws.atlnz.lc (chrisp-dl.ws.atlnz.lc [10.33.22.30]) by smtp (Postfix) with ESMTP id CEE9413EFE2; Tue, 10 Oct 2017 11:47:14 +1300 (NZDT) Received: by chrisp-dl.ws.atlnz.lc (Postfix, from userid 1030) id 840751E21D4; Tue, 10 Oct 2017 11:47:02 +1300 (NZDT) From: Chris Packham To: robh+dt@kernel.org, mark.rutland@arm.com, gregkh@linuxfoundation.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Chris Packham Subject: [PATCH v3 1/5] uio: dt-bindings: document existing binding for uio-pdrv-genirq Date: Tue, 10 Oct 2017 11:46:51 +1300 Message-Id: <20171009224655.6173-2-chris.packham@alliedtelesis.co.nz> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20171009224655.6173-1-chris.packham@alliedtelesis.co.nz> References: <20171009224655.6173-1-chris.packham@alliedtelesis.co.nz> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Document the device tree bindings for the uio-prv-genirq driver. Provide some examples on how it can be used. Signed-off-by: Chris Packham --- Changes in v3: - New. Document existing binding first. .../devicetree/bindings/uio/uio-pdrv-genirq.txt | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Documentation/devicetree/bindings/uio/uio-pdrv-genirq.txt diff --git a/Documentation/devicetree/bindings/uio/uio-pdrv-genirq.txt b/Documentation/devicetree/bindings/uio/uio-pdrv-genirq.txt new file mode 100644 index 000000000000..5a92b1f8825f --- /dev/null +++ b/Documentation/devicetree/bindings/uio/uio-pdrv-genirq.txt @@ -0,0 +1,27 @@ +*Generic UIO platform driver with interrupts + +Required properties: +- compatible: Should be a value set with the of_id module parameter. + +Optional properties: +- interrupts: Should contain the interrupt to be associated with this device + (only a single interrupt is supported per device). +- interrupt-parent: Specifies the phandle to the parent interrupt controller. +- reg: Should specify the physical address spaces used by this device. + +Example: + +/* Device with MM IO and interrupt assuming of_id="me,my-device" */ +my-device@10000 { + compatible = "me,my-device"; + reg = <0x10000 0x40>; + interrupts = <4 IRQ_TYPE_EDGE_BOTH>; + interrupt-parent = <&gic>; +}; + +/* Device with interrupt only assuming of_id="me,my-device" */ +my-int { + compatible = "me,my-device"; + interrupts = <6 IRQ_TYPE_EDGE_BOTH>; + interrupt-parent = <&gic>; +};