From patchwork Thu Dec 17 07:21:33 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 7869951 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id AC539BEEE5 for ; Thu, 17 Dec 2015 07:22:00 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B37F020396 for ; Thu, 17 Dec 2015 07:21:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B150B203A5 for ; Thu, 17 Dec 2015 07:21:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934588AbbLQHV5 (ORCPT ); Thu, 17 Dec 2015 02:21:57 -0500 Received: from galahad.ideasonboard.com ([185.26.127.97]:44538 "EHLO galahad.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934129AbbLQHV5 (ORCPT ); Thu, 17 Dec 2015 02:21:57 -0500 Received: from avalon.ideasonboard.com (unknown [207.140.26.138]) by galahad.ideasonboard.com (Postfix) with ESMTPSA id 8E46420398 for ; Thu, 17 Dec 2015 08:21:53 +0100 (CET) From: Laurent Pinchart To: linux-sh@vger.kernel.org Subject: [PATCH 2/4] ARM64: renesas: r8a7795: Add VSP instances Date: Thu, 17 Dec 2015 09:21:33 +0200 Message-Id: <1450336895-4279-3-git-send-email-laurent.pinchart+renesas@ideasonboard.com> X-Mailer: git-send-email 2.4.10 In-Reply-To: <1450336895-4279-1-git-send-email-laurent.pinchart+renesas@ideasonboard.com> References: <1450336895-4279-1-git-send-email-laurent.pinchart+renesas@ideasonboard.com> Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The r8a7795 has 9 VSP instances with various capabilities. Only the VSPD instances are currently enabled as the other 5 instances cause the following crash when reading the version register. [ 5.284206] Bad mode in Error handler detected, code 0xbf000002 -- SError [ 5.287590] CPU: 0 PID: 518 Comm: mdev Not tainted 4.4.0-rc3+ #162 [ 5.290666] Hardware name: Renesas Salvator-X board based on r8a7795 (DT) [ 5.294044] task: ffffffc039a8b700 ti: ffffffc038db4000 task.ti: ffffffc038db4000 [ 5.297770] PC is at 0x9dd0 [ 5.299160] LR is at 0x0 [ 5.300420] pc : [<0000000000009dd0>] lr : [<0000000000000000>] pstate: 00000010 [ 5.304101] sp : 00000000ffd94300 [ 5.305750] x12: 0000000000000000 [ 5.307446] x11: 0000000000000000 x10: 0000000000000000 [ 5.310096] x9 : 0000000000000000 x8 : 0000000000000000 [ 5.312745] x7 : 0000000000000000 x6 : 0000000000000000 [ 5.315395] x5 : 0000000000000000 x4 : 0000000000000000 [ 5.318044] x3 : 0000000000000000 x2 : 0000000000000000 [ 5.320694] x1 : 0000000000000000 x0 : 0000000000000000 Signed-off-by: Laurent Pinchart --- arch/arm64/boot/dts/renesas/r8a7795.dtsi | 114 +++++++++++++++++++++++++++++++ 1 file changed, 114 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a7795.dtsi b/arch/arm64/boot/dts/renesas/r8a7795.dtsi index 9ce6a5ea6629..47f97ffc6c8b 100644 --- a/arch/arm64/boot/dts/renesas/r8a7795.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a7795.dtsi @@ -775,5 +775,119 @@ clocks = <&cpg CPG_MOD 915>; status = "disabled"; }; + + vspbc: vsp@fe920000 { + compatible = "renesas,vsp2"; + reg = <0 0xfe920000 0 0x8000>; + interrupts = ; + clocks = <&cpg CPG_MOD 624>; + + renesas,has-lut; + renesas,has-sru; + renesas,#rpf = <5>; + renesas,#wpf = <1>; + status = "disabled"; + }; + + vspbd: vsp@fe960000 { + compatible = "renesas,vsp2"; + reg = <0 0xfe960000 0 0x8000>; + interrupts = ; + clocks = <&cpg CPG_MOD 626>; + + renesas,#rpf = <5>; + renesas,#wpf = <1>; + status = "disabled"; + }; + + vspi0: vsp@fe9a0000 { + compatible = "renesas,vsp2"; + reg = <0 0xfe9a0000 0 0x8000>; + interrupts = ; + clocks = <&cpg CPG_MOD 631>; + + renesas,has-lut; + renesas,has-sru; + renesas,#rpf = <1>; + renesas,#uds = <3>; + renesas,#wpf = <1>; + status = "disabled"; + }; + + vspi1: vsp@fe9b0000 { + compatible = "renesas,vsp2"; + reg = <0 0xfe9b0000 0 0x8000>; + interrupts = ; + clocks = <&cpg CPG_MOD 630>; + + renesas,has-lut; + renesas,has-sru; + renesas,#rpf = <1>; + renesas,#uds = <1>; + renesas,#wpf = <1>; + status = "disabled"; + }; + + vspi2: vsp@fe9c0000 { + compatible = "renesas,vsp2"; + reg = <0 0xfe9c0000 0 0x8000>; + interrupts = ; + clocks = <&cpg CPG_MOD 629>; + + renesas,has-lut; + renesas,has-sru; + renesas,#rpf = <1>; + renesas,#uds = <1>; + renesas,#wpf = <1>; + status = "disabled"; + }; + + vspd0: vsp@fea20000 { + compatible = "renesas,vsp2"; + reg = <0 0xfea20000 0 0x8000>; + interrupts = ; + clocks = <&cpg CPG_MOD 623>; + + renesas,has-lif; + renesas,has-lut; + renesas,#rpf = <5>; + renesas,#wpf = <2>; + }; + + vspd1: vsp@fea28000 { + compatible = "renesas,vsp2"; + reg = <0 0xfea28000 0 0x8000>; + interrupts = ; + clocks = <&cpg CPG_MOD 622>; + + renesas,has-lif; + renesas,has-lut; + renesas,#rpf = <5>; + renesas,#wpf = <2>; + }; + + vspd2: vsp@fea30000 { + compatible = "renesas,vsp2"; + reg = <0 0xfea30000 0 0x8000>; + interrupts = ; + clocks = <&cpg CPG_MOD 621>; + + renesas,has-lif; + renesas,has-lut; + renesas,#rpf = <5>; + renesas,#wpf = <2>; + }; + + vspd3: vsp@fea38000 { + compatible = "renesas,vsp2"; + reg = <0 0xfea38000 0 0x8000>; + interrupts = ; + clocks = <&cpg CPG_MOD 620>; + + renesas,has-lif; + renesas,has-lut; + renesas,#rpf = <5>; + renesas,#wpf = <2>; + }; }; };