Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2029705pxb; Mon, 23 Aug 2021 10:18:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzNZPu+Ji3wWC+pY+lrll6lDImU1eV92Yzh1jUiqRky5u2L5n3xbxwtUVF9kCfwBqmzzJND X-Received: by 2002:a17:906:f854:: with SMTP id ks20mr37312911ejb.421.1629739107720; Mon, 23 Aug 2021 10:18:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629739107; cv=none; d=google.com; s=arc-20160816; b=uAEr924/+HEujEei6CLlYGLnGPNNp/n0Qb+S6NUeNsSMSf/4Q4xxpKoLAtGJxb1sM7 b/YoAmoGJUFvKeobXmVOO/6zr2ERHAxGiwJpWxxqaaXALx4YtmvW9Qob/DinMSjaVVVU Masps/yUnliRwz1E5LsflIbp4h3jdGARDEWAFpm2vNlSihvu8l7MJnhDPIfwcau4uIx9 72VoUWbncV77SrBuuU4FBYZ0t2VLtZOeyO/98PiKT+E68AzleejDgMDUesmBE83cXpmb CS+GNvuOpZMfaC/05BEsdJJBDehM5OPnuZ/KVXIlA6LYqQoLjwZ8yikdKsuVOYTBI3Tf plNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=hxfU4hWH4ciaa87KiutkqT0bdAg+UYy0+Bwkt7eXstw=; b=QyXE/j6TLr8SuJ9Mk342TNjhtmyPVvzJqWKTUFE5kZqW6aA9KaW/pCbaMUa47tWRYj Q5TKn3GbjnktNftPoYvozO6NP/+J8/avRtF3VgiBwSZs7z0vm47TMv58SDTpPosPU4Ww Ra/V68nQnDTVUm+14Vt5wUEIg/VSspQ7k6wua0hrVrrDY8rcQ8Tk5m5HJ368pmEcxiSl nA+lx+kc4sy9TKJ7qN+cedE3PjQfa7iQNoeKwaG8KTLTg3KqTCcPCvm9r6zB53ODK9Qy KQPJiMoMNq63z2Qki1HXWyYfv/ADk0GP/CkZevc7BEQpPkmnOgvXoHOL1YRYazHKFjHU iwBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DQE1rq5G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y1si15396253eda.58.2021.08.23.10.18.04; Mon, 23 Aug 2021 10:18:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DQE1rq5G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232042AbhHWRRY (ORCPT + 99 others); Mon, 23 Aug 2021 13:17:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232060AbhHWRRI (ORCPT ); Mon, 23 Aug 2021 13:17:08 -0400 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26EFDC061757; Mon, 23 Aug 2021 10:16:25 -0700 (PDT) Received: by mail-wm1-x333.google.com with SMTP id v20-20020a1cf714000000b002e71f4d2026so330307wmh.1; 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=lycJgF48YsvixPoR7cQo8lqmqf9HVK0E3MGVjypPPueVxHnzGuv4Fr1Qvme/uRAyfd mq6LrFIbJ9k0p2SMfRQ+cdFMK8n0ahwAb9WyrmMWNbcuGHPpUvQ19tvhUfzenD8OS0P4 V23gXofAw/Hnj4LrqT2ePPqOyohDpYb/NR9npVT/8dHVnDhpQni/1J+OP0WHbx2kdkse ZdSpm0ax4jsQM7wSNoXKzIUT6fIBwkDnUsRFWxYN5dzLySCntFeX0Nt/u2U5Kn1WFNDN kkPJVvzzuMtBUrRXI5+VPkS7dk+WSkP2n26PM3/1BymlJI+Gu9yPau5dE0NmVbGJ80H2 Ogsg== X-Gm-Message-State: AOAM532U8ti67UgHfm3gmFO6GrNwn/vTDeeVbQ4zyHTopghqdYd4MMOz 37Ps8ocVTjPbzWHrPqP1iso= 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 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 | 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>; -- 2.30.2