From patchwork Fri Jul 2 06:54:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: WANG Xuerui X-Patchwork-Id: 12355585 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 494A8C11F6E for ; Fri, 2 Jul 2021 06:55:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 37CD361413 for ; Fri, 2 Jul 2021 06:55:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230228AbhGBG5z (ORCPT ); Fri, 2 Jul 2021 02:57:55 -0400 Received: from [115.28.160.31] ([115.28.160.31]:41740 "EHLO mailbox.box.xen0n.name" rhost-flags-FAIL-FAIL-OK-OK) by vger.kernel.org with ESMTP id S230101AbhGBG5z (ORCPT ); Fri, 2 Jul 2021 02:57:55 -0400 Received: from ld50.lan (unknown [101.224.80.218]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by mailbox.box.xen0n.name (Postfix) with ESMTPSA id CE5E860110; Fri, 2 Jul 2021 14:55:21 +0800 (CST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=xen0n.name; s=mail; t=1625208922; bh=1D8le36pNvIZZEOHon55LA/UfimI8BBPaGuhrlNC+m8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=d+4KzXFqvJHIUZj/FNrN/h6McaJMfj/iz1jdmsWRNstwpJhTalklR/XNRCPGXBM5/ q9XoKJF2KsAwd2bhxucQIVPepCc1nthAlmbnZKVKPhUzaQug7ViwB+VIGNFqtjJj5C a5s6FHQ6b9sAlIFcFm8a+I0hj0zrIu2M0ZU8lRSE= From: WANG Xuerui To: linux-rtc@vger.kernel.org Cc: WANG Xuerui , Jiaxun Yang , Rob Herring , devicetree@vger.kernel.org, linux-mips@vger.kernel.org Subject: [PATCH v5 5/6] MIPS: Loongson64: DTS: Add RTC support to Loongson-2K Date: Fri, 2 Jul 2021 14:54:50 +0800 Message-Id: <20210702065451.1175356-6-git@xen0n.name> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210702065451.1175356-1-git@xen0n.name> References: <20210702065451.1175356-1-git@xen0n.name> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org The Loongson-2K RTC module is now supported, enable it. The MMIO address is unclear from the Loongson 2K1000 user manual, I took it from Loongson's out-of-tree fork of Linux 4.19. Signed-off-by: WANG Xuerui Tested-by: Jiaxun Yang # loongson2k Cc: Rob Herring Cc: devicetree@vger.kernel.org Cc: linux-mips@vger.kernel.org --- arch/mips/boot/dts/loongson/loongson64-2k1000.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/mips/boot/dts/loongson/loongson64-2k1000.dtsi b/arch/mips/boot/dts/loongson/loongson64-2k1000.dtsi index bfc3d3243ee7..4a04e1dc5fda 100644 --- a/arch/mips/boot/dts/loongson/loongson64-2k1000.dtsi +++ b/arch/mips/boot/dts/loongson/loongson64-2k1000.dtsi @@ -52,6 +52,11 @@ package0: bus@10000000 { 0 0x40000000 0 0x40000000 0 0x40000000 0xfe 0x00000000 0xfe 0x00000000 0 0x40000000>; + rtc0: rtc@1fe07800 { + compatible = "loongson,ls2x-rtc"; + reg = <0 0x1fe07800 0 0x78>; + }; + liointc0: interrupt-controller@1fe11400 { compatible = "loongson,liointc-2.0"; reg = <0 0x1fe11400 0 0x40>,