From patchwork Wed Nov 28 22:33:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mesih Kilinc X-Patchwork-Id: 1004889 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@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=linux-gpio-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="bPI5b4tI"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 434wV139vYz9s8F for ; Thu, 29 Nov 2018 09:35:53 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727029AbeK2Jhk (ORCPT ); Thu, 29 Nov 2018 04:37:40 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:38771 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726414AbeK2Jhj (ORCPT ); Thu, 29 Nov 2018 04:37:39 -0500 Received: by mail-wm1-f65.google.com with SMTP id k198so275071wmd.3; Wed, 28 Nov 2018 14:34:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=X2MJDswe0qbs6RG81mMPQ4p4MRYjzcSOeYYQ8FhXgr8=; b=bPI5b4tIqowdj0Ud4jLiRICip+blzwO95SDrV2KPUwtVblR7T3rA34/m0pY0cj0K7A UrUNQk81MeL7EchjqwTo/SvIyuDwXZweitxGJA8Xcg6JpOn2mqvXlgHYVokhYk45q0pk jSLP2Wp2U9MS+DlN2fQSGi4FyYwqPs9Ip5ZJ29yNpJBjsDE3I3uGE3rFNwbONdX/GWOj FGSz4AevULt8k2KjzygDU5E8qmJ/TAjjZp8cyh9poW7f82gWjg8ZuECfY8eAIaZd3L7y VJmJGiSelKZKw+Uz2jFs36/XbsUnoQyBSNLu6y3xVrQoGHzjAk90F0TuR/LPbfZ9nOj6 mStg== 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:in-reply-to :references; bh=X2MJDswe0qbs6RG81mMPQ4p4MRYjzcSOeYYQ8FhXgr8=; b=dt7ND7jGMCRkOwJ+rInFd90ktTChguDrN6USCxlsLm+TzhWyTaLCjMybgLwOZmFfgy /9syD7fHBEIfzWGUXA69yqfaiLHrXhQ4VHRb0Bjor7Avf7XboLGCP0sVm43suma2Feyw RFAV5RawFA0JEq0p1ewTSkBvPcTvKU+LDwFCsoFYGMBF+1xyrmy+mo2QvPm8yhWjqYoQ 6e3DLEcwievIiXAsCgzLcBIlP+TEn0ZmfzUtXOBhB2Ehv6LhAgYpU2sKwq5JTh0WS3Ue WosbzZ08HzDtlM3l7iQc5lE5Pd7y2WME9W9euPKm6Aimlr6zJNpdog+VxFPR3Y7JwEpJ G7aw== X-Gm-Message-State: AA+aEWaGMMR7tg05uHjHHv6W0P5gAzTSA/dmqdbL5WBZ7yKIGZtkxDzX MGPLY5NsTtWhhi3N/FRTEPWsznQdrPg= X-Google-Smtp-Source: AFSGD/WoSjpGjprL0Q3/EM3UchYU6uZQ5aQRC8r/EsBc248WTRrORnOqycx2d602MIa5U9wCK0MX7w== X-Received: by 2002:a1c:4d12:: with SMTP id o18mr4572266wmh.92.1543444466730; Wed, 28 Nov 2018 14:34:26 -0800 (PST) Received: from ThinkPad.home ([185.219.177.239]) by smtp.gmail.com with ESMTPSA id g198sm180244wmd.23.2018.11.28.14.34.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 28 Nov 2018 14:34:26 -0800 (PST) From: Mesih Kilinc To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org, linux-sunxi@googlegroups.com Cc: Mesih Kilinc , Maxime Ripard , Chen-Yu Tsai , Russell King , Daniel Lezcano , Marc Zyngier , Linus Walleij , Icenowy Zheng , Rob Herring , Julian Calaby Subject: [PATCH v5 09/17] clocksource: sun4i: add a compatible for suniv Date: Thu, 29 Nov 2018 01:33:19 +0300 Message-Id: <274bfd74bf3817065b6e5bdc733edecc520449b6.1543443475.git.mesihkilinc@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org The suniv (new F-series) chip has a timer with less functionality than the A10 timer, e.g. it has only 3 channels. Add a new compatible for it. As we didn't use the extra channels on A10 either now, the code needn't to be changed. The suniv chip is based on ARM926EJ-S CPU, thus it has no architecture timer. Register sun4i_timer as sched_clock on it. Signed-off-by: Mesih Kilinc Acked-by: Maxime Ripard Acked-by: Daniel Lezcano --- drivers/clocksource/sun4i_timer.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/clocksource/sun4i_timer.c b/drivers/clocksource/sun4i_timer.c index 6e0180a..65f38f6 100644 --- a/drivers/clocksource/sun4i_timer.c +++ b/drivers/clocksource/sun4i_timer.c @@ -186,7 +186,8 @@ static int __init sun4i_timer_init(struct device_node *node) */ if (of_machine_is_compatible("allwinner,sun4i-a10") || of_machine_is_compatible("allwinner,sun5i-a13") || - of_machine_is_compatible("allwinner,sun5i-a10s")) + of_machine_is_compatible("allwinner,sun5i-a10s") || + of_machine_is_compatible("allwinner,suniv-f1c100s")) sched_clock_register(sun4i_timer_sched_read, 32, timer_of_rate(&to)); @@ -218,3 +219,5 @@ static int __init sun4i_timer_init(struct device_node *node) } TIMER_OF_DECLARE(sun4i, "allwinner,sun4i-a10-timer", sun4i_timer_init); +TIMER_OF_DECLARE(suniv, "allwinner,suniv-f1c100s-timer", + sun4i_timer_init);