From patchwork Wed Jan 17 12:58:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Shields X-Patchwork-Id: 10169251 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 8943F601D3 for ; Wed, 17 Jan 2018 12:59:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7A47F28608 for ; Wed, 17 Jan 2018 12:59:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6B3A128604; Wed, 17 Jan 2018 12:59:33 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E328928604 for ; Wed, 17 Jan 2018 12:59:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752933AbeAQM7c (ORCPT ); Wed, 17 Jan 2018 07:59:32 -0500 Received: from mail-pf0-f193.google.com ([209.85.192.193]:41092 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752912AbeAQM7b (ORCPT ); Wed, 17 Jan 2018 07:59:31 -0500 Received: by mail-pf0-f193.google.com with SMTP id j3so11503869pfh.8; Wed, 17 Jan 2018 04:59:31 -0800 (PST) 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; bh=QIXAZy2AwIsnAbPKOwTN9fWG1/g5TSrq1acDzNkO1QE=; b=Sqvj2DUCXf5+BFBZ4S03/VHlQ5v10Z1xd96p3TUpmepsBIfb1A5URbd401EJiserzW TkUOI74zn6rrsKogwMjshF7JQXEnAYDsDxPo/JqPk0QRXC/ioxJsUA/3WqpYWBBjUAY0 TCrE1dVkvtK2jpZ70fwSm6x+OPBVemjgFX46EsSaH7V43cg7Sza0lYZj5wqiz9kZnz2T qcx4Ta+0WR7w93A0ijZPHa4M+bI++6S3xt4hnQWmuPM31uUasP7slXSpB7zl2XGz2ewP 8Ce48Qrr6bQIpmbAC+qPzpMHMlYY8HRgTTXj5nOEtiIyNS3Ymwh29gIn1f/lSUjJ1nBG qcUg== X-Gm-Message-State: AKwxytccLWqJNWZTh4Unam6j2wrSzpl5BUz19eso1sj2lK9ducX6rYpl GIZ8dI42LDYTDGtjfDDnAPL1a7LY4b8= X-Google-Smtp-Source: ACJfBovpJ5xewFw9LuOx8y9lQiOTKGP/qGMFNiIVDp5ymQseAdQ6+IaGh4xj7qQuZ/RkvT7tcUmTJQ== X-Received: by 10.98.34.27 with SMTP id i27mr4424875pfi.43.1516193970363; Wed, 17 Jan 2018 04:59:30 -0800 (PST) Received: from archbox.home (27-32-42-49.static.tpgi.com.au. [27.32.42.49]) by smtp.gmail.com with ESMTPSA id i20sm8620472pfj.58.2018.01.17.04.59.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Jan 2018 04:59:29 -0800 (PST) From: Simon Shields To: linux-samsung-soc@vger.kernel.org Cc: Krzysztof Kozlowski , Rob Herring , Kukjin Kim , devicetree@vger.kernel.org, Marek Szyprowski , =?UTF-8?q?Bart=C5=82omiej=20=C5=BBo=C5=82nierkiewicz?= , Simon Shields Subject: [PATCH v4 3/4] ARM: dts: add Samsung's exynos4412-based midas boards Date: Wed, 17 Jan 2018 23:58:44 +1100 Message-Id: <20180117125845.3954-4-simon@lineageos.org> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180117125845.3954-1-simon@lineageos.org> References: <20180117125845.3954-1-simon@lineageos.org> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP "midas" is the codename for a family of smartphones released by Samsung Mobile. It includes the Galaxy S3 (GT-I9300/I9305) and the Galaxy Note 2 (GT-N7100/N7105). The boards largely have the same peripherals: the main differences are touchscreen, display panel and cellular modem. Signed-off-by: Simon Shields --- arch/arm/boot/dts/Makefile | 3 ++ arch/arm/boot/dts/exynos4412-i9300.dts | 22 +++++++++++++ arch/arm/boot/dts/exynos4412-i9305.dts | 20 ++++++++++++ arch/arm/boot/dts/exynos4412-n710x.dts | 59 ++++++++++++++++++++++++++++++++++ 4 files changed, 104 insertions(+) create mode 100644 arch/arm/boot/dts/exynos4412-i9300.dts create mode 100644 arch/arm/boot/dts/exynos4412-i9305.dts create mode 100644 arch/arm/boot/dts/exynos4412-n710x.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 66e28af289da..955ef9df1b6b 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -163,7 +163,10 @@ dtb-$(CONFIG_ARCH_EXYNOS4) += \ exynos4210-smdkv310.dtb \ exynos4210-trats.dtb \ exynos4210-universal_c210.dtb \ + exynos4412-i9300.dtb \ + exynos4412-i9305.dtb \ exynos4412-itop-elite.dtb \ + exynos4412-n710x.dtb \ exynos4412-odroidu3.dtb \ exynos4412-odroidx.dtb \ exynos4412-odroidx2.dtb \ diff --git a/arch/arm/boot/dts/exynos4412-i9300.dts b/arch/arm/boot/dts/exynos4412-i9300.dts new file mode 100644 index 000000000000..f8125a945f8d --- /dev/null +++ b/arch/arm/boot/dts/exynos4412-i9300.dts @@ -0,0 +1,22 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Samsung's Exynos4412 based M0 (GT-I9300) board device tree source + * + * Copyright (c) 2013 Samsung Electronics Co., Ltd. + * http://www.samsung.com + */ + +/dts-v1/; +#include "exynos4412-galaxy-s3.dtsi" + +/ { + model = "Samsung Galaxy S3 (GT-I9300) based on Exynos4412"; + compatible = "samsung,i9300", "samsung,midas", "samsung,exynos4412", "samsung,exynos4"; + + /* bootargs are passed in by bootloader */ + + memory@40000000 { + device_type = "memory"; + reg = <0x40000000 0x40000000>; + }; +}; diff --git a/arch/arm/boot/dts/exynos4412-i9305.dts b/arch/arm/boot/dts/exynos4412-i9305.dts new file mode 100644 index 000000000000..54a2a55dbf70 --- /dev/null +++ b/arch/arm/boot/dts/exynos4412-i9305.dts @@ -0,0 +1,20 @@ +// SPDX-License-Identifier: GPL-2.0 +/dts-v1/; +#include "exynos4412-galaxy-s3.dtsi" + +/ { + model = "Samsung Galaxy S3 (GT-I9305) based on Exynos4412"; + compatible = "samsung,i9305", "samsung,midas", "samsung,exynos4412", "samsung,exynos4"; + + /* bootargs are passed in by bootloader */ + + memory@40000000 { + device_type = "memory"; + reg = <0x40000000 0x80000000>; + }; +}; + +&i2c0_bus { + /* SCL and SDA pins are swapped */ + samsung,pins = "gpd1-1", "gpd1-0"; +}; diff --git a/arch/arm/boot/dts/exynos4412-n710x.dts b/arch/arm/boot/dts/exynos4412-n710x.dts new file mode 100644 index 000000000000..b64aa9b61763 --- /dev/null +++ b/arch/arm/boot/dts/exynos4412-n710x.dts @@ -0,0 +1,59 @@ +// SPDX-License-Identifier: GPL-2.0 +/dts-v1/; +#include "exynos4412-midas.dtsi" + +/ { + compatible = "samsung,n710x", "samsung,midas", "samsung,exynos4412", "samsung,exynos4"; + model = "Samsung Galaxy Note 2 (GT-N7100, GT-N7105) based on Exynos4412"; + + memory@40000000 { + device_type = "memory"; + reg = <0x40000000 0x80000000>; + }; + + /* bootargs are passed in by bootloader */ + + regulators { + cam_vdda_reg: voltage-regulator-9 { + compatible = "regulator-fixed"; + regulator-name = "CAM_SENSOR_CORE_1.2V"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + gpio = <&gpm4 1 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + }; +}; + +&buck9_reg { + maxim,ena-gpios = <&gpm1 0 GPIO_ACTIVE_HIGH>; + status = "okay"; +}; + +&cam_af_reg { + gpio = <&gpm1 1 GPIO_ACTIVE_HIGH>; + status = "okay"; +}; + +&cam_io_reg { + gpio = <&gpm0 7 GPIO_ACTIVE_HIGH>; + status = "okay"; +}; + +&ldo13_reg { + regulator-name = "VCC_1.8V_LCD"; + regulator-always-on; +}; + +&ldo25_reg { + regulator-name = "VCI_3.0V_LCD"; + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3000000>; + status = "okay"; +}; + +&s5c73m3 { + standby-gpios = <&gpm0 6 GPIO_ACTIVE_LOW>; /* ISP_STANDBY */ + vdda-supply = <&cam_vdda_reg>; + status = "okay"; +};