From patchwork Tue Jun 4 08:09:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacky Huang X-Patchwork-Id: 13684885 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 6AAC9C27C52 for ; Tue, 4 Jun 2024 08:10:07 +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: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:In-Reply-To:References: List-Owner; bh=bJT9euNxdmVc2MIVBlLJMt9thYr1BKvuCuNjODtjkhg=; b=YeY159vvhb8zcD wwhT3UNbIRnrw3dmy6c5ypnd29XaIcUylLAmY3aZX3FYbH+u6XGT34nymwbL5KIKY6ZNZ50gd0ASW iMZIHlvLRkv4J5IZVDPouTIAwaphV6x+jEg5tvR10TD3NcNtOfMcBwV9RnvIZsZNQELmUrGB1LMrc GcThQJsffzm0z9hqo3bUO6TaLACE5rS0TjZMM/V9JXgFvgltRvsu2wcMxPH0d8GLVg1Bx9oMMT37K 3A63sp+XqXh+IE+P1EcoYB2C9x5jxnvwZLUs3yOqPinWLFcMnvBIXGJNR+LieZlgfKkWN82nS3QHL Ue1s8bY5I7CTeTxgez/w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sEPEy-00000001cpT-0IM8; Tue, 04 Jun 2024 08:09:56 +0000 Received: from mail-oi1-x235.google.com ([2607:f8b0:4864:20::235]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sEPEv-00000001coW-3zv0 for linux-arm-kernel@lists.infradead.org; Tue, 04 Jun 2024 08:09:55 +0000 Received: by mail-oi1-x235.google.com with SMTP id 5614622812f47-3d1b806acb8so475928b6e.2 for ; Tue, 04 Jun 2024 01:09:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717488591; x=1718093391; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=n/JzBlxPKXhRdUDPgfYR8R62q7BdNA63+MhngvZbY1c=; b=BhnV2nDY/5U8eo/c629AtpypR2rlYnJQa+irkKomQFVJIesv6TkE5XOrYTYCWLX4aQ vHe94iqc3QIG12GDKmyZ96MzDIX59Owvs5GC2AUzVY5uhVkeICgkjWgQwPabcr/W7cJm 1jKQlvC78mWpRBck2NkpLW9enGFbd0UuixB6ohnhLvWUShGxnpzenriqiRJCbHm74yI+ DcCisvOipVoqzjNYVTrrHFdbvkVOoLuTIavyN55sBK2rPxDgF8XTzJlS6hqYuamkkgFr LoIanEnIdadV6ZhBFB56QubB1Z5sCZkDB9wGFC0812JaX+0tOLtdRIr0SHXmoRr3a1Jz budA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717488591; x=1718093391; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=n/JzBlxPKXhRdUDPgfYR8R62q7BdNA63+MhngvZbY1c=; b=D+VGWp+Orha5AD6KHyMqnaoC6TQaArpXyicB7UTmWp66nrBORwfuqJ48u6/C+jJzcv iWpMSquBuVC7FGgKhriRuOPHDwWVU49ayDyBIpRcxmTsT5iuWq/kRs/9b54lB5mal5JA mMlvVzdqcjkcXz5AMZXJAwGAOhgxG5B8g30zeizRuQPaMwYfBI3YAOINZBYMCQPHcIBJ GfE7PGnla+vPzUv50Ovk1bZlgKvqx67tjSA4r9BXyBL/BsYW5q/1QDByoBTHdWKt2kBb c8BaXgBy83BhHIY/GXuPpUaTUOHVoSlWmZhqfibkhW58wrBYqUwILvpQsj+eCkqGfaYk PBsw== X-Gm-Message-State: AOJu0YyPx2ipD1alyH4Xe47jlJePaPvJbg5Ep2qHaNsoOYozSBO2nTmG wEDt5L4B/6p95ewbB8tVS+Jd3SxcJ8O2llIRSVLLLgdYdHbS9tNC X-Google-Smtp-Source: AGHT+IFFCg2DPiMUJICWLo5W4SVKZNhaNvQA589SkV9jdqKnV5/xLOmdgqG+XDZkhXbK9TcxaAHIpA== X-Received: by 2002:a05:6808:b17:b0:3d2:c8:7efb with SMTP id 5614622812f47-3d200c87f13mr196016b6e.30.1717488591489; Tue, 04 Jun 2024 01:09:51 -0700 (PDT) Received: from a28aa0606c51.. (60-250-192-107.hinet-ip.hinet.net. [60.250.192.107]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-702425e20f8sm6594838b3a.86.2024.06.04.01.09.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 01:09:51 -0700 (PDT) From: Jacky Huang To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, schung@nuvoton.com, Jacky Huang Subject: [PATCH V1] arm64: dts: nuvoton: ma35d1: add rtc node Date: Tue, 4 Jun 2024 08:09:46 +0000 Message-Id: <20240604080946.80-1-ychuang570808@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240604_010954_019747_0FC9FD01 X-CRM114-Status: GOOD ( 10.81 ) 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 node on MA35D1 and enable the RTC module 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>;