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: 10703581 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B3FC315A7 for ; Wed, 28 Nov 2018 22:37:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A3DE22DF98 for ; Wed, 28 Nov 2018 22:37:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 95A282DFB1; Wed, 28 Nov 2018 22:37:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 402F82DF98 for ; Wed, 28 Nov 2018 22:37:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=zdTH/4tUYTffoaO96kM5tW0ZHysfZoN1hMtOs3nfYss=; b=SJr19LOpWPImRm9qUC0zq8xfhb oToo8rFGynZ52wqorA2HDjBCLWgmlqYfK4Ofq82iwuBW+bs6aYmUCsf/RW/CQwDi3zx1E4OAm55ev Wvxl018K2BCYBrYEsIW2IQqwTcS/5rUZn7iOA3wQKFfHmesI2PlG/ZcNYQFf2fyHnKPu5ie6zOeKz uNOPmqBfBqutAZsxoLhnsfHooqzWDZ56kAq9PzxLD5JlP/YVyhXbAFQ9rOnSz6pNJCFhLijK9F4dU H0thX9ez5RW52ZG8M7oaQwualS3AHS6V5okHXKjqvbHUkgUt+GOdyBkOXPkG/pfdzql41KVQNxph0 rDRXxT3g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gS8SF-0000ag-Rs; Wed, 28 Nov 2018 22:37:11 +0000 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gS8Pm-0005OE-7a for linux-arm-kernel@lists.infradead.org; Wed, 28 Nov 2018 22:34:44 +0000 Received: by mail-wm1-x343.google.com with SMTP id a18so284793wmj.1 for ; Wed, 28 Nov 2018 14:34:28 -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=EQoto1V0VZqMSbWpZptnB7GC5u9EJQxym2keCLIPT8aQFl1UoTmMaSQgnQiYfFSrEz VmXzSiffkosWvLq+jDbTjjMv1U6HVf3UyL/36j4d/RjJsRbOHCvkXtAp/g5KX7O+uPtK aVSarxRY7eD37+ua1wMl5wrXDpxf8gqoowEwD/Q/idRKziVYJ7rD9GBA3QacU3VKCElK nZmseY+M78HG0atDjfdV+v1pxn5tofgSGQE6GT/+byLFygQR7i8pmD8AehflwgpsHiBV T6G8+0Axnqtcv/bkpD9LzEwn9ZpDA3iXlvGSMAb44SfMw/S/WWI3KJc5Ag8JTmdTA8f0 vqbQ== X-Gm-Message-State: AA+aEWZUttRjSyr2CkK6XwC0IR2/DDaoYt1uKdwn9Ep13iFGvGYpEJaI 0Klh+xcUPFKogrr7vlqw6Iw= 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 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: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181128_143438_908639_3B1BFFB5 X-CRM114-Status: GOOD ( 14.60 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mesih Kilinc , Julian Calaby , Linus Walleij , Daniel Lezcano , Russell King , Marc Zyngier , Chen-Yu Tsai , Rob Herring , Maxime Ripard , Icenowy Zheng MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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);