From patchwork Sun Aug 1 16:09:21 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Perier X-Patchwork-Id: 490482 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=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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=unavailable 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 4F65EC4320E for ; Sun, 1 Aug 2021 16:09:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 332A260F55 for ; Sun, 1 Aug 2021 16:09:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231749AbhHAQKB (ORCPT ); Sun, 1 Aug 2021 12:10:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231809AbhHAQJx (ORCPT ); Sun, 1 Aug 2021 12:09:53 -0400 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4210C061798; Sun, 1 Aug 2021 09:09:43 -0700 (PDT) Received: by mail-wr1-x42f.google.com with SMTP id j2so18380877wrx.9; Sun, 01 Aug 2021 09:09:43 -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=Irrd4jtOn6498HfdXqzrUQsx/bjOrWlV0M76X3ljkdk=; b=gs6U3eiL1KjltW6y4MiFi5EsWYHt4Yx/XntgKQ/n1j8Xk8hOZuoLbVFBD53MBo4lFC yc69MxSsOe2qmcJlqaMQKb8qhVOGH0GrTKydZ4TS/RzYDFWCfGdP2u2q5dJ0n0N9qYYs nRBsuOLZU+tyJ6dBhoKMJfoA5wZrFq9eo3ZWxQtdeO8HBgmgl2hgXAUHlPMEpYXlh3rc vdFSi6yy6BjDshszY1wSyOR7/eNtzkbcW1Ctzxx8KO/NslfEm6WdEKQnu6JcbQ7rmtaF SNOVIxVNmYwSx3CF4eWoW5N3e8O72QhLPWykd+fb3xD4ThwiT+4QN+95uLrZEeoVatxe ihbg== 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=Irrd4jtOn6498HfdXqzrUQsx/bjOrWlV0M76X3ljkdk=; b=K4t9KCz35QKLTKqHqnhbN1gBX76+PPfsBtgdTBLqmw3iTDFQbsUaRSdxuQT+K++OUE 5RXhu/gcUTYNaqGzqMb0R/aEAo1jtT6KEVDjmXngCq84nFxfpqB6KKB3lOYiiTJ7ISNP 13sIFIytPHn1eqDSbcAySNLs9ezD/wzoIxtKAhf9PRAx8H7bCRjQZ2zulZGT0hBLDBho uguCy311xABpcOY9UOyEQ2O7Q4EyyWvm7wNmjvSBJkVOHzFS4twQWORKxXyLhQvZMGZ2 JS5PFBeCDgT3+XbaNU5DPQaF/XXwVaA1nAXNMi0fn5Z23pAIflOaFBrDPy6eyXKylEXf rlqw== X-Gm-Message-State: AOAM533hVTfosZi0PT9O8qY7QT9bu0SRfS2MKfBgfv87cngU1Meb5LEl svB2gBLmuT24188Dw6J9F+M= X-Google-Smtp-Source: ABdhPJxTowqFvdlDg1aQ9rOi2w93d2I1rV4UdL2UhVKGao2Yfhw8OUHCTcl/QgtVW/RkBvHWfwsSBA== X-Received: by 2002:a5d:6908:: with SMTP id t8mr13551915wru.421.1627834182374; Sun, 01 Aug 2021 09:09:42 -0700 (PDT) Received: from debby (176-141-241-253.abo.bbox.fr. [176.141.241.253]) by smtp.gmail.com with ESMTPSA id 140sm7875835wmb.43.2021.08.01.09.09.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Aug 2021 09:09:41 -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 v2 3/3] ARM: dts: mstar: Add rtc device node Date: Sun, 1 Aug 2021 18:09:21 +0200 Message-Id: <20210801160921.233081-4-romain.perier@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210801160921.233081-1-romain.perier@gmail.com> References: <20210801160921.233081-1-romain.perier@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.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 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/mstar-v7.dtsi b/arch/arm/boot/dts/mstar-v7.dtsi index 982dba9d28eb..1d4419aee67d 100644 --- a/arch/arm/boot/dts/mstar-v7.dtsi +++ b/arch/arm/boot/dts/mstar-v7.dtsi @@ -116,6 +116,13 @@ watchdog@6000 { clocks = <&xtal_div2>; }; + rtc@2400 { + compatible = "mstar,msc313-rtc"; + reg = <0x2400 0x40>; + clocks = <&xtal_div2>; + interrupts-extended = <&intc_irq GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>; + }; + intc_fiq: interrupt-controller@201310 { compatible = "mstar,mst-intc"; reg = <0x201310 0x40>;