From patchwork Tue Jan 19 08:13:02 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 8058871 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 49114BEEED for ; Tue, 19 Jan 2016 08:13:11 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 98493202F8 for ; Tue, 19 Jan 2016 08:13:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C435120328 for ; Tue, 19 Jan 2016 08:13:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751786AbcASINH (ORCPT ); Tue, 19 Jan 2016 03:13:07 -0500 Received: from albert.telenet-ops.be ([195.130.137.90]:52978 "EHLO albert.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757288AbcASING (ORCPT ); Tue, 19 Jan 2016 03:13:06 -0500 Received: from ayla.of.borg ([84.195.106.123]) by albert.telenet-ops.be with bizsmtp id 7kD31s0092fm56U06kD31g; 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-0002GS-23; Tue, 19 Jan 2016 09:13:03 +0100 Received: from geert by ramsan with local (Exim 4.82) (envelope-from ) id 1aLRPU-0008UD-W8; Tue, 19 Jan 2016 09:13:05 +0100 From: Geert Uytterhoeven To: Simon Horman , Magnus Damm Cc: linux-renesas-soc@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH/RFC 2/2] arm64: dts: salvator-x: Add overlay for HSCIF3/HSCIF4 loop testing Date: Tue, 19 Jan 2016 09:13:02 +0100 Message-Id: <1453191182-32578-3-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 SCIF4 and HSCIF4 on EXIO Connector D, and do loop testing. Signed-off-by: Geert Uytterhoeven --- .../r8a7795-salvator-x-hscif3-hscif4-loop.dtso | 68 ++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 arch/arm64/boot/dts/renesas/r8a7795-salvator-x-hscif3-hscif4-loop.dtso diff --git a/arch/arm64/boot/dts/renesas/r8a7795-salvator-x-hscif3-hscif4-loop.dtso b/arch/arm64/boot/dts/renesas/r8a7795-salvator-x-hscif3-hscif4-loop.dtso new file mode 100644 index 0000000000000000..614334c3376a85fa --- /dev/null +++ b/arch/arm64/boot/dts/renesas/r8a7795-salvator-x-hscif3-hscif4-loop.dtso @@ -0,0 +1,68 @@ +/* + * Device Tree Overlay for HSCIF3/HSCIF4 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 -> HSCIF4 RXD = EXIO D pin 27 + * - HSCIF4 TXD = EXIO D pin 21 -> HSCIF3 RXD = EXIO D pin 28 + */ + +/dts-v1/ /plugin/; + +#include + +/ { + fragment@0 { + target-path = "/aliases"; + + __overlay__ { + /* serial2 = &hscif3; */ + serial2 = "/soc/serial@e66a0000"; + /* serial3 = &hscif4; */ + serial3 = "/soc/serial@e66b0000"; + }; + }; + + fragment@1 { + target = <&pfc>; + + __overlay__ { + hscif3_pins: hscif3 { + renesas,groups = "hscif3_data_d"; + renesas,function = "hscif3"; + }; + + hscif4_pins: hscif4 { + renesas,groups = "hscif4_data_b"; + renesas,function = "hscif4"; + }; + }; + }; + + fragment@2 { + target = <&hscif3>; + + __overlay__ { + pinctrl-0 = <&hscif3_pins>; + pinctrl-names = "default"; + + status = "okay"; + }; + }; + + fragment@3 { + target = <&hscif4>; + + __overlay__ { + pinctrl-0 = <&hscif4_pins>; + pinctrl-names = "default"; + + status = "okay"; + }; + }; +};