From patchwork Thu Sep 25 09:54:52 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 37914 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f200.google.com (mail-wi0-f200.google.com [209.85.212.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3563A20560 for ; Thu, 25 Sep 2014 09:55:08 +0000 (UTC) Received: by mail-wi0-f200.google.com with SMTP id hi2sf4433194wib.3 for ; Thu, 25 Sep 2014 02:55:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=Pt6O3/mu7hyt6GyXPm1Z+Hg5t6V10a4PFGlmpCUeB4U=; b=QH31RF0to3pqLpbKjotYem++ZSWob+swqVEFiBwZL26Vr6zSHhXK/L9n9LtHAeCIxx udIzjDiiQeW5c19Q15Tfh22A4aIdeOdOP9cvHOTJiDeNnRYsOeX+7hCgaLIW2jEB049A DKoMDVeGOZgkghEnGD8Iru5BKvw9dUwcj3f0wa97IeBwOEJGvwI4LsKxEIp9QmYN5KDA qVJvbogdudg/p6UL2y5eKPcxwgjHPI67gmLfREkS/YHI+VKDERIWPzBhRdCsPm4wdFie 8sg2R++hLd+4sKud0ljCjfgUqKxVBrpJNaJe2+fkLAmJbGsiqxFBaW/mzdxaQovteUBR CODw== X-Gm-Message-State: ALoCoQmsoIE9bORX8V9aopvhkH5LACi1nsB+/XdMm1LEytYb3Fv51Dg76JxLe+Mf7LIJE5zmEhTR X-Received: by 10.112.48.41 with SMTP id i9mr53400lbn.22.1411638907380; Thu, 25 Sep 2014 02:55:07 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.224.161 with SMTP id rd1ls256719lac.95.gmail; Thu, 25 Sep 2014 02:55:07 -0700 (PDT) X-Received: by 10.152.23.99 with SMTP id l3mr12138596laf.39.1411638907244; Thu, 25 Sep 2014 02:55:07 -0700 (PDT) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com [209.85.217.176]) by mx.google.com with ESMTPS id q13si2201348lal.108.2014.09.25.02.55.07 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 25 Sep 2014 02:55:07 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) client-ip=209.85.217.176; Received: by mail-lb0-f176.google.com with SMTP id w7so7312474lbi.21 for ; Thu, 25 Sep 2014 02:55:07 -0700 (PDT) X-Received: by 10.152.22.137 with SMTP id d9mr12159745laf.29.1411638907172; Thu, 25 Sep 2014 02:55:07 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.130.169 with SMTP id of9csp721575lbb; Thu, 25 Sep 2014 02:55:06 -0700 (PDT) X-Received: by 10.68.133.199 with SMTP id pe7mr17630256pbb.132.1411638905154; Thu, 25 Sep 2014 02:55:05 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id fq5si2874208pbd.63.2014.09.25.02.55.04 for ; Thu, 25 Sep 2014 02:55:05 -0700 (PDT) Received-SPF: none (google.com: linux-samsung-soc-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750977AbaIYJzD (ORCPT + 6 others); Thu, 25 Sep 2014 05:55:03 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:36351 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751122AbaIYJzB (ORCPT ); Thu, 25 Sep 2014 05:55:01 -0400 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout1.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NCG001EIBOHUA00@mailout1.w1.samsung.com> for linux-samsung-soc@vger.kernel.org; Thu, 25 Sep 2014 10:57:53 +0100 (BST) X-AuditID: cbfec7f4-b7f156d0000063c7-67-5423e672296e Received: from eusync3.samsung.com ( [203.254.199.213]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id E8.C8.25543.276E3245; Thu, 25 Sep 2014 10:54:58 +0100 (BST) Received: from amdc1339.digital.local ([106.116.147.30]) by eusync3.samsung.com (Oracle Communications Messaging Server 7u4-23.01 (7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0NCG00H55BJHPSC0@eusync3.samsung.com>; Thu, 25 Sep 2014 10:54:58 +0100 (BST) From: Marek Szyprowski To: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Marek Szyprowski , Alim Akhtar , thomas.ab@samsung.com, Tomasz Figa , Kyungmin Park , Rob Herring Subject: [PATCH v2 2/2] ARM: dts: exynos4: Add stdout-path properties Date: Thu, 25 Sep 2014 11:54:52 +0200 Message-id: <1411638892-13702-3-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.2 In-reply-to: <1411638892-13702-1-git-send-email-m.szyprowski@samsung.com> References: <1411638892-13702-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrEJMWRmVeSWpSXmKPExsVy+t/xq7pFz5RDDF6c1LV4MG8bm8XZpjfs FpseX2O1mHF+H5PF2iN32S2+f/vGZtGxjNFi1a4/jA4cHjtn3WX32Lyk3qNvyypGj8+b5AJY orhsUlJzMstSi/TtErgyVuyzK9ioWvH5+y/mBsa38l2MnBwSAiYS85buZ4WwxSQu3FvP1sXI xSEksJRRYufuv8wQTh+TRMujNjaQKjYBQ4mut11gtoiAt8TkM3/ZQYqYBV4wSnQ/+wXUwcEh LOAq0bE/CqSGRUBV4uW1+0wgNq+Ah8TE/c1Q2+Qk/r9cARbnFPCU6J76CKxVCKjmRafBBEbe BYwMqxhFU0uTC4qT0nMN9YoTc4tL89L1kvNzNzFCwunLDsbFx6wOMQpwMCrx8Hr4K4cIsSaW FVfmHmKU4GBWEuG1vAUU4k1JrKxKLcqPLyrNSS0+xMjEwSnVwFix+mRpqG5UKOe1tBcMuzfM YMpgkJi6Q0jvhs7UeTd31cy4s9xqrrCnVdqF7aZF8nXmUmYqzZLL77em6oYV3b4x5W2SyOZz GRdZJFbnqKs98DuU0JDMfmfrbeUn6le7SwOdPCJqHsbcjb95rOg2z+t6i9YDxT+/Hl3Vseu2 KHtDgovElJ/W1UosxRmJhlrMRcWJABiE5cEFAgAA Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: m.szyprowski@samsung.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Tomasz Figa This patch adds stdout-path property to chosen nodes of Exynos4 boards to enable use of earlycon feature without the need to hardcode port number in kernel itself. Signed-off-by: Tomasz Figa Signed-off-by: Marek Szyprowski --- arch/arm/boot/dts/exynos4210-origen.dts | 1 + arch/arm/boot/dts/exynos4210-smdkv310.dts | 1 + arch/arm/boot/dts/exynos4210-trats.dts | 1 + arch/arm/boot/dts/exynos4210-universal_c210.dts | 1 + arch/arm/boot/dts/exynos4412-odroid-common.dtsi | 4 ++++ arch/arm/boot/dts/exynos4412-origen.dts | 1 + arch/arm/boot/dts/exynos4412-smdk4412.dts | 1 + arch/arm/boot/dts/exynos4412-tiny4412.dts | 4 ++++ arch/arm/boot/dts/exynos4412-trats2.dts | 1 + 9 files changed, 15 insertions(+) diff --git a/arch/arm/boot/dts/exynos4210-origen.dts b/arch/arm/boot/dts/exynos4210-origen.dts index f767c425d0b5..b81146141402 100644 --- a/arch/arm/boot/dts/exynos4210-origen.dts +++ b/arch/arm/boot/dts/exynos4210-origen.dts @@ -31,6 +31,7 @@ chosen { bootargs ="root=/dev/ram0 rw ramdisk=8192 initrd=0x41000000,8M console=ttySAC2,115200 init=/linuxrc"; + stdout-path = &serial_2; }; regulators { diff --git a/arch/arm/boot/dts/exynos4210-smdkv310.dts b/arch/arm/boot/dts/exynos4210-smdkv310.dts index 676e6e0c8cf3..86216fff1b4f 100644 --- a/arch/arm/boot/dts/exynos4210-smdkv310.dts +++ b/arch/arm/boot/dts/exynos4210-smdkv310.dts @@ -27,6 +27,7 @@ chosen { bootargs = "root=/dev/ram0 rw ramdisk=8192 initrd=0x41000000,8M console=ttySAC1,115200 init=/linuxrc"; + stdout-path = &serial_1; }; sdhci@12530000 { diff --git a/arch/arm/boot/dts/exynos4210-trats.dts b/arch/arm/boot/dts/exynos4210-trats.dts index f516da9e8b3a..b351c7bddf2d 100644 --- a/arch/arm/boot/dts/exynos4210-trats.dts +++ b/arch/arm/boot/dts/exynos4210-trats.dts @@ -28,6 +28,7 @@ chosen { bootargs = "console=ttySAC2,115200N8 root=/dev/mmcblk0p5 rootwait earlyprintk panic=5"; + stdout-path = &serial_2; }; regulators { diff --git a/arch/arm/boot/dts/exynos4210-universal_c210.dts b/arch/arm/boot/dts/exynos4210-universal_c210.dts index f1af3f5bf75f..a9d668b24c25 100644 --- a/arch/arm/boot/dts/exynos4210-universal_c210.dts +++ b/arch/arm/boot/dts/exynos4210-universal_c210.dts @@ -26,6 +26,7 @@ chosen { bootargs = "console=ttySAC2,115200N8 root=/dev/mmcblk0p5 rw rootwait earlyprintk panic=5 maxcpus=1"; + stdout-path = &serial_2; }; sysram@02020000 { diff --git a/arch/arm/boot/dts/exynos4412-odroid-common.dtsi b/arch/arm/boot/dts/exynos4412-odroid-common.dtsi index 828d10ed5e86..fc49d3329985 100644 --- a/arch/arm/boot/dts/exynos4412-odroid-common.dtsi +++ b/arch/arm/boot/dts/exynos4412-odroid-common.dtsi @@ -11,6 +11,10 @@ #include "exynos4412.dtsi" / { + chosen { + stdout-path = &serial_1; + }; + reserved-memory { #address-cells = <1>; #size-cells = <1>; diff --git a/arch/arm/boot/dts/exynos4412-origen.dts b/arch/arm/boot/dts/exynos4412-origen.dts index e925c9fbfb07..979dc07c929c 100644 --- a/arch/arm/boot/dts/exynos4412-origen.dts +++ b/arch/arm/boot/dts/exynos4412-origen.dts @@ -26,6 +26,7 @@ chosen { bootargs ="console=ttySAC2,115200"; + stdout-path = &serial_2; }; firmware@0203F000 { diff --git a/arch/arm/boot/dts/exynos4412-smdk4412.dts b/arch/arm/boot/dts/exynos4412-smdk4412.dts index ded0b70f7644..b9256afbcc68 100644 --- a/arch/arm/boot/dts/exynos4412-smdk4412.dts +++ b/arch/arm/boot/dts/exynos4412-smdk4412.dts @@ -25,6 +25,7 @@ chosen { bootargs ="root=/dev/ram0 rw ramdisk=8192 initrd=0x41000000,8M console=ttySAC1,115200 init=/linuxrc"; + stdout-path = &serial_1; }; g2d@10800000 { diff --git a/arch/arm/boot/dts/exynos4412-tiny4412.dts b/arch/arm/boot/dts/exynos4412-tiny4412.dts index ea6929d9c621..d46fd4c2aeaa 100644 --- a/arch/arm/boot/dts/exynos4412-tiny4412.dts +++ b/arch/arm/boot/dts/exynos4412-tiny4412.dts @@ -18,6 +18,10 @@ model = "FriendlyARM TINY4412 board based on Exynos4412"; compatible = "friendlyarm,tiny4412", "samsung,exynos4412", "samsung,exynos4"; + chosen { + stdout-path = &serial_0; + }; + memory { reg = <0x40000000 0x40000000>; }; diff --git a/arch/arm/boot/dts/exynos4412-trats2.dts b/arch/arm/boot/dts/exynos4412-trats2.dts index 11967f4561e0..ade31d3174b0 100644 --- a/arch/arm/boot/dts/exynos4412-trats2.dts +++ b/arch/arm/boot/dts/exynos4412-trats2.dts @@ -30,6 +30,7 @@ chosen { bootargs = "console=ttySAC2,115200N8 root=/dev/mmcblk0p5 rootwait earlyprintk panic=5"; + stdout-path = &serial_2; }; firmware@0204F000 {