Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp669219ybh; Sun, 12 Jul 2020 20:02:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySus2A3wFx6Hxje+QnHqdJ3NTaIZ2weUQslyLJ5ymesnxYkZ5G7eomfGLMrKuI6LsyydSu X-Received: by 2002:a05:6402:b6c:: with SMTP id cb12mr89705975edb.116.1594609320522; Sun, 12 Jul 2020 20:02:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594609320; cv=none; d=google.com; s=arc-20160816; b=EYa+P6slaTaOx04Y8E1Vm8jkhRgAkApQbUC/wOQeNbyzWL/gBnmEN2iAqPW8Q5WbKo +Fdv7C7WD1YScYhuz3lUhAfL2CI+QoBt66LWVB692u999E5hGdWhEhp9mxvPXAScY5GB LKS/BoNg+xgUF9OUjLJeQEI6yxjeJ8SiV5GZd6xDRJgWUyrZRBJ6eh+huNZyoSsaOTqh qHWlXNMhhTixV3ubZ9XNxIe2/9BP71TyLcx5kO/WLgXqH/QQEfMEvLP4Ol8xSxoFbaBC 0UCfaYcFEx9WKE1CVh4HXzkDNoCpeHEekE765mAfYUqAoREhW0j3p58edLH87xJFUyCW gLWA== 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=GV4IomG6qj4F1GMNLsaNJW9pUDWfsK4KtOliKaa9r4M=; b=IJeCQhOtxhbyulgf6D8XxL0i0JaK7pYDOkKTkG9pR5EeoXMaDUAxZXcDYxlPIUtKsY WX2jPQY/wktbXdxk8WlURnie6HKbjN01Q/+taFPsmqawRNkJdVmxGmx+8/MmAx42vUBv a95NA0sForOqaB1qIG4DYeNy0XVf8zO78cOtktFVF5Jahk8fBKX2sSOCiSNfqTfc3aDP Ty5JODibmCO4YBuPAWHC5Sor4zXuFcGHAwbllcdgk4bMohGeONSojyNIDotSOwIqp0Yo fjlY5as21I7n6ZD+lM6AlUEIEigU+mzZ1vla3HBvyYmJhmdUm0pY5Sm8kBn/cM8RIldn hCdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AG4m+3cV; 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 ds16si9681158ejc.112.2020.07.12.20.01.36; Sun, 12 Jul 2020 20:02:00 -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=AG4m+3cV; 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 S1727906AbgGMDBE (ORCPT + 99 others); Sun, 12 Jul 2020 23:01:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725892AbgGMDBD (ORCPT ); Sun, 12 Jul 2020 23:01:03 -0400 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F7D1C061794 for ; Sun, 12 Jul 2020 20:01:03 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id u185so5392742pfu.1 for ; Sun, 12 Jul 2020 20:01:03 -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=GV4IomG6qj4F1GMNLsaNJW9pUDWfsK4KtOliKaa9r4M=; b=AG4m+3cVsDUZHrXHV7Dg997rQayoox9XRupkxW5sz3TXp1nMng3UKLPXZxaL9cvZUg WRGwnE0EQkpAm7E2PQHh7TGOMcrfswpGcx3ai4Vma1rkZ+CQsBLNa0GxwWCRJxqY7DL5 fwKVtyZaY0IJVisG8EOAq6xLLp931xNoBm+0+h1qZ/F01pydZ2hIAJM7QTK34uCBY0hM OLlSAbuiGqapTUjqJJOm1WE5MJr8o2V/xYiiVgIHCVKALHnGPz6xBXvHsxw62dqtVor/ OyxPXIXMc0p09EvsK5sA+zicimEm+TMI34/RgbC6r2AQ+OAb6JWSUaNkoFBVueHH6tlA MeAw== 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=GV4IomG6qj4F1GMNLsaNJW9pUDWfsK4KtOliKaa9r4M=; b=gVLych7q/YOa9TYJO9u5WW5E4cytkyttqe4EZ0EmnmyNKZrn+W5EPCSiNH+Ai9Xy3d WYjao75yRDR7JM4TnsyaUJf4CcD/6N+Mgz+doe+LoXrPGwJzKisrt37gSS0BtL35S8Cz TLrP17q+RFbyP0Q0zGn0Kn0JCW2KMAGNQ4ptMFUcviokzDO+Uvx0lw0kxt4b8Nj0WwRL H2zvg9G0NHbqz7v1xGYDrS9EZPrFfongrhribKNEPvo0VemEF1zAsPK2jEa/Za8SMjsY Rju+MZzi3LNI9knLO9y8KCivzNpk2w2WJfDlvk7gN4zyUOq730xbHDaBFJBgYtx4Z1g1 GiRQ== X-Gm-Message-State: AOAM530/KXBXJ7tQeYLhwPXdCDy/EgeMlYFAGtq6thevSMGYKTfPgKO7 4bJeE/zD+yA21O5lsrLW8kgG X-Received: by 2002:a63:7246:: with SMTP id c6mr67503848pgn.422.1594609262825; Sun, 12 Jul 2020 20:01:02 -0700 (PDT) Received: from Mani-XPS-13-9360 ([2409:4072:985:5688:92a:5a4d:636b:c45f]) by smtp.gmail.com with ESMTPSA id b128sm11834488pfg.114.2020.07.12.20.00.58 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 12 Jul 2020 20:01:01 -0700 (PDT) Date: Mon, 13 Jul 2020 08:30:56 +0530 From: Manivannan Sadhasivam To: Amit Tomer Cc: Andre Przywara , Andreas =?iso-8859-1?Q?F=E4rber?= , Rob Herring , cristian.ciocaltea@gmail.com, linux-kernel@vger.kernel.org, linux-arm-kernel , 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: <20200713030055.GA2978@Mani-XPS-13-9360> References: <1593701576-28580-1-git-send-email-amittomer25@gmail.com> <1593701576-28580-11-git-send-email-amittomer25@gmail.com> <20200712173044.GL6110@Mani-XPS-13-9360> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Mon, Jul 13, 2020 at 12:15:28AM +0530, Amit Tomer wrote: > Hi, > > On Sun, Jul 12, 2020 at 11:00 PM Manivannan Sadhasivam > wrote: > > > > 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? > > This is something I copied from bubblegum dts as I wasn't sure what is right way > to include these regulators. > > Also, another day tested it without having these regulators in , and > still it seems to > work. So should these be removed ? > Fixed regulators are used to nicely model the regulators which aren't tied to any PMIC. But for some cases we use them to represent supplies when there is no support for the specific PMIC present in the kernel and they are turned on/configured by the bootloader (this is what happening here). And there is no use of declaring fixed regulators when there is no consumer. Even if you don't define these, the corresponding supplies in the board will always be in the same state configured by the bootloader. So I'd suggest you to remove this for now. Since I don't have the schematics to check, please make sure you name the regulators as mentioned in the schematics (this could vary from board to board, so don't just copy from others). Thanks, Mani > Thanks > -Amit