From patchwork Fri Jun 15 11:57:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleksij Rempel X-Patchwork-Id: 10466263 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 E084D60384 for ; Fri, 15 Jun 2018 11:57:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D17B328D60 for ; Fri, 15 Jun 2018 11:57:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C660128D72; Fri, 15 Jun 2018 11:57:39 +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=-7.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham 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 6CBAE28D71 for ; Fri, 15 Jun 2018 11:57:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755650AbeFOL5j (ORCPT ); Fri, 15 Jun 2018 07:57:39 -0400 Received: from metis.ext.pengutronix.de ([85.220.165.71]:58697 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755749AbeFOL5i (ORCPT ); Fri, 15 Jun 2018 07:57:38 -0400 Received: from dude.hi.pengutronix.de ([2001:67c:670:100:1d::7]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1fTnMF-0002dN-AD; Fri, 15 Jun 2018 13:57:35 +0200 Received: from ore by dude.hi.pengutronix.de with local (Exim 4.91) (envelope-from ) id 1fTnMD-0004oM-7u; Fri, 15 Jun 2018 13:57:33 +0200 From: Oleksij Rempel To: Ohad Ben-Cohen , Bjorn Andersson , Rob Herring , Mark Rutland , "A.s. Dong" Cc: Oleksij Rempel , kernel@pengutronix.de, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, dl-linux-imx Subject: [PATCH v1 1/2] imx-rproc: dt: provide new remote-nodes option Date: Fri, 15 Jun 2018 13:57:30 +0200 Message-Id: <20180615115731.18424-1-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.17.1 X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::7 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-remoteproc@vger.kernel.org Sender: linux-remoteproc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On AMP systems we need to make sure that some device nodes are not used by main system and reserved for external system. Some of configuration should be maintained by main system. For example clocks and pins. Signed-off-by: Oleksij Rempel --- .../devicetree/bindings/remoteproc/imx-rproc.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Documentation/devicetree/bindings/remoteproc/imx-rproc.txt b/Documentation/devicetree/bindings/remoteproc/imx-rproc.txt index fbcefd965dc4..40bec03e094c 100644 --- a/Documentation/devicetree/bindings/remoteproc/imx-rproc.txt +++ b/Documentation/devicetree/bindings/remoteproc/imx-rproc.txt @@ -15,6 +15,7 @@ Required properties: Optional properties: - memory-region list of phandels to the reserved memory regions. (See: ../reserved-memory/reserved-memory.txt) +- remote-nodes list of device node phandels used by remote system. Example: m4_reserved_sysmem1: cm4@80000000 { @@ -25,9 +26,21 @@ Example: reg = <0x81000000 0x80000>; }; + /* node reserved for rproc */ + &uart1 { + assigned-clock-rates = <240000000>; + status = "disabled"; + }; + + &gpt2 { + assigned-clock-rates = <24000000>; + status = "disabled"; + }; + imx7d-cm4 { compatible = "fsl,imx7d-cm4"; memory-region = <&m4_reserved_sysmem1>, <&m4_reserved_sysmem2>; syscon = <&src>; clocks = <&clks IMX7D_ARM_M4_ROOT_CLK>; + remote-nodes = <&gpt2>, <&uart1>; };