From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,UNPARSEABLE_RELAY,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1A934C43144 for ; Fri, 29 Jun 2018 00:17:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C9A0227A8D for ; Fri, 29 Jun 2018 00:17:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C9A0227A8D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=mediatek.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936327AbeF2ARv (ORCPT ); Thu, 28 Jun 2018 20:17:51 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:12519 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S932793AbeF2ARr (ORCPT ); Thu, 28 Jun 2018 20:17:47 -0400 X-UUID: 3e2812def58d451dabe39f502e0f6545-20180629 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 167451339; Fri, 29 Jun 2018 08:17:42 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs03n1.mediatek.inc (172.21.101.181) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Fri, 29 Jun 2018 08:17:41 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Fri, 29 Jun 2018 08:17:34 +0800 From: Stanley Chu To: Matthias Brugger , Daniel Lezcano , Thomas Gleixner , "Rob Herring" CC: , , , Subject: [PATCH v4 0/5] Add system timer driver for Mediatek SoCs Date: Fri, 29 Jun 2018 08:17:21 +0800 Message-ID: <1530231446-13760-1-git-send-email-stanley.chu@mediatek.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds a new driver for system timer on the Mediatek SoCs. Changes since v3: - Use the same binding style for both GPT and System Timer. - Use timer_of.of_clk->period instead of private structure. - Arrange patches to contain system timer changes in patch 5/5 only. Changes since v2: - Rename existed mtk_timer.c to timer-mediatek.c. - Add system timer support into timer-mediatek.c instead of creating a new file. - Use _gpt_ and _syst_ to identify different timers. - Convert gpt driver to use timer_of. - Fix system timer driver: irq flags. - Fix bindings of both gpt and system timer. Changes since v1: - Use timer_of structure and APIs to make driver more clean. - Remove unnecessary headers. - Use fixed-clock. - Fix indent.