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: 10696355 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 500425A4 for ; Fri, 23 Nov 2018 20:00:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3EC20286AE for ; Fri, 23 Nov 2018 20:00:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 32A6D2BF83; Fri, 23 Nov 2018 20:00:55 +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 DE39C286AE for ; Fri, 23 Nov 2018 20:00:54 +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=oHrZjJY2hWnlvFfVUjXAK/ufzIMDWX5D1w7CBMbJ+nY=; b=CHCewhcEAWlEZe C/O1OqEiYsOzpMKOMH6rbFRmbwiGe0lrBRqgpxfIW5fyWIa336qg6Hi8ZLYwXDiC6auzpO2aHJWm5 YB9G6ctnSxDtM5gmSFvCYxbkXPZ84Ptl3LZrHJ4EiCLcZCkXZomWKE2DJmHqp1JhiP8wgXngy9Wlt RXCuRrhhPKQYQAlXsHmlW9fWyX+RQYBokcfYvrEk075IXzn9RtJyE2r9Vt17/bafx8Tb3wfcDrgGp XOFovgWkoiBvBJ9B4VbFn+yWqTsXiYB0Qi+vsuR0kjBi7JShooBtAIYd+aqWg9s6A619NE57FDTkO f/pDYpGcBsPtPW/UMA4g==; 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 1gQHd9-0004YN-7O; Fri, 23 Nov 2018 20:00:47 +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-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 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>;