From patchwork Sun Oct 11 21:08:02 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Popov X-Patchwork-Id: 528806 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 75F8A140281 for ; Mon, 12 Oct 2015 08:07:31 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752450AbbJKVHA (ORCPT ); Sun, 11 Oct 2015 17:07:00 -0400 Received: from mail-lb0-f181.google.com ([209.85.217.181]:36275 "EHLO mail-lb0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751827AbbJKVG5 (ORCPT ); Sun, 11 Oct 2015 17:06:57 -0400 Received: by lbcao8 with SMTP id ao8so126085172lbc.3; Sun, 11 Oct 2015 14:06:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=from:to:subject:date:message-id:in-reply-to:references; bh=uC1HPmi5xxtwDSk99TB/fwRSuAtMF8UOZJa85xoJtFo=; b=aegezIZKZ4h4DUOYJgezm5YH8xJYoEBUT0zoEyGo22qEgnC6/c5J/09hdx/nHGfqOT WNtSy4dSRrnrajrJZiL2tMbM4TVImW8SlJfLMnVvSvCyHpBREkvnaq3bnM50gwRHfNg8 MoVIUHc8pgdK61gehgSDXc7jR0Zj0N2u96n5uGTZRwX0gcpeHSFZkGxqToF9HsucQezl GyNeDccMf5y6mTkXMZty1BgCsHproESOcseBkYfamE1XyObvR8n6FrW6aNh6fTefBAcT hCkjKVEJHPxYl95T0HygkP3mTBi1ECbmV5LQtRQ9OQhjn6ZjSONbnW3zErVqsaMRU7uZ MW0w== X-Received: by 10.112.209.71 with SMTP id mk7mr11026838lbc.46.1444597615635; Sun, 11 Oct 2015 14:06:55 -0700 (PDT) Received: from localhost.localdomain (37-146-184-225.broadband.corbina.ru. [37.146.184.225]) by smtp.gmail.com with ESMTPSA id j189sm2309136lfg.48.2015.10.11.14.06.54 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 11 Oct 2015 14:06:54 -0700 (PDT) From: Alexander Popov To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Anatolij Gustschin , Rob Herring , Timur Tabi , Grant Likely , Dan Williams , Vinod Koul , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Alexander Popov , linuxppc-dev@lists.ozlabs.org, dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 2/2] powerpc/512x: add a device tree binding for LocalPlus Bus FIFO Date: Mon, 12 Oct 2015 00:08:02 +0300 Message-Id: <1444597682-22181-3-git-send-email-alex.popov@linux.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1444597682-22181-1-git-send-email-alex.popov@linux.com> References: <1444597682-22181-1-git-send-email-alex.popov@linux.com> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add a device tree binding for Freescale MPC512x LocalPlus Bus FIFO and introduce the document describing that binding. Signed-off-by: Alexander Popov --- .../bindings/powerpc/fsl/mpc512x_lpbfifo.txt | 21 +++++++++++++++++++++ arch/powerpc/boot/dts/mpc5121.dtsi | 11 +++++++++-- arch/powerpc/boot/dts/mpc5125twr.dts | 11 ++++++++++- 3 files changed, 40 insertions(+), 3 deletions(-) create mode 100644 Documentation/devicetree/bindings/powerpc/fsl/mpc512x_lpbfifo.txt diff --git a/Documentation/devicetree/bindings/powerpc/fsl/mpc512x_lpbfifo.txt b/Documentation/devicetree/bindings/powerpc/fsl/mpc512x_lpbfifo.txt new file mode 100644 index 0000000..b3b392f --- /dev/null +++ b/Documentation/devicetree/bindings/powerpc/fsl/mpc512x_lpbfifo.txt @@ -0,0 +1,21 @@ +Freescale MPC512x LocalPlus Bus FIFO (called SCLPC in the Reference Manual) + +Required properties: +- compatible: should be "fsl,mpc512x-lpbfifo"; +- reg: should contain the offset and length of SCLPC register set; +- interrupts: should contain the interrupt specifier for SCLPC; syntax of an + interrupt client node is described in interrupt-controller/interrupts.txt; +- dmas: should contain the DMA specifier for SCLPC as described at + dma/dma.txt and dma/mpc512x-dma.txt; +- dma-names: should be "rx-tx"; + +Example: + + sclpc@10100 { + compatible = "fsl,mpc512x-lpbfifo"; + reg = <0x10100 0x50>; + interrupts = <7 0x8>; + dmas = <&dma0 26>; + dma-names = "rx-tx"; + }; + diff --git a/arch/powerpc/boot/dts/mpc5121.dtsi b/arch/powerpc/boot/dts/mpc5121.dtsi index 7f9d14f..a015e45 100644 --- a/arch/powerpc/boot/dts/mpc5121.dtsi +++ b/arch/powerpc/boot/dts/mpc5121.dtsi @@ -77,7 +77,6 @@ #address-cells = <2>; #size-cells = <1>; reg = <0x80000020 0x40>; - interrupts = <7 0x8>; ranges = <0x0 0x0 0xfc000000 0x04000000>; }; @@ -329,7 +328,15 @@ /* LocalPlus controller */ lpc@10000 { compatible = "fsl,mpc5121-lpc"; - reg = <0x10000 0x200>; + reg = <0x10000 0x100>; + }; + + sclpc@10100 { + compatible = "fsl,mpc512x-lpbfifo"; + reg = <0x10100 0x50>; + interrupts = <7 0x8>; + dmas = <&dma0 26>; + dma-names = "rx-tx"; }; pata@10200 { diff --git a/arch/powerpc/boot/dts/mpc5125twr.dts b/arch/powerpc/boot/dts/mpc5125twr.dts index e4f2974..898eb58 100644 --- a/arch/powerpc/boot/dts/mpc5125twr.dts +++ b/arch/powerpc/boot/dts/mpc5125twr.dts @@ -246,6 +246,14 @@ status = "disabled"; }; + sclpc@10100 { + compatible = "fsl,mpc512x-lpbfifo"; + reg = <0x10100 0x50>; + interrupts = <7 0x8>; + dmas = <&dma0 26>; + dma-names = "rx-tx"; + }; + // 5125 PSCs are not 52xx or 5121 PSC compatible // PSC1 uart0 aka ttyPSC0 serial@11100 { @@ -279,10 +287,11 @@ clock-names = "ipg"; }; - dma@14000 { + dma0: dma@14000 { compatible = "fsl,mpc5121-dma"; // BSP name: "mpc512x-dma2" reg = <0x14000 0x1800>; interrupts = <65 0x8>; + #dma-cells = <1>; }; }; };