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: 136593 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b82d:0:b0:3f2:4152:657d with SMTP id z13csp3810926vqi; Tue, 22 Aug 2023 11:25:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGsp1HQB1Ts839DpHmFOdJoFpwdAufQWQE0KczAaiI9/HqcTeWdO4eTOWW3JH0DzphvBkNc X-Received: by 2002:a17:903:22cd:b0:1bd:ecb4:5a2d with SMTP id y13-20020a17090322cd00b001bdecb45a2dmr8895818plg.42.1692728700703; Tue, 22 Aug 2023 11:25:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692728700; cv=none; d=google.com; s=arc-20160816; b=IoTOstKWjrrnvwASq6UIXFaghxIuZJZBKcEnqTlbrQwVWmezo9RwAiDcgpmH6wBYgP 2/1srRXczr54QM1QxLqrBtDRlmE+HGDfgOxM+YSUXnWxuc7XJb9DXl4tpz/z0qTixAxj ZUprwMde0oOM4oJtx46Ge0L8ijaJDmopnPF7nZxDyk1GW535qTRrmbx2Fr6fF9PhM8Ne 1zfjgtPf0AaoQ5hDJceHJuRAuh4hzw6Bm+gZU2bKkDvSouCZmjUYsFWLC2L7ktoPH0QQ PuNOMKsDF/HCLFT3Kf8rtc0HczNJfCdVtAngfOpjUfCS1YeEH87PzQqdOkMU0Z16Y0E3 rvcA== 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=5+Yb4QwEEOHF91RkDiQ1vonnVBbKSptskuE5A3eM8yg=; b=GiaJbCVyRPXYEzFuo72LJvOKgkpvm0HddoMqU6isuz3Dm2hxXFbnEODLmUX6IvU7Y7 9LQus0sYriFSWl95CKkHQ3WVpwqQ4FRK2e++5aAtQkuKIEvLNxkEhcDofprqg+LU76pd P4Z1B+MJtVtMmElgELO6sRRYSd+0xcdm+NuR4Huqp5ciBmQe04c6kx/zQFQxqILpTzzm QtObPLPa064vV3ogGBO9CkkzUsLRmPrANNdPRPH3Q9d5crJR6xRLXOCu1OWhHbl/dHor PSjLMc4Rg/Qfm2t8SP1DDUCVh2QU2gPsnVhii+DWZyTZh+7+HF6Y8ReyMbn7xXIjY5yb ZBmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=LG4MRSC7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id u12-20020a170902e5cc00b001b9c992945fsi9717967plf.555.2023.08.22.11.25.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Aug 2023 11:25:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=LG4MRSC7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3F9B73EE02; Tue, 22 Aug 2023 10:24:02 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234653AbjHVKKC (ORCPT + 99 others); Tue, 22 Aug 2023 06:10:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234641AbjHVKKB (ORCPT ); Tue, 22 Aug 2023 06:10:01 -0400 Received: from mail-oa1-x34.google.com (mail-oa1-x34.google.com [IPv6:2001:4860:4864:20::34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0653518B; Tue, 22 Aug 2023 03:10:00 -0700 (PDT) Received: by mail-oa1-x34.google.com with SMTP id 586e51a60fabf-1c4d8eaa8ebso2790615fac.0; Tue, 22 Aug 2023 03:09:59 -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=B1MQE8jq5TT1FoOhrBF9bzIjxhanepuFbpt/ELlwCxlfglzpHRR7rlLEYO6N/SSxEE UNj07FA5MEDMPp579n9ayiPrPDadXIh3jkMbzma6ZaERhrRgZkXYZUJ1dclla4KlT1xI eWiWbIULUdaTZu/O8mYK13mWlTtIFs03aZwpZBLzWWeWDVX271wZ3YRQduEST7sCbdbl BBRh5gJEaFEuKnCnzV4amX3sLCRdwAcJzLFQg+ZwFEPU9Qa3Tu2omCO3vD7f1Gbwse9k RyPYBRmiU8XW5FR17FTHzwQTeWBeu+3OV2tHkwqImDHsP8LntDuRP0qKJokzAXl0jY1w g5lA== X-Gm-Message-State: AOJu0YwrV4xZrqJgyEv6or4sbOk9dhozFHBwic5Au72TJAXUwmTbSRHH V98PCfjJ4JhGW8k15jspFVY= 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-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_NONE,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: 1774954689950104300 X-GMAIL-MSGID: 1774954689950104300 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>;