From patchwork Tue Jan 19 08:13:01 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 8058861 X-Patchwork-Delegate: horms@verge.net.au Return-Path: X-Original-To: patchwork-linux-renesas-soc@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 7B231BEEE5 for ; Tue, 19 Jan 2016 08:13:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C3BD920306 for ; Tue, 19 Jan 2016 08:13:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D7833202F8 for ; Tue, 19 Jan 2016 08:13:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757419AbcASINH (ORCPT ); Tue, 19 Jan 2016 03:13:07 -0500 Received: from michel.telenet-ops.be ([195.130.137.88]:37918 "EHLO michel.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751786AbcASING (ORCPT ); Tue, 19 Jan 2016 03:13:06 -0500 Received: from ayla.of.borg ([84.195.106.123]) by michel.telenet-ops.be with bizsmtp id 7kD31s00K2fm56U06kD3kP; Tue, 19 Jan 2016 09:13:04 +0100 Received: from ramsan.of.borg ([192.168.97.29] helo=ramsan) by ayla.of.borg with esmtp (Exim 4.82) (envelope-from ) id 1aLRPT-0002GT-25; Tue, 19 Jan 2016 09:13:03 +0100 Received: from geert by ramsan with local (Exim 4.82) (envelope-from ) id 1aLRPU-0008U9-VY; Tue, 19 Jan 2016 09:13:04 +0100 From: Geert Uytterhoeven To: Simon Horman , Magnus Damm Cc: linux-renesas-soc@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH/RFC 1/2] arm64: dts: salvator-x: Add overlay for SCIF3/HSCIF3 loop testing Date: Tue, 19 Jan 2016 09:13:01 +0100 Message-Id: <1453191182-32578-2-git-send-email-geert+renesas@glider.be> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1453191182-32578-1-git-send-email-geert+renesas@glider.be> References: <1453191182-32578-1-git-send-email-geert+renesas@glider.be> Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 Add an overlay to enable SCIF3 and HSCIF3 on EXIO Connector D, and do loop testing. Based on a plain DTS patch by Magnus Damm . Signed-off-by: Geert Uytterhoeven --- .../r8a7795-salvator-x-scif3-hscif3-loop.dtso | 68 ++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 arch/arm64/boot/dts/renesas/r8a7795-salvator-x-scif3-hscif3-loop.dtso diff --git a/arch/arm64/boot/dts/renesas/r8a7795-salvator-x-scif3-hscif3-loop.dtso b/arch/arm64/boot/dts/renesas/r8a7795-salvator-x-scif3-hscif3-loop.dtso new file mode 100644 index 0000000000000000..3541d19a60f6de0e --- /dev/null +++ b/arch/arm64/boot/dts/renesas/r8a7795-salvator-x-scif3-hscif3-loop.dtso @@ -0,0 +1,68 @@ +/* + * Device Tree Overlay for SCIF3/HSCIF3 loop on r8a7795/Salvator-X + * + * Copyright (C) 2016 Glider bvba + * + * This file is licensed under the terms of the GNU General Public License + * version 2. This program is licensed "as is" without any warranty of any + * kind, whether express or implied. + * + * EXIO Pinout: + * - HSCIF3 TXD = EXIO D pin 30 -> SCIF3 RXD = EXIO D pin 27 + * - SCIF3 TXD = EXIO D pin 21 -> HSCIF3 RXD = EXIO D pin 28 + */ + +/dts-v1/ /plugin/; + +#include + +/ { + fragment@0 { + target-path = "/aliases"; + + __overlay__ { + /* serial2 = &scif3; */ + serial2 = "/soc/serial@e6c50000"; + /* serial3 = &hscif3; */ + serial3 = "/soc/serial@e66a0000"; + }; + }; + + fragment@1 { + target = <&pfc>; + + __overlay__ { + scif3_pins: scif3 { + renesas,groups = "scif3_data_b"; + renesas,function = "scif3"; + }; + + hscif3_pins: hscif3 { + renesas,groups = "hscif3_data_d"; + renesas,function = "hscif3"; + }; + }; + }; + + fragment@2 { + target = <&scif3>; + + __overlay__ { + pinctrl-0 = <&scif3_pins>; + pinctrl-names = "default"; + + status = "okay"; + }; + }; + + fragment@3 { + target = <&hscif3>; + + __overlay__ { + pinctrl-0 = <&hscif3_pins>; + pinctrl-names = "default"; + + status = "okay"; + }; + }; +};