Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp9440736imu; Wed, 5 Dec 2018 05:00:36 -0800 (PST) X-Google-Smtp-Source: AFSGD/Xj1wcZjN5ze+oR369uM5PUyfgxQNzR2xEt/e5gqgWGusL8kPnBONhuI9QZj+JyNAah8zma X-Received: by 2002:a62:5486:: with SMTP id i128mr23780036pfb.215.1544014835996; Wed, 05 Dec 2018 05:00:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544014835; cv=none; d=google.com; s=arc-20160816; b=AKk/jaDTuktdiVOh/5ErvG+uEKSUfJOMLC0EpxuOCRYF6fkrGygaKs97BycrW+SIG6 ukMTCg9/qwVWusC3WDTNGUfE56VNKaRuOl/CFbzaz21ubMTYSEcz5aze1Rq4Ptopp7rp hj266JZXW4gW/Pf8MUJ4CxcOZX41ieyVU+bS2JBwCregkTAtk65Il1H4ZeuuP8asflDz EAdCEMq4HAYQV5XKXpiLvexyUcdA/kJ2rEj7bvwBSvltX/M4SajXyQ3PqgiSHymXKawr dyuWVliq78cdhj++2LsuHK/h1FAj90JeUvKpOoqiNGNApCJcugKKKV3yaA7ebpDRNylm TmEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=nJALxU0aB1JXSh65wpqpMrBs4aHt58nPuAXI4RVLSow=; b=LeUPqV4SLtrilL7R6RDP5E9+cfy3Q5pZnRIl7Vcz0OGiGxfPARvYkC5gO/WR/kMUXa P60rWc8sLfxdUWSfWKDkGVYpLTovEnA/d50wwVyrUlgVVZVP1rxrM7peR6kT7s7W2Iw2 j9TiGnKF8hPCrvTzR3Fu+tScw2eiOcm2pyJvAB01kgh7ekvK6tIg4eIOK7kFS+LlEZGR JdXdBIddTiOxyUJSX9gEQ5bgECqwxb098gQljl7XF7RkB8TjG7CItZptllm4p4PQ/4WL MfQqC8+i1Ab9S+tmjOdRSOwRWJ9dUqTamvxeLcm6MOjxI6ODKNXwqfNXm51C5+7mXqrl E6XA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h36si17670064pgm.200.2018.12.05.05.00.16; Wed, 05 Dec 2018 05:00:35 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727809AbeLEM7n (ORCPT + 99 others); Wed, 5 Dec 2018 07:59:43 -0500 Received: from relay1.mentorg.com ([192.94.38.131]:49777 "EHLO relay1.mentorg.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726944AbeLEM7n (ORCPT ); Wed, 5 Dec 2018 07:59:43 -0500 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-MBX-04.mgc.mentorg.com) by relay1.mentorg.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-SHA384:256) id 1gUWm9-0001lF-Cw from Akash_Gajjar@mentor.com ; Wed, 05 Dec 2018 04:59:37 -0800 Received: from [10.105.2.145] (137.202.0.90) by SVR-IES-MBX-04.mgc.mentorg.com (139.181.222.4) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Wed, 5 Dec 2018 12:59:32 +0000 Subject: Re: [PATCH 1/2] arm64: dts: rockchip: rockpro64 fix regulator gpios To: Oskari Lemmela , Rob Herring , Mark Rutland , Heiko Stuebner CC: , , , References: <20181201100817.20688-1-oskari@lemmela.net> <20181201100817.20688-2-oskari@lemmela.net> From: agajjar Message-ID: Date: Wed, 5 Dec 2018 18:29:30 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.2 MIME-Version: 1.0 In-Reply-To: <20181201100817.20688-2-oskari@lemmela.net> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: SVR-IES-MBX-04.mgc.mentorg.com (139.181.222.4) To SVR-IES-MBX-04.mgc.mentorg.com (139.181.222.4) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/1/2018 3:38 PM, Oskari Lemmela wrote: > Rockpro64 is not able boot if GPIO1_C1 pin is pulled high > before loading linux kernel. > > In rockpro64 GPIO1_C1 pin is connected vdd_cpu_b regulator > VSEL pin. Pin should be pulled down in normal operation and > pulled high in suspend. > > PMIC LDO_REG2 is connected to touch panel connector. > Rename regulator and set it to correct voltage. > > PCIe power is controller by GPIO1_D0. > > Schematics can be downloaded from: > http://files.pine64.org/doc/rockpro64/rockpro64_v21-SCH.pdf > > Signed-off-by: Oskari Lemmela Acked-by: Akash Gajjar > --- > .../boot/dts/rockchip/rk3399-rockpro64.dts | 20 +++++++++++-------- > 1 file changed, 12 insertions(+), 8 deletions(-) > > diff --git a/arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dts b/arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dts > index 1d35f5406b5e..5bd4d69914bd 100644 > --- a/arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dts > +++ b/arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dts > @@ -97,7 +97,7 @@ > vcc3v3_pcie: vcc3v3-pcie-regulator { > compatible = "regulator-fixed"; > enable-active-high; > - gpio = <&gpio1 RK_PC1 GPIO_ACTIVE_HIGH>; > + gpio = <&gpio1 RK_PD0 GPIO_ACTIVE_HIGH>; > pinctrl-names = "default"; > pinctrl-0 = <&pcie_pwr_en>; > regulator-name = "vcc3v3_pcie"; > @@ -293,12 +293,12 @@ > }; > }; > > - vcc2v8_dvp: LDO_REG2 { > - regulator-name = "vcc2v8_dvp"; > + vcc3v0_touch: LDO_REG2 { > + regulator-name = "vcc3v0_touch"; > regulator-always-on; > regulator-boot-on; > - regulator-min-microvolt = <2800000>; > - regulator-max-microvolt = <2800000>; > + regulator-min-microvolt = <3000000>; > + regulator-max-microvolt = <3000000>; > regulator-state-mem { > regulator-off-in-suspend; > }; > @@ -397,7 +397,9 @@ > vdd_cpu_b: regulator@40 { > compatible = "silergy,syr827"; > reg = <0x40>; > - fcs,suspend-voltage-selector = <0>; > + fcs,suspend-voltage-selector = <1>; > + pinctrl-names = "default"; > + pinctrl-0 = <&vsel1_gpio>; > regulator-name = "vdd_cpu_b"; > regulator-min-microvolt = <712500>; > regulator-max-microvolt = <1500000>; > @@ -415,6 +417,8 @@ > compatible = "silergy,syr828"; > reg = <0x41>; > fcs,suspend-voltage-selector = <1>; > + pinctrl-names = "default"; > + pinctrl-0 = <&vsel2_gpio>; > regulator-name = "vdd_gpu"; > regulator-min-microvolt = <712500>; > regulator-max-microvolt = <1500000>; > @@ -519,7 +523,7 @@ > > pcie { > pcie_pwr_en: pcie-pwr-en { > - rockchip,pins = <1 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>; > + rockchip,pins = <1 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>; > }; > }; > > @@ -529,7 +533,7 @@ > }; > > vsel1_gpio: vsel1-gpio { > - rockchip,pins = <1 RK_PC2 RK_FUNC_GPIO &pcfg_pull_down>; > + rockchip,pins = <1 RK_PC1 RK_FUNC_GPIO &pcfg_pull_down>; > }; > > vsel2_gpio: vsel2-gpio {