From patchwork Sat Jun 23 21:08:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Lechner X-Patchwork-Id: 10483899 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 149AC60380 for ; Sat, 23 Jun 2018 21:12:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0447F289AD for ; Sat, 23 Jun 2018 21:12:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EBF21289BA; Sat, 23 Jun 2018 21:12:12 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 98585289AD for ; Sat, 23 Jun 2018 21:12:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=dIKW9eJD4/kWZhAFuvaB07EY7VysOkMSiEiH4RfZ5Hw=; b=cU/ASO8S9O0sOTvy/48g6Xu1AO 88naXWD+f3cPcyN/f7Bp3kPKdILX3xrk+idE75o1p+FEHnLiPFpqImS9VbFM86qTqFxkP4a26fQ6j Bp/M8c2XPjFPcx8f2GmG5iNOlD7RjyzTQLbbcWGlXJdYiJIQksLye2pz+8B7QRvy06jyqQnkOBy54 0OTJ5GKV6lfhAEQkFspyJXeJ1Iz9cWScztSA3TeJEgg+WjpsAbzisrs9MC9iY/CwP9imqxBdy7YgM Z0p3qlj4IRQrZ23LScOQprf2QopafMor+ly+GRSNNtJIp59lQKFMPqsz/7fY+ryzuniMPiHqOp7d8 6ZOlecIw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fWppC-0004OT-FC; Sat, 23 Jun 2018 21:12:02 +0000 Received: from vern.gendns.com ([206.190.152.46]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fWpnX-0002EH-TF for linux-arm-kernel@lists.infradead.org; Sat, 23 Jun 2018 21:10:24 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lechnology.com; s=default; h=References:In-Reply-To:Message-Id:Date:Subject :Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=ZNDAquXZ5nBxMw2hpkYc6dhZAG+MFPDo7JuhqyDUils=; b=U6MOgnxHWTEjQRADE4zNCLwx1 TQCqaizpxzAJ9UbihcvOvol7UUAOw8huz4bT8DuAwtiNnVBIteAI3LeHxEhsg5DBYJgQx3g0781wQ qqhbpL+CElJFvLwf9d2UOhGi96Z/1ogblv9Y9M4EdT3O6JWG1lFppGegzsjXUho5Ddr1Y2I28oaf8 rWwQGnh705iLv2P0fO6L1yWlzJ7BxdAb1q9HXroWPW+O/4rTW6IwtSABh9gON4z0qCEt+cVbfsmJg xTeZv31RiUvJueBFZtG4qccFCIFcOvm64slMO+VVMLQ0iLk8wQITAHO1DR51Dl8gwyRZmaWRIXlQh L6ATUhbVg==; Received: from 108-198-5-147.lightspeed.okcbok.sbcglobal.net ([108.198.5.147]:51098 helo=freyr.lechnology.com) by vern.gendns.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91) (envelope-from ) id 1fWpmi-00CkwS-Gu; Sat, 23 Jun 2018 17:09:28 -0400 From: David Lechner To: linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 4/8] dt-bindings: add bindings for TI PRU as remoteproc Date: Sat, 23 Jun 2018 16:08:06 -0500 Message-Id: <20180623210810.21232-5-david@lechnology.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180623210810.21232-1-david@lechnology.com> References: <20180623210810.21232-1-david@lechnology.com> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vern.gendns.com X-AntiAbuse: Original Domain - lists.infradead.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lechnology.com X-Get-Message-Sender-Via: vern.gendns.com: authenticated_id: davidmain+lechnology.com/only user confirmed/virtual account not confirmed X-Authenticated-Sender: vern.gendns.com: davidmain@lechnology.com X-Source: X-Source-Args: X-Source-Dir: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180623_141020_394538_9FF8E495 X-CRM114-Status: UNSURE ( 9.06 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ohad Ben-Cohen , Mark Rutland , David Lechner , Kevin Hilman , Tony Lindgren , Sekhar Nori , linux-kernel@vger.kernel.org, Bjorn Andersson , Rob Herring , =?UTF-8?q?Beno=C3=AEt=20Cousson?= MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This adds a new binding for the TI Programmable Runtime Unit (PRU) as a remoteproc device. Signed-off-by: David Lechner --- .../bindings/remoteproc/ti_pru_rproc.txt | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 Documentation/devicetree/bindings/remoteproc/ti_pru_rproc.txt diff --git a/Documentation/devicetree/bindings/remoteproc/ti_pru_rproc.txt b/Documentation/devicetree/bindings/remoteproc/ti_pru_rproc.txt new file mode 100644 index 000000000000..0e80a8db46d0 --- /dev/null +++ b/Documentation/devicetree/bindings/remoteproc/ti_pru_rproc.txt @@ -0,0 +1,51 @@ +TI Programmable Realtime Unit (PRU) +=================================== + +Some TI Sitara SoCs contain a Programmable Realtime Unit subsystem with two +processor cores that can be used for hard-realtime tasks. + + +Required properties: +-------------------- +The following are the mandatory properties: + +- compatible: Should be one of the following, + "ti,da850-pru-rproc" for AM18xx/OMAPL138 SoCs + "ti,am3352-pru-rproc" for AM355x SoCs + +- reg: Should contain the memory region for the PRUSS + +- interrupts: Should contain the interrupt number used to receive the + virtualqueue kick interrupts from the PRU (i.e. + PRU_EVTOUT0 and PRU_EVTOUT1) + +- interrupt-names Should contain "pru0-vq", "pru1-vq" + +Optional properties: +-------------------- + +- power-domains: A phandle to the power domain that powers the PRUSS + +- ti,hwmods: Name of the hwmod associated to the PRUSS, which is + typically "pruss" + +Example: +-------- + + // AM18xx + pru_rproc: cpu@30000 { + compatible = "ti,da850-pru-rproc"; + reg = <0x30000 0x10000>; + interrupts = <3>, <4>; + interrupt-names = "pru0-vq", "pru1-vq"; + power-domains = <&psc0 13>; + }; + + // AM335x + pru_rproc: cpu@4a300000 { + compatible = "ti,am3352-pru-rproc"; + reg = <0x4a300000 0x80000>; + interrupts = <20>, <21>; + interrupt-names = "pru0-vq", "pru1-vq"; + ti,hwmods = "pruss"; + };