From patchwork Mon Aug 23 17:16:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Perier X-Patchwork-Id: 12453265 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=-13.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,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 12BFFC4338F for ; Mon, 23 Aug 2021 17:19:08 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D8F2961501 for ; Mon, 23 Aug 2021 17:19:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org D8F2961501 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=h49l+wllFku+9I6SC/XgjglvzBU4d7rCSwxHIDNGTQU=; b=wJVKOVcPMhE6JO DFMg1YmqCB0TszuaPEekXcR8PiPg+zfB+iEnXRqokurhhP4Xm+isaMBUGHxZgAH0qY+QenSN1vApz +d+popPiuU1w8uWZpKF4Qi5fGBX6lzCQNVEmZVu+peDttShdONocmGh2VlEEaIG3GM7wDJ6/vTIU8 me/oFH2x96UB7qel3ljhDprxmL0gKIPul7kRQqsZsHwoGZd/DXK3T946bHoUwYQje/AF17fveB8rF u82BMUGaLrpRuVIdAlbUB6NjqKQ74U7ReXHYrRmIknMPyUo2o9uoru50GLV9co3iAWaRAy+orkX4D dMSbgKcpP7GYEdyZYhRw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mIDYk-000776-5b; Mon, 23 Aug 2021 17:16:30 +0000 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mIDYf-00074L-On for linux-arm-kernel@lists.infradead.org; Mon, 23 Aug 2021 17:16:27 +0000 Received: by mail-wm1-x32b.google.com with SMTP id x2-20020a1c7c02000000b002e6f1f69a1eso14623485wmc.5 for ; Mon, 23 Aug 2021 10:16:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=hxfU4hWH4ciaa87KiutkqT0bdAg+UYy0+Bwkt7eXstw=; b=DQE1rq5GI4duIJUWfHtryvxhKChz+3QryiGactvg2cIKNx15DUwvyFbBDVfkrwRqUw aM3Zyxzsb7VeEiSpxV5RVa0Kh7hrkRV9k0ALfQSv+4IWETaamKl9gwMY6mVC9RKd42Mr KjvN7NXAoZQNV/w8b40pHb9SCpy5zD1IFYguD4rOo2x3Km58NVhDYr7kehpmxeCI7c/O PMzgN+8L3oRSeyTOpyjUZHrHN0Wp3jFqX1oujMQxVquK4uAA/VgL87JkUaewrZbiym1I XZBnOjmDBXHy5B0p3yvv46Q9YuVFdKqNalssNVuXWYgQdzcJ3+84Cv3nkfDIRU7doTf2 fmnQ== 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=hxfU4hWH4ciaa87KiutkqT0bdAg+UYy0+Bwkt7eXstw=; b=QDqtRnOOKhP2aMOzF1+cuiDTRN5+qJrJ8pq4DIoICbV4C7CbVlH+k3b8YMB442xO1G bjASdhz+XqzDhoeImGSke1ffEe92Sne+M7lZM1w3J6WdtbzuIMJaJzw/rS8TeN1gDHmd +mqxAHnoTASvMT0jAmLmyup5K9/jfFMIMltJpWymLDOmgK4bjzZCX1GCUpHGYTLQ0mGy RLFlIMZ2vC+1x++zfUUXDMc4s+yMNJpIzk5h6Vm26N7lTsLJbeXwg5vjmUiNKACU7YHX ZLJ6sQZMJc67HRwjVa1bHvRhDZjRH2DJzT/ZFrcoU0kEQwj/JURytrLddS0JC19oND3W uuSg== X-Gm-Message-State: AOAM5311LmpXFWC+mJxLbThr3QMb0B6W9Rn2uabySi5pDJugIIQPnkEk PvSyI0GvueAMrL3rH14lyLJP8X1RTd4= X-Google-Smtp-Source: ABdhPJyaBw8itjnEkV5Aq7qtJ2SkPIx3F7l1lqtxafvtQhPgSwh3eIDXaSbpzuadoGHj6Xg/HDQa0w== X-Received: by 2002:a7b:c442:: with SMTP id l2mr17567600wmi.131.1629738983809; Mon, 23 Aug 2021 10:16:23 -0700 (PDT) Received: from debby ([2a01:e0a:a6d:a8d0:7ff4:8f61:5574:9f95]) by smtp.gmail.com with ESMTPSA id d4sm15854207wrz.35.2021.08.23.10.16.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Aug 2021 10:16:23 -0700 (PDT) From: Romain Perier To: Alessandro Zummo , Alexandre Belloni , Daniel Palmer , Rob Herring Cc: linux-rtc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v4 3/3] ARM: dts: mstar: Add rtc device node Date: Mon, 23 Aug 2021 19:16:13 +0200 Message-Id: <20210823171613.18941-4-romain.perier@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210823171613.18941-1-romain.perier@gmail.com> References: <20210823171613.18941-1-romain.perier@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210823_101625_843167_FC186942 X-CRM114-Status: GOOD ( 13.60 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This adds the definition of the rtc device node. The RTC being able to work with the oscillator at 12Mhz for now, it shares the same xtal than the watchdog. Signed-off-by: Romain Perier --- arch/arm/boot/dts/mstar-v7.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/mstar-v7.dtsi b/arch/arm/boot/dts/mstar-v7.dtsi index 982dba9d28eb..89ebfe4f29da 100644 --- a/arch/arm/boot/dts/mstar-v7.dtsi +++ b/arch/arm/boot/dts/mstar-v7.dtsi @@ -110,12 +110,20 @@ reboot { mask = <0x79>; }; + rtc@2400 { + compatible = "mstar,msc313-rtc"; + reg = <0x2400 0x40>; + clocks = <&xtal_div2>; + interrupts-extended = <&intc_irq GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>; + }; + watchdog@6000 { compatible = "mstar,msc313e-wdt"; reg = <0x6000 0x1f>; clocks = <&xtal_div2>; }; + intc_fiq: interrupt-controller@201310 { compatible = "mstar,mst-intc"; reg = <0x201310 0x40>;