From patchwork Thu Apr 13 13:32:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Smirnov X-Patchwork-Id: 9679435 Return-Path: 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 9F68260383 for ; Thu, 13 Apr 2017 13:41:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 922D327FE4 for ; Thu, 13 Apr 2017 13:41:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 84FE0283FD; Thu, 13 Apr 2017 13:41:59 +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=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 22B7227FE4 for ; Thu, 13 Apr 2017 13:41:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=Kxqc7OiU8gG2suMdmyClvyIUfBWf7z2xhjN06Dw+mJ0=; b=O+SY2OVFwAJTZKR0ry7DXpA2k3 UlaVku+DA0Iov9rDQoxpZiUBsi+qsp107CFMhAGjVS7dkWh0f/LTyE8BELr2wDru4SAzdKkGcYDYK TtJJzsIrBZjEDpVNVDR4OtN/syQ65U/jY8iT106whloI4UMuZHiKgWI3a8KWXywmqDrmxh6scxHxx 9v+Bri5pRrhzPXEbYkl4mWN8jEfmDjQBM/LNxN/mI03yjb1f4SrslldiJo2mYQ+QLVbGMNPhDvcV8 yCZyyPk8rQrg3v3OnwEYplGashYOSk7Ue74kZQalOauWVNyBMjUWCrI5il9qwpC4Nno1jgHYUvGQJ 537c/F3A==; 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 1cyf0Y-0008Ds-MJ; Thu, 13 Apr 2017 13:41:58 +0000 Received: from mail-pg0-x244.google.com ([2607:f8b0:400e:c05::244]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cyesI-0001LO-Q3 for linux-arm-kernel@lists.infradead.org; Thu, 13 Apr 2017 13:33:29 +0000 Received: by mail-pg0-x244.google.com with SMTP id 79so11565592pgf.0 for ; Thu, 13 Apr 2017 06:33:06 -0700 (PDT) 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=8t7qVGmqd0L86LoEXc7x9Hi0hdLLh1ByRQfl7mWVNj8=; b=hlMIwovYKl61dFuIyu0oWQNw5/Hvv0JxKCQVwqbjGFTueGYBJBbwQkqm0/JAEIzYJ6 UQeKlvq/LAXTfWEfiJBjhRcg0sIWVd//s/5E9UgF6w3ysQj32p/znox9KdzA/C0nc3aa 1NyCdS3mL8ZNKjHu7ZwnKqHGUwF0xSpEm97jzpuYsIxHmgg2q0MNQenpuTLFtWAkmCjA XYaVPUhDDjlKa7MJYBrrrfSC/E3+uInS4KnTNN8xTz9H1NSSN8AdPYIOzSdPXbsyXljN bbExBAYwfGfFJ3Q8QK/N93hYH0c05nqh97k3DQHhUi4ZJeCbanlHGJpLmwWZFbsUnlwp +MEg== 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=8t7qVGmqd0L86LoEXc7x9Hi0hdLLh1ByRQfl7mWVNj8=; b=Cd/BYP13vf0lkENnk5/wPrQvfl9EOnP2fmns/OGmufd2qxNiZyQ4xkKQtiTc50ssSm LDWkR+U81VxSylrG05Q7g98XPqqwzG/hl8GYsHqCekWQzva3UxoG7a7ckC6x3UOc7udB yLplgvJf23QZ+0hwOru7li56+2S38aW7KblPSDoP8hxfh9osbTh37OcC2pnm1C9E8ppw 5c5cVqcbQp0dKfU6B0aaEBI4183g9YMOoOnun8/qrn3sLnTu6qDSUidV5bQkYI4rngd1 quaygHFVCrh4Md2RxbPzhCCGWk4nmKZvACMDATaZ5fDnLEmtahloN8pCQ/uGcwAn6F5k 8+9g== X-Gm-Message-State: AN3rC/5hDdDDzIz7UhrPbF2kVAx3h50QpV8Fzk7hxvzAnK2W7lx0Kx3i +XA3Gjc1Teqj3A== X-Received: by 10.98.100.3 with SMTP id y3mr3477022pfb.194.1492090385992; Thu, 13 Apr 2017 06:33:05 -0700 (PDT) Received: from squirtle.lan (c-73-19-0-61.hsd1.wa.comcast.net. [73.19.0.61]) by smtp.gmail.com with ESMTPSA id y6sm42944437pgc.40.2017.04.13.06.33.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Apr 2017 06:33:05 -0700 (PDT) From: Andrey Smirnov To: Shawn Guo Subject: [PATCH 3/8] ARM: dts: imx7s: Adjust anatop-enable-bit for 'reg_1p0d' Date: Thu, 13 Apr 2017 06:32:37 -0700 Message-Id: <20170413133242.5068-4-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170413133242.5068-1-andrew.smirnov@gmail.com> References: <20170413133242.5068-1-andrew.smirnov@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170413_063326_896730_13C6CC9A X-CRM114-Status: GOOD ( 13.26 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Andrey Smirnov , Russell King , linux-kernel@vger.kernel.org, Rob Herring , Sascha Hauer , Fabio Estevam , linux-arm-kernel@lists.infradead.org, yurovsky@gmail.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP In PMU_REG_1P0Dn ENABLE_LINREG is bit 0. Bit 31 is called OVERRIDE and it serves the function of granting permission to GPC IP block to alter various bit-fields of the register. The reason why this property, that trickeld here from Freescale BSP, is set to 31 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: Sascha Hauer Cc: Fabio Estevam Cc: Rob Herring Cc: Mark Rutland Cc: Russell King Cc: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Signed-off-by: Andrey Smirnov --- arch/arm/boot/dts/imx7s.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx7s.dtsi b/arch/arm/boot/dts/imx7s.dtsi index 22c9788..8fee299 100644 --- a/arch/arm/boot/dts/imx7s.dtsi +++ b/arch/arm/boot/dts/imx7s.dtsi @@ -516,7 +516,7 @@ anatop-min-bit-val = <8>; anatop-min-voltage = <800000>; anatop-max-voltage = <1200000>; - anatop-enable-bit = <31>; + anatop-enable-bit = <0>; }; };