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: 922748 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; 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 vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 40wq4q6n4wz9s1d for ; Wed, 30 May 2018 22:03:55 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751765AbeE3MDy (ORCPT ); Wed, 30 May 2018 08:03:54 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:53005 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751352AbeE3MDx (ORCPT ); Wed, 30 May 2018 08:03:53 -0400 Received: by mail-wm0-f68.google.com with SMTP id 18-v6so41845554wml.2; Wed, 30 May 2018 05:03:52 -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=PsPjRA8zlNfwPts/ALG80fVsCVbo4JwfcaNoZbkklNEU8oxpq8B9kYNGcYEV/eShye LnejipsLLZ+AuS6Q3/4hE4b9CO2MxyiQQBZA+7vMj8awP4BcEzioFNEdlScNK1ObugUv NgbaLkG6fjfYQRFVuW6JT8Ef2ntMwp0oWVKOj70XrXgt+dk/NQ4Esjips3V3IPxhqoGo zMvmSpDP3qZ7rAJmQSfr3K8KX161WFru13Grt7lRcwXJj3q91a+zAEjJgeYWxrtaxZfS Qxti2bDajWfoJyaPDRpDpgui+KkBwdstJm3SgFB4qII9CPFB6PJLI/xEjf87s/li/N4a E+6A== X-Gm-Message-State: ALKqPwc96KGFbBEAOIi1fNmwMQfu5gTtXlSnujEjHV148KkEK/DFGknj 3tq5HwGZnH75sJ41xXkalxU= 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 Cc: Daniel Lezcano , Thomas Gleixner , Fabio Estevam , Vladimir Zapolskiy , Sascha Hauer , Rob Herring , NXP Linux Team , Pengutronix Kernel Team , =?utf-8?q?Cl=C3=A9ment_Peron?= 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 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.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