From patchwork Thu Sep 14 07:56:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 112507 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp462049qgf; Thu, 14 Sep 2017 00:57:46 -0700 (PDT) X-Received: by 10.84.211.6 with SMTP id b6mr10301181pli.292.1505375866656; Thu, 14 Sep 2017 00:57:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505375866; cv=none; d=google.com; s=arc-20160816; b=uPuGBGYK2iZ9CrzjRLlpGtoQ/oxcLgVeibuOtf9WfBs5idhbnKQ6L5miCIbr+0pkWh 7ZxTCAZquYK/zCQEEUtNc9zAnlMfPClNtaMNh5UgOBZXiEYe6wuYmfQcVx/HsysNrPaS V1D/ZtJyh3PgU1xb9GIsTw/1kSGhQhN57pRsazUod5Q8edhC0YGdonYQinTI1HJtNb1G O0TVDdDgXaJxX+LRrOa8VRJj1NH2K1v37eydP65mCXzcd9Oznn6UaCm80JDzMqV+3a84 o9K+Cv8lJFVB/7FJwm76lsZi0ZBJ3XT2dPgrXHrv0PzFG6CbPSk5uDw7MmD7EdePn9+Q At2w== 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=v8RFRKdhBe+vg025AuXABzL3G+Jl5SpTboustURVH9k=; b=M9GNqxNunsgUR8Wmbzn6NRkN8uzNILbDwyCr8SLnJssUVI0Vhe/QPun9n1pXEdJ6zT E1FIo8s7TxqQKOud06VYAhe9oI94D9hXVYi5BmCOgFP6KKLsrUWBaKT/Ce5K2E8U2yCX Ht8J8dMvDMM/eHmafi57b9x240TfHCswLWy477JgsnHgzcNOlL8oeZWiKB9ZwC7DU67a uatY7qnXLr8PmqI0VxiS67hu0Tz1hTRAFLpMZAploAbLCHRKTJjcYgSKdgdYBWvMX1zA pNh3Ck8vVZ4wKUYBV/yWj4fb0aNPz/B7lG8RvdNOM+e4nwjpb4UcyOqCUzhbQQQ43zia 2RZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Ksv5txyj; 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 60si5381234ple.818.2017.09.14.00.57.46; Thu, 14 Sep 2017 00:57:46 -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=Ksv5txyj; 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 S1751434AbdINH5p (ORCPT + 6 others); Thu, 14 Sep 2017 03:57:45 -0400 Received: from mail-wm0-f42.google.com ([74.125.82.42]:46349 "EHLO mail-wm0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751255AbdINH5o (ORCPT ); Thu, 14 Sep 2017 03:57:44 -0400 Received: by mail-wm0-f42.google.com with SMTP id i189so6992519wmf.1 for ; Thu, 14 Sep 2017 00:57:43 -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=fnYJrk3Qs4tM7n/Rqs/ufH84eBCSNGDXSzMBddwfWHk=; b=Ksv5txyj8JNM/+Eywcw5wiLyNEQRHqARfQh7aTYdLbKXGI/b0l9LHeR1XaXwzchx+P OY2RXcnSGd8NjsdRz/StA3MoRes67TUmNYBJt0Zy8WDKmvYdTAVNY7KehXChgAakMphs W+FpqTNIqJvSJNdy/K6vEVHzmNUlgDtswRDlo= 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=fnYJrk3Qs4tM7n/Rqs/ufH84eBCSNGDXSzMBddwfWHk=; b=XLrb+pP5LVFKNGxrX2FzH7gG37KK84lXgrjmre+02VPUc2j4iGLvBCGCFIHASlcG9Z wefSf36OsAJZdP2lnn98vPUCN0doJyLxW11sZz+6sMqdKzFdf7p3DDzKpOp0WsPUSCWy N/c3FliLq+Ys+ISlJhCZE2lY0Wbt6tqSlQAjqt8+B66oh95mh30MseMz5dAS3ob2+5nS 3lQYt/lau5vCPJQhfEs1lng6Vgq+Cp5f/h/Yl7l4QpIKwgnIV4EXvfML0JHYPS5njK+6 k6E9BSv3KqjKJGXnGcrypvwKB9ChW3vdgbfx66ewywoHVynGEzJkjnVgILTAq2lJkAbl r7PA== X-Gm-Message-State: AHPjjUio/eiyEOGn2d4HUBzbW1XJRxkgoqn7RxL/9kvvieMZMcauUOAX PL8YPucK+tmjvIEH X-Google-Smtp-Source: AOwi7QBiI3tyEpbOPZaEtRFE4j6Ped+DZVSH1VZ3D+LSRICzbVL2wLLlFKB9I0Hq9pY6VAK6GQunoA== X-Received: by 10.28.23.11 with SMTP id 11mr1153291wmx.5.1505375862948; Thu, 14 Sep 2017 00:57:42 -0700 (PDT) Received: from lmecxl0911.lme.st.com ([80.214.22.183]) by smtp.gmail.com with ESMTPSA id c56sm15362709wrc.1.2017.09.14.00.57.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 14 Sep 2017 00:57:42 -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 0/2] stm32 clocksource driver rework Date: Thu, 14 Sep 2017 09:56:50 +0200 Message-Id: <1505375812-19037-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 These patch implements clocksource and clockevent by using only one hardware block. It also limits usage of clocksource to 32 bits timers because 16 bits ones aren't enough accurate. 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/timer-stm32.c | 259 +++++++++++++++++++++++--------------- 3 files changed, 155 insertions(+), 168 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