Message ID | 20170110163015.22444-3-andrew.smirnov@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B146E606E1 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 10 Jan 2017 16:31:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A45BD285A8 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 10 Jan 2017 16:31:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 99459285AE; Tue, 10 Jan 2017 16:31:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 25EFB285A8 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 10 Jan 2017 16:31:26 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cQzKV-0002N6-30; Tue, 10 Jan 2017 16:31:23 +0000 Received: from mail-pf0-x241.google.com ([2607:f8b0:400e:c00::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cQzKB-0001ZN-HD for linux-arm-kernel@lists.infradead.org; Tue, 10 Jan 2017 16:31:05 +0000 Received: by mail-pf0-x241.google.com with SMTP id f144so10726070pfa.2 for <linux-arm-kernel@lists.infradead.org>; Tue, 10 Jan 2017 08:30:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=9TwBeqLFlV27z0gjIfsbn+yQyP19jucAqLieMV0knVg=; b=QxDwJOUfyPF8/lLoUH6/ERdOscfv21kIzwcR8vXoF8Tos8PdFrkG+MtBBUr1Wt91N5 08i9vjP2Q18FbOCl6NGZv3fiuB6YDGM8kdFpQWR3q7QZYVFlbs1rlPXJ2LBbFoJAdJ3H ZHTotALl9c0Yk9dIT5XSSnB/TXx3ud9QMIo/ZNZo9taNVvqCNeAHXASivqo98rHPm4Mg QsjYDccbfAsbBIHHMJSRfA04bQOKvARBRG2Z6B8o79urA/ZdqzKbC8C4qEqE5aNTMVlc d5H6/dd/Z7E0ODXslZXe872Or990aQMjxXczx7bDoVsnN3SJIE4u/CJjOdl6fya1Z9A4 DpXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=9TwBeqLFlV27z0gjIfsbn+yQyP19jucAqLieMV0knVg=; b=JCoIM5cqb05rrKVAIad24LVvi2OrFFvCycxvRC58/K54qjMrxQij43dKjQdXiXF+mg 1T+39RpfbVnnewOPlQGy2hPsP3WmW2A43hU5rAEZ2jKmK/iln3v40AOuh1VPPBeJRBhz 3boMb2G5R/ATWZWYGBlDdMoK55TbKx4dkAbYz/WAvVoxUwaK6+D/jQgxtYmZn2jXi2ZT 7hzVWgxyfcdCJQsnmMc//ba+/rM9phwTu2/eVKNtkj2e9tz3LgeuOrFaiiUbi3lpU2+C 0CN4o6oJephhPSC3yrATq5hvolpk6QlsdHTeYfHClbJY73zZnAzt3RY7z7dm6L4yRyfc SVYQ== X-Gm-Message-State: AIkVDXL1H8y8dcpp+qTA9iCWGp+qwpFBYfCLhudSOopscaT4WWeANY0gI2f1fAKg9iRvIQ== X-Received: by 10.84.224.133 with SMTP id s5mr6310829plj.130.1484065844564; Tue, 10 Jan 2017 08:30:44 -0800 (PST) Received: from localhost.localdomain (c-73-19-0-61.hsd1.wa.comcast.net. [73.19.0.61]) by smtp.gmail.com with ESMTPSA id g70sm2927290pfb.50.2017.01.10.08.30.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Jan 2017 08:30:44 -0800 (PST) From: Andrey Smirnov <andrew.smirnov@gmail.com> To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 2/2] ARM: dts: imx7s: Adjust anatop-enable-bit for 'reg_1p0d' Date: Tue, 10 Jan 2017 08:30:15 -0800 Message-Id: <20170110163015.22444-3-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170110163015.22444-1-andrew.smirnov@gmail.com> References: <20170110163015.22444-1-andrew.smirnov@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170110_083103_657205_7844FD03 X-CRM114-Status: GOOD ( 13.86 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Mark Rutland <mark.rutland@arm.com>, devicetree@vger.kernel.org, Andrey Smirnov <andrew.smirnov@gmail.com>, Russell King <linux@armlinux.org.uk>, linux-kernel@vger.kernel.org, Rob Herring <robh+dt@kernel.org>, Sascha Hauer <kernel@pengutronix.de>, Fabio Estevam <fabio.estevam@nxp.com>, Shawn Guo <shawnguo@kernel.org>, yurovsky@gmail.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/arch/arm/boot/dts/imx7s.dtsi b/arch/arm/boot/dts/imx7s.dtsi index 8ff2cbdd..c80d0db 100644 --- a/arch/arm/boot/dts/imx7s.dtsi +++ b/arch/arm/boot/dts/imx7s.dtsi @@ -509,7 +509,7 @@ anatop-min-bit-val = <8>; anatop-min-voltage = <800000>; anatop-max-voltage = <1200000>; - anatop-enable-bit = <31>; + anatop-enable-bit = <0>; }; };
In PMU_REG_1P0Dn ENABLE_LINREG is bit 0. Bit 31 is called OVERRIDE and it serves the funtion of granting permission to GPC IP block to alter various other bit-fields of the register. The reason why this property, that trickeld here from Freescale BSP, is set up like that is because in the code it came from it is used in conjunction with a notifier handler for REGULATOR_EVENT_PRE_DO_ENABLE and REGULATOR_EVENT_PRE_DO_DISABLE events (not found in upstream kernel) that triggers GPC to start manipulating aforementioned other bitfields. Since: a) none of the aforementioned machinery is implemented by upstream b) using 'anatop-enable-bit' in that capacity is a bit of a semantic stretch simplify the situation by setting the value of 'anatop-enable-bit' to point to ENABLE_LINREG (same as i.MX6). Cc: yurovsky@gmail.com Cc: Shawn Guo <shawnguo@kernel.org> Cc: Sascha Hauer <kernel@pengutronix.de> Cc: Fabio Estevam <fabio.estevam@nxp.com> Cc: Rob Herring <robh+dt@kernel.org> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Russell King <linux@armlinux.org.uk> Cc: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> --- arch/arm/boot/dts/imx7s.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)