From patchwork Tue Aug 22 10:09:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacky Huang X-Patchwork-Id: 13360454 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 13702EE4996 for ; Tue, 22 Aug 2023 10:10:46 +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=1lT4/iwYFe++ZJ xTBfbs+7GGXIn4FjBBv+Dq8BJYNPLmEv6pP4qsOVEp9o6fywqZW5KzD8cfowDtIdrbvgulQt2jAwz 9PIXxTqa2emldJkwIGL2kba/bgYll9A3RH01GuoZlU+YZg5Xa6OuNUmggocx5j24RzSuQTsc1vzeI I1ZaKnp+FKH0v3tfXnygGRVztnwmL5rfPlNZPTEMCnXKHp6+hdPbl8jYRGu0v2eRYYRSsMrjvfuhW aYqEoA2F7NbUH8qOj22u2nHNjiieANKeS9xjdMKfoZjg05JlhpGLBr3XOvv/gU03bP5pjVejtwB4q m/nXrxwEWDZkLeLOY0Zg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qYOL4-00FbT6-0k; Tue, 22 Aug 2023 10:10:18 +0000 Received: from mail-ot1-x32c.google.com ([2607:f8b0:4864:20::32c]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qYOKn-00FbOJ-1b for linux-arm-kernel@lists.infradead.org; Tue, 22 Aug 2023 10:10:02 +0000 Received: by mail-ot1-x32c.google.com with SMTP id 46e09a7af769-6bd0425ad4fso3084532a34.2 for ; Tue, 22 Aug 2023 03:10:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692698999; x=1693303799; 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=LG4MRSC7npmqM5v4ypEN2DwtIDGV9Ah4DOUM6MEVZUMKX9OK5uOLIj/PDYxLIPGVjd GTvzBbr8pp5v3vEJ38Q7gcAROE1ZW67QxdkltOtD0EBgqz/alqB06NKas/nzdN025zcf FIjH7z7RZbNfUZXTndqURJVV8j+kLD8HI6WrSreP5D7mUaQJffWZi+oNHo8j07WI8PXD SnxYAHHpptdO/k2Q+okKoKoEjA+79yDs3jWJGgxVqTqvYZ8f4kKSOAHn6fH2e+HbqWvO brzatVPWh9JRF6IxnY5y5oOwxV/ENlUcQyzTBqZBp70K2aOugnVo0u4iNgaTLpy47uFd O2Gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692698999; x=1693303799; 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=LwDGfqOKa1nwgGI3/VgXKoOwYY3+rYbbLCn8aAL8XI594icrkykW7/QYmPMunvLYMg j8z02iAq8x+sgGAHM1ifNUCyPzyPLx4F75lazhaQ/wTO4tyDg/1XLWLbUBnl1FW4P+3T e7ux7TxjWFsFmMTPcZJUUphe8DJzUSqdFOnEaV7UcnWIDHRWFQOM4SPeF/EA6wTDRKx4 dNnfJlTMTuEoZfdOCyl92qleIABe9FsTz5deq89uVmAh02vZNG2prTpll3u21TGz8WUz xXmhIiYAwY8ihaTIJl0sr9e8hcq3PKEBBYYGop8swt/7CcEPmoZDHT/o8D5slg6p6tzI LRkw== X-Gm-Message-State: AOJu0YxtBQ/IBpDmxQe8N//zJ90UKO5NDAUmRQXFtIxDBYUWX19B+w3M A2VZlIaJp0w29/YketaNsGM= X-Google-Smtp-Source: AGHT+IFqJs+8P0h5g5uFmdxTSWtrDryAe+2Ys7rZBcG+dYooxilXoWmF0cXX8oPdCL+ghCLEOrnOHg== X-Received: by 2002:a05:6870:610a:b0:1bb:7f9f:2fc5 with SMTP id s10-20020a056870610a00b001bb7f9f2fc5mr11455924oae.17.1692698999223; Tue, 22 Aug 2023 03:09:59 -0700 (PDT) Received: from a28aa0606c51.. (60-250-192-107.hinet-ip.hinet.net. [60.250.192.107]) by smtp.gmail.com with ESMTPSA id s10-20020a17090a948a00b00263cca08d95sm9278975pjo.55.2023.08.22.03.09.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Aug 2023 03:09:59 -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 v3 2/3] arm64: dts: nuvoton: Add rtc for ma35d1 Date: Tue, 22 Aug 2023 10:09:47 +0000 Message-Id: <20230822100948.1366487-3-ychuang570808@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230822100948.1366487-1-ychuang570808@gmail.com> References: <20230822100948.1366487-1-ychuang570808@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230822_031001_533090_8A5F158E X-CRM114-Status: GOOD ( 11.10 ) 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>;