From patchwork Mon Aug 26 10:31:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 11114345 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9E6AF14DB for ; Mon, 26 Aug 2019 10:32:44 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7B2DA2187F for ; Mon, 26 Aug 2019 10:32:44 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="PH7hpS72"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="jB7K+Whs" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7B2DA2187F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=samsung.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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=SEvulQWdy6lUN34qt5KWSZauooGW47P6SfViVuE/MaE=; b=PH7hpS72H6s4axISrVbNu6aAD2 7ykE2RsPzhkDDRdkalB2NJTmdgQkVvdcUm97hiEkqNX5VyyKhlPhPC+PAPi8Etnwt6+E7bS1sRf0a VjoSHzADgNBgv2zNZkm+PLm6j8eKM/+DWMSPQKirV3TH0jzMwOpRJzGE5RzBAtaQEgEo/Pq+VccgG AkiGJaB6ERFS+QN/GKSAv7DbjRlr5K9PBQ1PPAVTvDJtwOhrlzwjdAcG8DECLLGonGezO8wXdVN2I SbdBvY8Fmw1Z8a9aBujTMhaGQje4rVdlyPxhAB8sWv+ZrKOSR/tk0EVsr3+CYlOfyYuflgov/Gac1 fQiAHl1A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1i2CIi-0005iK-5Z; Mon, 26 Aug 2019 10:32:40 +0000 Received: from mailout2.w1.samsung.com ([210.118.77.12]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1i2CIE-00058D-Tw for linux-arm-kernel@lists.infradead.org; Mon, 26 Aug 2019 10:32:12 +0000 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190826103203euoutp02cbf758e988bb86c267bccf5ebbd94dfa~_cmrubr_T1627716277euoutp02K for ; Mon, 26 Aug 2019 10:32:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190826103203euoutp02cbf758e988bb86c267bccf5ebbd94dfa~_cmrubr_T1627716277euoutp02K DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1566815524; bh=gPl4hCyxlXu+7tO9CniGO/CTchCikJRVJ6QDZ8L5XPE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jB7K+WhsNNP4HlIfXyZZFncFNOBfaGBwrVoM6xakt6N2LwGWxdUqBDmZY6MFSvfHJ rMDzoEnzFOhMlr5HLCWpRMtOQ2knW3gKZtZn1T134/p2QBibMQM5D+qPH34JMLcJ3A gNJG/EwU/uyLnDZPKsBii7/Cq2wwz8gQG5t0GCrQ= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190826103203eucas1p11769de3b1e534c5027f72ebeef6deda0~_cmrRRjGS0324103241eucas1p1i; Mon, 26 Aug 2019 10:32:03 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 6E.56.04374.325B36D5; Mon, 26 Aug 2019 11:32:03 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20190826103202eucas1p16bd422bd505086e9ee27f528a8b48d57~_cmqhkO5I1331113311eucas1p11; Mon, 26 Aug 2019 10:32:02 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20190826103202eusmtrp1c96010145a8bc4cdd6f839f73d19797c~_cmqTLDkC1243812438eusmtrp1p; Mon, 26 Aug 2019 10:32:02 +0000 (GMT) X-AuditID: cbfec7f5-4ddff70000001116-6f-5d63b5236c07 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 48.63.04117.225B36D5; Mon, 26 Aug 2019 11:32:02 +0100 (BST) Received: from AMDC2765.DIGITAL.local (unknown [106.120.51.73]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190826103202eusmtip22a8d39baca137c8f59381178edc78f0c~_cmp76SPK0460104601eusmtip2d; Mon, 26 Aug 2019 10:32:02 +0000 (GMT) From: Marek Szyprowski To: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 1/2] ARM: dts: exynos: Add support ARM architected timers Date: Mon, 26 Aug 2019 12:31:41 +0200 Message-Id: <20190826103142.3477-3-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190826103142.3477-1-m.szyprow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vqPfq2rGL0+LxJLoAlSs+mKL+0JFUh I7+4xFYp2tDCSM/Q0kLPyMRSz9DYPNbKyFRJ384mJTUnsyy1SN8uQS/j85J7LAVPhSt+z5jD 1sC4UaCLkZNDQsBE4szRU2wgtpDAUkaJq2s8IOIyEienNbBC2MISf651AdVwAdV8YpS49eYB WAObgKFE19suMFtEwFfi8ZuVLCBFzAI7GCW27HgL1i0s4CPx418LI4jNIqAqsfXwTqA4Bwev gI3EnGNWEAvkJVZvOMAMEuYUsJV4sMIQ4h4biT+P5rFOYORbwMiwilEktbQ4Nz232EivODG3 uDQvXS85P3cTIzA0tx37uWUHY9e74EOMAhyMSjy8CaXJsUKsiWXFlbmHGCU4mJVEeHP0E2OF eFMSK6tSi/Lji0pzUosPMZoCnTSRWUo0OR8YN3kl8YamhuYWlobmxubGZhZK4rwdAgdjhATS E0tSs1NTC1KLYPqYODilGhijZK9eTlmvlPNg0uMo9Sn2SkfzJ06Y8Daz5qbt7W3Hr7IbXHUP MtPOXvdTvfBkHf+JXlZ/G4c924LFjJnez5aOWWF/46Hm311qkkoCBvZml65/ZdvHIGSWJdi/ YevH0ylC0kWM8j1sX1rurlm0pszzzzrZrowDvYKO1olXwwqOXdzUZ/gsKESJpTgj0VCLuag4 EQAgUnEgYwIAAA== X-CMS-MailID: 20190826103202eucas1p16bd422bd505086e9ee27f528a8b48d57 X-Msg-Generator: CA X-RootMTR: 20190826103202eucas1p16bd422bd505086e9ee27f528a8b48d57 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190826103202eucas1p16bd422bd505086e9ee27f528a8b48d57 References: <20190826103142.3477-1-m.szyprowski@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190826_033211_107815_FF34F9E8 X-CRM114-Status: GOOD ( 15.60 ) X-Spam-Score: -5.2 (-----) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-5.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at https://www.dnswl.org/, high trust [210.118.77.12 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.0 DKIMWL_WL_HIGH DKIMwl.org - Whitelisted High sender X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Chanwoo Choi , Bartlomiej Zolnierkiewicz , Krzysztof Kozlowski , Marek Szyprowski MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org All CortexA7/A15 based Exynos SoCs have ARM architected timers, so enable support for them directly in the base dtsi for Exynos3250, Exynos5250 and Exynos54xx SoCs. None of the known firmware properly configures arch timer registers, so mark them as not-fw-configured and set frequency to 24MHz, which is the only configuration supported by the remaining drivers (clocks) so far. Signed-off-by: Marek Szyprowski --- arch/arm/boot/dts/exynos3250.dtsi | 10 ++++++++++ arch/arm/boot/dts/exynos5250.dtsi | 1 + arch/arm/boot/dts/exynos54xx.dtsi | 10 ++++++++++ 3 files changed, 21 insertions(+) diff --git a/arch/arm/boot/dts/exynos3250.dtsi b/arch/arm/boot/dts/exynos3250.dtsi index 5659c4a10729..01e06b49d702 100644 --- a/arch/arm/boot/dts/exynos3250.dtsi +++ b/arch/arm/boot/dts/exynos3250.dtsi @@ -132,6 +132,16 @@ ; }; + timer { + compatible = "arm,armv7-timer"; + interrupts = , + , + , + ; + clock-frequency = <24000000>; + arm,cpu-registers-not-fw-configured; + }; + soc: soc { compatible = "simple-bus"; #address-cells = <1>; diff --git a/arch/arm/boot/dts/exynos5250.dtsi b/arch/arm/boot/dts/exynos5250.dtsi index 4157a1315db9..f78897413cbc 100644 --- a/arch/arm/boot/dts/exynos5250.dtsi +++ b/arch/arm/boot/dts/exynos5250.dtsi @@ -1089,6 +1089,7 @@ * so we need the value from DT. */ clock-frequency = <24000000>; + arm,cpu-registers-not-fw-configured; }; }; diff --git a/arch/arm/boot/dts/exynos54xx.dtsi b/arch/arm/boot/dts/exynos54xx.dtsi index 9c3b63b7cac6..4e6c29530632 100644 --- a/arch/arm/boot/dts/exynos54xx.dtsi +++ b/arch/arm/boot/dts/exynos54xx.dtsi @@ -45,6 +45,16 @@ status = "disabled"; }; + timer { + compatible = "arm,armv7-timer"; + interrupts = , + , + , + ; + clock-frequency = <24000000>; + arm,cpu-registers-not-fw-configured; + }; + soc: soc { sysram@2020000 { compatible = "mmio-sram";