From patchwork Wed Aug 9 01:15:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacky Huang X-Patchwork-Id: 13347289 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 1E87AC04A94 for ; Wed, 9 Aug 2023 01:16:25 +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=VP57LG6sxunerqC6AGtbfoFgXSCR1R9BQbTQHCkgSYw=; b=q3uNKq6VkEE2Zo Q15f+DTNusavlyLB+DM1meo3j4iHknk+qJ61o0j4aODTZoijtWesaPPzCpvIEOz5d77L8kNUA+p+q MVahTcmqhAgF0uzyd0N1KO8igc9OHaCjSUi+K+zwa8qkw4hTXzdl+SuqSnW0zqqohoIZUaN3ydR7t DUsTDiRUN/c/Uvnxdet0wvr7uMcRJuhTrDoTlUYAuBT4k7h4e3bZTCJVrNkHNsiTCKvPkmHR+FgyG DEG+8uZodmCZsgaQuB6PYEZAqaI7RtL7tKJO7uPLGJgeo3s02WLyIZWXNdkFZCSsl2/Wz+B2D6qnW B0BqFJh7FRM+ZNkcM/Ag==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qTXnu-003nFm-2V; Wed, 09 Aug 2023 01:16:02 +0000 Received: from mail-pg1-x52e.google.com ([2607:f8b0:4864:20::52e]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qTXnp-003nCo-0r for linux-arm-kernel@lists.infradead.org; Wed, 09 Aug 2023 01:15:58 +0000 Received: by mail-pg1-x52e.google.com with SMTP id 41be03b00d2f7-51b4ef5378bso4594948a12.1 for ; Tue, 08 Aug 2023 18:15:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691543748; x=1692148548; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=GPWRUM32s+W+NzJlw5xle7BrQSCJzLbYMkNbUmW2VZM=; b=r6+cYmz7a9GuR4hKSjvtbYHXQ4uSc8zORRE7EPwV9JSIlZuij60Qe5TTdFTgbTfO0V rG1ibU41ckM+vDvqqamY+nfE+6oBdEN/Q33IzfNQHqR98uwwY8wg63IOi0m9SHliTdKF J+Lt/epF6QWs2YIAkePiGzsIJIkfJ1FhWnydtUJWs7UjB42SCKM5TBlhzqDJUD1ayAbn 1isR6Yn9S51vHybdTymTQneQcoMflPeL1F1cIGrtnPfdY73uAPyuGxefgVR8cM9TKAVV D9njbPUBeHDlg3e7dR9dCxgbG2EukehnZ7A4kg4ABwyBKicB+sAq8FO8xr+KlG4gxoVj Eocw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691543748; x=1692148548; 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=GPWRUM32s+W+NzJlw5xle7BrQSCJzLbYMkNbUmW2VZM=; b=NmVx03KWDBzAVxxszzn0Gm3LGLzUfrGiIqkWLiNcsIp9xSWblRAZ31AFAQNosX/EP+ LUSm6nonFO9XQjhfaRAh9hmhtltE9SpOOAv+EWa09Ql/WQzLpOQzfhEVbERAdVOEruBq vQfM6W/BJz5EWSjTt8tk4semdrQvuj6hhMyTV5UIW+Kvkc+l9pDrKFXVX38pfh9SRRbO BSzH7lpTRpjnaH77WnTaUHEQFTGsnyCXjx2djLWWtEiFFvEuvZ+nsJk7bKK8cug3burh izm64wcu/f1Eg6Bf2AcfYH9IDv44ucmjaWJ/xkz536O5nIWj8ISmYPRT9jmWXtfEuudx v+lg== X-Gm-Message-State: AOJu0YwUU9s38d1wPo7voGW1Gul4XiNtCl+zi+F6+0NtEHYJ+OWDjK4I AdKN6VOWcdSivwI1TA0gG5o= X-Google-Smtp-Source: AGHT+IEaH6Ei7SipTX4Eq714C4AvTEUatqG0ziqy/qoVCZL7cJePyRr90iRzJHRUaWUZ1RmGxLyl5g== X-Received: by 2002:a17:902:7793:b0:1b8:6cae:3570 with SMTP id o19-20020a170902779300b001b86cae3570mr1377591pll.11.1691543747719; Tue, 08 Aug 2023 18:15:47 -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.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Aug 2023 18:15:47 -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 0/3] Add support for Nuvoton ma35d1 rtc controller Date: Wed, 9 Aug 2023 01:15:39 +0000 Message-Id: <20230809011542.429945-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-20230808_181557_304395_1D26DA33 X-CRM114-Status: GOOD ( 13.21 ) 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 This patch series adds the rtc driver for the nuvoton ma35d1 ARMv8 SoC. It includes DT binding documentation, the ma35d1 rtc driver, and device tree updates. The ma35d1 rtc controller provides real-time and calendar messaging capabilities. It supports programmable time tick and alarm match interrupts. The time and calendar messages are expressed in BCD format. This rtc driver has been tested on the ma35d1 som board with Linux 6.5-rc2. v2: - Updated nuvoton,ma35d1-rtc.yaml - Modified patch title and fixed typo - Added reference to rtc.yaml - Used unevaluatedProperties instead of additionalProperties - Modified rtc driver - Used dev_err_probe() - Removed ma35d1_rtc_remove() - Made other minor fixes Jacky Huang (3): dt-bindings: rtc: Add Nuvoton ma35d1 rtc arm64: dts: nuvoton: Add rtc for ma35d1 rtc: Add driver for Nuvoton ma35d1 rtc controller .../bindings/rtc/nuvoton,ma35d1-rtc.yaml | 48 +++ .../boot/dts/nuvoton/ma35d1-iot-512m.dts | 4 + .../boot/dts/nuvoton/ma35d1-som-256m.dts | 4 + arch/arm64/boot/dts/nuvoton/ma35d1.dtsi | 8 + drivers/rtc/Kconfig | 11 + drivers/rtc/Makefile | 1 + drivers/rtc/rtc-ma35d1.c | 355 ++++++++++++++++++ 7 files changed, 431 insertions(+) create mode 100644 Documentation/devicetree/bindings/rtc/nuvoton,ma35d1-rtc.yaml create mode 100644 drivers/rtc/rtc-ma35d1.c