Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp4283392rwo; Tue, 25 Jul 2023 03:52:06 -0700 (PDT) X-Google-Smtp-Source: APBJJlENcVot8SFFXGorzsHDk8+c1YdUc1YM4C9NKheASgWxl1tt9nVMNOdCTxf6kpze0DekSbdI X-Received: by 2002:a17:906:10dd:b0:99b:48b9:8e45 with SMTP id v29-20020a17090610dd00b0099b48b98e45mr13342040ejv.76.1690282326683; Tue, 25 Jul 2023 03:52:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690282326; cv=none; d=google.com; s=arc-20160816; b=q75U8Yu7gveTc2J9zkaO72idKkabUihSpB15+3JxqD0QLEjBMY7z1r2J3yzzI1bFtH 7VwJ1qWGi9fcftnAYOiUR4pHA2wmhL7qz+CXjYPdA8WZ1/L2nzWjkMoF8nTarRxv0XVy r8/ngTddv4Qm79VYiZrs3sx7IqhmdMWxu/9aXSo2MuVFbwlNwMBZRobcvJ6TL2FOR4Cv 4V3BoSEXb93eY+QQiiKe729UfTHVCKWfTLLsscnj6I/8P3QWdH89m8M5sqPS53C/Uht4 v84A4qTqrHg5NEjVeeW+3HBWx3XA2HE2yXBEYjGgOx8Ev0GEEyes+wyK9oM7x+elLJ79 kuOA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=GPWRUM32s+W+NzJlw5xle7BrQSCJzLbYMkNbUmW2VZM=; fh=CuOU2zHMRvKBIxU3VBdQp/xZQgB1IU6H7AgQjHd0CZ4=; b=nsitSnZSm/ZeY0wxjV1F0ELnrshbW9DwjrT1TtzIuKRMxvY+nvOTjwhr63/qT3Bdzq 34TQMyHcT0pxnhGysczZa9HJF334aaL4F3SJ+ZNyl0/86OCxAS95e1EsR4DkxS00JiR4 k9NUK07c+dz9KFdFcg4B7UpTsezOU4RKH/kioNq0DPggc9QOqbM7FvPmDkVF3fxE836e v4k9qWWKGbev9K7lrG9bTCYOZQmY+/bUsEwW0Xl3Ti/2jIiDBM9DCtc5u7ledDgpdPQt klskDfyqWbjz9DQPgFmc4DktEfj5rsypjQ10EQzIalSiBdPeKbuqDamjq7TDliqaW5hu xdtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=qlngjdYS; 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 m24-20020a170906849800b0098e31cd141asi7431150ejx.747.2023.07.25.03.51.42; Tue, 25 Jul 2023 03:52: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=qlngjdYS; 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 S232045AbjGYJkt (ORCPT + 99 others); Tue, 25 Jul 2023 05:40:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232911AbjGYJkj (ORCPT ); Tue, 25 Jul 2023 05:40:39 -0400 Received: from mail-oo1-xc2b.google.com (mail-oo1-xc2b.google.com [IPv6:2607:f8b0:4864:20::c2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BEAEA99; Tue, 25 Jul 2023 02:40:38 -0700 (PDT) Received: by mail-oo1-xc2b.google.com with SMTP id 006d021491bc7-565f3881cbeso3671292eaf.2; Tue, 25 Jul 2023 02:40:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690278038; x=1690882838; 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=qlngjdYSw3kOyLjGy8BltQSYFrmRJnTsSV7SAwlwaT1k/w43g0ygOMQc7PQyU2Fjhq dItLCtX9G619yf03JAxpj5SrcFA94gGX+/lo3icEHUtS4vwarmmThTlIw+KG4a3vxo3k KgDeIgeXgyVggRJ5XXV0/9lX/KW16bNFMtVyiGPmblsov6F6wge4WI6hmGFYimSrtwUW OyEIRHFQfa5N47JhbB4o1Djw3jVcQpegFX7Ss+IrHtbklQmeCCTYMXtfp++8zl2F7YIv rXRBK0Muw3rtA6k3/Tuv0ERgg12iZ+nRymRIAC0GwV5QNhfFcVZYl2DmH0BHCRh3xqRm iEUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690278038; x=1690882838; 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=J1Tar6owCPghdelq4zKemaDZYFH6WdqDxkW2olkxp0sueDnABBnI64gH/rktdoIpT/ /D2CJl+GJVyEG5Twbpljt+8GaX8VODRhbH56jQeCSaNgd+0hVO4NnTEdZ1GwZ5wWE8XW YqQT8qtNZUG2nXKh3Q2Pkubmls0Y7GriDG5UQJunFgvqnd++NlRF/6wK5nlXNmbU/tX4 iq/20mWDvUcnE9DGFBCv1EdN+n1TJccbQCzbeoWCc0alyYn9l1nsnvRnCdCQh5j3aucS Q/eJs+4IiouOxXFvvSvDcqyBLlh+rfYVbd4wu8dlNURi+o6dxjEXIO0wlRn7hmrejqA7 cS/A== X-Gm-Message-State: ABy/qLbXH3Xgyd9qfne2AKu6KPRAmZOm6Kobuwv5iFOgoZLbqomuE0Jp VdYn7krZrBr2TmMcxagnGfYgh/gAXKQ= X-Received: by 2002:a05:6358:c19:b0:129:c6d6:ce40 with SMTP id f25-20020a0563580c1900b00129c6d6ce40mr9963624rwj.15.1690278037942; Tue, 25 Jul 2023 02:40:37 -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.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jul 2023 02:40: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 v2 0/3] Add support for Nuvoton ma35d1 rtc controller Date: Tue, 25 Jul 2023 09:40:27 +0000 Message-Id: <20230725094030.32877-1-ychuang570808@gmail.com> X-Mailer: git-send-email 2.25.1 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 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 -- 2.34.1