Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1333565pxb; Wed, 10 Feb 2021 06:12:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJzOOjw+y8Cd80F/jELKeEuZVe0pKxCtS+EJ0AQZXGaCK2FLyReNXi0mvuvyXQJS977CbR2y X-Received: by 2002:a17:907:7670:: with SMTP id kk16mr3033406ejc.505.1612966353307; Wed, 10 Feb 2021 06:12:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612966353; cv=none; d=google.com; s=arc-20160816; b=eApgDXF/7A3ITaN7DlEwypxqL/lBcfoFENsX412OkemKNG4cIgYEYnj1jvDpKwl9QJ 245nDSufpEiXYiQur5ok9cmawn467uYQg1mi4r0jQ5RIdB6zYtjjzoBGVQhrk0a2CIu9 uiwKApk34zYq8Fh+xkQsEsVG4iJ5xj2W/VPWnNeQKV0p4uhRvGiKJfS75SYAdDB2VrY+ Pp99hQSWlY0Q7iVKgaPypCWfJ7CWi/8A7B0T4bx+HD50wAQo7g5EAKFV/wvNZwEoGmZQ e8Z+U0Sj3pXndoJyshMwggpQhj/VIGZBAgMvNHujuNYy6ufiwzrK/PQb8lSI18IJxsg2 +OLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=/tzCBWBQoMr9rX/Ddw9Lc9VvAUTNrksmReYp0v/Ppv8=; b=VY3YnGbUEq3wECa9uLw2W3hmRlJk4Yv+rbhBbUFXAvEAEtNGS4Eb95RzESVQU1wWlO 0erU/YQ57ettD4GvHDVV0UA8HqYEU1UzHyn1aCod1UDuTO8TeC2l3utT+DZe21pOvjNL /bNdHPGaKN/Vjby+EhBYhM6sHfgqXBpd6ijITECHaWlYrZ6YowKFWLNa8oK+23/WRaZh kOv7Jrc9cY1H+1n3LljQwXFGv8SyYO3nYTDGFoBU44OHJSztQhceolJ2DRhYUFDFz56b ezdPjInagx7enOYBFnCbJDY95mwFUILC565GXYDZBnRIC+HZtnQfRfvhaLWAr8oCuA1C wxgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=JmilXKSt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v12si1352133ejb.566.2021.02.10.06.12.08; Wed, 10 Feb 2021 06:12:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=JmilXKSt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231765AbhBJOLL (ORCPT + 99 others); Wed, 10 Feb 2021 09:11:11 -0500 Received: from mx0b-0016f401.pphosted.com ([67.231.156.173]:58124 "EHLO mx0b-0016f401.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231562AbhBJOLC (ORCPT ); Wed, 10 Feb 2021 09:11:02 -0500 Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 11AE0okm011463; Wed, 10 Feb 2021 06:10:12 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=pfpt0220; bh=/tzCBWBQoMr9rX/Ddw9Lc9VvAUTNrksmReYp0v/Ppv8=; b=JmilXKStfwP+Vn5MnQxTIIiudZ8vqC6x6ZTUu1kjIbtVpAXJq4FfH54KszUhhd4Z38GQ IH5OrdhU9m57Pt1nzy75aNcjmkB6TM2oYhShH2fTyhBN/p2jAzYlYxDQZ5phAqUd7GPy H02o7TbNoYIJR4578rnRY5noOxXgE85FKUmgn/uC5OrQvLFaB4U1VlaqDFo+jvfEN0fa i7VrbcRmgfFkMBaxls0llq2ea+gBTEOj5ubY53TEpXRKX22Uwy8iTnbrc+1NYe6o6BvO 4/LbyPRlHU92fylagzE086wF3PptwSY+5V9zRyL3ZZW8tAYdK3RHcRK+BUoMgLTy6OWl ag== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com with ESMTP id 36hugqbs08-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 10 Feb 2021 06:10:12 -0800 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 10 Feb 2021 06:10:09 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 10 Feb 2021 06:10:09 -0800 Received: from octopus.marvell.com (octopus.marvell.com [10.5.24.3]) by maili.marvell.com (Postfix) with ESMTP id ADCED3F7045; Wed, 10 Feb 2021 06:10:06 -0800 (PST) From: To: , , CC: , , , , , , , , , , "Konstantin Porotchkin" Subject: [PATCH v2 04/12] fix: dts: a8k: Add CP eMMC regulator and update device parameters Date: Wed, 10 Feb 2021 16:09:41 +0200 Message-ID: <20210210140949.32515-5-kostap@marvell.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210210140949.32515-1-kostap@marvell.com> References: <20210210140949.32515-1-kostap@marvell.com> MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.369,18.0.737 definitions=2021-02-10_05:2021-02-10,2021-02-10 signatures=0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Konstantin Porotchkin Add GPIO regulator for controlling CP0 eMMC voltage (3.3V/1.8V) Update CP0 SDHCI parameters in A7K/A8K boards DTS files. Signed-off-by: Konstantin Porotchkin --- arch/arm64/boot/dts/marvell/armada-7040-db.dts | 17 ++++++++++++++++- arch/arm64/boot/dts/marvell/armada-8040-db.dts | 18 +++++++++++++++++- 2 files changed, 33 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/marvell/armada-7040-db.dts b/arch/arm64/boot/dts/marvell/armada-7040-db.dts index a7eb4e7697a2..f8179cadc610 100644 --- a/arch/arm64/boot/dts/marvell/armada-7040-db.dts +++ b/arch/arm64/boot/dts/marvell/armada-7040-db.dts @@ -28,6 +28,19 @@ ethernet2 = &cp0_eth2; }; + cp0_vccq_sd0_reg: cp0_vccq_sd0 { + compatible = "regulator-gpio"; + regulator-name = "cp0-vccq-sd0"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + gpios = <&expander0 15 GPIO_ACTIVE_HIGH>; + gpios-states = <0>; + states = <1800000 0x1 + 3300000 0x0>; + enable-active-high; + }; + cp0_exp_usb3_0_current_regulator: gpio-regulator { compatible = "regulator-gpio"; regulator-name = "cp0-usb3-0-current-regulator"; @@ -253,8 +266,10 @@ &cp0_sdhci0 { status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&sdhci_pins>; bus-width = <4>; - no-1-8-v; + vqmmc-supply = <&cp0_vccq_sd0_reg>; cd-gpios = <&expander0 12 GPIO_ACTIVE_LOW>; }; diff --git a/arch/arm64/boot/dts/marvell/armada-8040-db.dts b/arch/arm64/boot/dts/marvell/armada-8040-db.dts index 09fb5256f1db..790c7ab0b816 100644 --- a/arch/arm64/boot/dts/marvell/armada-8040-db.dts +++ b/arch/arm64/boot/dts/marvell/armada-8040-db.dts @@ -31,6 +31,19 @@ i2c2 = &cp1_i2c0; }; + cp0_vccq_sd0_reg: cp0_vccq_sd0 { + compatible = "regulator-gpio"; + regulator-name = "cp0-vccq-sd0"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + gpios = <&expander0 15 GPIO_ACTIVE_HIGH>; + gpios-states = <0>; + states = <1800000 0x1 + 3300000 0x0>; + enable-active-high; + }; + cp0_reg_usb3_0_vbus: cp0-usb3-0-vbus { compatible = "regulator-fixed"; regulator-name = "cp0-usb3h0-vbus"; @@ -353,6 +366,9 @@ &cp0_sdhci0 { status = "okay"; - bus-width = <8>; + pinctrl-names = "default"; + pinctrl-0 = <&sdhci_pins>; + bus-width = <4>; + vqmmc-supply = <&cp0_vccq_sd0_reg>; non-removable; }; -- 2.17.1