From patchwork Mon Sep 25 07:02:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacky Huang X-Patchwork-Id: 13397302 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id D2931CE7A8C for ; Mon, 25 Sep 2023 07:03:42 +0000 (UTC) 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=r0LVOsX2UixPURBIudozXN5MaHACcV3V6OGntys9KRo=; b=jt1VOiKFIvdA31 6XJ0RVlzsQP8eGkmypiuuwkwXcXUpTWDm0om/HXdxIXrb/IJ8zIJVgXcdRI63bZ0+8DbcYMsJ7XNF rlCaUG8zwFLsCLZPTJ1R5nk4N9Od/hVvSiYsLLjryBivBcZ07gRFmZjgvmrFvns7rCBODx+SU1Acf siAB9IU9vLDm4BffBkaxcKlY+pojoOQgGMvzfEyf7s29kOU6A3oVrGHc0B3id7/Mw27AJe8WCDVkI 6kZzEqjJCNjXmeArrqnb2VDjmDSSgFrZQnp+9/5pJ0oguceg2K+AKwoiJSJvfkZEVBRpI9HDS4fsS cvDLx4EeLvlD2bnVbizQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qkfci-00DVrI-2i; Mon, 25 Sep 2023 07:03:16 +0000 Received: from mail-oi1-x22c.google.com ([2607:f8b0:4864:20::22c]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qkfcc-00DVnF-2D for linux-arm-kernel@lists.infradead.org; Mon, 25 Sep 2023 07:03:12 +0000 Received: by mail-oi1-x22c.google.com with SMTP id 5614622812f47-3ae015b6441so3934742b6e.1 for ; Mon, 25 Sep 2023 00:03:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695625386; x=1696230186; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=WDGT67Q+ic1nejZuLGS46+I/MVwpubEr1pR0ugjy0IU=; b=bimIdrPlohESlOnlqVAGf/QHxTb4xlHiN1H3XKAeWzBgX1CFaFyIpVUfcPayOFogMV 4wyzb6tKSHCdad3iU7vNodl4Rbg4ZClN5wmMFovV+/JFUuC/iP7srtZJY+aKHkQht8Sn RtWUpYM91jE4hbozusvXQgxVy/KXrz3dlJXVKW9cHjm5OtGqUpB0xF5dJ7GKQHDis1B5 SnN1pdxhPtoMVgA91/8rqDNqVff0LaHa6OZN6fN4iOFSqXM8DHVAVKGO1msMDBtCS6+g 2BT05U5PXKNDDVi3ku9qnLRCpBxl+wuZd6ax4/yodF+sKsFeDZ1/67lgOjIqJx57JTer 8Bbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695625386; x=1696230186; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=WDGT67Q+ic1nejZuLGS46+I/MVwpubEr1pR0ugjy0IU=; b=F2qV2WQhDnYWmvUvALLjbnzedrdaygovLWZAnvRIbXhZ1a6h+4vRZ/4AA1rZ84BeSb +3k8I/FlQ4cJZGCtWhhZfLevApBUtIhSATF40mEQH8z1tXuUKcbc0gzGcSvKleC8SlS1 dCsJ8veR+CE10d259gExS7DTp0ad/UBrG13rRCUA9Zwqypqo5ifXGl4QGhiOJf8HhSaE 05F6Lji2BTOUIphvlQra1YCW3r2ItuuoAoGyknwOMCINgXjk3nL3sz1H9B+4dC3He9xE YDbpf7vL4fwZMxxzN8XQWWoRfS82iGuZ5IneWyE2NEAl5qHY+ipen2i+ELt52n8G0Huf m4Zw== X-Gm-Message-State: AOJu0YwIaLPlF2KUsQQlp/xFYRpdMBw6hNh5FbV310GbMMKJzryocinb mbVC7kebtLAFlUYxfqzVzNk= X-Google-Smtp-Source: AGHT+IGuIf5mBPt88+M6/YIuuNJKLE8C/47l0VkV0khzucuV5WQH4sTDrzNExeLrUZwNC2wFVnVfUg== X-Received: by 2002:a05:6808:23cc:b0:3ad:fcd5:3dd6 with SMTP id bq12-20020a05680823cc00b003adfcd53dd6mr9828065oib.13.1695625385867; Mon, 25 Sep 2023 00:03:05 -0700 (PDT) Received: from a28aa0606c51.. (60-250-192-107.hinet-ip.hinet.net. [60.250.192.107]) by smtp.gmail.com with ESMTPSA id y5-20020a62b505000000b0068ffb8da107sm7349833pfe.212.2023.09.25.00.03.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 00:03:05 -0700 (PDT) From: Jacky Huang To: a.zummo@towertech.it, alexandre.belloni@bootlin.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org Cc: linux-rtc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, mjchen@nuvoton.com, schung@nuvoton.com, Jacky Huang Subject: [PATCH v4 2/3] arm64: dts: nuvoton: Add rtc for ma35d1 Date: Mon, 25 Sep 2023 07:02:50 +0000 Message-Id: <20230925070251.28-3-ychuang570808@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230925070251.28-1-ychuang570808@gmail.com> References: <20230925070251.28-1-ychuang570808@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230925_000310_739217_65DC5DFE X-CRM114-Status: GOOD ( 11.01 ) 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 From: Jacky Huang Add rtc controller support to the dtsi of ma35d1 SoC and enable rtc on SOM and IoT boards. Signed-off-by: Jacky Huang --- arch/arm64/boot/dts/nuvoton/ma35d1-iot-512m.dts | 4 ++++ arch/arm64/boot/dts/nuvoton/ma35d1-som-256m.dts | 4 ++++ arch/arm64/boot/dts/nuvoton/ma35d1.dtsi | 8 ++++++++ 3 files changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/nuvoton/ma35d1-iot-512m.dts b/arch/arm64/boot/dts/nuvoton/ma35d1-iot-512m.dts index b89e2be6abae..b3be4331abcf 100644 --- a/arch/arm64/boot/dts/nuvoton/ma35d1-iot-512m.dts +++ b/arch/arm64/boot/dts/nuvoton/ma35d1-iot-512m.dts @@ -54,3 +54,7 @@ &clk { "integer", "integer"; }; + +&rtc { + status = "okay"; +}; diff --git a/arch/arm64/boot/dts/nuvoton/ma35d1-som-256m.dts b/arch/arm64/boot/dts/nuvoton/ma35d1-som-256m.dts index a1ebddecb7f8..9858788a589c 100644 --- a/arch/arm64/boot/dts/nuvoton/ma35d1-som-256m.dts +++ b/arch/arm64/boot/dts/nuvoton/ma35d1-som-256m.dts @@ -54,3 +54,7 @@ &clk { "integer", "integer"; }; + +&rtc { + status = "okay"; +}; diff --git a/arch/arm64/boot/dts/nuvoton/ma35d1.dtsi b/arch/arm64/boot/dts/nuvoton/ma35d1.dtsi index 781cdae566a0..394395bfd3ae 100644 --- a/arch/arm64/boot/dts/nuvoton/ma35d1.dtsi +++ b/arch/arm64/boot/dts/nuvoton/ma35d1.dtsi @@ -95,6 +95,14 @@ clk: clock-controller@40460200 { clocks = <&clk_hxt>; }; + rtc: rtc@40410000 { + compatible = "nuvoton,ma35d1-rtc"; + reg = <0x0 0x40410000 0x0 0x200>; + interrupts = ; + clocks = <&clk RTC_GATE>; + status = "disabled"; + }; + uart0: serial@40700000 { compatible = "nuvoton,ma35d1-uart"; reg = <0x0 0x40700000 0x0 0x100>;