From patchwork Fri Jul 6 18:32:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Pawe=C5=82_Chmiel?= X-Patchwork-Id: 10512347 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5A0196024A for ; Fri, 6 Jul 2018 18:34:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5150D2866C for ; Fri, 6 Jul 2018 18:34:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4534528795; Fri, 6 Jul 2018 18:34:11 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D784D2866C for ; Fri, 6 Jul 2018 18:34:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=1ZFqJuwQU48mujW8julMD4BINxWszZw7Puak1ey83/8=; b=IscKfd0swtOFDA JP8ZGFcJBKF3A1oSue0hCZfMcOR5JduvRBIVN+nIzK+8h4lwCNYY82VosB6FSyO73W320k5hFD4f1 CZbxYNPmXzV3KO/O5yH2WLUP4HOBhhxJZXa6+vU1IRXf3j0ysJGzfnVQRLYJYJShOrwmI/oTN3bLV S8NtUwCNbJi1CSw2BvAVy7JZcuSmXp2U88PM6anGBdk9/fSmWZq6EwjnOJpuhBjZ0/BKaD3bW3ss7 1C11bwSZ/FqoUMP4T5pFfYtGiVgE61L6qJuzSUpYKx9mj7tjr1QXPjoRFLYrjFN2YeNW34gTTb15u iwkS2eCNABSA1vWX45JA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fbVYU-0008Ql-LI; Fri, 06 Jul 2018 18:34:06 +0000 Received: from mail-lj1-x242.google.com ([2a00:1450:4864:20::242]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fbVY1-0007jN-DE for linux-arm-kernel@lists.infradead.org; Fri, 06 Jul 2018 18:33:39 +0000 Received: by mail-lj1-x242.google.com with SMTP id t21-v6so9815373lji.0 for ; Fri, 06 Jul 2018 11:33:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=omdXM5someJmkLjQbCjbmMJ92kx7glPVAf/yqZD3KUY=; b=a4erqi2yrHkjVQ8wNyZTTgfwLWEQULLdOT53VrhkoiuiaODP9099znCvGbAjk/Y8aZ 3eYorLQEbV//ZApWl/N4bdtXXrGRlTXdVLNJiIlHRyq15EI4U2Pz/L7p3ftNRRHkiCpJ 0WGwPjY8b3BTL7vC/N850HsDyDT/SQi9o1qu0vBcGbXjXMF0MnbUDJ3FzhksN4SMnqUP vicWXNrnmrU9fn8HTcohltYbGXsVyj7qjJEqJccY5vNEJZifZY+K2AT+0xxp18U7lEnE eTY4UCL8QIn+2pdVYyRyJEHgINNiCFfZHH98XTaWgEw32QxYURUq6p50HnePMAVyaH0B NU8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=omdXM5someJmkLjQbCjbmMJ92kx7glPVAf/yqZD3KUY=; b=E1jiF220Jn6C+qiARHz4Y7KhzZRbMCJuY1YIVHFMN8LoXpCr15GuqAcJ7TQa6B2aS3 tG+HXyyv4bCBwsfEG6nflKXcr8EZ7NMwG4XuHWEaWW7cwRZYL/Ii1fwtVSLgepJIAyrE SM4gOAfYAbFBDAOaJAv+7/1+3OZO//cwbe8SuSQw/jJp4hdQKBsemONTJd7OtXBNF6ER JlmkZCQyYnHyN3OVzSxvWmeoc/j2IjFGFZVEgAHK5gnM/J0avJwfI+EIJ6e52bLyhGl8 UfLD9ZtzpNzGaw4HNqlkpwxf2qqPkjRJwbagt3kDvLyLgrt/l7iuctleMvBKuWpFdXzD Gr6g== X-Gm-Message-State: APt69E1OPmWfv8GL1c9tQFJhiKtBD+GrzWMgp7TUZKCy2UM7PbxGYeKj G5WZJmL+hmGSwCU2p5AQOdc= X-Google-Smtp-Source: AAOMgpfjbK+t7Tpj/z6s5Ui+hMlrdEWNYlHE9Y3hh2RGodEs4SAIsYP6doGIIaWeV7v/gAeBlnpP6Q== X-Received: by 2002:a2e:991:: with SMTP id 139-v6mr5628985ljj.150.1530902008154; Fri, 06 Jul 2018 11:33:28 -0700 (PDT) Received: from localhost.localdomain (user-94-254-170-61.play-internet.pl. [94.254.170.61]) by smtp.googlemail.com with ESMTPSA id l82-v6sm2314697lfb.8.2018.07.06.11.33.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 06 Jul 2018 11:33:27 -0700 (PDT) From: =?UTF-8?q?Pawe=C5=82=20Chmiel?= To: kgene@kernel.org, krzk@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, linux@armlinux.org.uk Subject: [PATCH v3 4/9] ARM: dts: s5pv210: Add initial DTS for SGH-T959P phone Date: Fri, 6 Jul 2018 20:32:45 +0200 Message-Id: <1530901970-14972-5-git-send-email-pawel.mikolaj.chmiel@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1530901970-14972-1-git-send-email-pawel.mikolaj.chmiel@gmail.com> References: <1530901970-14972-1-git-send-email-pawel.mikolaj.chmiel@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180706_113337_454225_06972FB8 X-CRM114-Status: GOOD ( 16.25 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org, xc-racer2@live.ca, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, pawel.mikolaj.chmiel@gmail.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Jonathan Bakker This DTS file have initial support Samsung SGH-T959P phone, also known as Samsung Galaxy S 4G or fascinate4g. It belongs to Samsung Aries devices family. Initial version have support for: - sdcard - max8998 pmic and rtc - max17040 fuel gauge - gpio keys - fimd (no panel driver yet) - usb (peripherial mode) - wifi Signed-off-by: Jonathan Bakker Signed-off-by: Paweł Chmiel --- Changes from v1: - Added missing commit msg - Removed duplicated and unneeded headers - Added stdout-path - Added information why we hardcode bootargs --- --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/s5pv210-fascinate4g.dts | 45 +++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 arch/arm/boot/dts/s5pv210-fascinate4g.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 522ebdca1d3d..d00e995875bb 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -846,6 +846,7 @@ dtb-$(CONFIG_ARCH_S3C64XX) += \ s3c6410-smdk6410.dtb dtb-$(CONFIG_ARCH_S5PV210) += \ s5pv210-aquila.dtb \ + s5pv210-fascinate4g.dtb \ s5pv210-galaxys.dtb \ s5pv210-goni.dtb \ s5pv210-smdkc110.dtb \ diff --git a/arch/arm/boot/dts/s5pv210-fascinate4g.dts b/arch/arm/boot/dts/s5pv210-fascinate4g.dts new file mode 100644 index 000000000000..ccf761b1babf --- /dev/null +++ b/arch/arm/boot/dts/s5pv210-fascinate4g.dts @@ -0,0 +1,45 @@ +// SPDX-License-Identifier: GPL-2.0 + +/dts-v1/; +#include +#include +#include "s5pv210-aries.dtsi" + +/ { + model = "Samsung Galaxy S Fascinate 4G (SGH-T959P) based on S5PV210"; + compatible = "samsung,fascinate4g", "samsung,aries", "samsung,s5pv210"; + + chosen { + stdout-path = &uart2; + /* + * It's hard to change those parameters in stock bootloader, + * since it requires special hardware/cable. + * Let's hardocde bootargs for now, till u-boot port is finished, + * with which it should be easier. + */ + bootargs = "root=/dev/mmcblk1p1 rw rootwait ignore_loglevel earlyprintk"; + }; + + gpio-keys { + compatible = "gpio-keys"; + + power { + label = "power"; + gpios = <&gph2 6 GPIO_ACTIVE_LOW>; + linux,code = ; + wakeup-source; + }; + + vol-down { + label = "volume_down"; + gpios = <&gph3 2 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + vol-up { + label = "volume_up"; + gpios = <&gph3 1 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +};