From patchwork Mon Jun 4 10:00:31 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: 924918 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="Ciy8qCNI"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 40zr6n6qZgz9s0W for ; Mon, 4 Jun 2018 20:01:05 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752467AbeFDKBD (ORCPT ); Mon, 4 Jun 2018 06:01:03 -0400 Received: from mail-wr0-f196.google.com ([209.85.128.196]:39010 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752372AbeFDKBA (ORCPT ); Mon, 4 Jun 2018 06:01:00 -0400 Received: by mail-wr0-f196.google.com with SMTP id w7-v6so30632102wrn.6; Mon, 04 Jun 2018 03:00:59 -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=748iN1IFxfbBQWMxDwxv49Sx4hK5PdRJm7T4x4qDs2E=; b=Ciy8qCNIv+0FXHB4e7MZGHT+aOPs/jc+3I//MbNB7+YKv2BEnEi8lzpXTmoz6vD6mo CGi49TQXk+N/LQ45TdCB6kt/MiIQ/i2O47S41iQr+ysVKr9DHINSfGjpukdg5RMQHdjs ih3AInXHu7MeTPRyis3N2ZcG0EPoHPY2dSittrB15c+kJM1E8vbwTE/0OIqix0iLSts+ +LxsSsuyGmmVXv58tYvgOzP4pFgAJfe5OI1BS/GTXUDvfu0YeIJ2Y+BBtZBKFB2avIjN heypkmSjDkTJnt5CX1G+RrGYZ7U0f/IAss8U3x2yVeVl819j3wpICeAh4QOMhMK4anRD D4Uw== 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=748iN1IFxfbBQWMxDwxv49Sx4hK5PdRJm7T4x4qDs2E=; b=iBmBmsAn4kFAKSs8T6jiFOAzAD+4W/ZdDTcRz/M1C4Y0my11LUb0oMI67fMf7WtBvb SFAw1RgtDpX+xRoL8a49Lu3Om5uuP4wyIRX3jaIK5nyZ5p+4dVmM6z2RPOkcy1VvD01B EifHnu5WabspD4pyrz/59B9kdm0UmDNElHvzug/kj8TtFOZdbwTjLOQzocVazVJ2yWTw d4N+r6o/rcGOu/QE+n8hszdpGE71wKmLDEtcUvgxUtGEw2LUWKwDizvoTqGYCFd2s3t/ hGVvPe5w/MHq84hX0T1z8/sN6lzf9o0NXBWpoffAi0lCfcAulYnMzS9ASGodpFteNEAP EdLw== X-Gm-Message-State: APt69E1QFBHg9nMidef6d1Vj8gGw04mC75E5/HE3XG2rF82PQOmbsdal oeBKX2bKAj0Mv/+WXRyfXZ6vgZs4 X-Google-Smtp-Source: ADUXVKJk3z7XLH4dm5yBYrNKtZ1QyduWmOF3vLQOb5ZGmKyaIGoZ9+c4yoscU6ptLoEDet16bjsz8w== X-Received: by 2002:adf:e285:: with SMTP id v5-v6mr1703208wri.54.1528106458654; Mon, 04 Jun 2018 03:00:58 -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 r10-v6sm1075345wrm.66.2018.06.04.03.00.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Jun 2018 03:00:57 -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 v5 0/4] Reintroduce i.MX EPIT Timer Date: Mon, 4 Jun 2018 12:00:31 +0200 Message-Id: <20180604100035.19558-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 v4: - removed ipg clk - change in dt epit to timer - add introduction in doc - add all compatibles in doc - update epit entry for other i.MX device-trees 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 dt-bindings: timer: add i.MX EPIT timer binding Colin Didier (2): clocksource: add driver for i.MX EPIT timer ARM: dts: imx: add missing compatible and clock properties for EPIT .../devicetree/bindings/timer/fsl,imxepit.txt | 21 ++ arch/arm/boot/dts/imx25.dtsi | 8 +- arch/arm/boot/dts/imx6qdl.dtsi | 10 +- arch/arm/boot/dts/imx6sl.dtsi | 14 +- arch/arm/boot/dts/imx6sx.dtsi | 10 +- arch/arm/boot/dts/imx6ul.dtsi | 10 +- arch/arm/mach-imx/common.h | 1 - drivers/clocksource/Kconfig | 11 + drivers/clocksource/Makefile | 1 + drivers/clocksource/timer-imx-epit.c | 265 ++++++++++++++++++ 10 files changed, 338 insertions(+), 13 deletions(-) create mode 100644 Documentation/devicetree/bindings/timer/fsl,imxepit.txt create mode 100644 drivers/clocksource/timer-imx-epit.c