From patchwork Sat Apr 13 16:34:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 10899519 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4F3311390 for ; Sat, 13 Apr 2019 16:37:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3057F28C6B for ; Sat, 13 Apr 2019 16:37:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 249C628D14; Sat, 13 Apr 2019 16:37:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4F1C628C6B for ; Sat, 13 Apr 2019 16:37:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=mPs58/bl0VW9SlVkiUWeQNa7iM5okhzSfqsrBsOpc74=; b=kbWcjD9JfWvI+9 ECiUeQ64TFydRYKNOy4T4QG8PXI0NNK+cqseH6KzL53Ob/+DaeyhjHQeAOUdWtXXsYkJ1kboKCSVq q6iiI7vZSNIR/kyFaq8KOFXJKVkf/BWQRZDIPKq92F0boTXdV1gNFHlUykU45Mfs7g9slt0HcOYn4 +41lHfKzpmvuQtvIL5lAcgi0sx5FYZ8P+EX4HOz/FCa3h0AlBB5Y1dYKD0gk+n4YiDS1JafUyDXto Ip2n2Fe0Ixrrgx7DNczHU3ppN0oAu1JLmiwSZa+T0wAa1rjlvErSQMZf2vkyXNqMEfyRJAfyt7Wl9 UoGWeGahlVnplMyOS4bA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hFLeN-0001jw-QR; Sat, 13 Apr 2019 16:37:07 +0000 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hFLdw-0001AQ-8p; Sat, 13 Apr 2019 16:36:41 +0000 Received: by mail-wr1-x442.google.com with SMTP id q1so15979862wrp.0; Sat, 13 Apr 2019 09:36:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=9AocJvaLHJoa4iYjdAkrd1jMBEY1Q6G0BQqKP8Q3BgM=; b=Luudy5lA0Jr2vYj0t56JgKfgDY00UwatGRG1UI1cDJ7n7e8/X1uBfG6YcApvWFVo8V 2ZwDGVUicsELiTeIADUWV4D4RilQT0Wv3oZs4yV1IikKqgYq3xjyG3ltNM1Tp4knqaIg XLZLpLLwhjwK1DjjR81w8qcAFYd/e88AfNu1ZgLDg55BnHP3oFBCu+VfsvAasSOr0djK wacAUzg5quJDb3+xJuoSNhYEA47Fj5WkeH4/+rso/yMsKqwFNgUShA60SnnVOfgTKmu2 Aa/fDBjOREhr/G4zFfhnCCp/CBOlQChEwJuuHILUPMAi7qF/MjwUJ9CilFUo1AmY59jT tjgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=9AocJvaLHJoa4iYjdAkrd1jMBEY1Q6G0BQqKP8Q3BgM=; b=T3EqZWEpaC1fugcO9ARF3s5i+ehs+mWCSfFI8WP9+je/70WyZFLWINgIJCiwYySNzy JgT2CuP2mCIcTUY75mYdzAQJSdftpnwcLxsAhmNOAo38L0iK/Q0GYtNvA3VtUY6UM8cS ulE8yYaFlYUAzGU/tH9f6h6rSIgESKntcyDS0DZ69/qTG9XOxOg0xKALha7kq2cOFcg9 +QLg90syS7PRSWkd/6j0r+E0wbDMQcN3/QRYW970itQTEdP0EhSwBFzs3zxgvTajGcAi hH9fCe4e2h/J5yyRpwutoQLsUFSXAriM79w3PzDazUi0YK2+hWNh8qsQhilRVK4gpCAw lu7A== X-Gm-Message-State: APjAAAWGHVId+AgcF6qGLguvKk2JrUgEgHldHlvu4rG3HjXAjw42pWZL ymtBMAywm6euJ1KDfDcrEdCdsBBF X-Google-Smtp-Source: APXvYqxeR+dM/qboqMgoFunM3kgqRM3vJqoEnr7pd9afz0HJ9zGoF03qrolR2iMoYrFJi40vk2tIiQ== X-Received: by 2002:a5d:5343:: with SMTP id t3mr38812600wrv.49.1555173398286; Sat, 13 Apr 2019 09:36:38 -0700 (PDT) Received: from blackbox.darklights.net (p200300F133C8AD00714E418F6C82D049.dip0.t-ipconnect.de. [2003:f1:33c8:ad00:714e:418f:6c82:d049]) by smtp.googlemail.com with ESMTPSA id j3sm106200069wre.51.2019.04.13.09.36.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 13 Apr 2019 09:36:37 -0700 (PDT) From: Martin Blumenstingl To: linux-amlogic@lists.infradead.org, khilman@baylibre.com Subject: [PATCH 2/3] ARM: dts: meson8b: ec100: enable the RTC Date: Sat, 13 Apr 2019 18:34:22 +0200 Message-Id: <20190413163423.15149-3-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190413163423.15149-1-martin.blumenstingl@googlemail.com> References: <20190413163423.15149-1-martin.blumenstingl@googlemail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190413_093640_316390_4F5A5324 X-CRM114-Status: GOOD ( 10.52 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Martin Blumenstingl , jianxin.pan@amlogic.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, ccaione@baylibre.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The RTC is always enabled on this board since the battery is already connected in the factory. According to the schematics the VCC_RTC regulator (which is either powered by the internal 3.3V or a battery) is connected to the 0.9V RTC_VDD input of the SoCs. Signed-off-by: Martin Blumenstingl --- arch/arm/boot/dts/meson8b-ec100.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/meson8b-ec100.dts b/arch/arm/boot/dts/meson8b-ec100.dts index 3ca9638fad09..9bf4249cb60d 100644 --- a/arch/arm/boot/dts/meson8b-ec100.dts +++ b/arch/arm/boot/dts/meson8b-ec100.dts @@ -88,6 +88,14 @@ }; }; + rtc32k_xtal: rtc32k-xtal-clk { + /* X2 in the schematics */ + compatible = "fixed-clock"; + clock-frequency = <32768>; + clock-output-names = "RTC32K"; + #clock-cells = <0>; + }; + usb_vbus: regulator-usb-vbus { /* * Silergy SY6288CCAC-GP 2A Power Distribution Switch. @@ -347,6 +355,12 @@ clock-names = "clkin0"; }; +&rtc { + status = "okay"; + clocks = <&rtc32k_xtal>; + vdd-supply = <&vcc_rtc>; +}; + /* exposed through the pin headers labeled "URDUG1" on the top of the PCB */ &uart_AO { status = "okay";