From patchwork Fri Feb 15 12:52:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 10814923 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 832FF13A4 for ; Fri, 15 Feb 2019 12:53:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 704B82C740 for ; Fri, 15 Feb 2019 12:53:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 64A752DEE0; Fri, 15 Feb 2019 12:53:53 +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_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=unavailable 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 108172D657 for ; Fri, 15 Feb 2019 12:53:48 +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=HvmfM4A+PeSgHUY5YR6oJPVHwsUZFOwwwm8h7XdNxkY=; b=UJ30dLF1Wpxw2/S5i80XwN8gk8 UNbs5STQPl2u5p6/3O+p9s8YFkccEk9NeMzDBwJg9AAH8oY8EOgvOffF5u9/LFaD3jyDnmsYU/RLc j64V4GMKV0ucGWtwg427RKmlM/nm0fydCahQKro3OWHmUivvX4rFa/egSi/1SVCFRyx6tEspyabDH gvMUaqOrKw2cEKW1oKT6VbRnmqJ/wRxo5q8qxxN8bwh2SzmrAFw2d1Cnm/o2B5WkASy/6jOteh+N7 o/9/dT3BvMsfjsmTwIG5tc2p86LLszOoT4UXXXoMR3HtpGqZxdINL/1LfpkrxEM6m2Nqgkr6I/KmK JJS3eF6A==; 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 1guczy-0007Ev-0A; Fri, 15 Feb 2019 12:53:46 +0000 Received: from mailout2.w1.samsung.com ([210.118.77.12]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gucyy-00062g-Kw for linux-arm-kernel@lists.infradead.org; Fri, 15 Feb 2019 12:52:48 +0000 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190215125241euoutp02189f6159585d643c1dcf8a77ef7a6ab6~Diqp2sCHz0820708207euoutp02-; Fri, 15 Feb 2019 12:52:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190215125241euoutp02189f6159585d643c1dcf8a77ef7a6ab6~Diqp2sCHz0820708207euoutp02- DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1550235161; bh=fHx1/gTigQk7lKnUMAYd/WWCAnY+8EztucUv4WRMRU4=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=NfrtUq8PgJWvinkvYmVZPYHgWENtZaAgF548PKCWv0XwiY+jI2mn0PSLFubeocZYc 1MXJxC/oK1ypOO7Ou7YNo/4PHmpFOQn/LBmCzRDyy6z82WbVzx8zMqwXCbDXGMlnhJ zwbep7a8Rr4PEB3u/7EH8lA5cD1KnCZMGmuktWlE= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190215125241eucas1p2170dc6909241b064d12511ab147908fd~DiqpbWarB2826728267eucas1p2a; Fri, 15 Feb 2019 12:52:41 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id B1.32.04806.816B66C5; Fri, 15 Feb 2019 12:52:40 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190215125240eucas1p277671ab6d0eb4d1102d3cddd6c61c255~Diqor4ZpB2649426494eucas1p2t; Fri, 15 Feb 2019 12:52:40 +0000 (GMT) X-AuditID: cbfec7f5-367ff700000012c6-0d-5c66b618b971 Received: from eusync4.samsung.com ( [203.254.199.214]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 30.20.04284.816B66C5; Fri, 15 Feb 2019 12:52:40 +0000 (GMT) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync4.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0PMY00LS8X3MCB70@eusync4.samsung.com>; Fri, 15 Feb 2019 12:52:40 +0000 (GMT) From: Marek Szyprowski To: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 4/5] ARM: dts: exynos: Add support ARM architected timers Date: Fri, 15 Feb 2019 13:52:28 +0100 Message-id: <20190215125229.30180-5-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 In-reply-to: <20190215125229.30180-1-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrOIsWRmVeSWpSXmKPExsWy7djP87oS29JiDHav17XYOGM9q8X1L89Z LeZ9lrU4f34Du8Wmx9dYLWac38dksf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2jTawIhYBVYlvR+axgNi8ArYSGz9eZoXYJi+xesMBZhCbU8BOYs2aHmaIZbYS l1c9YJzAyLOAkWEVo0hqaXFuem6xoV5xYm5xaV66XnJ+7iZGYDBtO/Zz8w7GSxuDDzEKcDAq 8fCuyEiNEWJNLCuuzD3EKMHBrCTCy7kmLUaINyWxsiq1KD++qDQntfgQozQHi5I473mDyigh gfTEktTs1NSC1CKYLBMHp1QDY2f2uplpMhfcCh2XXxC/EHeJo/BefUChbMnh/bcCPXRK3X+c bDI9sVXzcMHL8h/aDlInDs/hOXE39lTm0n+rhS//OM59d/nR8sTXNbnT3+0z1f2aGz5j+wX9 6HfChhoJlno7FBf2yh1iS1lkcPnwlD+P91x8MfHnuo0ht5POe1zy6JR0fji1/LUSS3FGoqEW c1FxIgCLZcC+IgIAAA== X-CMS-MailID: 20190215125240eucas1p277671ab6d0eb4d1102d3cddd6c61c255 CMS-TYPE: 201P X-CMS-RootMailID: 20190215125240eucas1p277671ab6d0eb4d1102d3cddd6c61c255 References: <20190215125229.30180-1-m.szyprowski@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190215_045245_065376_5DD30996 X-CRM114-Status: GOOD ( 15.64 ) 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: Bartlomiej Zolnierkiewicz , Daniel Lezcano , Krzysztof Kozlowski , Chanwoo Choi , Thomas Gleixner , 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 X-Virus-Scanned: ClamAV using ClamSMTP 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 608d17454179..3966e7960964 100644 --- a/arch/arm/boot/dts/exynos3250.dtsi +++ b/arch/arm/boot/dts/exynos3250.dtsi @@ -134,6 +134,16 @@ }; }; + timer { + compatible = "arm,armv7-timer"; + interrupts = , + , + , + ; + clock-frequency = <24000000>; + arm,cpu-registers-not-fw-configured; + }; + sysram@2020000 { compatible = "mmio-sram"; reg = <0x02020000 0x40000>; diff --git a/arch/arm/boot/dts/exynos5250.dtsi b/arch/arm/boot/dts/exynos5250.dtsi index 80986b97dfe5..95af4050f69d 100644 --- a/arch/arm/boot/dts/exynos5250.dtsi +++ b/arch/arm/boot/dts/exynos5250.dtsi @@ -239,6 +239,7 @@ * so we need the value from DT. */ clock-frequency = <24000000>; + arm,cpu-registers-not-fw-configured; }; mct@101c0000 { diff --git a/arch/arm/boot/dts/exynos54xx.dtsi b/arch/arm/boot/dts/exynos54xx.dtsi index de26e5ee0d2d..45e06717ee51 100644 --- a/arch/arm/boot/dts/exynos54xx.dtsi +++ b/arch/arm/boot/dts/exynos54xx.dtsi @@ -46,6 +46,16 @@ status = "disabled"; }; + timer { + compatible = "arm,armv7-timer"; + interrupts = , + , + , + ; + arm,cpu-registers-not-fw-configured; + clock-frequency = <24000000>; + }; + sysram@2020000 { compatible = "mmio-sram"; reg = <0x02020000 0x54000>;