From patchwork Thu Jul 29 11:36:21 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 1511183 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=monstr-eu.20150623.gappssmtp.com header.i=@monstr-eu.20150623.gappssmtp.com header.a=rsa-sha256 header.s=20150623 header.b=iyRRSOAY; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Gb7mJ4gQZz9sSs for ; Thu, 29 Jul 2021 21:37:04 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3A36E82E6A; Thu, 29 Jul 2021 13:36:50 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=xilinx.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=monstr-eu.20150623.gappssmtp.com header.i=@monstr-eu.20150623.gappssmtp.com header.b="iyRRSOAY"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8301B82E8D; Thu, 29 Jul 2021 13:36:35 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.2 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) (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 99CD482E23 for ; Thu, 29 Jul 2021 13:36:27 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=xilinx.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=monstr@monstr.eu Received: by mail-ej1-x62b.google.com with SMTP id v21so10191257ejg.1 for ; Thu, 29 Jul 2021 04:36:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=wTtwhAGsV6xbnF1RI+JmlhIlO92nmI1WrR5mwrJ53OU=; b=iyRRSOAYWhdNXJUCR5BHV47ttH87F61CpOZo1n+QvSzRfA0hFUx2wRGGuDXdFiGMZs f5ppJ5m5lftvAP7a8yQ38wPOLk8ybRkNknDM1dO8uh8ZxDv8+Eu3xkis62K2tk6Ribz3 HK6hnbR5uiY3Qc09fp/9O37HKXSx5PoRgrPe4ozhGhUJgWIi4fyo1zqqBDWPmIpip0Ud vvyPRrZ333f+7BMCzsvzDdzbqFzp3dmJiUDqYTjcthpS5ASLuF8nGshxulF06RnJbk6I eF42d4GTLZQceoFWZ3ApYXfV88x4nuW+KGby5pdW/9Y+faWxQA9dekwqDMcJLoH4Ij04 /SUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=wTtwhAGsV6xbnF1RI+JmlhIlO92nmI1WrR5mwrJ53OU=; b=SXreCmU5fXILxfZlGlgOMGKDPqoP6VodhKb362QI/xi/9lRuX59djm2RyCUKcNBI23 +KS3zSClEvNOhL4rAflgRI1d+TSQKqRxx4xsgloxmFhPBgfs/a1A0H+lOmFqgeajuwX1 AQkftN82/lUdw7qhLm8jLII8lzM0T92tEOmRQ00w7F2U4jAJEktfSmWnilKThxynIWDA YOZxpzIurr6GdpYryiVtKFnNTRGankIj8ZnxDa8UCoKjghD9vq32nuj6lPwXPd0y7RCj 3vou3lI7/ja3eVsF16r7NG6sbB/xunWIrugCJcwjQNJLu5DZrV45jUi1YpEH3mVDv9GZ 3M5Q== X-Gm-Message-State: AOAM531nHDNFSxp1MEYzxT+nuNH3rXYbW8DQ1qcSwHI7mtzFPs4y7gHz VZCjTEIu+etQQoOpJg5C0WC9j6Vwfe9GIBGb X-Google-Smtp-Source: ABdhPJw3BiDql1knJOqnsAgXz8mXUx8gcyVGOx8gSH1pL50Qdo9jlkZU0S1/v0/yXKd/Eh6pO4FOVQ== X-Received: by 2002:a17:907:20f2:: with SMTP id rh18mr4252488ejb.136.1627558586952; Thu, 29 Jul 2021 04:36:26 -0700 (PDT) Received: from localhost ([2a02:768:2307:40d6:f666:9af6:3fed:e53b]) by smtp.gmail.com with ESMTPSA id r11sm877795ejy.71.2021.07.29.04.36.26 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 29 Jul 2021 04:36:26 -0700 (PDT) From: Michal Simek To: u-boot@lists.denx.de, git@xilinx.com Cc: Ashok Reddy Soma , Bin Meng , Dario Binacchi , Heiko Schocher , Heinrich Schuchardt , Ilias Apalodimas , =?utf-8?q?Marek_Beh=C3=BAn?= , Michal Simek , Patrick Delaunay , Simon Glass , Stefan Roese , T Karthik Reddy , "Ying-Chun Liu (PaulLiu)" Subject: [PATCH 0/4] xilinx: Add RTC support for Xilinx ZynqMP Date: Thu, 29 Jul 2021 13:36:21 +0200 Message-Id: X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean Hi, this series is correcting RTC uclass behavior to match RTC aliases to enable RTC_EMULATION driver with ZYNQMP driver. If DT node is present ZynqMP RTC is used. If not RTC emaulation is used. The driver has been tested on Xilinx zcu104 also with booting to Linux to make sure that U-Boot format match with Linux format. Thanks, Michal Michal Simek (4): dm: rtc: uclass: Add flag to control sequence numbering cmd: date: rtc: Update command to read the first RTC with seq 0 rtc: zynqmp: Add support for ZynqMP RTC xilinx: zynqmp: Enable CMD_RTC command with Zynqmp RTC driver MAINTAINERS | 1 + cmd/date.c | 9 +- configs/xilinx_zynqmp_virt_defconfig | 2 + drivers/rtc/Kconfig | 7 ++ drivers/rtc/Makefile | 1 + drivers/rtc/rtc-uclass.c | 1 + drivers/rtc/zynqmp_rtc.c | 158 +++++++++++++++++++++++++++ 7 files changed, 176 insertions(+), 3 deletions(-) create mode 100644 drivers/rtc/zynqmp_rtc.c