From patchwork Mon Mar 20 16:51:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nishanth Menon X-Patchwork-Id: 13181604 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CC57CC7618A for ; Mon, 20 Mar 2023 16:52:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=E2STNd6sxMaRS6j+duDQO/tv0Ng73pbrzLk82mj4JQI=; b=eKRirI8ClVGtqv sd2ZwyKhynyUB8EVQ/MTHl4lgNCY8y0AQYfjmNqU4F3/TyT5KDhldsUoJ808uVC5Q1aubNa7VuDLw 1WkNQPlxfQF63SYOYNbEsmobU8yLB2gbcdbGAoePOmNu05BYqiTH5QaUUJH3eztdU5WhnxuT7u0xz nQrVA9Wyc+8fSx9TMxgamYkJu2+D2Zgia/AZlc1qtbN1AKWR2smxRdIBbuM3McM6z6/VhYYnpqdr/ J/s4gQDVueqDYNsLyr5Fw7nioo8yb2l5JAkZ5PvP57TBwGasPJpq+CSk2ucSEike6i1yvfSeuKRjw mKcN+bqj+ZHPMpD3acnQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1peIjW-009shz-35; Mon, 20 Mar 2023 16:51:42 +0000 Received: from fllv0015.ext.ti.com ([198.47.19.141]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1peIjO-009sdj-25 for linux-arm-kernel@lists.infradead.org; Mon, 20 Mar 2023 16:51:36 +0000 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 32KGpOJY021129; Mon, 20 Mar 2023 11:51:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1679331084; bh=QPyC/DbvOyWHYeXOzG9GugyttVskkFsiS09ljjL/M7g=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=fdgnjN4CmGalQTfpdpRkDjUlSwy9FxKuWVGKHdnmm/PBkh9wbGgcqawSZywMz+ViJ aehcilXnlO1V+xLHUSo5VPgDNkwjrAIrCS1JQb1KBdD+TyldpesqxT9IJlxT/9fjEO dXbPOhfMBCNEvL3VKw8XWXLP/GuPoJ/mLUEGZ0pw= Received: from DLEE108.ent.ti.com (dlee108.ent.ti.com [157.170.170.38]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 32KGpOdC094500 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 20 Mar 2023 11:51:24 -0500 Received: from DLEE104.ent.ti.com (157.170.170.34) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Mon, 20 Mar 2023 11:51:24 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16 via Frontend Transport; Mon, 20 Mar 2023 11:51:24 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 32KGpOQo021931; Mon, 20 Mar 2023 11:51:24 -0500 From: Nishanth Menon To: Krzysztof Kozlowski , Rob Herring CC: , , , Tero Kristo , Vignesh Raghavendra , Julien Panis , , , Nishanth Menon Subject: [PATCH V3 1/2] arm64: dts: ti: k3-am62-wakeup: Introduce RTC node Date: Mon, 20 Mar 2023 11:51:22 -0500 Message-ID: <20230320165123.80561-2-nm@ti.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230320165123.80561-1-nm@ti.com> References: <20230320165123.80561-1-nm@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230320_095134_776094_37B83527 X-CRM114-Status: UNSURE ( 8.82 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Introduce digital RTC node in wakeup domain. Even though this has no specific battery backup supply, this on-chip RTC is used in cost-optimized board designs as a wakeup source. Reviewed-by: Dhruva Gole Reviewed-by: Bryan Brattlof Signed-off-by: Nishanth Menon --- Changes since v2: - Just reviewed-by pickups V2: https://lore.kernel.org/all/20230315170706.1598977-2-nm@ti.com/ V1: https://lore.kernel.org/all/20230311105850.21811-2-nm@ti.com/ arch/arm64/boot/dts/ti/k3-am62-wakeup.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am62-wakeup.dtsi b/arch/arm64/boot/dts/ti/k3-am62-wakeup.dtsi index 38dced6b4fef..fec81546fbbd 100644 --- a/arch/arm64/boot/dts/ti/k3-am62-wakeup.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62-wakeup.dtsi @@ -40,4 +40,14 @@ wkup_i2c0: i2c@2b200000 { clock-names = "fck"; status = "disabled"; }; + + wkup_rtc0: rtc@2b1f0000 { + compatible = "ti,am62-rtc"; + reg = <0x00 0x2b1f0000 0x00 0x100>; + interrupts = ; + clocks = <&k3_clks 117 6> , <&k3_clks 117 0>; + clock-names = "vbus", "osc32k"; + power-domains = <&k3_pds 117 TI_SCI_PD_EXCLUSIVE>; + wakeup-source; + }; };