Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4272951imu; Sat, 24 Nov 2018 23:46:05 -0800 (PST) X-Google-Smtp-Source: AFSGD/XPXMm7A2bKq4kA7QjxTFQmJckmf62PzcI+NyPXgFgryfIQzhsdGKe7Y0WQKFN+FWf5V5qR X-Received: by 2002:a17:902:780a:: with SMTP id p10mr23209690pll.54.1543131965794; Sat, 24 Nov 2018 23:46:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543131965; cv=none; d=google.com; s=arc-20160816; b=kR5rq0ufxP6cV//jZyFUmGFQe8KQ+C6Cg/GH5FOvDo5mSCvV3mxHqGIkmaOgfr5Zpv BNcA79DT7bEcoRFSqWmCCws/04Z/sFIRlU/k8rQXKpCqvylM+pmYoQU3CbcLHRFIf8Ib lCTHzCHJhlYCIcz0ue2/RNom3U+RNc4FLhrGfU9T1OPHj2qyim+jJiwGevNGJxLKI9RL pshROsGJgcQhrX+WkrZrQI3IAVr9sASJO+Cxn5BH2o5wP24Tm/4WIio0XlGsQsbHlA4l BEqWpqlJylOVOCy7Thd6aRwB0xyg5seCHSKi+Gj5TL5oTUnK1JUROoIEEvKibjVTE5+7 30Sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=X2MJDswe0qbs6RG81mMPQ4p4MRYjzcSOeYYQ8FhXgr8=; b=G7bhYqJCkBVat5pSRhOjPOwokFsjXj5XHyYKfYhaBIGWD9Scj5UtgQ54dsinwDJHGe Twc/VebGyzlSHiU+5o0/4KRa1xZ66dUQroklMYzTMGDwg8i/mtVE94nZNejc/nzRS8Ws 0Su5fSNrxYDnJ9XAAGCyZWryHObHPgryQ98yXhI3c5ZVy50J5kttnZeQu5Knef9eaIRt 55KuqCyCrRI8cpqEg7ssQujVmhhoBBiCQt8saXfzZr3QomgukoWoAHzLyGPjA16bImBE iUGE63YqUf9455JAFYEOXbLUA6K1XCLRqHZF0eXDkXlcR8hn8sd4fiQv1SvnWfmte/Rb UlyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XNuqnOq9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r59-v6si18764863plb.276.2018.11.24.23.45.51; Sat, 24 Nov 2018 23:46:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XNuqnOq9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727943AbeKYSfX (ORCPT + 99 others); Sun, 25 Nov 2018 13:35:23 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:34516 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727573AbeKYSeb (ORCPT ); Sun, 25 Nov 2018 13:34:31 -0500 Received: by mail-wr1-f68.google.com with SMTP id j2so15810387wrw.1; Sat, 24 Nov 2018 23:44:02 -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=XNuqnOq9D0HKW/kpS1CRhuz7ixOhm9sqogq672JZ2E5s/9GhcEpjCdsoZms3JhqgXF 8sy4AUyMfc2A1acXqs8HVDZP8HEBJ7FfR+CRsteDRMdvHydxFoFfwl4I5ZPGHGs8KAnO qVbJ1LyHsDMea08LUn0KWuB0A6PQWeKVG2USeNYOr2AKiGYmlQrMNAPzGTGFMD0qIyFE GoIWVnyZ3Rmq4+dHPLnxwbyAPGWh4GPlM5YUMxiYgZbXEJ2T3/IPYtKd2CbJO+lV7J78 j59hEYdTOwDW3HOF+C1Uz1sH7gC/q5pxYCozqg+dkMKLSvl+H5T+CxUS6KXoM+trHBOd /lYA== 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=Ug0e8YYZcfazE7Cz28bXZzuNeZgzCN2fo6hF+8T8sWt3Px1e6jdOuwHeEwSJe3tybv kJjF8mjja794YUooFl707LlZZvcP22y+iCZr8jlqAWZlQ2KOjD9wnpQIdbeU8ojhrH4f wjvGjkJIJE5vMk3MGb+C31nMqvDCeriPM+z22AcrLrsV01erI0PehWHjTS2/8W1Ur159 46PxCFKnk3VgVRUKJj8oG5bm+5RIr0saFCEXycX3u5AN/+wBCiCUf4g9ZItmKgqiEj3z fLz0o8TYTtuysDh/66CXP/Mj/hPhoxhlfIWuthN/2LvKVPXhObhzWpESNLkDMkLrahvC Ou6w== X-Gm-Message-State: AA+aEWbr3gLNUYWEYfYhQynnZ71w/2N1jvtUMHO11UNScH66tY6S0/Fo mgO1PcBiaw58uUW/2zZ8aPeYTXcP4jM= X-Received: by 2002:adf:aa94:: with SMTP id h20-v6mr19199503wrc.216.1543131841773; Sat, 24 Nov 2018 23:44:01 -0800 (PST) Received: from localhost.localdomain ([185.219.177.224]) by smtp.gmail.com with ESMTPSA id 6-v6sm12296780wmg.19.2018.11.24.23.44.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 24 Nov 2018 23:44:01 -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: [RFC PATCH v4 09/17] clocksource: sun4i: add a compatible for suniv Date: Sun, 25 Nov 2018 10:43:12 +0300 Message-Id: X-Mailer: git-send-email 2.7.4 In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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); -- 2.7.4