Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp420350ybh; Sun, 12 Jul 2020 10:32:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz6a2hCrBtTkQqj1+4v4rbLCObGQ/2+lWNii8wN6f0ITbfxB8FyLmRKvBxAYvP6DLGC7RhT X-Received: by 2002:a05:6402:1757:: with SMTP id v23mr73699339edx.356.1594575161374; Sun, 12 Jul 2020 10:32:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594575161; cv=none; d=google.com; s=arc-20160816; b=0fWzSa96v2xSzHUbDEIvS36dh90AiOkDMavV9A5A3FjD/YKP4VJaeEGcqauscCIun3 RPQStuKe2aqdQhe8IqiZjNy3eEJZpgzKqDIo6a0Z9v0VVM+V4kT3kOzdVJ/xsXIL/KG0 RN0k8NWuo6RuIYF4LHV9qSoTuOVeqmVfYsy1D9vx31yxpJzVsuw4jDFnWbyHRInsoKN0 q2nXdDVWhaQtpyxD4hbGHi33aaaOjYV2l2Z3lyKlFCjWT7F9A6dRi5u2mYxezRc+BL5A Y+XHciz/hUC3xMfGQYFn7OqsjReKwatpo5QG0vauW6AqZkT+pf1cT7qzYZP3S60IttAV shYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=b52O4yZ4WWPWMkyXBM0Cslv57iFmmN2CyMy2jQ7ZsD4=; b=TpG3WFbzmFEIZn2fz+5n9O1OZ4IxGtCQPE+GOue/DPypn1Cf5ogq88v2G1R9Y/mSn/ 5l/j8bladglHu8H2fb7Lvs2JKemrOkxGCAe5WUIJhogeBrF0Wp4+RJ5bahtyW2Qyaydz u4QIKd+hYnHAxr1pENBgIr5vBcCJbauPmVZWjuKc3rw/9qw5Y5D1IlEORzQ9Ll/tRykE lNIlMl3PAHjdKQl5SCwMTKBvd0L6I8F6hwI+gERJGe/HBdSpPYiNNEaqf8LSnDE1Sy5S RZpS0j4oZuyakw/U1Q9EfptPJ+2R1LEDxBHoCgHQgDgjzK9C9PfLndtjWdLWWgHp6StU nxfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LddmON61; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id be11si7494286edb.482.2020.07.12.10.32.17; Sun, 12 Jul 2020 10:32:41 -0700 (PDT) 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=@linaro.org header.s=google header.b=LddmON61; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729301AbgGLRaw (ORCPT + 99 others); Sun, 12 Jul 2020 13:30:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729213AbgGLRav (ORCPT ); Sun, 12 Jul 2020 13:30:51 -0400 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF0CFC08C5DB for ; Sun, 12 Jul 2020 10:30:51 -0700 (PDT) Received: by mail-pg1-x544.google.com with SMTP id l63so4948155pge.12 for ; Sun, 12 Jul 2020 10:30:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=b52O4yZ4WWPWMkyXBM0Cslv57iFmmN2CyMy2jQ7ZsD4=; b=LddmON61RT0OdXk1RGnQPzfQO3pv4v5Wwkx2pNa9zsjn5G4NMYYzYZGctAnheyT3Es nJ9eJ7KNvbkIojJI0FgFthDaRzLms+UOCTLjDgpwblskqxvcdNjzqdFZZR9LKAV215eK N7eCxBpG0bBZijbqqy5REpfXLtF/db+kIFlLAye2BEvnAeRa1ENaAJNzui+aJJwcWlVt 8ZHbphqmfa2Tzcnt8phzt3rL0Cv8FzF1xnvntAB/NfRaRi15g15vYDQqV0VtjlR/mLhI q04wSQz22HsLDjiKHvGZASF/D3A2Ez53JSp4BED0DeK8RPRpz6xrhKkBMNqduSxGPD2L Vt1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=b52O4yZ4WWPWMkyXBM0Cslv57iFmmN2CyMy2jQ7ZsD4=; b=Ac9uShAfiI+fa1rzpIjBb+zAN6unp6l/XKszd7VB8Tjc89QT2AB6lmkVJ6goB0noHw wlZ1SFjw/+xrXBwHqYGXGufu83X5WK7EAzFWaGFKXnq2Cwga9CFuHUamI2+aJ9m2xMbQ 1GJrNLP38740KuPcoiI+F5juA5IkEnc7K4Jy6wI2eursE/92Cg6OKTh/Bo8J5GPlyeGg VW3dDS4p3OtQMSAg/faL3sxHSOadVJg3dZ50unNSdDEfiOH5+XUmyxePXj4mnMXt1Igf FGQ/4SlZtoNG8bbmlSb71xxc19BlFn0vKd3JIPMWe0Ge12o2DHTDXUprg4oli1OiTL+H /B4Q== X-Gm-Message-State: AOAM530IybDE34SmVF0e70j89Zh1KtUQJJTDX0MZUzovW6YNlljaPW4L vKhNJSEHuWG7Ws6nAMzhO2Zv X-Received: by 2002:a63:1548:: with SMTP id 8mr40566225pgv.172.1594575051183; Sun, 12 Jul 2020 10:30:51 -0700 (PDT) Received: from Mani-XPS-13-9360 ([2409:4072:6c81:c187:70f5:3123:b5de:e77f]) by smtp.gmail.com with ESMTPSA id n9sm11734571pjo.53.2020.07.12.10.30.46 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 12 Jul 2020 10:30:50 -0700 (PDT) Date: Sun, 12 Jul 2020 23:00:44 +0530 From: Manivannan Sadhasivam To: Amit Singh Tomar Cc: andre.przywara@arm.com, afaerber@suse.de, robh+dt@kernel.org, cristian.ciocaltea@gmail.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-actions@lists.infradead.org, devicetree@vger.kernel.org Subject: Re: [PATCH v5 10/10] arm64: dts: actions: Add uSD support for Cubieboard7 Message-ID: <20200712173044.GL6110@Mani-XPS-13-9360> References: <1593701576-28580-1-git-send-email-amittomer25@gmail.com> <1593701576-28580-11-git-send-email-amittomer25@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1593701576-28580-11-git-send-email-amittomer25@gmail.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 02, 2020 at 08:22:56PM +0530, Amit Singh Tomar wrote: > This commit adds uSD support for Cubieboard7 board based on Actions Semi > S700 SoC. SD0 is connected to uSD slot. Since there is no PMIC support > added yet, fixed regulator has been used as a regulator node. > > Signed-off-by: Amit Singh Tomar > --- > Changes since v4: > * No change. > Changes since v3: > * No change. > Changes since v2: > * No change. > Changes since v1: > * No change. > Changes since RFC: > * No change. > --- > arch/arm64/boot/dts/actions/s700-cubieboard7.dts | 41 ++++++++++++++++++++++++ > arch/arm64/boot/dts/actions/s700.dtsi | 1 + > 2 files changed, 42 insertions(+) > > diff --git a/arch/arm64/boot/dts/actions/s700-cubieboard7.dts b/arch/arm64/boot/dts/actions/s700-cubieboard7.dts > index 63e375cd9eb4..ec117eb12f3a 100644 > --- a/arch/arm64/boot/dts/actions/s700-cubieboard7.dts > +++ b/arch/arm64/boot/dts/actions/s700-cubieboard7.dts > @@ -13,6 +13,7 @@ > > aliases { > serial3 = &uart3; > + mmc0 = &mmc0; > }; > > chosen { > @@ -28,6 +29,23 @@ > device_type = "memory"; > reg = <0x1 0xe0000000 0x0 0x0>; > }; > + > + /* Fixed regulator used in the absence of PMIC */ > + vcc_3v1: vcc-3v1 { > + compatible = "regulator-fixed"; > + regulator-name = "fixed-3.1V"; > + regulator-min-microvolt = <3100000>; > + regulator-max-microvolt = <3100000>; > + }; Is this regulator used somewhere? Thanks, Mani > + > + /* Fixed regulator used in the absence of PMIC */ > + sd_vcc: sd-vcc { > + compatible = "regulator-fixed"; > + regulator-name = "fixed-3.1V"; > + regulator-min-microvolt = <3100000>; > + regulator-max-microvolt = <3100000>; > + regulator-always-on; > + }; > }; > > &i2c0 { > @@ -81,6 +99,14 @@ > bias-pull-up; > }; > }; > + > + mmc0_default: mmc0_default { > + pinmux { > + groups = "sd0_d0_mfp", "sd0_d1_mfp", "sd0_d2_d3_mfp", > + "sd0_cmd_mfp", "sd0_clk_mfp"; > + function = "sd0"; > + }; > + }; > }; > > &timer { > @@ -90,3 +116,18 @@ > &uart3 { > status = "okay"; > }; > + > +/* uSD */ > +&mmc0 { > + status = "okay"; > + pinctrl-names = "default"; > + pinctrl-0 = <&mmc0_default>; > + cd-gpios = <&pinctrl 120 GPIO_ACTIVE_LOW>; > + no-sdio; > + no-mmc; > + no-1-8-v; > + bus-width = <4>; > + vmmc-supply = <&sd_vcc>; > + vqmmc-supply = <&sd_vcc>; > +}; > + > diff --git a/arch/arm64/boot/dts/actions/s700.dtsi b/arch/arm64/boot/dts/actions/s700.dtsi > index 9ed88aafc2da..ba498cf9217d 100644 > --- a/arch/arm64/boot/dts/actions/s700.dtsi > +++ b/arch/arm64/boot/dts/actions/s700.dtsi > @@ -4,6 +4,7 @@ > */ > > #include > +#include > #include > #include > #include > -- > 2.7.4 >