Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp724163img; Thu, 28 Feb 2019 06:56:34 -0800 (PST) X-Google-Smtp-Source: AHgI3IYa96kKcnNHXJ4WF7inxqDXLgHuUIhS86h54XanI5t0QdIy8OdHJqi8TFnq7fbM3nFvkoTh X-Received: by 2002:a63:e14e:: with SMTP id h14mr8613373pgk.184.1551365794393; Thu, 28 Feb 2019 06:56:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551365794; cv=none; d=google.com; s=arc-20160816; b=o6wf/aAV8yXgtrl6JuWE3P0rGjIkxHMUFE/MZwobRCCrGxg3rJTqwItqKYCmY/ApOR aFdDGaaHa/Yn/N3Ikom34iW/ypzFzGUQdr4HJc8CBTSDFriL/j/Z6vSTLY157yda597L u6g71m6f6iNzmzLURzBeoFe3C22ElQdMQZgMjrOOeYNfCNHY53D/lA4XeKfBoGCehXuQ 1rLtiCZXQxQBtDVrmSFFDjXVikRe2kt3ec77tCJU06TDiTvfEtXk4YqG4c3OivGB4Fpj sTnz9jFZUJIMmrYmmhXnsC38AuucpO+F/KQgg2LucNcJNHONnFnB/CxO0xNrh6ezK0aN H5AQ== 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=5rxc79rQOtF4yz7KD2XWhLt3m5CbnIPKVy+K6sIhRKY=; b=pC8/ic4qKOfplQ0oiNfEmLAczPQUyfgB+3vGOicoP6pNxL6ttpodupe9th/trxoLpN SCoBnVgx61KX3nb852ze7uiuz6zsDpQZrTP/wuv1+2XW+wR0VGV/hzFa2gQmKH/t7yV6 aOD1e7HM6dmTBd1sg6xdFlxnO2ShIEBmAiEPprVmv/ntg3jtLYtE5QZm4xI7Rw84twBV 8WPTHhvBlKIQjQtOOhIrotCgHwExIZleOf8/xR16PI5elGn/CKFhqU5z8IKkxRpSoySK nUF5bLbeS0Bj6j+P72J+Dcd2nUXyer1BM1n3tUREPLXqWCArN9EwhCPcFW2SeCkYtI/y q1Mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=nUjyWrZP; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b11si17677311pgk.77.2019.02.28.06.56.18; Thu, 28 Feb 2019 06:56:34 -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; dkim=pass header.i=@kernel.org header.s=default header.b=nUjyWrZP; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732282AbfB1OQs (ORCPT + 99 others); Thu, 28 Feb 2019 09:16:48 -0500 Received: from mail.kernel.org ([198.145.29.99]:42860 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728092AbfB1OQr (ORCPT ); Thu, 28 Feb 2019 09:16:47 -0500 Received: from dragon (li1566-229.members.linode.com [139.162.86.229]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id F10BF214D8; Thu, 28 Feb 2019 14:16:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1551363406; bh=9xSREEXqSZaSGtv+FaDJsnmwYFQhzVRuYTR57iNggpM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nUjyWrZP7KIimTkKuCtHkTEz7N4nI0he2TnJ/aiYRhm0xQm682ahlhEj9oeGNtE2p B0Syo8uVagSdP3LJc8NLuZWDEK3uYoOQ9TBjvB7DAvgSryAc7ILAXA0IyIZYn+Bdkc 6gx7k+H9hclYZYqdiVz3CPlI2l3H0gZ/kAGtNZ/w= Date: Thu, 28 Feb 2019 22:15:46 +0800 From: Shawn Guo To: Abel Vesa Cc: Rob Herring , Mark Rutland , Sascha Hauer , Lucas Stach , Angus Ainslie , "devicetree@vger.kernel.org" , Anson Huang , Linux Kernel Mailing List , dl-linux-imx , Fabio Estevam , "linux-arm-kernel@lists.infradead.org" Subject: Re: [PATCH v2 2/3] arm64: dts: imx8mq: Add the buck vdd_arm regulator Message-ID: <20190228141543.GA29231@dragon> References: <1550254032-16451-1-git-send-email-abel.vesa@nxp.com> <1550254032-16451-3-git-send-email-abel.vesa@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1550254032-16451-3-git-send-email-abel.vesa@nxp.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 15, 2019 at 06:07:23PM +0000, Abel Vesa wrote: > According to the schematics, this is a MP2147 switch converter > which is controlled by GPIO1_IO13. When set the gpio is set to > high the regulator output is set to 0.9V. When the gpio is set > to low the regulator output is set to 1V. > > Signed-off-by: Abel Vesa > --- > arch/arm64/boot/dts/freescale/imx8mq-evk.dts | 36 ++++++++++++++++++++++++++++ > 1 file changed, 36 insertions(+) > > diff --git a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts b/arch/arm64/boot/dts/freescale/imx8mq-evk.dts > index 54737bf..e5da3dd 100644 > --- a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts > +++ b/arch/arm64/boot/dts/freescale/imx8mq-evk.dts > @@ -31,6 +31,35 @@ > gpio = <&gpio2 19 GPIO_ACTIVE_HIGH>; > enable-active-high; > }; > + > + buck2_reg: buck2 { Please follow regulator-xxx naming convention. > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_buck2>; > + compatible = "regulator-gpio"; > + regulator-name = "vdd_arm"; > + regulator-min-microvolt = <900000>; > + regulator-max-microvolt = <1000000>; > + gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>; > + states = <1000000 0x0 > + 900000 0x1>; > + enable-active-high; The property only makes sense when enable-gpio is present? Shawn > + }; > +}; > + > +&A53_0 { > + cpu-supply = <&buck2_reg>; > +}; > + > +&A53_1 { > + cpu-supply = <&buck2_reg>; > +}; > + > +&A53_2 { > + cpu-supply = <&buck2_reg>; > +}; > + > +&A53_3 { > + cpu-supply = <&buck2_reg>; > }; > > &fec1 { > @@ -203,6 +232,13 @@ > }; > > &iomuxc { > + pinctrl_buck2: vddarmgrp { > + fsl,pins = < > + MX8MQ_IOMUXC_GPIO1_IO13_GPIO1_IO13 0x19 > + >; > + > + }; > + > pinctrl_fec1: fec1grp { > fsl,pins = < > MX8MQ_IOMUXC_ENET_MDC_ENET1_MDC 0x3 > -- > 2.7.4 > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel