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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2D3BFC6FD1F for ; Thu, 16 Mar 2023 22:16:47 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0E7E285E53; Thu, 16 Mar 2023 23:16:45 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="fL5TdThF"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4F9AA85ECF; Thu, 16 Mar 2023 23:16:43 +0100 (CET) Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id D4DC885E4A for ; Thu, 16 Mar 2023 23:16:39 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=judge.packham@gmail.com Received: by mail-pf1-x433.google.com with SMTP id fa2so438505pfb.7 for ; Thu, 16 Mar 2023 15:16:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679004997; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=2vJzVpQo6HRSVTbDfep+OwFM986N+coAPMdA2ocryLU=; b=fL5TdThFocAdYngScQjNjUFJM9+SCJIz0+1KM7EB1/XFug+cBv0yGRCCY0R8FccEe6 8ZOp16GifDDzTYZjM4rvC6vDYZA7YCVGLyrKlqpxEjSzi12YdFRpNWoaOkh5SiFBRL23 Kr6s2gxQIWyRCN1jrqNwT15fDEVbygAIpxa1obFFdm1OXjirK43h1f6YXDStEwKKlgmY Ax7iyI+z6wODfgKQR1J8WzgUmx74w3elDx3bUuP+gmuRIZX0PYCINknfSDprkCoweLXF arMwNaH8/IdaUZ4ifSrAyFnraiucEGythePKkZJxUzp9qD/FUKM4nOR3mdbcn14oTI6Y jXJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679004997; 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=2vJzVpQo6HRSVTbDfep+OwFM986N+coAPMdA2ocryLU=; b=zLG7QOujiMTkpK26AE1NaX46Gm5RguJh0hoZe+RIYPUpW+JmqgtQ/1LrAKzYaEqecM p3m135GykhVqLG2TKfEgzVgX1B3nss9k9z+V9s0lJRmAMT6DQN9k4qQ9pejd+UUafluO Fh4f9wOoSL0fzSIQm2uGbQDC2HO1GCCYAUZDFF9Z775gM4sfmQKGN7HgAhXty9PC3UkX NPRw0tTJubElUi9XgRSn6wsBL2APyOZ0YF+HWbQDQJWuvYye2v7Tqr/plJWEWUl7UdVY e97qYTV+6eJ1BpMc7HSbd6uZ/CVrLQlR709SEoZ4O/zp9aVQUS2qKgJybB7lj7JAODph kvcg== X-Gm-Message-State: AO0yUKXWN2EEZ0+nAiyuInzaJUEAE0FXaqdijunGfk1IPCPnJ9aKtAgY XXWRjrS+VOiNxw+wTyYXc2WVXRC/42c= X-Google-Smtp-Source: AK7set+S7QUhD++1XJW5e4CfYQctvPceE385xoweA5kcgXgbSw4aE8E2ngo5ArpK3SoTrl+2w/+Paw== X-Received: by 2002:a62:6dc6:0:b0:624:9205:977d with SMTP id i189-20020a626dc6000000b006249205977dmr3396732pfc.27.1679004997313; Thu, 16 Mar 2023 15:16:37 -0700 (PDT) Received: from chrisp-dl.atlnz.lc ([2001:df5:b000:22:f841:1af3:451b:dee3]) by smtp.gmail.com with ESMTPSA id 64-20020a630843000000b004b1fef0bf16sm125307pgi.73.2023.03.16.15.16.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Mar 2023 15:16:35 -0700 (PDT) From: Chris Packham To: u-boot@lists.denx.de Cc: Chris Packham , Ibrahim Tilki , Sergei Antonov , Simon Glass Subject: [PATCH 0/2] max313xx RTC driver Date: Fri, 17 Mar 2023 11:16:23 +1300 Message-Id: <20230316221626.1043438-1-judge.packham@gmail.com> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean This series is based on the in-flight linux patch that is adding support for this family of RTCs to linux[1]. The u-boot driver is a bit different due to some of the differences between Linux and u-boot and I've dropped the support for hwmon and clock source functions. Where possible I've tried to keep things such that the U-Boot and Linux versions can be compared and kept in sync. [1] - https://lore.kernel.org/all/20221108122254.1185-2-Ibrahim.Tilki@analog.com/ Chris Packham (2): include: kernel.h: port find_closest() from Linux drivers: rtc: add max313xx series rtc driver drivers/rtc/Kconfig | 8 + drivers/rtc/Makefile | 1 + drivers/rtc/max313xx.c | 442 +++++++++++++++++++++++++++++++++++++++++ include/linux/kernel.h | 24 +++ 4 files changed, 475 insertions(+) create mode 100644 drivers/rtc/max313xx.c -- 2.40.0