From patchwork Wed May 30 12:03:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= X-Patchwork-Id: 922750 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="a2O9xgKO"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="PDzeb+su"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40wq5B1wWGz9s08 for ; Wed, 30 May 2018 22:04:14 +1000 (AEST) 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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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:In-Reply-To:References: List-Owner; bh=9Jf7o55x+pTl3F5mDaEANWwr54Re819wG9nvQ2zVE3w=; b=a2O9xgKObrJcMD ESPSlrPv9Gnfi9NCfk0KyMxEy+EM8x8yOi0++C6B3oV3bEd9q6diaZkHkV4Ubyv/rY9MX8yFqk2zn PBH5wLPBJVdp0oS0C+l019TV7e+ZysIEeOr0/V8dDXGaiDnu6I4ZSdxGqsrQf70Sp7rEZ4IGuNQMl bqV0EvJes8aOcCMuFzw6bODTBySOC/ysjA/I/VIsr/pxVZqTrOlHKueJE2DDPgu3H2G42kG3isBJf mG5HXAHGFWaHygta3804lNUYW0fyN9BI9Y4vg9sATTZGFwf321AkBX22nGzAFwRmaQhUdXJBfjQQn 3+va2/TULjA4e6yhzB9w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fNzpp-00028K-Gx; Wed, 30 May 2018 12:04:09 +0000 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fNzpj-00025g-PK for linux-arm-kernel@lists.infradead.org; Wed, 30 May 2018 12:04:05 +0000 Received: by mail-wm0-x243.google.com with SMTP id a8-v6so47358716wmg.5 for ; Wed, 30 May 2018 05:03:53 -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:mime-version :content-transfer-encoding; bh=z5svq0loQwGXn0lzfX2Lfj7hQ1RBGCLzHZ3m3HNWk7M=; b=PDzeb+suQzM9Rp9qUYMcbMKjbO/ERbVt1DAbLdHQpC7Vh0K+zj3WH9tziK6GNTcc/i 9VmWFiDA/h+Wa7zhLCnZWdT3GOoQMqM03iKJyJuSMYtkO/o5Aq9d3lCZFynXtsvqO5he V8Umx8h0T7JWCR9eg1CbSNIEQ5Dl+pERw4mArX4I/+vMzAU25q8Z/cRFM/bxyYAjiGdl V8FfkEbahm+gCEuO4XjJggahtDQWnfP2CEMOtGpdeMv4vaEFMn4QIFI96RlUbzGrGpK/ ZmDdqIr9qr4MV22RcnOG3taB/7SZ1jcthh6tcHjwAE+X3mAjd/G8o17zPd2bIoH9lNl1 +Wtw== 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:mime-version :content-transfer-encoding; bh=z5svq0loQwGXn0lzfX2Lfj7hQ1RBGCLzHZ3m3HNWk7M=; b=V4fnUSfzyoWFTGORH/TYetX7oNJzmIr8bI50kmYgV0nSt+aO7ionckvYRlbOz06XK6 o0AaIt99VbzmEYAvCdnw6Q6PKNsaXKHY6J5W//nWATj7tJAuh/T3oLUQ7X5eZ7ZgrQwj JL5TWzXkLDVoJRyod/hri7fQ6S6qSurjOlOSy2qnuEMNm40zn/R4CXL3frLv3THRGh9b 7ocnXYUKbfQ3paNt/mNTAI9otHx8O/ZedXadckHwx537Vfts/UugKn7gumday1dYLUEs esrp2RNMcMmqwRY1teyyG6ddh2OBMxUmXkzgPDZB0NE3j+348uMPjw8RKXJCxz8tfFDe 0G/w== X-Gm-Message-State: ALKqPwemhmA//9Mp6BJ+H4jP3WsMfElsR1QEbYefVY2fdZfyHoHSbA87 caVVgSfVfHFcESPyizZUQUY= X-Google-Smtp-Source: ADUXVKLNZDJnJQh1r/Dbi32F1jF7MDsg8PkU86L08bX5Yd6Cl+wn0hj33yHEMRDlzBDy46RI6nq5bQ== X-Received: by 2002:a1c:17c9:: with SMTP id 192-v6mr1221331wmx.95.1527681831645; Wed, 30 May 2018 05:03:51 -0700 (PDT) Received: from cperon-Latitude-7490.lan (static-css-csd-151233.business.bouyguestelecom.com. [176.162.151.233]) by smtp.gmail.com with ESMTPSA id t66-v6sm14501839wme.6.2018.05.30.05.03.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 May 2018 05:03:50 -0700 (PDT) From: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= To: Colin Didier , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 0/5] Reintroduce i.MX EPIT Timer Date: Wed, 30 May 2018 14:03:22 +0200 Message-Id: <20180530120327.27681-1-peron.clem@gmail.com> X-Mailer: git-send-email 2.17.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180530_050403_842365_B7402041 X-CRM114-Status: GOOD ( 14.10 ) X-Spam-Score: -0.1 (/) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [2a00:1450:400c:c09:0:0:0:243 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (peron.clem[at]gmail.com) -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rob Herring , Sascha Hauer , Daniel Lezcano , =?utf-8?q?Cl=C3=A9ment_Pe?= =?utf-8?q?ron?= , NXP Linux Team , Pengutronix Kernel Team , Fabio Estevam , Thomas Gleixner , Vladimir Zapolskiy Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org From: Clément Peron As suggested in the commit message we have added the device tree support, proper bindings and we moved the driver into the correct folder. Moreover we made some changes like use of relaxed IO accesor, implement sched_clock, delay_timer and reduce the clockevents min_delta. Changes since v3: - Clean Kconfig - Rename imx6q-epit to imx31-epit - Update doc and bindings - Indent and fix Changes since v2 (Thanks Fabio Estevam): - Removed unused ckil clock - Add out_iounmap - Check and handle if clk_prepare_enable failed - Fix comment typo Changes since v1 (Thanks Vladimir Zapolskiy): - Add OF dependency in Kconfig - Sort header - Use BIT macro - Remove useless comments - Fix incorrect indent - Fix memory leak - Add check and handle possible returned error Clément Peron (2): ARM: imx: remove inexistant EPIT timer init Documentation: DT: add i.MX EPIT timer binding Colin Didier (3): clk: imx6: add EPIT clock support clocksource: add driver for i.MX EPIT timer ARM: dts: imx6qdl: add missing compatible and clock properties for EPIT .../devicetree/bindings/timer/fsl,imxepit.txt | 24 ++ arch/arm/boot/dts/imx6qdl.dtsi | 10 + arch/arm/mach-imx/common.h | 1 - drivers/clk/imx/clk-imx6q.c | 2 + drivers/clocksource/Kconfig | 11 + drivers/clocksource/Makefile | 1 + drivers/clocksource/timer-imx-epit.c | 281 ++++++++++++++++++ include/dt-bindings/clock/imx6qdl-clock.h | 4 +- 8 files changed, 332 insertions(+), 2 deletions(-) create mode 100644 Documentation/devicetree/bindings/timer/fsl,imxepit.txt create mode 100644 drivers/clocksource/timer-imx-epit.c