Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp8932382rwp; Wed, 19 Jul 2023 18:40:30 -0700 (PDT) X-Google-Smtp-Source: APBJJlHGLzqEUR1nd5CTSQDrDd/25ctMazIyEbLvMA6DMM4CYaPUerfVs6lWi3nND1iGDeqmrBVj X-Received: by 2002:a17:906:520a:b0:992:b020:ce4 with SMTP id g10-20020a170906520a00b00992b0200ce4mr815190ejm.51.1689817230345; Wed, 19 Jul 2023 18:40:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689817230; cv=none; d=google.com; s=arc-20160816; b=tEOcWmBftcxdYQn/NxxiyyxHO6HPAOh+RugKzxONHg/z3ULraMHudUuvHEXmXO1KKx lEdoQY0MiU+fqlbOqbv4+wiOD8RDkmdjX2Dddw9Io0h49UK3BCyahZnwYsR/DadJs+P4 e4mcG2oz1Ss+n5nr8UTDADJ6sYsrNajbRev1uzNdwufmaU96Ba+zlc/PeOIeJJjGaqae iJIaBKSgpsG+d9EzSvyxPjPVTyRzfDgnEf6jo48e//XzjJQQgaQBUV8kNz0bY9GgNqXy 0yB2c9YNZ7pxcCe6mJaLq0v+VrgDSkN+ps/2Kx+Nw+EXAJJSQ3cAgYs75rQH7UePb/Hn v0bA== 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=WDGT67Q+ic1nejZuLGS46+I/MVwpubEr1pR0ugjy0IU=; fh=CuOU2zHMRvKBIxU3VBdQp/xZQgB1IU6H7AgQjHd0CZ4=; b=jemYwDKHBYorB/J/ucUhlC5hTSC122mk0hICXW11ZENToMPgRy0w7Nd13aMKm7xz0e f8uk8aErwR3aGlYQNb+GHYt/BdnVNkDSk9nC4TzKN/fFUJcREp25aAeFXkh1+kaHzTZK 0xsL4hNWgQEi7NFqNniGAD9ua8qYgjwCHCbOycLTM6L9q1HNTVe2kwnLKfxaonC6mA16 HaimNSSzn4KaN9kOw1YKHs/vvESqOwD8NW6mRRsHd01/oWNmmFsxzb/HLAfKWQw75lPt /wbjGNeJ32eeYby2LnuOZ9XGBkLiW1LFP6IOBBzDSv09SqlJ1AM7re2Zjx0XvjNbDewL kUaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=eqUPBahj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q18-20020a170906771200b00988b90f50b3si3369786ejm.607.2023.07.19.18.40.06; Wed, 19 Jul 2023 18:40:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=eqUPBahj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S229864AbjGTB3C (ORCPT + 99 others); Wed, 19 Jul 2023 21:29:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229808AbjGTB25 (ORCPT ); Wed, 19 Jul 2023 21:28:57 -0400 Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B894726B2; Wed, 19 Jul 2023 18:28:38 -0700 (PDT) Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-1b9ecf0cb4cso1593975ad.2; Wed, 19 Jul 2023 18:28:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689816518; x=1690421318; 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=eqUPBahja8GTfVR6T6fFNkk2833efQusNbZx+/WiUnuJ4kY/GBoQIUsDwZ/MP3Lusy F/ZMLqgaEQ9OL4AOnwKeWYtcAfbDHs5M195JDiqgIlbeyJe7ps3obAo2OPZCAtQGtIUl y+mfY0MDjUmB1+7V/1DuBg5bJYAsKbms9z0SCDU/N3vMohYXzS6D6RCyev1T/K+HnVVI E036YQ3eCNDNCGP+Z6JBnea7Nx9ZlSZNQhJYr7shN/AcUPTcdeWA+4+FnM6mvzHwHv2K lWNXwHnd3PrMc0g/jjNZrA86u58+hOYGuZfrCs1l1EOxU2lRshLeCVZLfe4k3zmivwNM zvbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689816518; x=1690421318; 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=MXDg/hJWZnwcTUWWfWmgnioSAe1GOpbq814Ibseq39Gdxi5zTcAbRUIR+OXCfripLP +ESiiXkG7k6nAKLAsuBiQ7gyZ16nnOcEZiKJ1i0iWaEIuR+YZfew8ilmon/iziiCcfnj kyesEz+rrpcvRnfiZd2zDglbwFjbzcPF/nCjuxc2TE+b8wltqMT/3GIp3TZ2V1Faq2IA 1iORiimRxaZMK3T1s5GwU0Q5Hy/BFlCjzkuzN8JZ4fBnbIa1kPDxPkdTQXgZ6CM51uTK 8xtwBBsIiRat/Vox9NQ6EX0uxfoLjo1qScj5ulY7H7FNuG9nu3GFFbEH5WtPnQZJGc86 gNtQ== X-Gm-Message-State: ABy/qLYY7Mqx3X0SDfiYNr3iXct6DEMtFmcp/6S1TBh+bMISlxf+ucT1 eNc4GptR5UX2J7n9DPsoMOI= X-Received: by 2002:a17:902:9689:b0:1b8:8dab:64e8 with SMTP id n9-20020a170902968900b001b88dab64e8mr3762203plp.36.1689816518213; Wed, 19 Jul 2023 18:28:38 -0700 (PDT) Received: from a28aa0606c51.. (60-250-192-107.hinet-ip.hinet.net. [60.250.192.107]) by smtp.gmail.com with ESMTPSA id jc18-20020a17090325d200b001b1a2c14a4asm4673998plb.38.2023.07.19.18.28.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Jul 2023 18:28:37 -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, soc@kernel.org, mjchen@nuvoton.com, schung@nuvoton.com, Jacky Huang Subject: [PATCH 2/3] arm64: dts: nuvoton: Add rtc for ma35d1 Date: Thu, 20 Jul 2023 01:28:25 +0000 Message-Id: <20230720012826.430026-3-ychuang570808@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230720012826.430026-1-ychuang570808@gmail.com> References: <20230720012826.430026-1-ychuang570808@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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>; -- 2.34.1