From patchwork Wed Sep 20 14:51:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 113131 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp860309qgf; Wed, 20 Sep 2017 07:51:24 -0700 (PDT) X-Received: by 10.84.232.8 with SMTP id h8mr2360876plk.62.1505919083998; Wed, 20 Sep 2017 07:51:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505919083; cv=none; d=google.com; s=arc-20160816; b=mY6Po88GicseF63+YY9zvbxXmCNsemCzmCQ+G7E7M99iy/jFUROEfg7H/lLJzKsH26 46gX8xNfCdbT6ath7gGijMFr7ty/ymI9V43UI/gbNhP4qFd62IKPuFw4eBnr9S08NCyi d7vSKL4ngbjpmzh+xC0TiXtSRMzK9suw6xtcHLubnn+nW55U87obpiM7+Y2DN58gb5tZ 7I+0h1aYQxmIgdq9/19ZgKyPxR3yxlOI+4UuYZQQsBOojugz0Tghm/PKkLdxLDpssSOU vCxJ/nHU1wNdFRN4zUL8MMoLawbbPUFpS/raEPdTEKQxHTDZ72PvFB+Slh0HXKCusgC+ gRig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=xtqmA2a27k8tLxCRFv5U8TCa06Qi/ARlHxcGii0Hhfo=; b=f36QcleJjZ4iOy4sYjJwG/OXpyfT/oY1hcVn7rJNY9f3Y4Td/CfvVJlR+WwRFN3aBz bz9Ld13VSBGLBVdU9G7GVhnZtRaZly/mL9ZCwaCJ3B5yvZnNyiTyaaSFZ/POq6Q1Mk1w i8/owhAuL/ccDy1eIebU7idUPsg5UM4uFsQRtRQKvTeXFa4CVKvlXAbeJ+9fVeIkdjAS 2Zvp7DR0P4o1bCEjbSVSvqYK8R6yV3+NCrC1u7f2zpKXN8JmAoFzAFRXxm52W/ioTqu3 +ZZpEMnTW1j4+YiKGbKls99XWZBX4w0pnAcr4ZxMa8LHYWTnZ6hifB3OGrSqMzUazJZm eprQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ia88KO2p; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 36si1511228plc.620.2017.09.20.07.51.23; Wed, 20 Sep 2017 07:51:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ia88KO2p; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751714AbdITOvW (ORCPT + 6 others); Wed, 20 Sep 2017 10:51:22 -0400 Received: from mail-wr0-f175.google.com ([209.85.128.175]:43109 "EHLO mail-wr0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751640AbdITOvW (ORCPT ); Wed, 20 Sep 2017 10:51:22 -0400 Received: by mail-wr0-f175.google.com with SMTP id a43so2395404wrc.0 for ; Wed, 20 Sep 2017 07:51:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=4nfpPoEKvqTlzWEAILiWRzQNAtIO11dJT29h6Oun7PM=; b=ia88KO2pKVQypf0zHuqqM7ZqZNdI9b4w3xd/lk01s2LfLKs8towWfS6fQTrPg7sGDl sGyW+4PFS5OQrhavwSkZnJYu+HaknhxaBiNnq7V1VZKseCPxNB/3c8gLWunp/fcc1U5r PTtH97q5mbAHqD22q2Zn2B1/6WZSyTVf9Kp/A= 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; bh=4nfpPoEKvqTlzWEAILiWRzQNAtIO11dJT29h6Oun7PM=; b=rDqEclIZshJcjbrEzNSS1ohCL+F11raifGdQ3ZSyx4siOgCZ6edGIGJG4tMmU60xBN aACrddjVrkIFAqxwa5wgHnDim9aPBtaP7skKFHj2zHOj8/ykaYLQ56eYUDQzgpnDDQNt cgBPa87Lp3hMh2OHzncPwsseuAFC8oyQJEH6JAshkv4Q/y+9b4jF5qWw7vTrAdGC/KYQ HrixRDIsgWsSW2ZOX4z6xNAb52ZBnD7Qw906zBmURpNiXr0jeRMqT+Zx3kxQdPL5OIoJ f/FvDfgsOSj6FngXQrtcdSifqx/DNReTT3WDEJPkSQb5MuSk8qWKyjxOXxjKKqv5Ojf2 DatQ== X-Gm-Message-State: AHPjjUguqiRysweCLVgdaBa0xAQ30Kl5reh2P6y/ai3tkUNBE3+STC32 I7TED+uwxQLEy6wTU+uYtLL1lg== X-Google-Smtp-Source: AOwi7QC7ANovtpRtFrjPo5P6OhUgChFooSYTH1lo1aV1VGe+O4PA7kis9vuO3PhXMLurRW+odS+EQQ== X-Received: by 10.223.135.58 with SMTP id a55mr4744926wra.109.1505919081005; Wed, 20 Sep 2017 07:51:21 -0700 (PDT) Received: from lmecxl0911.lme.st.com ([80.215.203.94]) by smtp.gmail.com with ESMTPSA id z108sm2088197wrc.49.2017.09.20.07.51.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 20 Sep 2017 07:51:20 -0700 (PDT) From: Benjamin Gaignard To: robh+dt@kernel.org, mark.rutland@arm.com, linux@armlinux.org.uk, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, daniel.lezcano@linaro.org, tglx@linutronix.de, ludovic.barre@st.com Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Benjamin Gaignard Subject: [PATCH v3 0/2] stm32 clocksource driver rework Date: Wed, 20 Sep 2017 16:51:05 +0200 Message-Id: <1505919067-28041-1-git-send-email-benjamin.gaignard@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org version 3: - fix comments done by Daniel - use timer_of helper functions version 2: - fix uninitialized variable These patch implements clocksource and clockevent by using only one hardware block. Getting both clock source and events on the same hardware lead to change quite a lot driver code. It also limits usage of clocksource to 32 bits timers because 16 bits ones aren't enough accurate. Thanks to timer_fo helpers this series includes minor clean up in structures, function prototypes and driver name. Since 16 bits timers become useless it also removes them from stm32f4 and stm32f7 devicetree. Benjamin Gaignard (2): clocksource: stm32: rework driver to use only one timer arm: dts: stm32: remove useless clocksource nodes arch/arm/boot/dts/stm32f429.dtsi | 32 ------ arch/arm/boot/dts/stm32f746.dtsi | 32 ------ drivers/clocksource/Kconfig | 1 + drivers/clocksource/timer-stm32.c | 229 ++++++++++++++++++-------------------- 4 files changed, 112 insertions(+), 182 deletions(-) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html