From patchwork Fri Nov 23 19:53:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 10696333 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 5761813BB for ; Fri, 23 Nov 2018 19:54:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 462A12BF0A for ; Fri, 23 Nov 2018 19:54:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 382612BF0F; Fri, 23 Nov 2018 19:54:16 +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 3386C2BF0A for ; Fri, 23 Nov 2018 19:54:15 +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=JqXRU+gssIWVZNmaVh8HMg04rAwBNx1NJGUAsLtVduQ=; b=J6s+3VHz6QMG3s PunJEJgR02nGhEhSaWOnUW0awcOmQWEXIfzDWrB3nZcWRX7EJBPq+HRP+HbSsoRJpZ3Ev5soqSC/m Tp9yKu8l6b9vS2Akio46tmLhIb6Dekjb23U7QiGl0jJlPhnEAt/ckywgGIj5aEJv6p4zCU5erbs2D vwyfm4CSesUwdKkLN7n8OzVwzxGt1Phz9m1eFVQfitOx66ar2GSpOESqYuppfxnzcKL2P5Ti0XyYk xv193yKKUKr4b7XB5ZU23ypvMvITF/aaAN05B8y3tb3+7NuI2N98a/pz+nf+asqShs8psuDfBU/sM 3djgEWmwatlXf49+yNjA==; 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 1gQHWo-0008ET-BQ; Fri, 23 Nov 2018 19:54:14 +0000 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gQHWG-0007e4-HI; Fri, 23 Nov 2018 19:53:43 +0000 Received: by mail-wr1-x442.google.com with SMTP id p4so13344767wrt.7; Fri, 23 Nov 2018 11:53:30 -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=BoOn6WTxlwavf65DbwHydv4Xd7ja4A3o1y3Q9+BXoUc=; b=oWr9/8lWcfbP1NgcvUYxiLWASzyptweuU7b1ABtqtlf28PrNPXSmhoLG8e+6Zz446x JR77fpYnXmeV5yuyaSW++DMo1tFbXo7bOXHeiMmh5HXp6KX3t/SursOJt2l/YBQjBALw wBONO5l6Xq+ljXa50hJH2/q4Z1rRr8Kycj8JduTvT/JqB+2lwlNKFGRD2FifVgk1Tj5B oflt24QE6++lpCf7H2L6NPu8r5ZIuCw4Mk8IJ6zvvXsneCS8FiAfV0flRzLYe7VFEc/g 3yQc0VLhG9fIgrNAs4ZbLEGwdxU2LELOyrG1Z1zlDkjOYT/GO0O3SYE+0b/xFEKfVYiQ /VRw== 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=BoOn6WTxlwavf65DbwHydv4Xd7ja4A3o1y3Q9+BXoUc=; b=ZHJ7O8+Ic0ZmGUjpocnbtZ5qGnlm9vElwiDBqLZDOfJzOndBvcmxtx3kW8vqZ6T1Az sRXxrcHozWyGFMmo7CxoRUF5Ll1uFN25ygVDXqDBLMil+d/9N218tyTDsoFmdJE5egLo hpoVI7nPAHWF46q4k6VPA9i0N+uOBLA2e6MJrhlZl1WAFDBTBV+AhxeCXL/Btyi3XqWt gj6J0DUlJ0CXsl8pcJSYd+TN7x14gL5m/d8BK7x5aPpTQHzZ4lWPXjBlmJtIOC0jXwe4 jGsSCx6gYenWbIKbQqwnnlrjAiL0Ol3ckWJuejg2/DznskBUeouuw/dsHDrQCRrKSJ7t RcMg== X-Gm-Message-State: AA+aEWZVDsW9Ka9urIG5yP6czxF/gs8Y7kUO8JRVrfa18kpOuL7mKSI1 2zbErj0fedc91nnWgrYjMcw= X-Google-Smtp-Source: AFSGD/WPpPun6H0bsMadmb9/+iZ4oiq8FDm5jX2mjw7Ginr5bCq9cCGOj4U/G2f70sp/9VBzGr3PCA== X-Received: by 2002:adf:c6c3:: with SMTP id c3-v6mr14724361wrh.243.1543002808790; Fri, 23 Nov 2018 11:53:28 -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.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Nov 2018 11:53:28 -0800 (PST) From: Martin Blumenstingl To: carlo@caione.org, khilman@baylibre.com, linux-amlogic@lists.infradead.org Subject: [PATCH 4/6] ARM: dts: meson8: add the Cortex-A9 global timer Date: Fri, 23 Nov 2018 20:53:09 +0100 Message-Id: <20181123195311.4578-5-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_115340_818719_B46B8966 X-CRM114-Status: GOOD ( 12.15 ) 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: Martin Blumenstingl , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org 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 Meson8 and Meson8m2 SoCs are using four Cortex-A9 cores. These come with an ARM global timer. This adds the Cortex-A9 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/meson8.dtsi | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/meson8.dtsi b/arch/arm/boot/dts/meson8.dtsi index 2b0b3edbd896..2575a5835567 100644 --- a/arch/arm/boot/dts/meson8.dtsi +++ b/arch/arm/boot/dts/meson8.dtsi @@ -363,6 +363,19 @@ reg = <0x0 0x100>; }; + timer@200 { + compatible = "arm,cortex-a9-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-a9-twd-timer"; reg = <0x600 0x20>;