Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp4284089rwo; Tue, 25 Jul 2023 03:53:06 -0700 (PDT) X-Google-Smtp-Source: APBJJlFX7ZxOr1H/Bj+OdxqjbX34DdqvnNJlNQz3Yu27L+vDINlozBsfixmaGrF7PGM+KWudC6sN X-Received: by 2002:a05:6358:3423:b0:137:89ac:20d4 with SMTP id h35-20020a056358342300b0013789ac20d4mr7927146rwd.18.1690282386584; Tue, 25 Jul 2023 03:53:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690282386; cv=none; d=google.com; s=arc-20160816; b=0jPzsXXxU26QlSaF+SVjgTGkR2v9x2sSvz80B74Wl327Jl4qvOPjAdy1Z5hwGZx9R2 sJTBQrMzuMR1ViAS6e19fPXtcOhJLzRV9Yxft2uCb2MncKOiHmelzbDCqehCDFkNFG7R 1gdjGvlmj37mPjSsmbJxyonLls40OsIgRMf9WRiQ7FJBGnZQEvTS1pgzku4cgXhA8fEA k2Aa+MVi/+04ZDzjtjoqoxiC+KW2ap1sqQkaSb4EH5LAlLBmAUBRdB4UDiRmb0mL+w5H 4tnAt/z8dZn3rlTkp3ImpNz/OhpW81k8d6AlujpvblWIxUIbyLa7e9MJPNqN19fPAY2M GfCw== 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=T3nK+DokWCj2VO8/7XUDC6DlMNGIqlWXR9mqlJ/bCqLD0WXH3tDLfekpf1JQHxL5iL a9TgnlPszjJSVajDSubd+snbMrb1oL4Uek39Gzwy/2scSfLQSt2XOdhtH6UYttl87XNQ y14o0MD2VgwJcDI4Vq2wTxIkJAW3sacie2yEt2+ZqIj+094wTyRu2LMOImh2CDN0uARG QWCnP987CtIT9n+0apT3mNbIdr98kMIhWjnN8hYkkQgRt4y73skclnmqS5gGOFymq1fh Ng8kaix9PNSGvfpjrGG8UFzXeE0wpu3N431qwn/7JzKpxWyx9GejB7LWW/M9mKzGAFlm EAnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=cujy8UqG; 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 j62-20020a638041000000b0055f298b51d7si11558102pgd.162.2023.07.25.03.52.46; Tue, 25 Jul 2023 03:53:06 -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=cujy8UqG; 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 S233013AbjGYJky (ORCPT + 99 others); Tue, 25 Jul 2023 05:40:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231954AbjGYJkn (ORCPT ); Tue, 25 Jul 2023 05:40:43 -0400 Received: from mail-pf1-x432.google.com (mail-pf1-x432.google.com [IPv6:2607:f8b0:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F7DB19F; Tue, 25 Jul 2023 02:40:43 -0700 (PDT) Received: by mail-pf1-x432.google.com with SMTP id d2e1a72fcca58-66c729f5618so4989842b3a.1; Tue, 25 Jul 2023 02:40:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690278042; x=1690882842; 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=cujy8UqGDjuyBZJHn1z+l9lF/kWHcrNYBfxgTOA5WChq5oixPUID8eq47Zn8IWxCq/ PmoRCyAOv90ccO4UNR85LS2dTxLgmecAMP+s37EVv/KF+5fFO14QK4/uBIcy1dq7lYbv naG8u2A/Ve+3BxAZmoTAyU60nWOmKHF9eTJ9RL0EaT06/kDw/3ChOknw/98kpWLHBplq 2Sle8MMwZgox6Tz2cifS1ORN/SMyC8S1A0nP8mLu3TQg7bjgZmlHW9HJzRbCzF8Bjd7t mwoCkT02XhnIKvi2Q1CsiIcqgpNfQt7CqR/SYt7nLzNd1dSEKV0skG8EuMK6wnD7LNZ7 M2JQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690278042; x=1690882842; 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=CCrpJWRqbUDJFITqPFh7EYrlBM/QZ82fGpV8E54/YECcXUXr26nYrpsGBqgBlzkCtB +IPbyeyjgw+dJ2ejVpw9uhxQE51V2gsmgubRFDkcq5Hq2aplxe1Xl4rG2zkz6GZMjtlo kMQoxwZt/+wOavPzFCXkKe23hxaUGcgq92eO5kI6WfvPjJR78BQtB8KMpLVQ5oDRa2pS KD7ekkxpP5wvJWBMmbr3bWM14E+omtEgknctWonTBG7bcZxk1sr0CiBFPulApC1oPLUx +zyaoBRiaTtocDLvjjH9IhihrMPdWu0JcF+4bfOhiwr+7kHB7Zdm6V+hcVGbOanwq2ON P2OA== X-Gm-Message-State: ABy/qLbYkl9vFG0/uioDh0BrW4rZxHxQtnEas2BsPKD9Wk3NZS1lmyYC 6bJxWGGXF96sdB4QEs3JCStA55Twra0= X-Received: by 2002:a05:6a00:15ce:b0:67c:5c21:b430 with SMTP id o14-20020a056a0015ce00b0067c5c21b430mr14332040pfu.33.1690278042621; Tue, 25 Jul 2023 02:40:42 -0700 (PDT) Received: from a28aa0606c51.. (60-250-192-107.hinet-ip.hinet.net. [60.250.192.107]) by smtp.gmail.com with ESMTPSA id l24-20020a62be18000000b0064f7c56d8b7sm9121132pff.219.2023.07.25.02.40.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jul 2023 02:40:42 -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 v2 2/3] arm64: dts: nuvoton: Add rtc for ma35d1 Date: Tue, 25 Jul 2023 09:40:29 +0000 Message-Id: <20230725094030.32877-3-ychuang570808@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230725094030.32877-1-ychuang570808@gmail.com> References: <20230725094030.32877-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