From patchwork Mon Sep 22 13:14:15 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 37680 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f70.google.com (mail-ee0-f70.google.com [74.125.83.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 127CB21177 for ; Mon, 22 Sep 2014 13:14:31 +0000 (UTC) Received: by mail-ee0-f70.google.com with SMTP id b57sf1857606eek.9 for ; Mon, 22 Sep 2014 06:14:31 -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=pBiQLyyLsQAYGlA9hQhavjDg/pvpIDCBfKzc30hdSEo=; b=EQaD+iAoG51+px2lSba5b8HFe6RWP8bah+YdY8EVvt6LHKNS8hkSbbu8DIxqbYJS4u Wkxq4mdL4n3dSBS++4eu+MNo+gkw1CkrNcssPc1rl+/4XuUrjSKrq7y0+Q8tv7yQ43do XiCkashwZCSRbnojjUFVJE4qZ036XS5CCw4jaRI+XiJJXc2LLIMRkwbfO8bxJQq/67wd nihvlyjs0fSWZCo69zTIDrsbcWeAzpN9x+55M4e5oAG5WBrDO9gEza9XbH557cCAVcl0 eqzmI9olzJumDWkmXjdoBRZUnc2jGLbPl4NU+fsj40uhvmpFKYCN56B9SUXcOZE0oMQj 8pEg== X-Gm-Message-State: ALoCoQkwimUSYp3CLzfbYdq+BAPMZUViQ9eQivuXxRScS2Fce3IYz1tCFUm97ZhV9eOK/5f3FPGW X-Received: by 10.181.13.82 with SMTP id ew18mr1526129wid.3.1411391671114; Mon, 22 Sep 2014 06:14:31 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.42.196 with SMTP id q4ls539435lal.22.gmail; Mon, 22 Sep 2014 06:14:30 -0700 (PDT) X-Received: by 10.112.56.206 with SMTP id c14mr24523920lbq.27.1411391670959; Mon, 22 Sep 2014 06:14:30 -0700 (PDT) Received: from mail-lb0-f179.google.com (mail-lb0-f179.google.com [209.85.217.179]) by mx.google.com with ESMTPS id ug4si14509606lbc.5.2014.09.22.06.14.30 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 22 Sep 2014 06:14:30 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.179 as permitted sender) client-ip=209.85.217.179; Received: by mail-lb0-f179.google.com with SMTP id 10so6110655lbg.38 for ; Mon, 22 Sep 2014 06:14:30 -0700 (PDT) X-Received: by 10.152.179.226 with SMTP id dj2mr25875605lac.40.1411391670885; Mon, 22 Sep 2014 06:14:30 -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 of9csp231641lbb; Mon, 22 Sep 2014 06:14:30 -0700 (PDT) X-Received: by 10.70.60.169 with SMTP id i9mr4455543pdr.166.1411391666569; Mon, 22 Sep 2014 06:14:26 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id vx2si15698357pbc.67.2014.09.22.06.14.25 for ; Mon, 22 Sep 2014 06:14:26 -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 S1753956AbaIVNOZ (ORCPT + 6 others); Mon, 22 Sep 2014 09:14:25 -0400 Received: from mailout3.w1.samsung.com ([210.118.77.13]:11064 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753647AbaIVNOY (ORCPT ); Mon, 22 Sep 2014 09:14:24 -0400 Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245]) by mailout3.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NCB00IHP0WPK930@mailout3.w1.samsung.com> for linux-samsung-soc@vger.kernel.org; Mon, 22 Sep 2014 14:17:13 +0100 (BST) X-AuditID: cbfec7f5-b7f776d000003e54-41-542020ad73b4 Received: from eusync2.samsung.com ( [203.254.199.212]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id C9.25.15956.DA020245; Mon, 22 Sep 2014 14:14:21 +0100 (BST) Received: from amdc1339.digital.local ([106.116.147.30]) by eusync2.samsung.com (Oracle Communications Messaging Server 7u4-23.01 (7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0NCB0014U0RS8760@eusync2.samsung.com>; Mon, 22 Sep 2014 14:14:21 +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/RFC 2/2] ARM: dts: exynos4: Add stdout-path properties Date: Mon, 22 Sep 2014 15:14:15 +0200 Message-id: <1411391655-6291-3-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.2 In-reply-to: <1411391655-6291-1-git-send-email-m.szyprowski@samsung.com> References: <1411391655-6291-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrCJMWRmVeSWpSXmKPExsVy+t/xK7prFRRCDI6stbZ4MG8bm8XZpjfs FpseX2O1mHF+H5PF2iN32S2+f/vGZtGxjNFi1a4/jA4cHjtn3WX32Lyk3qNvyypGj8+b5AJY orhsUlJzMstSi/TtErgyHrbfZy04q1rxf/0p1gbGDoUuRk4OCQETiU1fFrBA2GISF+6tZ+ti 5OIQEljKKHF35jV2CKePSeJR4ylGkCo2AUOJrrddbCC2iIC3xOQzf8GKmAVeMEp0P/vFDJIQ FnCT2Ng6BayBRUBVYtHa7WBxXgF3iQV3PrFCrJOT+P9yBROIzSngIfH+9RygOAfQNneJxX35 Exh5FzAyrGIUTS1NLihOSs810itOzC0uzUvXS87P3cQICamvOxiXHrM6xCjAwajEw/ujRT5E iDWxrLgy9xCjBAezkghvkLRCiBBvSmJlVWpRfnxRaU5q8SFGJg5OqQbGdRlnnJpUpm7/lZTC 76bkaRiobDf9WdQGE8baHXueVQT8ifD56HnR6Ne+w6ou/qdk78jq6z5dEbsoNqNQ5JLk707m FO2QC7Y3dgTFe+wtWrNaY29X2ex/XDv/S3QGbe+Y6H/lqMp0t2NfpF0uL+3eJOdi+F3Nb9um amspq0kaFkU3JV1TVXmUWIozEg21mIuKEwEuWr8tBwIAAA== 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.179 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 d50eb3aa708e..e65ee3cb36c3 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 adadaf97ac01..0841fd34f9dd 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; + }; + firmware@0204F000 { compatible = "samsung,secure-firmware"; reg = <0x0204F000 0x1000>; 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 {