From patchwork Fri Nov 23 19:53:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 10696351 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 349BC14BD for ; Fri, 23 Nov 2018 20:00:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 236852BF82 for ; Fri, 23 Nov 2018 20:00:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1742F2BF84; Fri, 23 Nov 2018 20:00:34 +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 ACAB32BF82 for ; Fri, 23 Nov 2018 20:00:33 +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=gQjn49lHkOVXxTv6UbmwJwxovw++hCga4EaQgCui1mA=; b=R/uAk0TpbVUaaK hIT9Xad9nHqJcEOe0iypZoMv8MIc8Iswog/WQqP9NpbHjGfoZ8DXFEIaclAgQABM5ypPsKdeXm+FX XxolRAyVO3i5NH4nHtaNf1cQINC1WVZGVW/qrqxsRaj8Q0osob0ylh4YCZOKSvLOVWRVnVTU4OD3O K/TBXFeLVwr9Ou4pQ/fhyRiAjpnDdYrjVRWfuzKgNMdCSokZQU48EyrtkEejoGotLIfTflDXb+rjR NLxgpmiDZhUMxm8K5NCDBFkqKBFjw0v6D9NVvZt0KhX8YEN+HqqVJszvOEdCkMr4GGtGZtYwZGFgF yZXxmgWXnG26SPFIcOoA==; 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 1gQHcn-000416-6b; Fri, 23 Nov 2018 20:00:25 +0000 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gQHWE-0007e3-54; Fri, 23 Nov 2018 19:53:39 +0000 Received: by mail-wm1-x341.google.com with SMTP id s11so12986927wmh.1; Fri, 23 Nov 2018 11:53:29 -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=M61cDCLQgQA9sNaBzxtJV4zAi7xq2DD5D1gWlGJ8y7Q=; b=WF3sxssQSCYAnuy6c55yz7y0QR84Us0Tl1uC09Ii4PgQxTdGrS3/VqOYFPBvZ0mc21 PfTAOFgwskn2x6Ua3bJOmymPPJy2ZDLTDOh9Mrd70JItG0q+FDx6YQmWEMw9GgZX0ySf EMmH7z4JL3hV2w60YupkN/JC2MDT3RaBVSv9vXuXhiahyWLpdU58FsIZMMS/gou0yCv/ /rHDGrpXKmmtNTnkFlRwz7E3y6DBgoqdW/ZRxRUFxw8Ud2thQANtwfE7Z96SA5uzTSDh aSPk6Xp4w12SYmH8l+42EU5Ajwjf4Wif2W4Ts9TwaujAtfyxQyWsLaclovND6Hfemg+3 UDWw== 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=M61cDCLQgQA9sNaBzxtJV4zAi7xq2DD5D1gWlGJ8y7Q=; b=SOoDXVqiOKsDLW9yGDaFfNwmG72GnCCsLmUROJAZkAL/FSKRodcXaQRBwkuGZUonDB YJ5+8wmD3ZNEDRfuM8JhxGZo+Eyo4Crv/IDcF2agivQXZdWXzTB6m9LXHl6gALsu25qC NVWHpPDU311Di3HhVArWR+nga7zYo5fSvO90ULxvBgSJO3tQOD21tvNQaqQAXrj/HSzs gA5tqyqQUE1Cu+rgV/JF/X4XKc+HC15nxiS8JJeWS4amZ31SLD2P9W2pYgKPoalWQH7/ V4cDpiWVhBX6W6wnw70ux2ZPeLo/N/aynhqfrlerH/it8kYxN77Em0uC0iJ0csGadGwz Sf8g== X-Gm-Message-State: AGRZ1gK+goYdJMYhwZmnIxwXAsllv4gZ11GnnEkhPpsqPFpdmZljCenx FfY6obIW4KUimihkv33I4cw= X-Google-Smtp-Source: AJdET5eVOW+nRFP4Nitw9c3pyyJV/5bFIqiget0Vkz147/tONK3RusfFunjDix6qGT/EHcoLi0pJMA== X-Received: by 2002:a1c:730b:: with SMTP id d11mr13726144wmb.29.1543002807667; Fri, 23 Nov 2018 11:53:27 -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.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Nov 2018 11:53:26 -0800 (PST) From: Martin Blumenstingl To: carlo@caione.org, khilman@baylibre.com, linux-amlogic@lists.infradead.org Subject: [PATCH 3/6] ARM: dts: meson8: add the ARM TWD timer Date: Fri, 23 Nov 2018 20:53:08 +0100 Message-Id: <20181123195311.4578-4-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_115338_191802_3B583085 X-CRM114-Status: GOOD ( 11.59 ) 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 SoC are using four ARM Cortex-A9 cores which come with a "TWD" (Timer-Watchdog) based timer. This adds support for the ARM TWD Timer on these two SoCs. 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/meson8.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/meson8.dtsi b/arch/arm/boot/dts/meson8.dtsi index 28b9f6779993..2b0b3edbd896 100644 --- a/arch/arm/boot/dts/meson8.dtsi +++ b/arch/arm/boot/dts/meson8.dtsi @@ -362,6 +362,13 @@ compatible = "arm,cortex-a9-scu"; reg = <0x0 0x100>; }; + + timer@600 { + compatible = "arm,cortex-a9-twd-timer"; + reg = <0x600 0x20>; + interrupts = ; + clocks = <&clkc CLKID_PERIPH>; + }; }; &pwm_ab {