Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp582577rdb; Thu, 1 Feb 2024 18:53:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IG/Y4xl9vZq0msqiDHgKOvOcVODAkGGfccCd0g1zucJYS641D/8pHeYDAwIzGlIqqb26XnW X-Received: by 2002:a81:9ad6:0:b0:602:acba:ece1 with SMTP id r205-20020a819ad6000000b00602acbaece1mr7058563ywg.15.1706842388578; Thu, 01 Feb 2024 18:53:08 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706842388; cv=pass; d=google.com; s=arc-20160816; b=tNlVbe3fZKNOpJ8tOfkl+aOgVMErTBWjaZrYlhiuxWe1ArndsE6rC94MPgJcS4rH+V 50F6wcKCLDdbjlQWvbG+dfSFkPHAhWBNl+M7kNkH9Q052pFQmxP95+2Q1IrJ/cn4xFZB 3ke7VIYq44VDahkqW+qhV52w53qqLpPSmAiuK/TSJloxH5FZDH0rEHN5zwL4cmtMXxXR aKGrFOa6SA8YD6d97q/ZnQYVC4rKcKSpZJgHVLV/wc4plGYvcgY71lD6Us7IDKXUUBPD L3omuWQoZkSDW7Ye32VXove+e4WJjuuY6jtQaLkqfZEPZzpt4c3x4boF+7zF0JGXm6gV ou+A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=unF68hkU9VlsR/Q1RG29bTiUOBUgCrxhHhvhNebROP0=; fh=RTZpevO/Y6/W7v5eQX5tAu7xGzNTj5PO/1/8T6rUV7w=; b=CIpsM7fNZQ4YgeIV+tdkPXVwGk/3nu5Uxwgr5SJ5VCWhSKyf2xAVCgbWrRulvk35m4 yTzrC1I4cfdTleg1SyCmDW7+ibi2Pz0z6UpZ8TD+1Ec6Qo5mPXHOcHMa6f6k+ELb2M4f zJpfhYtZCC6CGIa1Fyf6nsLMbMgWcr5yYvP6jY+Vj/BtnfAVSxC/gPwnoql5RbeUQgdr H+zD/uMVz9nydR9NLahzp865mbFFbDOxRXjBRmq32YIUAnvHYV/pzZ7+rDiu+AiOes0g TddJOzFXtnfJ3J3oiPPFj7mN+T3U49zqL+UVxey+9ghEu+xAMtMUHnnOc5omf2XHA3r+ SGDQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b=qe1pMcBX; arc=pass (i=1 spf=pass spfdomain=alliedtelesis.co.nz dkim=pass dkdomain=alliedtelesis.co.nz dmarc=pass fromdomain=alliedtelesis.co.nz); spf=pass (google.com: domain of linux-kernel+bounces-49118-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49118-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=alliedtelesis.co.nz X-Forwarded-Encrypted: i=1; AJvYcCWB1p3k2JbzE8OiAZVfeQeK0jHCzCCuDxoqvgdL1hTB2U12kwcNUYcpLzLWI+xD44MwQjHjDofOYJCF1BkwYY8KybddPndK8ySOl4BVYA== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id h13-20020ac87d4d000000b0042be2b7459fsi1007861qtb.178.2024.02.01.18.53.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 18:53:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-49118-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b=qe1pMcBX; arc=pass (i=1 spf=pass spfdomain=alliedtelesis.co.nz dkim=pass dkdomain=alliedtelesis.co.nz dmarc=pass fromdomain=alliedtelesis.co.nz); spf=pass (google.com: domain of linux-kernel+bounces-49118-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49118-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=alliedtelesis.co.nz Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 46ABC1C237A1 for ; Fri, 2 Feb 2024 02:53:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F2B50CA71; Fri, 2 Feb 2024 02:52:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=alliedtelesis.co.nz header.i=@alliedtelesis.co.nz header.b="qe1pMcBX" Received: from gate2.alliedtelesis.co.nz (gate2.alliedtelesis.co.nz [202.36.163.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 06C5BE563 for ; Fri, 2 Feb 2024 02:52:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=202.36.163.20 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706842374; cv=none; b=H6rSXeOmH+oD1bVoRh+X9bUV+yhF2gkTS4O+QCp+jf10uclmkdHWSejLGG5sl3Qike+KBaQfw+LZAqeDts/9gG1AzQ68K3MYAZ0PcvRhOm54qVMjcGLkH3fj0prffU9r2N14vEbDGnC9wTmZRyo+24PxgRz8b7Fi5i1yVtuf4NA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706842374; c=relaxed/simple; bh=FfI+psqa5rlhKOTLCfKVaPMsCPGNwBQKn4DDGo5wymk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ITp1QdPBOOuNBeGxsRjjA4FQsLIfzOCI/GqL9wU+pudIszzYFYSNICWz8259Ns/p7o7nrAfuFRMCWT+7hC/5dAD/4anmWqGrF/P4qoGfv6u0eAdLafu1KgrnVfNrmWqndSk5l4lkLSusc6MG7Uj5N8g1gMtVtKGIq6dREtOJqdg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=alliedtelesis.co.nz; spf=pass smtp.mailfrom=alliedtelesis.co.nz; dkim=pass (2048-bit key) header.d=alliedtelesis.co.nz header.i=@alliedtelesis.co.nz header.b=qe1pMcBX; arc=none smtp.client-ip=202.36.163.20 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=alliedtelesis.co.nz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alliedtelesis.co.nz Received: from svr-chch-seg1.atlnz.lc (mmarshal3.atlnz.lc [10.32.18.43]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by gate2.alliedtelesis.co.nz (Postfix) with ESMTPS id A8FBA2C018D; Fri, 2 Feb 2024 15:52:48 +1300 (NZDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail181024; t=1706842368; bh=unF68hkU9VlsR/Q1RG29bTiUOBUgCrxhHhvhNebROP0=; h=From:To:Cc:Subject:Date:From; b=qe1pMcBXMfjf7j56Vl/Fes0jHWYlZXM1t7fIOrWSSYJdQgAnvwtR8//xAauKurupx GM1PgsNQ+WIw9s9m4eGFBKGVyhDObMBkiXUweLd3/8LiWrjFIFLsgpNH0NF31drOcM o726t3CG0EWC+6nH5PpwZ2ynwwIABzFH43iWL1WeVFGlBO2sI5rYe8rFDwWgJV0EfX SlDOBZESbm1kVZgmK/uupqpEwp7TLw+XWfK0UYUcLpzMnHjy9I0KarNU0xeMtzJSD5 dikiW7t3lGy7XEq5mJow4UZSKtg6Y3/p/S3oBVzvrkoZt3CsiciS3W8NOMep015uY3 xqGvZlhAzpeCA== Received: from pat.atlnz.lc (Not Verified[10.32.16.33]) by svr-chch-seg1.atlnz.lc with Trustwave SEG (v8,2,6,11305) id ; Fri, 02 Feb 2024 15:52:48 +1300 Received: from chrisp-dl.ws.atlnz.lc (chrisp-dl.ws.atlnz.lc [10.33.22.30]) by pat.atlnz.lc (Postfix) with ESMTP id 608D913EDA9; Fri, 2 Feb 2024 15:52:48 +1300 (NZDT) Received: by chrisp-dl.ws.atlnz.lc (Postfix, from userid 1030) id 56D5D280EB5; Fri, 2 Feb 2024 15:52:48 +1300 (NZDT) From: Chris Packham To: alexandre.belloni@bootlin.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, jdelvare@suse.com, linux@roeck-us.net, antoniu.miclaus@analog.com, noname.nuno@gmail.com Cc: linux-rtc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org, Chris Packham Subject: [PATCH v6 0/2] drivers: rtc: add max313xx series rtc driver Date: Fri, 2 Feb 2024 15:52:39 +1300 Message-ID: <20240202025241.834283-1-chris.packham@alliedtelesis.co.nz> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-SEG-SpamProfiler-Analysis: v=2.3 cv=LZFCFQXi c=1 sm=1 tr=0 a=KLBiSEs5mFS1a/PbTCJxuA==:117 a=k7vzHIieQBIA:10 a=QyXUC8HyAAAA:8 a=JN5pTWmEISIy-nGIZr8A:9 X-SEG-SpamProfiler-Score: 0 x-atlnz-ls: pat changelog: since v5: - change of maintainer - use adi,ti-diode property - deal with oscillator fail and releasing SWRST since v4: - dt-binding: add enum value "2" to aux-voltage-chargable - dt-binding: remove adi,trickle-diode-enable - dt-binding: change description of trickle-resistor-ohms - dt-binding: reorder as in example schema - parse "wakeup-source" when irq not requested - remove limitation on max31328 irq and clockout - remove error and warning messages during trickle charger setup since v3: - dt-binding: remove interrupt names. - dt-binding: add description for "interrupts" property - dt-binding: replace deprecated property "trickle-diode-disable" by "aux-voltage-chargeable" - dt-binding: add new property "adi,trickle-diode-enable" - dt-binding: remove "wakeup-source" - use clear_bit instead of __clear_bit - use devm_of_clk_add_hw_provider instead of of_clk_add_provider - use chip_desc pointer as driver data instead of enum. since v2: - add "break" to fix warning: unannotated fall-through Reported-by: kernel test robot since v1: - dt-binding: update title and description - dt-binding: remove last example - drop watchdog support - support reading 12Hr format instead of forcing 24hr at probe time - use "tm_year % 100" instead of range check - refactor max313xx_init for readability Ibrahim Tilki (2): drivers: rtc: add max313xx series rtc driver dt-bindings: rtc: add max313xx RTCs .../devicetree/bindings/rtc/adi,max313xx.yaml | 145 +++ drivers/rtc/Kconfig | 11 + drivers/rtc/Makefile | 1 + drivers/rtc/rtc-max313xx.c | 1098 +++++++++++++++++ 4 files changed, 1255 insertions(+) create mode 100644 Documentation/devicetree/bindings/rtc/adi,max313xx.ya= ml create mode 100644 drivers/rtc/rtc-max313xx.c --=20 2.43.0