From patchwork Mon Oct 20 11:28:31 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 39046 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B0630203C5 for ; Mon, 20 Oct 2014 11:28:50 +0000 (UTC) Received: by mail-wi0-f197.google.com with SMTP id n3sf2437282wiv.0 for ; Mon, 20 Oct 2014 04:28:49 -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=O8+mh0NIboMOZENo/BBNFriN+QAkSgZVnn6Bjqma3XE=; b=Q7+r3T+HJsuZa+Po5VGeDSynVELh+XOU4hkPFyIJG0yptPXBT8OQy0CA7G9u+ot3wu qESe/lUAF29KYXu7HQ0GrrlsIVccM+VjTEUcTL4IRAAn94mASWmil2UtJWLWU6EMz42L LrBB61BSeUjnSMOS2c66U3an0hkRbmqVgaymBnZiTiJXfJV+p9IcNuhht7iZuPKARGo9 Dw3Mj02zm3HnfPfIvLA5cJRYO7MelzSTfyumPmT0bRO63u0fyMMgFXmnwzO+J4KXupcR v/0aKyBPlIBsslVpyF7LloVFjNCX3NND+B1SKkY4U9uSeCBDEdusIxiu8uGcwrADFE+7 76VQ== X-Gm-Message-State: ALoCoQkwf/7CdJ0swInOtI/lq5Xz+KwXx4HXFn9ocZ0gsckCArUNMhfi/3e9ATpKEejag0SKegUB X-Received: by 10.152.1.133 with SMTP id 5mr60317lam.8.1413804529927; Mon, 20 Oct 2014 04:28:49 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.207.4 with SMTP id ls4ls389161lac.37.gmail; Mon, 20 Oct 2014 04:28:49 -0700 (PDT) X-Received: by 10.152.115.131 with SMTP id jo3mr26672661lab.20.1413804529652; Mon, 20 Oct 2014 04:28:49 -0700 (PDT) Received: from mail-lb0-f180.google.com (mail-lb0-f180.google.com. [209.85.217.180]) by mx.google.com with ESMTPS id j9si13838396lag.75.2014.10.20.04.28.49 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 20 Oct 2014 04:28:49 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.180 as permitted sender) client-ip=209.85.217.180; Received: by mail-lb0-f180.google.com with SMTP id n15so3635645lbi.39 for ; Mon, 20 Oct 2014 04:28:49 -0700 (PDT) X-Received: by 10.112.12.35 with SMTP id v3mr8533512lbb.80.1413804529558; Mon, 20 Oct 2014 04:28:49 -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.84.229 with SMTP id c5csp284273lbz; Mon, 20 Oct 2014 04:28:48 -0700 (PDT) X-Received: by 10.70.129.144 with SMTP id nw16mr26975968pdb.2.1413804525638; Mon, 20 Oct 2014 04:28:45 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id wv1si7472665pab.224.2014.10.20.04.28.45 for ; Mon, 20 Oct 2014 04:28:45 -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 S1753217AbaJTL2o (ORCPT + 6 others); Mon, 20 Oct 2014 07:28:44 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:57012 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753065AbaJTL2n (ORCPT ); Mon, 20 Oct 2014 07:28:43 -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 <0NDQ00KZ9QOMQX20@mailout1.w1.samsung.com> for linux-samsung-soc@vger.kernel.org; Mon, 20 Oct 2014 12:31:35 +0100 (BST) X-AuditID: cbfec7f4-b7f6c6d00000120b-da-5444f1e83e9c Received: from eusync3.samsung.com ( [203.254.199.213]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 23.8C.04619.8E1F4445; Mon, 20 Oct 2014 12:28:40 +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 <0NDQ00J30QJKF930@eusync3.samsung.com>; Mon, 20 Oct 2014 12:28:40 +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 v3 2/2] ARM: dts: exynos4: Add stdout-path properties Date: Mon, 20 Oct 2014 13:28:31 +0200 Message-id: <1413804511-32441-3-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.2 In-reply-to: <1413804511-32441-1-git-send-email-m.szyprowski@samsung.com> References: <1413804511-32441-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrKJMWRmVeSWpSXmKPExsVy+t/xq7ovPrqEGJw9ImDxYN42NouzTW/Y LTY9vsZqMeP8PiaLtUfuslt8//aNzaJjGaPFql1/GB04PHbOusvusXlJvUffllWMHp83yQWw RHHZpKTmZJalFunbJXBlnJ3yhbXgrGrFj+nH2BoYOxS6GDk5JARMJGYev8kGYYtJXLi3Hsjm 4hASWMoo8WPufyYIp49JYs3niWBVbAKGEl1vu8BsEQFvicln/rKDFDELvGCU6H72ixkkISzg KtHUuIgFxGYRUJWYv/0DWAOvgIfEjEdnWCDWyUn8f7mCCcTmFPCU2Ll1EZgtBFTTf+Al2wRG 3gWMDKsYRVNLkwuKk9JzDfWKE3OLS/PS9ZLzczcxQoLqyw7GxcesDjEKcDAq8fAKWLqECLEm lhVX5h5ilOBgVhLhdXgDFOJNSaysSi3Kjy8qzUktPsTIxMEp1cAoFjNXRXSKS8cWa73PM6f+ 49tZdmvj5rtTQtI+Wdxpdk+r+22ccSV4uXrtub0d/A/3av05tj6gvOkUc8ih7L6a/KlBG7cf KvwVdtpTM+SAUN+tA4Lrchp3qL9r1LvSwy5YeHa24SVrv0WO80JM0tnYxbYec/08Z9Ghd9LP drsvrlm74Un4gYY+JZbijERDLeai4kQAA2flsggCAAA= 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.180 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 c697ff01ae8d..7c49bddf44b6 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 de15114fd07c..bd8b73077d41 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 5e066cd87f66..c8b38359d54e 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 {