From patchwork Fri Nov 23 19:53:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 10696335 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 3B9125A4 for ; Fri, 23 Nov 2018 19:54:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2A80F286DF for ; Fri, 23 Nov 2018 19:54:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1F1662BF0D; Fri, 23 Nov 2018 19:54:23 +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 C92F8286DF for ; Fri, 23 Nov 2018 19:54:22 +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=YUlxQjwZ4BWHS7nWrXzb2yiMZD3bDyGl6d2L+FddgPc=; b=uPGeroEWLxFNCA cbQWLaOK9otczt1qsd9YlZwPO7xJeFQolkmMs6mGaYtGergPza3udKx+1cNIIBn5db4s9fCIcikLv OVxSEEskwkTJ8pkTRMHMkw6t0x6ALYZw7J8N6DCu6CzT0VTbb/MYsFFUTRKgoriCreSjNX04V3FGz S7dRCprL6EYarzarF7iI5BKiIQJcuBv7razuvM1HP04aukY1ovLl3l8e6NfPCCeda6tR0TU+htJpX KLkFWNkk83+AIQu1xTqsTl/keiG2EDcNwG5jhWlTUVLUzc8KRaS5UG9IuUvBPgMsgkGcqxFPIwA9z RgaXIxltxlms1iNOZTQg==; 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 1gQHWv-0008NK-Ib; Fri, 23 Nov 2018 19:54:21 +0000 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gQHWH-0007eA-QY; Fri, 23 Nov 2018 19:53:45 +0000 Received: by mail-wr1-x444.google.com with SMTP id r10so13323028wrs.10; Fri, 23 Nov 2018 11:53:31 -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=HrHiabzypDdx9sXk/8fCSUY/mMOsDJBAnI+t/Q5NOr4=; b=Ej+/3NqgYL6iugilKeZ6Fxa/3llufEJG0Vo7RoAS8oiyiiZgNi4/WzAvt9uvp/B8oW D0fqd5SH8FwvgbUbOLfEbbqwekCPR98rdtwAuk6KT3VPVxmhb//Sm2+nR7QSZGJGQPQ+ RTEW/BiVNn8L90xVaIDwGCJcx/g/WYZxoDucIf0Pr0fZUIJuE5Qc++mII0051jGS9IUF tqIaJot+ETjObqwUr17KpH1ZhaWlO0xBjT8p74Jt3oMACzKEF1nS7NIEELd1kR71h+ok BFWGjqWGJatJ9hJEqcH89yU1YvHOZNEfEWBR3IFka/aw9EYVOp9BMYfYoN/AuwHUqveC +mZg== 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=HrHiabzypDdx9sXk/8fCSUY/mMOsDJBAnI+t/Q5NOr4=; b=sOc10FNvAYug+yQiNMIv4i57dyW28jWw3qIaIBvmAl78Petdc+Ff4hhfADSDXguBU1 hts/2edOHp9FyeF2f3nlJrptUUAuaTri+x2ZK25tQgu2ydegUEqujTF4q7B7TyhN1CPP KjhxUzto+XCKdQdH3avuIReks0UM2ekYnpkf04oVhtJHiwvhVBpCE69OtxMQrQFbt4re UyM0yaDlHlQbBazzjOn4NGZ6cQLhZTYIAS1sKPAzRLpizQwJL/zYE38rcRIBlSpPUKka DPf5WlXo9uBhByE5g8K8l798PXubHHieSIg0MxUikdknnFIcURXDhy0LmNdpc8rxFDJk f4hg== X-Gm-Message-State: AA+aEWap/k2qk7RGTsj8WpnI1Ju56d1JNHwvcFN+KzrcAqCUleorroKI wDid87yFvqjdzNGFwqgDnhk= X-Google-Smtp-Source: AFSGD/UlnQrPsB5Ujyi8MQoIsaH/g/I5gwf206RcLXExa2vxtpmhmi4D+pHqfQGRV2c9V5MDmCbpjQ== X-Received: by 2002:a5d:56d2:: with SMTP id m18mr16323404wrw.113.1543002810075; Fri, 23 Nov 2018 11:53:30 -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.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Nov 2018 11:53:29 -0800 (PST) From: Martin Blumenstingl To: carlo@caione.org, khilman@baylibre.com, linux-amlogic@lists.infradead.org Subject: [PATCH 5/6] ARM: dts: meson8b: add the ARM TWD timer Date: Fri, 23 Nov 2018 20:53:10 +0100 Message-Id: <20181123195311.4578-6-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_115342_345467_9C7665F4 X-CRM114-Status: GOOD ( 10.90 ) 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 ARM Cortex-A5 cores which come with a "TWD" (Timer-Watchdog) based timer. This adds support for the ARM TWD Timer on this SoC. Suggested-by: Carlo Caione [ rebased patch from Carlo, use IRQ_TYPE_EDGE_RISING instead of IRQ_TYPE_LEVEL_LOW to prevent "GIC: PPI13 is secure or misconfigured" message during boot, use pre-processor macros to specify the IRQ, added the correct clock, dropped TWD watchdog node since there's no driver for it anymore ] Signed-off-by: Martin Blumenstingl --- arch/arm/boot/dts/meson8b.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/meson8b.dtsi b/arch/arm/boot/dts/meson8b.dtsi index 6b097ab8637f..a3a5649e32fa 100644 --- a/arch/arm/boot/dts/meson8b.dtsi +++ b/arch/arm/boot/dts/meson8b.dtsi @@ -349,6 +349,13 @@ compatible = "arm,cortex-a5-scu"; reg = <0x0 0x100>; }; + + timer@600 { + compatible = "arm,cortex-a5-twd-timer"; + reg = <0x600 0x20>; + interrupts = ; + clocks = <&clkc CLKID_PERIPH>; + }; }; &pwm_ab {