From patchwork Mon Oct 30 11:50:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Antoniu Miclaus X-Patchwork-Id: 16046 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:d641:0:b0:403:3b70:6f57 with SMTP id cy1csp2148420vqb; Mon, 30 Oct 2023 04:53:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH0HQ5jCVqwFO3XhEiO66egtMt9TDO5b/sMZRL31Y9ievwGBQz6Ku3A+Mx3pPDOXqgsvVUX X-Received: by 2002:a05:6a00:21d1:b0:6be:5e64:babb with SMTP id t17-20020a056a0021d100b006be5e64babbmr11416761pfj.18.1698666787279; Mon, 30 Oct 2023 04:53:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698666787; cv=none; d=google.com; s=arc-20160816; b=e0p4pGgZOczC559/J5onFwmB5eKHHQ9hLSEwV4NKSRgAHF6xGQRTPby4ohMrbGUMfA NV0AsFQEOJVDUU0fZ12LHY4bGdeAK8k8CIqAFqOYrG85dRldci3zLhOm6EAO9Ev0aDP+ CSSGwr24zYaOxhnzn8GShCSa3tqKzheh/AcyUBJ/Lm0oVBLrh3zEEXWry0FPCWkJTpyX CoPbpx9ZtGA8jMZwqKUzx7ZbDFyBDsX6HRiuoW3LMPOz+JrjA9jjvmTkWhdMvOevyqpx psrRug4C68OoXnKEDMHKTD4OY/fFjzSgyQZKTFneoJ0pjl8nIe+Y5w+4xLcaY4eXd9Br TxPw== 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:to:from; bh=eqDoM7j0iUdxBIVXNCNjrRYd6SLuiwJFF+7UxnIIa4A=; fh=oXLhkaccZsODnXgSHCqbrObR8yzBaWeOST+hy25zKks=; b=GDMpoxNHpW8BXROg7JT4ThQ/eb0nLCzFdOVQz4iw9dkOvbqVc3xLb1suAik7rzpoAJ uWKRQ6E3mKLXB2h5RuuhfgoSfwgaBy7Uu7JAP7UQC+ebZFIpQ6prIHbRqF9XQqM0VHpx KG/LA/aDqD0jEhAMzyeSpNwP1bcb+6EKlC58zCy8DAjMsPYRtVhK7be8CTttbRqKb4Kx wT5ZMDfu4ziLouQFoYV7ALFVFM5vlPFkNGcRFSM1oSgOx9crusFC+ux5N5UsupzYzFUu aCUco9YvjPO/UHKnsKg8bESYBZv6UoXYxVqrZtVYl2kLID8SC/FKY0UN8x/WD3eGazPJ FU2w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id k1-20020a056a00134100b006bd92721f4esi4929926pfu.293.2023.10.30.04.53.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 04:53:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 44685809FEE7; Mon, 30 Oct 2023 04:53:05 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232984AbjJ3Lwm (ORCPT + 31 others); Mon, 30 Oct 2023 07:52:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbjJ3Lwl (ORCPT ); Mon, 30 Oct 2023 07:52:41 -0400 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8FC09D; Mon, 30 Oct 2023 04:52:39 -0700 (PDT) Received: from pps.filterd (m0167089.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 39UBBeBj021732; Mon, 30 Oct 2023 07:52:14 -0400 Received: from nwd2mta4.analog.com ([137.71.173.58]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3u1f5hqdeb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 30 Oct 2023 07:52:13 -0400 (EDT) Received: from ASHBMBX8.ad.analog.com (ASHBMBX8.ad.analog.com [10.64.17.5]) by nwd2mta4.analog.com (8.14.7/8.14.7) with ESMTP id 39UBqCeb000729 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 30 Oct 2023 07:52:12 -0400 Received: from ASHBCASHYB4.ad.analog.com (10.64.17.132) by ASHBMBX8.ad.analog.com (10.64.17.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.14; Mon, 30 Oct 2023 07:52:11 -0400 Received: from ASHBMBX8.ad.analog.com (10.64.17.5) by ASHBCASHYB4.ad.analog.com (10.64.17.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.14; Mon, 30 Oct 2023 07:52:11 -0400 Received: from zeus.spd.analog.com (10.66.68.11) by ashbmbx8.ad.analog.com (10.64.17.5) with Microsoft SMTP Server id 15.2.986.14 via Frontend Transport; Mon, 30 Oct 2023 07:52:11 -0400 Received: from amiclaus-VirtualBox.ad.analog.com (AMICLAUS-L02.ad.analog.com [10.48.65.123]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 39UBpnDt008995; Mon, 30 Oct 2023 07:51:51 -0400 From: Antoniu Miclaus To: Alessandro Zummo , Alexandre Belloni , Rob Herring , "Krzysztof Kozlowski" , Conor Dooley , Jean Delvare , Guenter Roeck , Antoniu Miclaus , , , , Subject: [PATCH 0/2] Add support for RTC MAX31335 Date: Mon, 30 Oct 2023 13:50:00 +0200 Message-ID: <20231030115016.97823-1-antoniu.miclaus@analog.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-GUID: keD7a1S0lVWJ8QczOvikXb-73jf3LJ-d X-Proofpoint-ORIG-GUID: keD7a1S0lVWJ8QczOvikXb-73jf3LJ-d X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-30_10,2023-10-27_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 spamscore=0 malwarescore=0 adultscore=0 impostorscore=0 bulkscore=0 priorityscore=1501 phishscore=0 mlxscore=0 mlxlogscore=992 suspectscore=0 clxscore=1011 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2310240000 definitions=main-2310300090 X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 30 Oct 2023 04:53:05 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781181225014847461 X-GMAIL-MSGID: 1781181225014847461 The MAX31335 is an automotive qualified (AEC-Q100) real-time clock (RTC) driven by an internal temperature compensated microelectromechanical systems (MEMS) resonator. The oscillator provides a stable and accurate reference clock and maintains the RTC to within ±2ppm accuracy from -40°C to +85°C, and within ±5ppm up to +125°C. NOTE: Although the datasheet is not public yet, the driver can be made public (on other linux custon trees it is already). The driver was tested with actual hardware and works as expected. Even though the datasheet is not available, if there are any queries about the functionality of the part, these can be provided/inserted as code comments inside the driver. Antoniu Miclaus (2): dt-bindings: rtc: max31335: add max31335 bindings drivers: rtc: max31335: initial commit .../devicetree/bindings/rtc/adi,max31335.yaml | 61 ++ drivers/rtc/Kconfig | 11 + drivers/rtc/Makefile | 1 + drivers/rtc/rtc-max31335.c | 759 ++++++++++++++++++ 4 files changed, 832 insertions(+) create mode 100644 Documentation/devicetree/bindings/rtc/adi,max31335.yaml create mode 100644 drivers/rtc/rtc-max31335.c