Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp6636686imm; Wed, 27 Jun 2018 10:39:50 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK6o0l3tZG7NvWihaoJHPUIM7Tyg23qRkspCFY2qK5ial2iDhYSEC3Bt4xK4Hsa7wDzG6uy X-Received: by 2002:a17:902:292b:: with SMTP id g40-v6mr7156835plb.273.1530121190634; Wed, 27 Jun 2018 10:39:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530121190; cv=none; d=google.com; s=arc-20160816; b=w79eU7hSEGcv+1VPU/OMzJ3AXUZzA68h+fnU7kF8iy66osLb6O9bwWOM2iBb4dPgRO USzVI0T3AINjMi6ayBVYTeqPza5V6JIWesx05ZzPMIqpwSYXo4T64TG2kX1cj7CsptX0 HsMsmEjsDO+p5jKyyIX04Xg46U6KvgM1tgMzMMg5ZAA2UQkerFAe6jnmSdR4U/ymCNcp jWWbDSDxBzvvMFt66jrOYVWxCh3oa6rKr6fpp1r+j4kUkET6KZHlog/DTpvyo7TfvtHH sF0RFJ6k9LyYOUIed9KQntgnGWUuRlIV9+vhBfvkpwXsYjpPkYFbhgeqlKAimXYaxO63 yzKg== 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=gZ+rXQoUnT2TUKpxCjBToTsxO8MCh/SFBNmELEpLOK6V9CV3NrpVquBJPUbDO8FF8t gA+fqCZasDPff6/TjL73LZ6XZAqDK5EZh/A2k8U+H1WINS+H/D9jfUC8Z3LE3qlfGH5p x2YWGld0jzxok3ea/Z1djAlVIsURPIxX72f+u7b+meOUscRJyrFO243/+BH6C04pTJSt nOUO0o/N50qSkZYW+j2nsaGR5ebsXjZJh6HVnLks77k9yosWEtkv15jTNdJqHUyJYnvs dbghAN5fDXtSORLzsPog3qiEzCPpy0Nrjdll3v0Tnx5qN1F0Zw9vSDZzUV6l8SH4hFNl i0WA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mLlEfcnZ; 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 91-v6si4357926ply.296.2018.06.27.10.39.36; Wed, 27 Jun 2018 10:39:50 -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=mLlEfcnZ; 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 S966046AbeF0RMu (ORCPT + 99 others); Wed, 27 Jun 2018 13:12:50 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:33046 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964947AbeF0RMn (ORCPT ); Wed, 27 Jun 2018 13:12:43 -0400 Received: by mail-lj1-f194.google.com with SMTP id t21-v6so2247507lji.0; Wed, 27 Jun 2018 10:12:42 -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=mLlEfcnZSdW5KCfzOFuA8y4hcxN1ZwUWThX/UlTZjH3lIcJu1oGQWHNzb/IpZjWlRQ 27gHEIQeTFX4ktTV9lBrd+K8sAIPMGig6a8Tusw7YXMceNhHdxZHnVvsaElzFAYUFZxE RWkx6hWLlbvrqPFuO9z7Cz7q//PA36RgZXHfl5zuOVowcBkWvQflArno5R2G6KawEU3H EfAaQoqer5hstBS4tOKJu3d4uDrGGy9rr46649hs66Td92rvPSOcl0TCPak6QOrNeBmB Gdd8kb9uqFQRvQYMEK2qR8G4usqmjO4/Jb8Ml7dbPKVrN+92ggnA6rpzbvnLALnem/81 ozYA== 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=fMm5aAyJCKnzQ/xIfZOWIuLW27IcWOMgSl/Zmb/0Zq01x7nomgy4sFdLH+Ef5xYV// 4CsbhQSBcf09j1nP69PKgZqj81w9pTiw9XwqqMiBFU4IejyF5KIU7PGdSnmTmQV9zNtL 9zAaqn6me8rF3hkGkxvJwpi8eOgzWSVZ9qP4Tby+0MBp/UakJOrytF6uXT/tJL6OjTa0 klMDVEiLzvc8WrlAlZ3/DK93zFYEvATHrC478eOot9BPiJ/AFvyw2IUWKv0jYbKBqoC9 GjQ9jZxK5Mo/3aV8tXrJs3o59xmL5GQrRXafvO9CvRjaWt7dm5EhCoSthcGd6GMwkmaq ugTA== X-Gm-Message-State: APt69E1kxuckQ5jTmcMYMUII7ySWp0682OsxIbBAuVNcwXJddJbzGAvB AKAwLDOPw6G8rh+HgS9GhGo= X-Received: by 2002:a2e:5c4:: with SMTP id 187-v6mr4671773ljf.28.1530119561263; Wed, 27 Jun 2018 10:12:41 -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 n9-v6sm929344lfb.7.2018.06.27.10.12.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 27 Jun 2018 10:12:40 -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 v2 03/10] ARM: dts: s5pv210: Add initial DTS for Samsung Galaxy S phone Date: Wed, 27 Jun 2018 19:12:17 +0200 Message-Id: <1530119544-30023-4-git-send-email-pawel.mikolaj.chmiel@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1530119544-30023-1-git-send-email-pawel.mikolaj.chmiel@gmail.com> References: <1530119544-30023-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