From patchwork Fri Nov 23 19:53:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 10696337 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 6C82213BB for ; Fri, 23 Nov 2018 19:54:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5A992286DF for ; Fri, 23 Nov 2018 19:54:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4F10F2BF0D; Fri, 23 Nov 2018 19:54:27 +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 03E95286DF for ; Fri, 23 Nov 2018 19:54:27 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=tAZNDckaF1dOhLW34uSgO6EpaQtVDxJv/kgqAE4NSBI=; b=V2hzEEX2a+j7NF NbN/J4hASSMDjxwwicPvbF+/akyg08E5dNudcSMDL/d/TowlG8mHaDqqNFx7fzS4knyya2x7n4HcD c2vL7e6CYcO10cjko0EsAGeeyhdgJzM/PnAIUMWQkMna4A2n4PXz2aHPjfDSg19cHh/NWCsH7totI hp4FDSDyhhQ4/hiHI7kbNrKtz21Pw4OPJHYvnZpqMk94HXNY98Tc1fyMk/fGaBYq9E2kcYT1N5dy1 fd6dS6x+MpSrk1zjWiAYbJ9AoNZ5I9OzVoHKUFcS+77ecx/dnRGAlZJrk4xW3DNpmAMDtK2/349cF N4u8lvaRdWgeDePQSbtQ==; 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 1gQHX0-0008Tr-Df; Fri, 23 Nov 2018 19:54:26 +0000 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gQHWI-0007eY-VK; Fri, 23 Nov 2018 19:53:48 +0000 Received: by mail-wm1-x344.google.com with SMTP id 79so12264957wmo.0; Fri, 23 Nov 2018 11:53:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=BtJ8/ior5XarJZafC0TR6eFgTbDH+g1bBywq7Yhl7So=; b=qR0f03U6jWYKzWGUGH3Ph79PNSbD7rSU5e0OCOchMQ5LltlzWJstK21WaqTS7Ltrlv 1/EDaagXtFhRFrfktQAiSC31Xkt18nMrHH6my6jA1v9yrgalDiZiYxwjXFhM49c2wzoX wptUhAiEnbZcuKmPP1DAyFWB+ViwqeR6zuADIwx/14Qjmp669WB4iWGDvLWwuAueE844 5dSjWQMmggv2ijkjT8GDpFmj9fCrb6c8n0AiAKDpDzkim6WZLw0cszsOI8ihDoo2/yhH tLsC3QT6R1khbJAt0qHct66OyXjPAgfPC+6DWRqSUianamqRZvSIBTP+xKIfAAAZ7Jny 4a0g== 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:mime-version:content-transfer-encoding; bh=BtJ8/ior5XarJZafC0TR6eFgTbDH+g1bBywq7Yhl7So=; b=sJdqha9Z7YBavYhPY0Du2EKr+phUoiXN22FBdUebALDiAMzkkaK+kQMlYOOmPzL7/Y UjaqNSL5V9g30HpieKSUY9X0SKYJZqADuM7isA2Xf2ufNoMoUD1IdcAgokRdTI01scCf f/+v7uGD48iXF1hgagXTmoxrdn3iMU+sHdjdWaIlar81qKJjC2n77sAmqerI/MT34dWp Ukgl5QA5xNZrBngIh9qOGOLV1TmZxq97WB25DX3dGkSn2sR38y2YVZxE3u3vINZ4/SfG OSMlza1MCCzqwXeALD7uCPlDe4YWohnVg57bjLF1Xvvn1z3d1/FnBNwF3sPpNCiAD6ZY rXyg== X-Gm-Message-State: AA+aEWaCrroEdFq7qgEe3NYxiSkppQwWFTmJ75CNFFrMocIE/kNdaRS3 a33ke1yYxvmaGNPA6TD+nBI= X-Google-Smtp-Source: AJdET5ee544o4sAtCgcDvUAQK9C61pvQfASctCobRHUpaOycLuWuhWdwDBPxowV1KIrVxu66+Ryr0w== X-Received: by 2002:a1c:1dce:: with SMTP id d197mr15751793wmd.66.1543002811237; Fri, 23 Nov 2018 11:53:31 -0800 (PST) Received: from blackbox.darklights.net (p200300DCD732F500597D16A631573221.dip0.t-ipconnect.de. [2003:dc:d732:f500:597d:16a6:3157:3221]) by smtp.googlemail.com with ESMTPSA id g198sm11495337wmd.23.2018.11.23.11.53.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Nov 2018 11:53:30 -0800 (PST) From: Martin Blumenstingl To: carlo@caione.org, khilman@baylibre.com, linux-amlogic@lists.infradead.org Subject: [PATCH 6/6] ARM: dts: meson8b: add the Cortex-A5 global timer Date: Fri, 23 Nov 2018 20:53:11 +0100 Message-Id: <20181123195311.4578-7-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181123195311.4578-1-martin.blumenstingl@googlemail.com> References: <20181123195311.4578-1-martin.blumenstingl@googlemail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181123_115343_295959_21A2E16D X-CRM114-Status: GOOD ( 11.85 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Martin Blumenstingl , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The Meson8b SoC is using four Cortex-A5 cores. These come with an ARM global timer. This adds the Cortex-A5 global timer but keeps it disabled for now. The timer is clocked by the "PERIPH" clock whose rate can change during runtime (when changing the frequency of the CPU clock). Unfortunately the arm_global_timer driver does not handle changes to the clock rate yet. Signed-off-by: Martin Blumenstingl --- arch/arm/boot/dts/meson8b.dtsi | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/meson8b.dtsi b/arch/arm/boot/dts/meson8b.dtsi index a3a5649e32fa..a38d187d3d6e 100644 --- a/arch/arm/boot/dts/meson8b.dtsi +++ b/arch/arm/boot/dts/meson8b.dtsi @@ -350,6 +350,19 @@ reg = <0x0 0x100>; }; + timer@200 { + compatible = "arm,cortex-a5-global-timer"; + reg = <0x200 0x20>; + interrupts = ; + clocks = <&clkc CLKID_PERIPH>; + + /* + * the arm_global_timer driver currently does not handle clock + * rate changes. Keep it disabled for now. + */ + status = "disabled"; + }; + timer@600 { compatible = "arm,cortex-a5-twd-timer"; reg = <0x600 0x20>;