From patchwork Tue May 12 17:37:06 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 6390021 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 0F7F29F32B for ; Tue, 12 May 2015 17:37:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2EB3520364 for ; Tue, 12 May 2015 17:37:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4838520383 for ; Tue, 12 May 2015 17:37:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933657AbbELRhY (ORCPT ); Tue, 12 May 2015 13:37:24 -0400 Received: from laurent.telenet-ops.be ([195.130.137.89]:35539 "EHLO laurent.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933683AbbELRhR (ORCPT ); Tue, 12 May 2015 13:37:17 -0400 Received: from ayla.of.borg ([84.193.93.87]) by laurent.telenet-ops.be with bizsmtp id T5dE1q00Z1t5w8s015dEqg; Tue, 12 May 2015 19:37:15 +0200 Received: from ramsan.of.borg ([192.168.97.29] helo=ramsan) by ayla.of.borg with esmtp (Exim 4.82) (envelope-from ) id 1YsE7G-0003NC-Mc; Tue, 12 May 2015 19:37:14 +0200 Received: from geert by ramsan with local (Exim 4.82) (envelope-from ) id 1YsE7I-00033c-Rd; Tue, 12 May 2015 19:37:16 +0200 From: Geert Uytterhoeven To: Simon Horman , Magnus Damm Cc: Pantelis Antoniou , linux-sh@vger.kernel.org, devicetree@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH/RFC 03/12] ARM: shmobile: armadillo dts: Add overlay for SCIFA0 on CON15 Date: Tue, 12 May 2015 19:37:06 +0200 Message-Id: <1431452235-11692-4-git-send-email-geert+renesas@glider.be> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1431452235-11692-1-git-send-email-geert+renesas@glider.be> References: <1431452235-11692-1-git-send-email-geert+renesas@glider.be> 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 Provide access to SCIFA0 on the Expansion Interface Connector (CON15), as documented in Table 18.15 of the "Armadillo-800 EVA Product Manual". FIXME Document "ctsrts" DT property. Signed-off-by: Geert Uytterhoeven --- arch/arm/boot/dts/Makefile | 5 ++ .../dts/r8a7740-armadillo800eva-con15-scifa0.dtso | 53 ++++++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 arch/arm/boot/dts/r8a7740-armadillo800eva-con15-scifa0.dtso diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 93be426297370a2c..5366e2112ad1ea18 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -666,6 +666,11 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += \ mt6592-evb.dtb \ mt8127-moose.dtb \ mt8135-evbp1.dtb + +ifeq ($(CONFIG_OF_OVERLAY),y) +dtb-$(CONFIG_ARCH_SHMOBILE_MULTI) += \ + r8a7740-armadillo800eva-con15-scifa0.dtbo \ +endif endif always := $(dtb-y) diff --git a/arch/arm/boot/dts/r8a7740-armadillo800eva-con15-scifa0.dtso b/arch/arm/boot/dts/r8a7740-armadillo800eva-con15-scifa0.dtso new file mode 100644 index 0000000000000000..4a7d89ddf61d3dc2 --- /dev/null +++ b/arch/arm/boot/dts/r8a7740-armadillo800eva-con15-scifa0.dtso @@ -0,0 +1,53 @@ +/* + * Device Tree Overlay for SCIFA0 on r8a7740/Armadillo-800 EVA Expansion + * Interface Connector + * + * Copyright (C) 2015 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. + * + * Pinout: + * - RXD = CON15 pin 23 + * - TXD = CON15 pin 25 + * - CTS = CON15 pin 35 + * - RTS = CON15 pin 34 + */ + +/dts-v1/; +/plugin/; + +/ { + fragment@0 { + target-path = "/aliases"; + + __overlay__ { + /* serial0 = &scifa0; */ + serial0 = "/serial@e6c40000"; + }; + }; + + fragment@1 { + target = <&pfc>; + + __overlay__ { + scifa0_pins: serial0 { + renesas,groups = "scifa0_data", "scifa0_ctrl"; + renesas,function = "scifa0"; + }; + }; + }; + + fragment@2 { + target = <&scifa0>; + + __overlay__ { + pinctrl-0 = <&scifa0_pins>; + pinctrl-names = "default"; + + ctsrts; + status = "okay"; + }; + }; +};