From patchwork Sat Jul 7 10:09:40 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: 10512831 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 8414E6024A for ; Sat, 7 Jul 2018 10:10:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 700C828864 for ; Sat, 7 Jul 2018 10:10:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 642AF28875; Sat, 7 Jul 2018 10:10:49 +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 D26CB28864 for ; Sat, 7 Jul 2018 10:10:48 +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=ln+2X9WGimcKSf2ZcsUPw3QXcFFUEfvmlQCA+XbI8vg=; b=hIPjHMWpVwkljs Qv8Jx7+95XRa2l/foQRrrA6YoEfEDF8bwlNpGlyUbyhokJ3JMvRukDkN7KtFOliSD1Yfp6zh2o0jX rARohT3OrBT8TpPSl7o3JnFXQ9XFKy8CFf9oGUIryOHPQXbyayOpFEsYP+XN/I5zF1/A0H5/Vom0P ahkMh8snQVv/i3xdJiACI8z5IG7hdxw8NwYt+lGprUFIdXmnj3lfu4ZVYE5ZwQw9MBM5mcpSFpx5l pECgziAlzlCNloFXYGF3DoFY1OqW6dqgzCIxiL5/wPqhsm7k6ZIOFBekgz+At9ZREA+5Cakf/kzV+ gvpNPCPIN6B9xiXBq1dw==; 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 1fbkAu-0007en-Bg; Sat, 07 Jul 2018 10:10:44 +0000 Received: from mail-lf0-x242.google.com ([2a00:1450:4010:c07::242]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fbkAF-0006Dh-Pe for linux-arm-kernel@lists.infradead.org; Sat, 07 Jul 2018 10:10:06 +0000 Received: by mail-lf0-x242.google.com with SMTP id y127-v6so11672555lfc.8 for ; Sat, 07 Jul 2018 03:09:53 -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=KhdMifM/YB8iVb8rljZOtIMxhHzeqo39+zZMZO0ROAo=; b=psiT7+XDp+RhmKq9JvHhihyDtt2B6pa0bqFEkYZZj7lY4pDuM58fvYro0rWgO6Yisb NC1AEy2EMve4z9yuf8bm4QHds9YKF+F/naw/evEEvFviL1cwCGPXwuPVcLoOLlnWkhzz zGU2zDD6Cvz2OaPNPVHIN6C8I6ilZ5x3pNNBuoINYWRMez3QsGPIEH21aURBNsSSFlEw GW+AzbSmeMj96UDgNjchd0OaxjP8CJTknQWiE4gnhONaP+bJl4NB0J9wiB9PHcdyJodN lxbeZDQ6qdPEcKGXhZUXQNZ6jyf6W+iWzeQokV96oTdyq4qWys/v2Wv8R8LtgBo0KEOW uqiQ== 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=KhdMifM/YB8iVb8rljZOtIMxhHzeqo39+zZMZO0ROAo=; b=qLAmC95x7g/ua+r7wfL2ZIty+o7X+qU4S4M7c9RBKLFk16ucNV2lmzxkhR7Uc+yPxZ TMQntt3XUkez3fniaQB7KGzlZWrn8tRlhXSFVCVDVHG3WkJPn2vUw2GNfQ/fk5PFt274 B8GVfKW1ahAHrTqwbeYdBIXKOTISMRABvexlyhQVf5dZVQd7sRwQrUhAYKVNu4hvx6bk /MfgtTpieayAhFo789MFxXlAcNmZiYdtFxaO8pHZ4yZDZd5auFRtMx3STU5E19EkMk+O z74TnGQ7Hqow+obofZJkkuyjfPMWxcdR57gEBpDoK4YFE/Z0d3I7/ftxmPvdsPeYVMw+ BXkA== X-Gm-Message-State: APt69E2Hx2yfwkAyowDSOqXznhyRTQRuz4wuBpdOcTz9Vd/5yIK3a9tK AGrnaMGEuhHUSwyGOp1QYLw= X-Google-Smtp-Source: AAOMgpdGyAeYZIRVq5luRowakD9Q//tiGEe9jzrPK7DjxYNIJjcUjwJOhu9uHxP3D3fwvO+R1egcRQ== X-Received: by 2002:a19:4d0a:: with SMTP id a10-v6mr9157955lfb.5.1530958191884; Sat, 07 Jul 2018 03:09:51 -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 k77-v6sm1321292lfi.46.2018.07.07.03.09.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 07 Jul 2018 03:09:51 -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 v4 2/5] ARM: dts: s5pv210: Add initial DTS for Samsung Galaxy S phone Date: Sat, 7 Jul 2018 12:09:40 +0200 Message-Id: <1530958183-10956-3-git-send-email-pawel.mikolaj.chmiel@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1530958183-10956-1-git-send-email-pawel.mikolaj.chmiel@gmail.com> References: <1530958183-10956-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-20180707_031003_886091_461CEF93 X-CRM114-Status: GOOD ( 16.81 ) 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 This DTS file have initial support Samsung Galaxy S phone, also known as i9000. It belongs to Samsung Aries devices family. Initial version have support for: - sdcard - internal memory - max8998 pmic and rtc - max17040 fuel gauge - gpio keys - fimd (no panel driver yet) - usb (peripherial mode) - wifi 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-galaxys.dts | 77 +++++++++++++++++++++++++++++++++++ 2 files changed, 78 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..842276749717 --- /dev/null +++ b/arch/arm/boot/dts/s5pv210-galaxys.dts @@ -0,0 +1,77 @@ +// SPDX-License-Identifier: GPL-2.0 + +/dts-v1/; +#include +#include +#include "s5pv210-aries.dtsi" + +/ { + model = "Samsung Galaxy S1 (GT-I9000) based on S5PV210"; + compatible = "samsung,galaxys", "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/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"; +};