From patchwork Wed Aug 9 01:15:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacky Huang X-Patchwork-Id: 133021 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp2507385vqr; Tue, 8 Aug 2023 18:53:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFrWw7pB2pExiAlZJKn8AFeS1iJ0WKq8SATFtEbWDeV3XpW7WVz670oe3mKqBM+4AmrferW X-Received: by 2002:a05:6871:811:b0:1bb:ba26:d60 with SMTP id q17-20020a056871081100b001bbba260d60mr1783924oap.17.1691546024421; Tue, 08 Aug 2023 18:53:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691546024; cv=none; d=google.com; s=arc-20160816; b=YBrnlL1SrmZjEKy5YBLtLNyUQrOomRAhK3ybKxD4ErilboB07U10ZELMezZmmO6iBr YL7G6yFjlETvYmcaVxeTMsbPsesqk6oaHzvGr1lOOTYrqA7MZikI9whuda0jdnkuRuE9 gITK7AGhcXysAZe1GIktSySjxAvU24GXNaX5iy2nYEOiwWuCQhkYG0StR0YWaR1fIOdI KLoItWgS3HX6Ajq1bcCkDzUNCsL6Vxn/NxfTKwKz0m3pvOfsvQR80HM3xFjSkPtDneSj XyB4mnTstzL8oQPqFpQALBemlxG1zxkuEVaVGzh938jYwJVhbK/gV5vIrXH5rpufLnG0 3fvw== 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=cO7CQJGCC0lAmpPdr3wdZB2ZNuyMLvpHpBdXb8GBoFCnPqPXwe6sFERw/swkltiEvZ dpuSJFKjcPcnynSuehJBL8K2QA6jmYW0qYd9+e5ql0H6B3dniPK+ygX6jjVtDcLWY/iL iovE3xsMyFHrH4gLMiod/rK4h9wk8jA3KxL/ZBrlC52wZNA7CyV7b/DqTyA3GpERP7Pc 6cgqzgaKCd8AornjMxZdX5DsQrVr3uoB+uJfUL0lGAV8CU6T6hVKB11wePz2HKRPpvxw lmhkzLAwL6rLebfoPWyfTSkXT4k+9YRx7+ZUDHQkg/HOZ2qdqG08rpwt19WIL3C99fNs fnlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=awr0Ysov; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ce11-20020a056a002a0b00b006878b4cb984si8170590pfb.36.2023.08.08.18.53.32; Tue, 08 Aug 2023 18:53:44 -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=awr0Ysov; 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 S230309AbjHIBP4 (ORCPT + 99 others); Tue, 8 Aug 2023 21:15:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230288AbjHIBPy (ORCPT ); Tue, 8 Aug 2023 21:15:54 -0400 Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D24F4E5E; Tue, 8 Aug 2023 18:15:53 -0700 (PDT) Received: by mail-pl1-x630.google.com with SMTP id d9443c01a7336-1bbd03cb7c1so41476115ad.3; Tue, 08 Aug 2023 18:15:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691543753; x=1692148553; 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=awr0YsovglR+Jd2wnMTzJ9wZrwIlhm5o09UjyNtJVH7JbzocQYlT465++coRkPHpCD ztOmH6QEptaiuxNr4nuA+ja4EWblQPW2h6oGs6fqJF66aN/SNHAOQ0pvrApD+RjHbOn/ KnhB4CfI/487eM5HM4wsD7fZWpt1EUgvl/75KaAXPtHDIpr6e8o2MANh73mQyjJXK5lA moxFLenfURIwFhPTYn7/EPk/NPjU5OrYE3qMdNZ9c4Dt6SCOfPcgQXNH4GijyCQOKJMx cpc7bji2nBlBQ8oJ6UB2jgvsCqnMYB1Gb0vBRm9wA5W86ek3H+ioCBcIqvtEsk8XmNma iT+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691543753; x=1692148553; 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=S4ha4hVuoFsTccltO/u+QntWYkcXyRMgJKwG2N5uexAFg1MVYqqm1HIRsuSCMwX1OF BwiUmOtUVm0DsLtuSroYm6j9Z73sasCDZ5Ko4OJE0Pb1BvAH9C0DMNI3i3/xAJjRoNKe 48nbZ2uqNn4ZrR5jxrfPvdpusPJVsPr2bTCxp1lt0LH10VjU4fUGcHdwzVLgb6czQrfb eNSckqUV13ujnzLftnlYBNhy8JuNWkgHf/p+LXPul8tSgxGum/QlgXjusyAUmtlZ395I WqY3mDOA1po9JXohu6g09SDcstXvl2QqfmW3pdInFt1iQunlCUMtvC3d0HrVWwr8wQDA Ipow== X-Gm-Message-State: AOJu0YzGzy93re8ETu+7vWfEuR1aYvN09+BAy5iVbz2PkcOBMYrD0S8Q YBmR/rmsRRftGhs0bI24+pE= X-Received: by 2002:a17:902:d717:b0:1bc:50f9:8f20 with SMTP id w23-20020a170902d71700b001bc50f98f20mr1221753ply.23.1691543753224; Tue, 08 Aug 2023 18:15:53 -0700 (PDT) Received: from a28aa0606c51.. (60-250-192-107.hinet-ip.hinet.net. [60.250.192.107]) by smtp.gmail.com with ESMTPSA id t22-20020a1709028c9600b001bc68602e54sm5730449plo.142.2023.08.08.18.15.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Aug 2023 18:15:52 -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: [RESEND PATCH v2 2/3] arm64: dts: nuvoton: Add rtc for ma35d1 Date: Wed, 9 Aug 2023 01:15:41 +0000 Message-Id: <20230809011542.429945-3-ychuang570808@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230809011542.429945-1-ychuang570808@gmail.com> References: <20230809011542.429945-1-ychuang570808@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.8 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 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773714563675998749 X-GMAIL-MSGID: 1773714563675998749 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>;