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: 12413059 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 45CEBC4338F for ; Sun, 1 Aug 2021 16:12:09 +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 14F1360462 for ; Sun, 1 Aug 2021 16:12:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 14F1360462 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=GI0IEhX7eyTKVyMhaGkib4i0qfxdzWhJx5ZtOPgvjOY=; b=teYA57CPU64LCX yMNYAyj73+CoV6OGZO2YIgDkfKYA4HI5ePmlqPThh2B8XYz+xFiaJL9h6YNpNR8Emlouvz+l1ZxrJ c5BnBUnYiZ3zeQvs1Rz2lyS8wTNoTZJnlbNFAFRbRimaYojqSHKxy8OHUGjWChwS50oyAxzKtkl+B +vcB7hrpMVg07AN6CVvR0rewabNIUSh6sdb/SVJ+uWTvMV1ATuglVVoNem2iCU44FSHxRO+pHN2jn FRRYNXr+4lliMLrxV93FANRQ3U6JWtnOEop3FWDulZ2vmG4dqGJj/M364+Vg2fOPqeqO+qAgNkBOM tlKvbTyTCxAw58i8tBjQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mAE2e-00Dpkb-5A; Sun, 01 Aug 2021 16:10:20 +0000 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mAE25-00Dpet-5J for linux-arm-kernel@lists.infradead.org; Sun, 01 Aug 2021 16:09:46 +0000 Received: by mail-wr1-x436.google.com with SMTP id z4so18454173wrv.11 for ; 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=WwuCZRTNzRQO1KXSkrlsYiA0GR7MxR8joNAmmvWh2t9uiVY1ZH4XzAWva7srKsX6vb re1rCQJ4ZX+lQaArmndFnUJ5K+Xui8MIXbx3b262/4c33iNyYskOib3tI2R6H2Wvpbf1 NJRIzyfEZeyKZvR+MjgNU89ZWkgwzU0pdigh67eTj3RUjdMQ93TxmALSePAUDhzv04fw 4Soq7HYSRFG2PwGdv/lUILZ6MIj0nXUax0hFbd/GJbmaY3YVhu5IWL2ZCx/rnBTFV44Y 4RCpY2ivP8vby93QiA7M6vhL7xgkcTaW8QjshQQCScWep230l6NCwPneeQ7MG3iqn2j/ 2GPw== X-Gm-Message-State: AOAM530VlzoBfs2os4BS7GsRQgc3FDWSrzb2sARQ8ZmkY7P/QPRN8Im+ M0++Pwht7c552GumsGwkrVRAoD6NgVQ= 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210801_090945_240065_FFF91672 X-CRM114-Status: GOOD ( 14.28 ) 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 | 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>;