From patchwork Tue Oct 15 10:40:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Majewski X-Patchwork-Id: 1176898 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=denx.de Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 46ssRS0gGYz9sP7 for ; Tue, 15 Oct 2019 21:41:21 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 0466DC21E45; Tue, 15 Oct 2019 10:41:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id ABB0DC21C93; Tue, 15 Oct 2019 10:41:05 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 579D2C21C93; Tue, 15 Oct 2019 10:41:04 +0000 (UTC) Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.10]) by lists.denx.de (Postfix) with ESMTPS id 09F2EC21C29 for ; Tue, 15 Oct 2019 10:41:04 +0000 (UTC) Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 46ssR35jKSz1rYjj; Tue, 15 Oct 2019 12:41:03 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 46ssR3564tz1rD5c; Tue, 15 Oct 2019 12:41:03 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id PkmKXVs9hWn2; Tue, 15 Oct 2019 12:41:02 +0200 (CEST) X-Auth-Info: zju6c86BY7W1MpQ+Clo3lYlwph6CbvPHghBa5Smqi54= Received: from localhost.localdomain (85-222-111-42.dynamic.chello.pl [85.222.111.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Tue, 15 Oct 2019 12:41:02 +0200 (CEST) From: Lukasz Majewski To: u-boot@lists.denx.de, Tom Rini , Stefano Babic Date: Tue, 15 Oct 2019 12:40:51 +0200 Message-Id: <20191015104051.2039-1-lukma@denx.de> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Cc: Albert Aribaud , "NXP i.MX U-Boot Team" Subject: [U-Boot] [PATCH] imx: Enable RTC (ds1307) support in the U-Boot proper on TPC70 board X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" The TPC70 is equipped with DS1307 RTC device. Add code to enable support for it. Signed-off-by: Lukasz Majewski --- arch/arm/dts/imx6q-kp.dts | 5 +++++ configs/kp_imx6q_tpc_defconfig | 2 ++ 2 files changed, 7 insertions(+) diff --git a/arch/arm/dts/imx6q-kp.dts b/arch/arm/dts/imx6q-kp.dts index 12d6db6f80..48ade9eeac 100644 --- a/arch/arm/dts/imx6q-kp.dts +++ b/arch/arm/dts/imx6q-kp.dts @@ -76,6 +76,11 @@ pinctrl-names = "default"; pinctrl-0 = <&pinctrl_i2c1>; status = "okay"; + + ds1307: rtc@32 { + compatible = "dallas,ds1307"; + reg = <0x32>; + }; }; &i2c2 { diff --git a/configs/kp_imx6q_tpc_defconfig b/configs/kp_imx6q_tpc_defconfig index 3d93c20999..2484e91635 100644 --- a/configs/kp_imx6q_tpc_defconfig +++ b/configs/kp_imx6q_tpc_defconfig @@ -62,6 +62,8 @@ CONFIG_SPL_PINCTRL=y CONFIG_PINCTRL_IMX6=y CONFIG_DM_REGULATOR_FIXED=y CONFIG_SPL_DM_REGULATOR_FIXED=y +CONFIG_DM_RTC=y +CONFIG_RTC_DS1307=y # CONFIG_REQUIRE_SERIAL_CONSOLE is not set CONFIG_MXC_UART=y CONFIG_SYSRESET=y