From patchwork Thu Jun 21 19:09:55 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: 10480477 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 274AA604D3 for ; Thu, 21 Jun 2018 19:13:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 19BC82898C for ; Thu, 21 Jun 2018 19:13:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0E26128E23; Thu, 21 Jun 2018 19:13:27 +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 895DE2898C for ; Thu, 21 Jun 2018 19:13:26 +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=6felmncEPfXaD4lS64f+38pKfDZBEQXJ3wXiOiYQmYE=; b=bzcH9obR9XKyhV twNK/vc0DU7n1Mc6XYkzm+IAEfKwCvhEjLShH4tYr5SodSuxyjw0sfxoX0og01rUhDKlP6YKUpTtX T4V/orMR403WJSiMdyhXM1wREQX6tTvt82OvKCiP4AhDGNJqFLLLw1pwF0hra43qjBVojTLUwefYa PWOZ/o4Xk5CBksekTd++oMM3+C2Ucc3vNuMt77pEb684JCdcAoUwvN6PITbsdn5z2acdDmaQiRAjd 95Wy9yE66IvVzBt+Ydtb8P/rUykwGlnlRr/X3REvKQXwwKD/i5hoAeYhufF0LB79nhivI6D2ct57b qnQ9uexHoTmMTThG5Jnw==; 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 1fW51A-0007Wt-2P; Thu, 21 Jun 2018 19:13:16 +0000 Received: from mail-lf0-x241.google.com ([2a00:1450:4010:c07::241]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fW4yb-0006Fb-65 for linux-arm-kernel@lists.infradead.org; Thu, 21 Jun 2018 19:10:41 +0000 Received: by mail-lf0-x241.google.com with SMTP id x13-v6so5862104lff.10 for ; Thu, 21 Jun 2018 12:10:26 -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=AUAkPz/9MzwOVBmZQmeZi7tDiklyss4IEehpahJ33iw=; b=Pba78wPbtgOInfp5PPuY+EsR0brwYNUBniEDLuhVLub5+qflyklF3TceMBmJpNPPnQ OhP37yA+Yt4YX8ZaKYfUTU5v4abYCiW3bivvvT9Q+8oveyEZX3dCd8YPPu3LmtHNu+mO mCGR0GXs0MpEnUFVfNU8zDxQUbrz2i7iKhCZu9NlHDyic567qbf0xP9ZshSCE27ODoTj 1d9QG1z3P/WW7jEpjfcVu8TcD2h9dYpQUOpI8iXyW3/YgmA5/NYV2gf8VqUtoHs7PYy/ nGPgWX/u7g1+0+mNv0DEut8zlPxYYI1UXKJOAqiwpoFQRVlOkWrN2YBHvbWfZk6HMUoK gFUw== 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=AUAkPz/9MzwOVBmZQmeZi7tDiklyss4IEehpahJ33iw=; b=M4GQbo5hUxJJiWj3yGJ5ymQ1luCKf2z/bkf1BwamciQvekYnsUFtpm9RYL+Ka+h8kY TQhO7u1ri2KNuBs+TDBLLP+O2o6zQxeqPETGSVAYfVyMUpsIREko6ZHJakXtvbmnn8M1 uVeSTD9kXcw9KL4XrgD4i61LlUPAvcC+W6EmnZToguDoIxgE3qGEJ2sV2/M/Bl1loaVS Q7+OLYzCuiCz0VvOlaLSCiOl4Q/7bKLhoeSAptWuKJ+Udfr9erET7YvowSEYJ5StyKVK 0jKFxIAbgxzI4x9zVtUzur2iNZzKkTlj8VuHMdrslhy3SAhLSWAnynac24wrq8xeUCiu 6zZA== X-Gm-Message-State: APt69E2CB1MDJQGfHmi6S2wz7KA2bZfhIwxeZGOCsEXJzsza1cbjEnB4 XnB2D1pdqn4LHIJXsQMZciA= X-Google-Smtp-Source: ADUXVKIk90mea0bgBwBMr4IYlSp3C7CAED9Sk3yB+Ji9+YbqCu97O8V95INbOrfJkRlLR/+3CFKgtw== X-Received: by 2002:a19:e21b:: with SMTP id z27-v6mr11594110lfg.119.1529608225426; Thu, 21 Jun 2018 12:10:25 -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 u3-v6sm988036lji.4.2018.06.21.12.10.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 21 Jun 2018 12:10:24 -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 3/7] ARM: dts: s5pv210: Add initial DTS for Samsung Galaxy S phone. Date: Thu, 21 Jun 2018 21:09:55 +0200 Message-Id: <1529608199-5583-4-git-send-email-pawel.mikolaj.chmiel@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1529608199-5583-1-git-send-email-pawel.mikolaj.chmiel@gmail.com> References: <1529608199-5583-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-20180621_121037_234150_4A3F6ED3 X-CRM114-Status: GOOD ( 15.37 ) 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 Signed-off-by: Paweł Chmiel --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/s5pv210-galaxys.dts | 72 +++++++++++++++++++++++++++++++++++ 2 files changed, 73 insertions(+) create mode 100644 arch/arm/boot/dts/s5pv210-galaxys.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 7e2424957809..522ebdca1d3d 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-galaxys.dtb \ s5pv210-goni.dtb \ s5pv210-smdkc110.dtb \ s5pv210-smdkv210.dtb \ diff --git a/arch/arm/boot/dts/s5pv210-galaxys.dts b/arch/arm/boot/dts/s5pv210-galaxys.dts new file mode 100644 index 000000000000..d435032541a9 --- /dev/null +++ b/arch/arm/boot/dts/s5pv210-galaxys.dts @@ -0,0 +1,72 @@ +// SPDX-License-Identifier: GPL-2.0 + +/dts-v1/; +#include +#include +#include +#include +#include "s5pv210-aries.dtsi" + +/ { + model = "Samsung Galaxy S1 (GT-I9000) based on S5PV210"; + compatible = "samsung,galaxys", "samsung,aries", "samsung,s5pv210"; + + chosen { + bootargs = "console=ttySAC2,115200n8 root=/dev/mmcblk2p1 rw rootwait ignore_loglevel earlyprintk"; + }; + + nand_pwrseq: nand-pwrseq { + compatible = "mmc-pwrseq-simple"; + reset-gpios = <&gpj2 7 GPIO_ACTIVE_LOW>; + pinctrl-names = "default"; + pinctrl-0 = <&massmemory_en>; + }; + + 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 1 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + vol-up { + label = "volume_up"; + gpios = <&gph3 2 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + home { + label = "home"; + gpios = <&gph3 5 GPIO_ACTIVE_LOW>; + linux,code = ; + wakeup-source; + }; + }; +}; + +&pinctrl0 { + massmemory_en: massmemory-en { + samsung,pins = "gpj2-7"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; +}; + +&sdhci0 { + bus-width = <4>; + non-removable; + mmc-pwrseq = <&nand_pwrseq>; + pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_bus4>; + pinctrl-names = "default"; + status = "okay"; +};