From patchwork Tue Aug 21 15:04:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian.Amann@de.bosch.com X-Patchwork-Id: 960515 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=de.bosch.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=de.bosch.com header.i=@de.bosch.com header.b="av2m6Uxc"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 41vvNW57zvz9s4V for ; Wed, 22 Aug 2018 01:14:35 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 61CEDC21E1E; Tue, 21 Aug 2018 15:14:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=SPF_HELO_PASS, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 3E4E8C21C51; Tue, 21 Aug 2018 15:14:29 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 43C72C21C51; Tue, 21 Aug 2018 15:04:22 +0000 (UTC) Received: from de-out1.bosch-org.com (de-out1.bosch-org.com [139.15.230.186]) by lists.denx.de (Postfix) with ESMTPS id DEFC9C21C3F for ; Tue, 21 Aug 2018 15:04:21 +0000 (UTC) Received: from si0vm1947.rbesz01.com (unknown [139.15.230.188]) by fe0vms0186.rbdmz01.com (Postfix) with ESMTPS id 41vv8g6k2Fz1XLFjY; Tue, 21 Aug 2018 17:04:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=de.bosch.com; s=2015-01-21; t=1534863859; bh=4nLBu2sJx3VQlLb2XyXzYqRoM8bvSfdQb0qoXWQ8S2k=; l=10; h=From:From:Reply-To:Sender; b=av2m6Uxc0LVXqoiKX/DlBxfP5czdi3d3x4Pqid39/HhPK74IdnwEvy+xP7cCwSIge Jz+3/8+yUOni3wVnXhK3ZVmRQOULENlRWe5b3Fv1WqFNcfHx1nKtNZ7cdi8uayEDlO 3CpPvid8mVM82qt2X4EimnKxSCLxZAb3UvpiJadc= Received: from fe0vm1741.rbesz01.com (unknown [10.58.172.176]) by si0vm1947.rbesz01.com (Postfix) with ESMTPS id 41vv8g6RLCz6CjR3v; Tue, 21 Aug 2018 17:04:19 +0200 (CEST) X-AuditID: 0a3aad15-0bbff70000000cb3-e9-5b7c29f2738c Received: from si0vm1950.rbesz01.com ( [10.58.173.29]) (using TLS with cipher AES128-SHA (128/128 bits)) (Client did not present a certificate) by fe0vm1741.rbesz01.com (SMG Outbound) with SMTP id 47.A8.03251.2F92C7B5; Tue, 21 Aug 2018 17:04:19 +0200 (CEST) Received: from SI-HUB1000.de.bosch.com (si-hub1000.de.bosch.com [10.4.103.106]) by si0vm1950.rbesz01.com (Postfix) with ESMTPS id 41vv8g554WzXkdy; Tue, 21 Aug 2018 17:04:19 +0200 (CEST) Received: from LE-Z7682.le.de.bosch.com (10.28.170.4) by SI-HUB1000.de.bosch.com (10.4.103.106) with Microsoft SMTP Server id 14.3.408.0; Tue, 21 Aug 2018 17:04:19 +0200 From: To: Date: Tue, 21 Aug 2018 17:04:09 +0200 Message-ID: <1534863849-10930-1-git-send-email-Christian.Amann@de.bosch.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [10.28.170.4] X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrMLsWRmVeSWpSXmKPExsXCZb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3ZS6lm/5B46f2j5PfqfVtonR+ucnGSvnWb9Y53Nb p3hnTG3xxBdHZZdk/LTNzJvLPSFon/aGZY7zdNbpXZvuPnFzsVm/scomJZbijERDLeai4kQA CERgL0YEAAA= X-Mailman-Approved-At: Tue, 21 Aug 2018 15:14:27 +0000 Cc: trini@konsulko.com, d-gerlach@ti.com, tony@atomide.com, Christian Amann , BollavarapuMoses.Christopher@in.bosch.com Subject: [U-Boot] [PATCH] ARM: dts: am33xx: fix SLEWCTRL_FAST pinctrl binding X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: Christian Amann Copy missing Kernel patch to make SLEWCTRL_SLOW available in device tree and to correct the value of SLEWCTRL_FAST. After this patch, the Kernel and U-boot device tree settings for SLEWCTRL have the same effect. Original Kernel patch message: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=424e0f039bfa8a51fb5c5178b6ece8baa4996469 " According to AM335x TRM, Document spruh73l, Revised February 2015, Section 9.2.2 Pad Control Registers, setting bit 6 of the pad control registers actually sets the SLEWCTRL value to slow rather than fast as the current macro indicates. Introduce a new macro, SLEWCTRL_SLOW, that sets the bit, and modify SLEWCTRL_FAST to 0 but keep it for completeness. Current users of the macro (i2c and mdio) are left unmodified as SLEWCTRL_FAST was the macro used and actual desired state. Tested on am335x-gp-evm with no difference in software performance seen. Signed-off-by: Dave Gerlach Signed-off-by: Tony Lindgren " Signed-off-by: Christian Amann --- include/dt-bindings/pinctrl/am33xx.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/dt-bindings/pinctrl/am33xx.h b/include/dt-bindings/pinctrl/am33xx.h index 2fbc804..226f772 100644 --- a/include/dt-bindings/pinctrl/am33xx.h +++ b/include/dt-bindings/pinctrl/am33xx.h @@ -13,7 +13,8 @@ #define PULL_DISABLE (1 << 3) #define INPUT_EN (1 << 5) -#define SLEWCTRL_FAST (1 << 6) +#define SLEWCTRL_SLOW (1 << 6) +#define SLEWCTRL_FAST 0 /* update macro depending on INPUT_EN and PULL_ENA */ #undef PIN_OUTPUT