Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp548852imm; Sat, 7 Jul 2018 03:11:13 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfqkQJK1w18CRLUP1FennXcqpikYe7juGSeKZsnAQ0lNUFUY4M8Zw2UpNPHqUmJnkSHV71F X-Received: by 2002:a63:743:: with SMTP id 64-v6mr12600406pgh.216.1530958273847; Sat, 07 Jul 2018 03:11:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530958273; cv=none; d=google.com; s=arc-20160816; b=WH0GPcQRr939dhouKfU2G7AseEuk/rRlv7IJb94ro6Fon1EYU+3Lws3HJuPc4zeW0A zUgZ9LITQJ1faxzf9+jdyWnu4vTAfAazIY2hoJZ5Bf0cfcpUDmWv3t727nIircCK5ohp MAWYermdSMHws6ihQr12fCoVisMkZC+RBDBymwQOvmn+cEDBesJu7YwsiSV++3KF4lwc GBBtvBqi6zpxBfzugkTczajccT2Z1kIHFWxrlgHRK2bpdLSO7aPu0gCeAWMl7zpGTYgL 9HBIvF/GwlPpJv50oGdh5p/PwLpmScS8M1s2E7QFkotBLET4NX56PbbOBw9m+JcFBKTi e/jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=KhdMifM/YB8iVb8rljZOtIMxhHzeqo39+zZMZO0ROAo=; b=Zk4dUfsx32XKZ/BQOfYgvC93TM5Ln/F3nZcTea4slHPKS1O3/LDq/8jVMCySGuyjYw S6UiMggWXQrzz4O+Me0ZS2uwQE4yCQj7GocvJSzABh7NAL+0tWY8Q6TPjyBkDolgf2aw DhErQpPBkxN68i6cmoyi7e3RT1hz6TaD2uM0tGwUSV1Xpu//BU9oAkz8X2ITNhCOMrPp DBfnKN48F4HGV7v85oPXtxNKdVohplL9y8zkdfodoY7wEWUKxNTxk6osfQciTbGDt7Gk GQfqXw+5Hg+vhEcsxEsORXDhoL3tfqmzqfjJ7KQZlbzKoCRwAr2CP8XUs9YrxXiukKcI Aj3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=psiT7+XD; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 23-v6si9820399pgx.323.2018.07.07.03.10.59; Sat, 07 Jul 2018 03:11:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=psiT7+XD; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932766AbeGGKKH (ORCPT + 99 others); Sat, 7 Jul 2018 06:10:07 -0400 Received: from mail-lf0-f67.google.com ([209.85.215.67]:34036 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754049AbeGGKJx (ORCPT ); Sat, 7 Jul 2018 06:09:53 -0400 Received: by mail-lf0-f67.google.com with SMTP id n96-v6so11695877lfi.1; Sat, 07 Jul 2018 03:09:52 -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=Gqx7gRZtiVMVhza7Zgheqe/LEKfkB3/6Od36yqEmsevIIL0+r94wTCOHDJrJw6Z+Un 9GVoSaYDDWR2J5up8cQFy0YzqIgrSqA/8bQLdjyqZrH9fq+8OYTcKgmp88D8GRnbTE6g I+37Fsd6DUk8XAdPl+jc0BOx7nPnY0OmRIMkivxklwjcdPnmsVHMfLYV7LVJsHOs/rgJ /GYQl04KwhdPQAK/9Bae6k9EVH7XSuE+Q4mWY4TixQuO1mVnWzj620UHOtj6XtqKHBvl TJFPrrIZe6Gi3dMdHGyasATg7or3KdwE0Ybt9QG0QIGKdCujLjNYMbO0MKNf4cpFlxiJ JJzA== X-Gm-Message-State: APt69E1RClUDMtnPtC3cdqEu7XGAWpBM4MvT/AnJiFhV+Rfi9FlRwaUD YqC6lpVCExFYEWuVa3og5Vk= 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 Cc: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, xc-racer2@live.ca, pawel.mikolaj.chmiel@gmail.com 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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"; +}; -- 2.7.4