Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp363826ybb; Fri, 20 Mar 2020 00:04:55 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuuYCk8XN6P9CBt8KJez77HQRtINc5v9BZdIaeh8RFGT/4SFdPWYMt5qXnSxMFftY5fFHeD X-Received: by 2002:aca:190f:: with SMTP id l15mr5086092oii.48.1584687894907; Fri, 20 Mar 2020 00:04:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584687894; cv=none; d=google.com; s=arc-20160816; b=EZInrjT8hSdaHVWoV0BtzRQiT4ER9nLR8xHf1Nj2BocgUPJRE8Mu1ibmZ2Khef2mlg MUAHJX+0WF3ws9Y4iDzGviqBHq0eQ9BRUCP6gUpoZ05N3zkijpEutOqFrfzEZfo07L76 +Qo2WQgSKY6kLeMcQEe60nVsjmZEbdeavx+QG7xFJgfvWyQiAZV5FE8EM1F8d11vW7qj LCWV22bGvKmVXwSu34x4wkPHBThxUtPfhGjfCMipr4w86OCKu8Dfw1J0t412k1aB8wTV VAvYaedHYmSLjVD+K3JZBWChHInJhOOx5I6ACcx0L69OTFHqhpqIWs7svy3UTUxG8ilt wfsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:cc:to:subject:dkim-signature:dkim-filter; bh=dXuVv/5vstlXAfkqMKXsEYRw+Q2cl9REYpCARno5wNE=; b=NF7bSr6YXbxANNk/nHuXQqLEl+IoEjpq/r7YcozNY5wOEcqyh/XFCVHzgCMLxUsXOj TM8ZLsj5cCF6b62NgvzcSzMbyskWW1dpxN32pHYPYcCqnWRwytF9JvpCHcpKxTEDSi4r DtGU40r4VYv+LmgrN5yDnvi3H3iB73B4SrOsLs3GINqk7o857Ry62B7/J/OelcDG/b8R vWrywrhlNALK5X9Bk3oW9EhLDO7V6ItQ9+qb5QH7LKAKGebbu95yFXSd6hQhNFEzt7Y6 CgyyOyQqT4x7MXs1JR9rqZocJBhWQgQ1kR9DfTi2QE9T6RqNj7xcwN2vpnK8SKAF5Ks3 L42w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=EnuLZE6q; 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=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h10si2162095oih.231.2020.03.20.00.04.42; Fri, 20 Mar 2020 00:04:54 -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=@samsung.com header.s=mail20170921 header.b=EnuLZE6q; 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=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726801AbgCTHEQ (ORCPT + 99 others); Fri, 20 Mar 2020 03:04:16 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:43426 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726614AbgCTHEP (ORCPT ); Fri, 20 Mar 2020 03:04:15 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20200320070413euoutp01f093e571551324444e932c07631285ef~98TT14eFE2485324853euoutp01o for ; Fri, 20 Mar 2020 07:04:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20200320070413euoutp01f093e571551324444e932c07631285ef~98TT14eFE2485324853euoutp01o DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1584687853; bh=dXuVv/5vstlXAfkqMKXsEYRw+Q2cl9REYpCARno5wNE=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=EnuLZE6qzVKxD1veppv2Sh0P/9Wh8pfi2QUgdCASLYLGMTrP8nllZml4RXgmMWWVm X/WnjSVkg1hg3D1UjDU396YQ7Q/4MGtXN5LBXzq4SKHNxZr4Bc6qH8PAMU60m4V0Nd +UhXDvgg+C69xPzt9Rh5L+grDCHYUTObaKeA6/b0= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20200320070413eucas1p106c1f846c8c8d6358edd4e7bcc980aea~98TTXH6e11728017280eucas1p1F; Fri, 20 Mar 2020 07:04:13 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 06.66.60679.DEA647E5; Fri, 20 Mar 2020 07:04:13 +0000 (GMT) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200320070412eucas1p2092edee7ae5a109d42f302587d221db0~98TS79xWK0364003640eucas1p2H; Fri, 20 Mar 2020 07:04:12 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200320070412eusmtrp28524530c39d6163c89969bc0c175f28e~98TS7MMyp2634726347eusmtrp2N; Fri, 20 Mar 2020 07:04:12 +0000 (GMT) X-AuditID: cbfec7f4-0e5ff7000001ed07-c0-5e746aed606b Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 23.CC.07950.CEA647E5; Fri, 20 Mar 2020 07:04:12 +0000 (GMT) Received: from [106.210.88.143] (unknown [106.210.88.143]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200320070411eusmtip2f984809cc17cbf190f581d0f518c11c6~98TR_Q1Z11994719947eusmtip2b; Fri, 20 Mar 2020 07:04:11 +0000 (GMT) Subject: Re: [PATCH v3 2/2] ARM: DTS: Add devicetree file for the Galaxy S2 To: Paul Cercueil , Kukjin Kim , Krzysztof Kozlowski , Rob Herring , Mark Rutland Cc: Stenkin Evgeniy , Jonas Heinrich , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org From: Marek Szyprowski Message-ID: Date: Fri, 20 Mar 2020 08:04:11 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <20200319173411.20607-2-paul@crapouillou.net> Content-Transfer-Encoding: 7bit Content-Language: en-US X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrFKsWRmVeSWpSXmKPExsWy7djPc7pvs0riDGZvZbOYf+Qcq0X/49fM FufPb2C32PT4GqvF5V1z2CxmnN/HZLH0+kUmi6MfeSz6F19isWjde4TdYsqSmewO3B5r5q1h 9Fh9qZ3NY+esu+wem1Z1snlsXlLvsfLLUXaPz5vkAtijuGxSUnMyy1KL9O0SuDJ+bJ3JWPB0 FWPF4p1H2RoYnzcydjFyckgImEhcOt/O3MXIxSEksIJR4vzU1awQzhdGibXdH6Ccz0CZd5fZ YFoaPi1ghEgsZ5S42fyBBSQhJPCeUWLdai8QW1jAW2Lp45dgDSICOxklLvyJB2lgFnjMKHG0 8RETSIJNwFCi620XWBGvgJ3E3peH2UFsFgFViaWdC8AOFBWIkbh4uJ8VokZQ4uTMJ2DLOAWs JJo3doHFmQXkJba/ncMMYYtL3HoynwlkmYTANXaJOy/esECc7SIxt/8+E4QtLPHq+BZ2CFtG 4v9OmIZmRomH59ayQzg9jBKXm2ZAw8la4s65X0CncgCt0JRYv0sfIuwocf/uchaQsIQAn8SN t4IQR/BJTNo2nRkizCvR0SYEUa0mMev4Ori1By9cYp7AqDQLyWuzkLwzC8k7sxD2LmBkWcUo nlpanJueWmyUl1quV5yYW1yal66XnJ+7iRGYwk7/O/5lB+OuP0mHGAU4GJV4eGe0FccJsSaW FVfmHmKU4GBWEuHVTQcK8aYkVlalFuXHF5XmpBYfYpTmYFES5zVe9DJWSCA9sSQ1OzW1ILUI JsvEwSnVwJi9Srwkz8xfcIdxbcgT2U33/6xSqJq7Y6VJY0L2+luMWslLyrYu51ydXFG69pS3 7J/95gzfxGS2zjY+ceHPGo/P0odzNgR0b5XYNqHtv3Pm6VuPnnXrSEkvUV7+y3jynySGUAfP v6fzddbYzPm1Pf1RUa9PwHUJZjlRjR2T35uxzYzdUnVwt5ISS3FGoqEWc1FxIgB6wL1xXQMA AA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrLIsWRmVeSWpSXmKPExsVy+t/xe7pvskriDJZ1q1nMP3KO1aL/8Wtm i/PnN7BbbHp8jdXi8q45bBYzzu9jslh6/SKTxdGPPBb9iy+xWLTuPcJuMWXJTHYHbo8189Yw eqy+1M7msXPWXXaPTas62Tw2L6n3WPnlKLvH501yAexRejZF+aUlqQoZ+cUltkrRhhZGeoaW FnpGJpZ6hsbmsVZGpkr6djYpqTmZZalF+nYJehk/ts5kLHi6irFi8c6jbA2MzxsZuxg5OSQE TCQaPi0Asrk4hASWMkosaFkPlZCRODmtgRXCFpb4c62LDaLoLaPEtT/fWUASwgLeEksfvwRL iAjsZJS4cP8kO0iCWeAxo0TbiVyIjr2MEtNu7wEbxSZgKNH1FmQUJwevgJ3E3peHwRpYBFQl lnYuAFstKhAj8XNPFwtEjaDEyZlPwGxOASuJ5o1drBALzCTmbX7IDGHLS2x/OwfKFpe49WQ+ 0wRGoVlI2mchaZmFpGUWkpYFjCyrGEVSS4tz03OLjfSKE3OLS/PS9ZLzczcxAqN227GfW3Yw dr0LPsQowMGoxMM7o604Tog1say4MvcQowQHs5IIr246UIg3JbGyKrUoP76oNCe1+BCjKdBz E5mlRJPzgQklryTe0NTQ3MLS0NzY3NjMQkmct0PgYIyQQHpiSWp2ampBahFMHxMHp1QD44IE njK7xN795xbdjuZ83pcrO8M579DPwMRSHYudTWsvxjyz5Pj8InwXc/BF1zUe9fful534N9dB ps7Okd2Oy8Yua/+dm/z7T21ISeOsW5O59UL8pqtCbOeyk79kMi4SX14adlOl6/yOnSWnT9Y+ nXNzCfuXLxf/fLnt+zsnvHBuyV4/oYlvZJRYijMSDbWYi4oTAS5ANpXwAgAA X-CMS-MailID: 20200320070412eucas1p2092edee7ae5a109d42f302587d221db0 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200319173432eucas1p1cdad961246badf3b9db363ad8958cf78 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200319173432eucas1p1cdad961246badf3b9db363ad8958cf78 References: <20200319173411.20607-1-paul@crapouillou.net> <20200319173411.20607-2-paul@crapouillou.net> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Paul, On 2020-03-19 18:34, Paul Cercueil wrote: > From: Stenkin Evgeniy > > Add devicetree file for the Exynos 4210 based Galaxy S2 (i9100 version). > > Signed-off-by: Stenkin Evgeniy > Signed-off-by: Paul Cercueil Reviewed-by: Marek Szyprowski > --- > > Notes: > v2: - Change i9100 to GT-I9100 > - Remove redundant description in header > - Add chosen node with stdout-path > - Rename regulator nodes since there was no regulator-2 > - Rename i2c-gpio-3 to i2c-gpio > - Use IRQ_TYPE_EDGE_FALLING instead of hardcoded '2' > - Remove spi-cpol, spi-cpha as they glitch the LCD panel > - Make CS gpio active-low > - Update ehci node to add 'phys' instead of ports > - Remove duplicated ehci node > - Reorder nodes to appear in alphabetical order > - Remove useless newlines > - Remove regulator provided to touchscreen node since it does not expect any > > v3: - Change CPU regulator name to VARM_1.2V_C210 as in the datasheet > - Remove unused gpios for the max8997 pmic > - Remove redundant interrupts/interrupt-parent for max8997 pmic > > arch/arm/boot/dts/Makefile | 1 + > arch/arm/boot/dts/exynos4210-i9100.dts | 768 +++++++++++++++++++++++++ > 2 files changed, 769 insertions(+) > create mode 100644 arch/arm/boot/dts/exynos4210-i9100.dts > > diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile > index d6546d2676b9..522436d30690 100644 > --- a/arch/arm/boot/dts/Makefile > +++ b/arch/arm/boot/dts/Makefile > @@ -181,6 +181,7 @@ dtb-$(CONFIG_ARCH_EXYNOS3) += \ > exynos3250-monk.dtb \ > exynos3250-rinato.dtb > dtb-$(CONFIG_ARCH_EXYNOS4) += \ > + exynos4210-i9100.dtb \ > exynos4210-origen.dtb \ > exynos4210-smdkv310.dtb \ > exynos4210-trats.dtb \ > diff --git a/arch/arm/boot/dts/exynos4210-i9100.dts b/arch/arm/boot/dts/exynos4210-i9100.dts > new file mode 100644 > index 000000000000..a4147113f0c4 > --- /dev/null > +++ b/arch/arm/boot/dts/exynos4210-i9100.dts > @@ -0,0 +1,768 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + * Samsung's Exynos4210 based Galaxy S2 (GT-I9100 version) device tree > + * > + * Copyright (c) 2012 Samsung Electronics Co., Ltd. > + * http://www.samsung.com > + * Copyright (c) 2020 Stenkin Evgeniy > + * Copyright (c) 2020 Paul Cercueil > + */ > + > +/dts-v1/; > +#include "exynos4210.dtsi" > +#include "exynos4412-ppmu-common.dtsi" > + > +#include > +#include > + > +/ { > + model = "Samsung Galaxy S2 (GT-I9100)"; > + compatible = "samsung,i9100", "samsung,exynos4210", "samsung,exynos4"; > + > + memory@40000000 { > + device_type = "memory"; > + reg = <0x40000000 0x40000000>; > + }; > + > + chosen { > + stdout-path = "serial2:115200n8"; > + }; > + > + vemmc_reg: regulator-0 { > + compatible = "regulator-fixed"; > + regulator-name = "VMEM_VDD_2.8V"; > + regulator-min-microvolt = <2800000>; > + regulator-max-microvolt = <2800000>; > + gpio = <&gpk0 2 GPIO_ACTIVE_HIGH>; > + enable-active-high; > + }; > + > + tsp_reg: regulator-1 { > + compatible = "regulator-fixed"; > + regulator-name = "TSP_FIXED_VOLTAGES"; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + gpio = <&gpl0 3 GPIO_ACTIVE_HIGH>; > + startup-delay-us = <70000>; > + enable-active-high; > + regulator-boot-on; > + regulator-always-on; > + }; > + > + cam_af_28v_reg: regulator-2 { > + compatible = "regulator-fixed"; > + regulator-name = "8M_AF_2.8V_EN"; > + regulator-min-microvolt = <2800000>; > + regulator-max-microvolt = <2800000>; > + gpio = <&gpk1 1 GPIO_ACTIVE_HIGH>; > + enable-active-high; > + }; > + > + cam_io_en_reg: regulator-3 { > + compatible = "regulator-fixed"; > + regulator-name = "CAM_IO_EN"; > + regulator-min-microvolt = <2800000>; > + regulator-max-microvolt = <2800000>; > + gpio = <&gpe2 1 GPIO_ACTIVE_HIGH>; > + enable-active-high; > + }; > + > + cam_io_12v_reg: regulator-4 { > + compatible = "regulator-fixed"; > + regulator-name = "8M_1.2V_EN"; > + regulator-min-microvolt = <1200000>; > + regulator-max-microvolt = <1200000>; > + gpio = <&gpe2 5 GPIO_ACTIVE_HIGH>; > + enable-active-high; > + }; > + > + vt_core_15v_reg: regulator-5 { > + compatible = "regulator-fixed"; > + regulator-name = "VT_CORE_1.5V"; > + regulator-min-microvolt = <1500000>; > + regulator-max-microvolt = <1500000>; > + gpio = <&gpe2 2 GPIO_ACTIVE_HIGH>; > + enable-active-high; > + }; > + > + gpio-keys { > + compatible = "gpio-keys"; > + > + vol-down { > + gpios = <&gpx2 1 GPIO_ACTIVE_LOW>; > + linux,code = ; > + label = "volume down"; > + debounce-interval = <10>; > + }; > + > + vol-up { > + gpios = <&gpx2 0 GPIO_ACTIVE_LOW>; > + linux,code = ; > + label = "volume up"; > + debounce-interval = <10>; > + }; > + > + power { > + gpios = <&gpx2 7 GPIO_ACTIVE_LOW>; > + linux,code = ; > + label = "power"; > + debounce-interval = <10>; > + wakeup-source; > + }; > + > + ok { > + gpios = <&gpx3 5 GPIO_ACTIVE_LOW>; > + linux,code = ; > + label = "ok"; > + debounce-interval = <10>; > + }; > + }; > + > + wlan_pwrseq: sdhci3-pwrseq { > + compatible = "mmc-pwrseq-simple"; > + reset-gpios = <&gpl1 2 GPIO_ACTIVE_LOW>; > + }; > + > + i2c_max17042_fuel: i2c-gpio { > + compatible = "i2c-gpio"; > + #address-cells = <1>; > + #size-cells = <0>; > + > + sda-gpios = <&gpy4 0 GPIO_ACTIVE_HIGH>; > + scl-gpios = <&gpy4 1 GPIO_ACTIVE_HIGH>; > + i2c-gpio,delay-us = <5>; > + > + battery@36 { > + compatible = "maxim,max17042"; > + > + interrupt-parent = <&gpx2>; > + interrupts = <3 IRQ_TYPE_EDGE_FALLING>; > + > + pinctrl-0 = <&max17042_fuel_irq>; > + pinctrl-names = "default"; > + > + reg = <0x36>; > + maxim,over-heat-temp = <700>; > + maxim,over-volt = <4500>; > + }; > + }; > + > + spi-lcd { > + compatible = "spi-gpio"; > + #address-cells = <1>; > + #size-cells = <0>; > + > + num-chipselects = <1>; > + cs-gpios = <&gpy4 3 GPIO_ACTIVE_LOW>; > + sck-gpios = <&gpy3 1 GPIO_ACTIVE_HIGH>; > + mosi-gpios = <&gpy3 3 GPIO_ACTIVE_HIGH>; > + > + lcd@0 { > + compatible = "samsung,ld9040"; > + reg = <0>; > + > + spi-max-frequency = <1200000>; > + > + vdd3-supply = <&vmipi_reg>; > + vci-supply = <&vcclcd_reg>; > + > + reset-gpios = <&gpy4 5 GPIO_ACTIVE_HIGH>; > + power-on-delay = <10>; > + reset-delay = <10>; > + > + panel-width-mm = <90>; > + panel-height-mm = <154>; > + > + display-timings { > + timing { > + clock-frequency = <23492370>; > + hactive = <480>; > + vactive = <800>; > + hback-porch = <16>; > + hfront-porch = <16>; > + vback-porch = <2>; > + vfront-porch = <28>; > + hsync-len = <2>; > + vsync-len = <1>; > + hsync-active = <0>; > + vsync-active = <0>; > + de-active = <0>; > + pixelclk-active = <0>; > + }; > + }; > + > + port { > + lcd_ep: endpoint { > + remote-endpoint = <&fimd_dpi_ep>; > + }; > + }; > + }; > + }; > + > + fixed-rate-clocks { > + xxti { > + compatible = "samsung,clock-xxti"; > + clock-frequency = <0>; > + }; > + > + xusbxti { > + compatible = "samsung,clock-xusbxti"; > + clock-frequency = <24000000>; > + }; > + }; > + > + thermal-zones { > + cpu_thermal: cpu-thermal { > + cooling-maps { > + map0 { > + /* Corresponds to 800MHz */ > + cooling-device = <&cpu0 2 2>; > + }; > + map1 { > + /* Corresponds to 200MHz */ > + cooling-device = <&cpu0 4 4>; > + }; > + }; > + }; > + }; > +}; > + > +&camera { > + status = "okay"; > +}; > + > +&cpu0 { > + cpu0-supply = <&varm_breg>; > +}; > + > +&ehci { > + status = "okay"; > + > + phys = <&exynos_usbphy 1>; > + phy-names = "host"; > +}; > + > +&exynos_usbphy { > + status = "okay"; > + > + vbus-supply = <&safe1_sreg>; > +}; > + > +&fimc_0 { > + status = "okay"; > + > + assigned-clocks = <&clock CLK_MOUT_FIMC0>, <&clock CLK_SCLK_FIMC0>; > + assigned-clock-parents = <&clock CLK_SCLK_MPLL>; > + assigned-clock-rates = <0>, <160000000>; > +}; > + > +&fimc_1 { > + status = "okay"; > + > + assigned-clocks = <&clock CLK_MOUT_FIMC1>, <&clock CLK_SCLK_FIMC1>; > + assigned-clock-parents = <&clock CLK_SCLK_MPLL>; > + assigned-clock-rates = <0>, <160000000>; > +}; > + > +&fimc_2 { > + status = "okay"; > + > + assigned-clocks = <&clock CLK_MOUT_FIMC2>, <&clock CLK_SCLK_FIMC2>; > + assigned-clock-parents = <&clock CLK_SCLK_MPLL>; > + assigned-clock-rates = <0>, <160000000>; > +}; > + > +&fimc_3 { > + status = "okay"; > + > + assigned-clocks = <&clock CLK_MOUT_FIMC3>, <&clock CLK_SCLK_FIMC3>; > + assigned-clock-parents = <&clock CLK_SCLK_MPLL>; > + assigned-clock-rates = <0>, <160000000>; > +}; > + > +&fimd { > + status = "okay"; > + #address-cells = <1>; > + #size-cells = <0>; > + > + samsung,invert-vden; > + samsung,invert-vclk; > + > + pinctrl-0 = <&lcd_clk>, <&lcd_data24>; > + pinctrl-names = "default"; > + > + port@3 { > + reg = <3>; > + > + fimd_dpi_ep: endpoint { > + remote-endpoint = <&lcd_ep>; > + }; > + }; > +}; > + > +&gpu { > + status = "okay"; > + > + mali-supply = <&vg3d_breg>; > + regulator-microvolt-offset = <50000>; > + regulator-microsecs-delay = <50>; > +}; > + > +&hsotg { > + status = "okay"; > + > + dr_mode = "otg"; > + vusb_d-supply = <&vusb_reg>; > + vusb_a-supply = <&vusbdac_reg>; > +}; > + > +&i2c_3 { > + status = "okay"; > + > + samsung,i2c-sda-delay = <100>; > + samsung,i2c-slave-addr = <0x10>; > + samsung,i2c-max-bus-freq = <100000>; > + > + pinctrl-0 = <&i2c3_bus>; > + pinctrl-names = "default"; > + > + mxt224-touchscreen@4a { > + compatible = "atmel,maxtouch"; > + reg = <0x4a>; > + > + interrupt-parent = <&gpx0>; > + interrupts = <4 IRQ_TYPE_EDGE_FALLING>; > + }; > +}; > + > +&i2c_5 { > + status = "okay"; > + > + samsung,i2c-sda-delay = <100>; > + samsung,i2c-slave-addr = <0x10>; > + samsung,i2c-max-bus-freq = <100000>; > + > + pinctrl-0 = <&i2c5_bus>; > + pinctrl-names = "default"; > + > + max8997_pmic@66 { > + compatible = "maxim,max8997-pmic"; > + reg = <0x66>; > + > + interrupts-extended = <&gpx0 7 IRQ_TYPE_NONE>, > + <&gpx2 3 IRQ_TYPE_EDGE_FALLING>; > + > + max8997,pmic-buck1-uses-gpio-dvs; > + max8997,pmic-buck2-uses-gpio-dvs; > + max8997,pmic-buck5-uses-gpio-dvs; > + > + max8997,pmic-ignore-gpiodvs-side-effect; > + max8997,pmic-buck125-default-dvs-idx = <0>; > + > + max8997,pmic-buck125-dvs-gpios = <&gpx0 5 GPIO_ACTIVE_HIGH>, > + <&gpx0 6 GPIO_ACTIVE_HIGH>, > + <&gpl0 0 GPIO_ACTIVE_HIGH>; > + > + max8997,pmic-buck1-dvs-voltage = <1350000>, <1300000>, > + <1250000>, <1200000>, > + <1150000>, <1100000>, > + <1000000>, <950000>; > + > + max8997,pmic-buck2-dvs-voltage = <1100000>, <1000000>, > + <950000>, <900000>, > + <1100000>, <1000000>, > + <950000>, <900000>; > + > + max8997,pmic-buck5-dvs-voltage = <1200000>, <1200000>, > + <1200000>, <1200000>, > + <1200000>, <1200000>, > + <1200000>, <1200000>; > + > + pinctrl-0 = <&max8997_irq>, <&otg_gp>, <&usb_sel>; > + pinctrl-names = "default"; > + > + regulators { > + vadc_reg: LDO1 { > + regulator-name = "VADC_3.3V_C210"; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + regulator-always-on; > + > + }; > + valive_reg: LDO2 { > + regulator-name = "VALIVE_1.1V_C210"; > + regulator-min-microvolt = <1100000>; > + regulator-max-microvolt = <1100000>; > + regulator-always-on; > + > + }; > + > + vusb_reg: LDO3 { > + regulator-name = "VUSB_1.1V_C210"; > + regulator-min-microvolt = <1100000>; > + regulator-max-microvolt = <1100000>; > + }; > + > + vmipi_reg: LDO4 { > + regulator-name = "VMIPI_1.8V"; > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + regulator-always-on; > + }; > + > + vhsic_reg: LDO5 { > + regulator-name = "VHSIC_1.2V"; > + regulator-min-microvolt = <1200000>; > + regulator-max-microvolt = <1200000>; > + regulator-always-on; > + }; > + > + vpda_reg: LDO6 { > + regulator-name = "VCC_1.8V_PDA"; > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + regulator-always-on; > + }; > + > + vcam_reg: LDO7 { > + regulator-name = "CAM_ISP_1.8V"; > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + }; > + > + vusbdac_reg: LDO8 { > + regulator-name = "VUSB+VDAC_3.3V_C210"; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + }; > + > + vccpda_reg: LDO9 { > + regulator-name = "VCC_2.8V_PDA"; > + regulator-min-microvolt = <2800000>; > + regulator-max-microvolt = <2800000>; > + regulator-always-on; > + }; > + > + vtouch_reg: LDO11 { > + regulator-name = "TOUCH_2.8V"; > + regulator-min-microvolt = <2800000>; > + regulator-max-microvolt = <2800000>; > + regulator-always-on; > + }; > + > + vpll_reg: LDO10 { > + regulator-name = "VPLL_1.1V"; > + regulator-min-microvolt = <1100000>; > + regulator-max-microvolt = <1100000>; > + regulator-always-on; > + }; > + > + vtcam_reg: LDO12 { > + regulator-name = "VT_CAM_1.8V"; > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + }; > + > + vcclcd_reg: LDO13 { > + regulator-name = "VCC_3.0V_LCD"; > + regulator-min-microvolt = <3000000>; > + regulator-max-microvolt = <3000000>; > + }; > + > + vmotor_reg: LDO14 { > + regulator-name = "VCC_2.8V_MOTOR"; > + regulator-min-microvolt = <2800000>; > + regulator-max-microvolt = <2800000>; > + }; > + > + vled_reg: LDO15 { > + regulator-name = "LED_A_2.8V"; > + regulator-min-microvolt = <2800000>; > + regulator-max-microvolt = <2800000>; > + }; > + > + camsensor_reg: LDO16 { > + regulator-name = "CAM_SENSOR_IO_1.8V"; > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + }; > + > + vtf_reg: LDO17 { > + regulator-name = "VTF_2.8V"; > + regulator-min-microvolt = <2800000>; > + regulator-max-microvolt = <2800000>; > + }; > + > + vtouchled_reg: LDO18 { > + regulator-name = "TOUCH_LED_3.3V"; > + regulator-min-microvolt = <2500000>; > + regulator-max-microvolt = <3300000>; > + }; > + > + vddq_reg: LDO21 { > + regulator-name = "VDDQ_M1M2_1.2V"; > + regulator-min-microvolt = <1200000>; > + regulator-max-microvolt = <1200000>; > + regulator-always-on; > + }; > + > + varm_breg: BUCK1 { > + regulator-name = "VARM_1.2V_C210"; > + regulator-min-microvolt = <65000>; > + regulator-max-microvolt = <2225000>; > + regulator-always-on; > + }; > + > + vint_breg: BUCK2 { > + regulator-name = "VINT_1.1V_C210"; > + regulator-min-microvolt = <65000>; > + regulator-max-microvolt = <2225000>; > + regulator-always-on; > + }; > + > + vg3d_breg: BUCK3 { > + regulator-name = "G3D_1.1V"; > + regulator-min-microvolt = <900000>; > + regulator-max-microvolt = <1200000>; > + regulator-always-on; > + }; > + > + camisp_breg: BUCK4 { > + regulator-name = "CAM_ISP_CORE_1.2V"; > + regulator-min-microvolt = <1200000>; > + regulator-max-microvolt = <1200000>; > + }; > + > + vmem_breg: BUCK5 { > + regulator-name = "VMEM_1.2V"; > + regulator-min-microvolt = <1200000>; > + regulator-max-microvolt = <1200000>; > + regulator-always-on; > + }; > + > + vccsub_breg: BUCK7 { > + regulator-name = "VCC_SUB_2.0V"; > + regulator-min-microvolt = <2000000>; > + regulator-max-microvolt = <2000000>; > + regulator-always-on; > + }; > + > + safe1_sreg: ESAFEOUT1 { > + regulator-name = "SAFEOUT1"; > + }; > + > + safe2_sreg: ESAFEOUT2 { > + regulator-name = "SAFEOUT2"; > + regulator-boot-on; > + }; > + > + charger_reg: CHARGER { > + regulator-name = "CHARGER"; > + regulator-min-microamp = <60000>; > + regulator-max-microamp = <2580000>; > + regulator-always-on; > + }; > + > + chargercv_reg: CHARGER_CV { > + regulator-name = "CHARGER_CV"; > + regulator-min-microvolt = <3800000>; > + regulator-max-microvolt = <4100000>; > + regulator-always-on; > + }; > + }; > + }; > +}; > + > +&i2c_7 { > + status = "okay"; > + > + samsung,i2c-sda-delay = <100>; > + samsung,i2c-slave-addr = <0x10>; > + samsung,i2c-max-bus-freq = <400000>; > + > + pinctrl-0 = <&i2c7_bus>; > + pinctrl-names = "default"; > + > + ak8975@c { > + compatible = "asahi-kasei,ak8975"; > + reg = <0x0c>; > + > + gpios = <&gpx2 2 GPIO_ACTIVE_HIGH>; > + }; > +}; > + > +&pinctrl_0 { > + pinctrl-names = "default"; > + pinctrl-0 = <&sleep0>; > + > + sleep0: sleep-states { > + gpa0-0 { > + samsung,pins = "gpa0-0"; > + samsung,pin-con-pdn = ; > + samsung,pin-pud-pdn = ; > + }; > + > + gpa0-1 { > + samsung,pins = "gpa0-1"; > + samsung,pin-con-pdn = ; > + samsung,pin-pud-pdn = ; > + }; > + > + gpa0-2 { > + samsung,pins = "gpa0-2"; > + samsung,pin-con-pdn = ; > + samsung,pin-pud-pdn = ; > + }; > + > + gpa0-3 { > + samsung,pins = "gpa0-3"; > + samsung,pin-con-pdn = ; > + samsung,pin-pud-pdn = ; > + }; > + }; > +}; > + > +&pinctrl_1 { > + mhl_int: mhl-int { > + samsung,pins = "gpf3-5"; > + samsung,pin-pud = ; > + }; > + > + i2c_mhl_bus: i2c-mhl-bus { > + samsung,pins = "gpf0-4", "gpf0-6"; > + samsung,pin-function = ; > + samsung,pin-pud = ; > + samsung,pin-drv = ; > + }; > + > + usb_sel: usb-sel { > + samsung,pins = "gpl0-6"; > + samsung,pin-function = ; > + samsung,pin-pud = ; > + samsung,pin-drv = ; > + samsung,pin-val = <0>; > + }; > + > + bt_en: bt-en { > + samsung,pins = "gpl0-4"; > + samsung,pin-function = ; > + samsung,pin-pud = ; > + samsung,pin-drv = ; > + samsung,pin-val = <0>; > + }; > + > + bt_res: bt-res { > + samsung,pins = "gpl1-0"; > + samsung,pin-function = ; > + samsung,pin-pud = ; > + samsung,pin-drv = ; > + samsung,pin-val = <0>; > + }; > + > + otg_gp: otg-gp { > + samsung,pins = "gpx3-3"; > + samsung,pin-function = ; > + samsung,pin-pud = ; > + samsung,pin-drv = ; > + samsung,pin-val = <0>; > + }; > + > + mag_mhl_gpio: mag-mhl-gpio { > + samsung,pins = "gpd0-2"; > + samsung,pin-function = ; > + samsung,pin-pud = ; > + }; > + > + max8997_irq: max8997-irq { > + samsung,pins = "gpx0-7"; > + samsung,pin-pud = ; > + }; > + > + max17042_fuel_irq: max17042-fuel-irq { > + samsung,pins = "gpx2-3"; > + samsung,pin-pud = ; > + }; > + > + tsp224_irq: tsp224-irq { > + samsung,pins = "gpx0-4"; > + samsung,pin-pud = ; > + }; > +}; > + > +&sdhci_0 { > + status = "okay"; > + > + bus-width = <8>; > + non-removable; > + vmmc-supply = <&vemmc_reg>; > + > + pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_bus8>; > + pinctrl-names = "default"; > +}; > + > +&sdhci_2 { > + status = "okay"; > + > + bus-width = <4>; > + cd-gpios = <&gpx3 4 GPIO_ACTIVE_LOW>; > + vmmc-supply = <&vtf_reg>; > + > + pinctrl-0 = <&sd2_clk>, <&sd2_cmd>, <&sd2_bus4>; > + pinctrl-names = "default"; > +}; > + > +&sdhci_3 { > + status = "okay"; > + > + #address-cells = <1>; > + #size-cells = <0>; > + > + non-removable; > + bus-width = <4>; > + mmc-pwrseq = <&wlan_pwrseq>; > + vmmc-supply = <&vtf_reg>; > + > + pinctrl-names = "default"; > + pinctrl-0 = <&sd3_clk>, <&sd3_cmd>, <&sd3_bus4>; > + > + brcmf: wifi@1 { > + compatible = "brcm,bcm4330-fmac"; > + reg = <1>; > + > + interrupt-parent = <&gpx2>; > + interrupts = <5 IRQ_TYPE_LEVEL_HIGH>; > + interrupt-names = "host-wake"; > + }; > +}; > + > +&serial_0 { > + status = "okay"; > + > + pinctrl-names = "default"; > + pinctrl-0 = <&bt_en>, <&bt_res>, <&uart0_data>, <&uart0_fctl>; > + > + bluetooth { > + compatible = "brcm,bcm4330-bt"; > + > + shutdown-gpios = <&gpl0 4 GPIO_ACTIVE_HIGH>; > + reset-gpios = <&gpl1 0 GPIO_ACTIVE_HIGH>; > + device-wakeup-gpios = <&gpx3 1 GPIO_ACTIVE_HIGH>; > + host-wakeup-gpios = <&gpx2 6 GPIO_ACTIVE_HIGH>; > + }; > +}; > + > +&serial_1 { > + status = "okay"; > +}; > + > +&serial_2 { > + status = "okay"; > +}; > + > +&serial_3 { > + status = "okay"; > +}; > + > +&tmu { > + status = "okay"; > +}; Best regards -- Marek Szyprowski, PhD Samsung R&D Institute Poland