From patchwork Thu Mar 3 14:06:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergiu Moga X-Patchwork-Id: 12767542 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 1F7E8C433F5 for ; Thu, 3 Mar 2022 14:13:50 +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=qS3CXSELoXUSR4auZU+6vcMWaDeuQXlrQa4lnDHBJo4=; b=D53jlO94LzND06 4siSC05QM8urQ2tM9usDib65kN6GnEboAP3sOM+uDGpE2Z1MMt7vleyHLS+mC1yTS8qruSV3DTzIN hQm+a/xbhZoccyXJoyx8HRFhIuAiB9tmBGXHzdeJ4d8tAm9aCfIW0bFYpvgD9PJQ8l6zChztxGKGv 9IHGWVP/d8afzBwhU02WeGpGzi0nsguBLmwQ6D0chaeRYFVNss+w2mzMNmENzwVxejiTJOUxlfSg3 KIvSlBEF2prgQK3b4OS2NRXH82kXBMKOK+ptWy/swddwEZgjWREjd545FhF8ouTMcJiOIwKkvGFlW 0HW8tmwd7A+DRCtDbCYw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nPmC7-006ZmD-3M; Thu, 03 Mar 2022 14:12:39 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nPmC1-006ZlE-Fs for linux-arm-kernel@lists.infradead.org; Thu, 03 Mar 2022 14:12:34 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1646316754; x=1677852754; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=TJ2IyJE4LtYevCR0x/vecLHr65fgQK+fMxds3YexPB4=; b=c3P1S5kS3Z5ng12DMEPVHGXlFoWmWdNNvvUViR4N76kaXuXTYVbiT6eW vhfEUZS90GG+fFPQSbxPvd2Lrerrl3tqN8XQ5ksXJboGGeouuS4INfDPW pFwtd+T5tbIGKqkGzwaSxL7crDTzA9w0XYgO2JBU4LMWssklK6jb4L0Ic 91U/7J7vydo7RX3cw9+uSIOtkgLLuwHjPO58pAI7X26OKqE4tpLFO0VXF 8f0oFFZcwiVjTHVM2EsU+xDSpmIit7jwCepDkOEceClRbQyWnrBzmwjv4 rvMK/i+tvcTGwS5cD2c5K1IOkioXQItgBoQMOlCv/Kz9NcTOzg5XIRI0r Q==; X-IronPort-AV: E=Sophos;i="5.90,151,1643698800"; d="scan'208";a="155125641" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 03 Mar 2022 07:12:32 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Thu, 3 Mar 2022 07:12:31 -0700 Received: from ROB-ULT-M68701.amer.actel.com (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Thu, 3 Mar 2022 07:12:26 -0700 From: Sergiu Moga To: , , , , , CC: , , , , Sergiu Moga Subject: [PATCH v2 1/5] ARM: dts: at91: Move rtt node properties from "dts" file to "dtsi" file Date: Thu, 3 Mar 2022 16:06:22 +0200 Message-ID: <20220303140626.38129-2-sergiu.moga@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220303140626.38129-1-sergiu.moga@microchip.com> References: <20220303140626.38129-1-sergiu.moga@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220303_061233_566073_50842E3B X-CRM114-Status: GOOD ( 11.74 ) 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 Move the properties of the rtt node of RTT IPs from the "dts" file to the "dtsi" file, since it is more IP specific than it is board specific. Signed-off-by: Sergiu Moga --- arch/arm/boot/dts/at91-sam9x60ek.dts | 5 ----- arch/arm/boot/dts/at91-sama7g5ek.dts | 4 ---- arch/arm/boot/dts/at91sam9260.dtsi | 1 + arch/arm/boot/dts/at91sam9260ek.dts | 1 - arch/arm/boot/dts/at91sam9g45.dtsi | 1 + arch/arm/boot/dts/at91sam9m10g45ek.dts | 1 - arch/arm/boot/dts/sam9x60.dtsi | 1 + arch/arm/boot/dts/sama7g5.dtsi | 1 + 8 files changed, 4 insertions(+), 11 deletions(-) diff --git a/arch/arm/boot/dts/at91-sam9x60ek.dts b/arch/arm/boot/dts/at91-sam9x60ek.dts index b1068cca4228..97ff91346cb4 100644 --- a/arch/arm/boot/dts/at91-sam9x60ek.dts +++ b/arch/arm/boot/dts/at91-sam9x60ek.dts @@ -656,11 +656,6 @@ kernel@200000 { }; }; -&rtt { - atmel,rtt-rtc-time-reg = <&gpbr 0x0>; - status = "okay"; -}; - &shutdown_controller { debounce-delay-us = <976>; status = "okay"; diff --git a/arch/arm/boot/dts/at91-sama7g5ek.dts b/arch/arm/boot/dts/at91-sama7g5ek.dts index ccf9e224da78..b7416d9469e3 100644 --- a/arch/arm/boot/dts/at91-sama7g5ek.dts +++ b/arch/arm/boot/dts/at91-sama7g5ek.dts @@ -708,10 +708,6 @@ &pwm { status = "disabled"; /* Conflict with leds. */ }; -&rtt { - atmel,rtt-rtc-time-reg = <&gpbr 0x0>; -}; - &sdmmc0 { bus-width = <8>; non-removable; diff --git a/arch/arm/boot/dts/at91sam9260.dtsi b/arch/arm/boot/dts/at91sam9260.dtsi index 7368347c9357..66d11c8f1a9b 100644 --- a/arch/arm/boot/dts/at91sam9260.dtsi +++ b/arch/arm/boot/dts/at91sam9260.dtsi @@ -713,6 +713,7 @@ rtc@fffffd20 { reg = <0xfffffd20 0x10>; interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>; clocks = <&pmc PMC_TYPE_CORE PMC_SLOW>; + atmel,rtt-rtc-time-reg = <&gpbr 0x0>; status = "disabled"; }; diff --git a/arch/arm/boot/dts/at91sam9260ek.dts b/arch/arm/boot/dts/at91sam9260ek.dts index ce96345d28a3..6932dab42f2e 100644 --- a/arch/arm/boot/dts/at91sam9260ek.dts +++ b/arch/arm/boot/dts/at91sam9260ek.dts @@ -118,7 +118,6 @@ shdwc@fffffd10 { }; rtc@fffffd20 { - atmel,rtt-rtc-time-reg = <&gpbr 0x0>; status = "okay"; }; diff --git a/arch/arm/boot/dts/at91sam9g45.dtsi b/arch/arm/boot/dts/at91sam9g45.dtsi index 2ab730fd6472..fd308e2c15e8 100644 --- a/arch/arm/boot/dts/at91sam9g45.dtsi +++ b/arch/arm/boot/dts/at91sam9g45.dtsi @@ -929,6 +929,7 @@ rtc@fffffd20 { reg = <0xfffffd20 0x10>; interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>; clocks = <&clk32k>; + atmel,rtt-rtc-time-reg = <&gpbr 0x0>; status = "disabled"; }; diff --git a/arch/arm/boot/dts/at91sam9m10g45ek.dts b/arch/arm/boot/dts/at91sam9m10g45ek.dts index b6256a20fbc7..07bfa8ef715d 100644 --- a/arch/arm/boot/dts/at91sam9m10g45ek.dts +++ b/arch/arm/boot/dts/at91sam9m10g45ek.dts @@ -220,7 +220,6 @@ pwm0: pwm@fffb8000 { }; rtc@fffffd20 { - atmel,rtt-rtc-time-reg = <&gpbr 0x0>; status = "okay"; }; diff --git a/arch/arm/boot/dts/sam9x60.dtsi b/arch/arm/boot/dts/sam9x60.dtsi index ec45ced3cde6..57ba47c54043 100644 --- a/arch/arm/boot/dts/sam9x60.dtsi +++ b/arch/arm/boot/dts/sam9x60.dtsi @@ -693,6 +693,7 @@ rtt: rtt@fffffe20 { reg = <0xfffffe20 0x20>; interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>; clocks = <&clk32k 0>; + atmel,rtt-rtc-time-reg = <&gpbr 0x0>; }; pit: timer@fffffe40 { diff --git a/arch/arm/boot/dts/sama7g5.dtsi b/arch/arm/boot/dts/sama7g5.dtsi index eddcfbf4d223..1530d88ce80f 100644 --- a/arch/arm/boot/dts/sama7g5.dtsi +++ b/arch/arm/boot/dts/sama7g5.dtsi @@ -138,6 +138,7 @@ rtt: rtt@e001d020 { reg = <0xe001d020 0x30>; interrupts = ; clocks = <&clk32k 0>; + atmel,rtt-rtc-time-reg = <&gpbr 0x0>; }; clk32k: clock-controller@e001d050 { From patchwork Thu Mar 3 14:06:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergiu Moga X-Patchwork-Id: 12767543 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 40BBBC433EF for ; Thu, 3 Mar 2022 14:14:02 +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=ysNluGfY8S45b4KWf6xEsdC9uGCMWNsBwepa3r1DTx4=; b=LH8y74chuvqQLs 8iDVn0BbzoWE2QW817L5rDDrZL8vASf8n3PNGqie+ib0xxu/L8ivGscVD2JOVFct0aIRQv3Ld1iu5 IoMa8M8mqvE3NDMPUUSgF1nn4mtyzaboUKuqh6DgByZFKjpjB0JA3W7EfPANQeQTAKXxLG1y5Ro7h K8dhz7y/sSqPO0IFLiLa75p+ajxGgHOBhyatsiHoNp7b4StFPO4Nc/oaSrnZKEB2uutC/BHVaIJ2A 4gWK0MBmZoYdJRQUBIOJt3JG6eTi9XqgcqT6ApChSHP2GgDKzz9dMy2r+Cer9YUBPLqAeQ8xyxxuX 4G3DHe5NRZseeUBlqgEw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nPmCH-006Zpn-Sx; Thu, 03 Mar 2022 14:12:50 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nPmC9-006Zmx-3J for linux-arm-kernel@lists.infradead.org; Thu, 03 Mar 2022 14:12:42 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1646316760; x=1677852760; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=WIKT5jfoAPP6qi8Q03VSCyqWe/v8lRvCpzkdyDNOaB0=; b=0UWAgAGSOb3I5+gKl7SHNyWU1AgtV6Fhsm4Ya23NDzjjLHayOHJDozQV DEbIjkC2nlxha9wDWq7cizy888C5LLc9gZQkoZkbqAiIbkjgNTKF7WsF+ RAvr4DWw8b205vpuP0Dg1HVPziXG8E8gTOG2tBSibKlA/j5+NpJ2g5ZjX kr6ZWUaTMguQZCnXD2FufbsztyMaTHMaS6AKlCH+k5Y6TpaG2KPF7CWkE HJud4qJZzSAFHKrqIzQH599kyID5olyaXmdcX1sQ9zCc0NyhPRp8Kl99z k3STvoGyoPoMWQe1NGxac2idzzawfIOEA+qO4q2+GNMnbkcTvPc8xI/mb Q==; X-IronPort-AV: E=Sophos;i="5.90,151,1643698800"; d="scan'208";a="155582398" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 03 Mar 2022 07:12:39 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Thu, 3 Mar 2022 07:12:38 -0700 Received: from ROB-ULT-M68701.amer.actel.com (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Thu, 3 Mar 2022 07:12:33 -0700 From: Sergiu Moga To: , , , , , CC: , , , , Sergiu Moga Subject: [PATCH v2 2/5] ARM: dts: at91: Add the required `atmel, rtt-rtc-time-reg` property Date: Thu, 3 Mar 2022 16:06:23 +0200 Message-ID: <20220303140626.38129-3-sergiu.moga@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220303140626.38129-1-sergiu.moga@microchip.com> References: <20220303140626.38129-1-sergiu.moga@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220303_061241_174443_095D9D79 X-CRM114-Status: UNSURE ( 8.14 ) 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 Add the required `atmel,rtt-rtc-time-reg` property to the `rtt` nodes of the RTT IPs. Signed-off-by: Sergiu Moga --- arch/arm/boot/dts/at91sam9261.dtsi | 1 + arch/arm/boot/dts/at91sam9263.dtsi | 2 ++ arch/arm/boot/dts/at91sam9rl.dtsi | 1 + 3 files changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/at91sam9261.dtsi b/arch/arm/boot/dts/at91sam9261.dtsi index 7adc36ca8a46..ac50b164138a 100644 --- a/arch/arm/boot/dts/at91sam9261.dtsi +++ b/arch/arm/boot/dts/at91sam9261.dtsi @@ -627,6 +627,7 @@ rtc@fffffd20 { reg = <0xfffffd20 0x10>; interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>; clocks = <&slow_xtal>; + atmel,rtt-rtc-time-reg = <&gpbr 0x0>; status = "disabled"; }; diff --git a/arch/arm/boot/dts/at91sam9263.dtsi b/arch/arm/boot/dts/at91sam9263.dtsi index fe45d96239c9..6be91df2a8b1 100644 --- a/arch/arm/boot/dts/at91sam9263.dtsi +++ b/arch/arm/boot/dts/at91sam9263.dtsi @@ -734,6 +734,7 @@ rtc@fffffd20 { reg = <0xfffffd20 0x10>; interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>; clocks = <&slow_xtal>; + atmel,rtt-rtc-time-reg = <&gpbr 0x0>; status = "disabled"; }; @@ -742,6 +743,7 @@ rtc@fffffd50 { reg = <0xfffffd50 0x10>; interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>; clocks = <&slow_xtal>; + atmel,rtt-rtc-time-reg = <&gpbr 0x4>; status = "disabled"; }; diff --git a/arch/arm/boot/dts/at91sam9rl.dtsi b/arch/arm/boot/dts/at91sam9rl.dtsi index 730d1182c73e..80e41f115216 100644 --- a/arch/arm/boot/dts/at91sam9rl.dtsi +++ b/arch/arm/boot/dts/at91sam9rl.dtsi @@ -805,6 +805,7 @@ rtc@fffffd20 { reg = <0xfffffd20 0x10>; interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>; clocks = <&clk32k>; + atmel,rtt-rtc-time-reg = <&gpbr 0x0>; status = "disabled"; }; From patchwork Thu Mar 3 14:06:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergiu Moga X-Patchwork-Id: 12767551 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 2732CC433EF for ; Thu, 3 Mar 2022 14:14:37 +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=BxD5gV36+45gNn4gXtDKwKmF7PpKfzpHg4ezgkeSsxI=; b=I7T6AJklRJ/rGg IsSbRuY408ycSo8gqjLqIY/vZbpsBKG4cCQWlWH/aC8xWcAvpSgmtG6h/cCoHo0vnGey9fOE1FgZh RMluH1/q+V04FsZxXIgpvdNm1x7/0zTNAR0NxF5c6A++GdceXgS986XF9/Qb1B1ogode8Axp1Ukz+ 4dWMCNrsx0LQebyTlY3cdmaw/t5NNIr6sMGh5ILShqNScw8QuowA0KI3E/O9BLOdv3oXg3wjAQmhT 043wTvKdxyUOnvLCurF75qAYhTxCUOVoFS6dEnwS4+GjvTHlAuqNhp5ae3ja0i68VjFPdBAR3uBJ5 YiKyKSh5GQ14WyEn31Hw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nPmCv-006a9V-QS; Thu, 03 Mar 2022 14:13:29 +0000 Received: from esa.microchip.iphmx.com ([68.232.154.123]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nPmCk-006a3c-8C for linux-arm-kernel@lists.infradead.org; Thu, 03 Mar 2022 14:13:19 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1646316798; x=1677852798; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=4PhgPXNH3gn0Jlm6gmCHX35CmgC3EbWH5a420lKVhHk=; b=H5vuEzpnxrY7WW0RWTcO452HJR++VfNrV1PTeKl0JF/VcGm0b4G3w6WG tCQzueV9YQNuycL51DIgJjY4f97NGM70d5H8Ol2jiMGaoRBLVPL/VT7y/ bSQsoaIKJPxdhrPToaL3ApBHZqThB77hlznQMkxWBfz3auzrZojz+OaH3 scJIcJhkIguTgOobSnwOUbDD1ggdYyiOppY4Y8476EPPE/zv8SSW6r2WU 9zwOej5rzVVpMCttCye+AH688ZW2Y40i82SPv06TLODczu5RfY1aS6dKT NtUUiOozFpYmFaC9Xn0mI908rK3YfijMTc5CKcp1jF+wmcG/qtiJlKVUf w==; X-IronPort-AV: E=Sophos;i="5.90,151,1643698800"; d="scan'208";a="87698040" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa6.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 03 Mar 2022 07:13:12 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Thu, 3 Mar 2022 07:12:44 -0700 Received: from ROB-ULT-M68701.amer.actel.com (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Thu, 3 Mar 2022 07:12:40 -0700 From: Sergiu Moga To: , , , , , CC: , , , , Sergiu Moga Subject: [PATCH v2 3/5] ARM: dts: at91: Use the generic "rtc" node name for the rtt IPs Date: Thu, 3 Mar 2022 16:06:24 +0200 Message-ID: <20220303140626.38129-4-sergiu.moga@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220303140626.38129-1-sergiu.moga@microchip.com> References: <20220303140626.38129-1-sergiu.moga@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220303_061318_378230_A4FAAB47 X-CRM114-Status: GOOD ( 10.63 ) 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 As the DT specification recommends, the node names should be of a generic nature. Thus, the most appropriate generic node name for the at91 rtt IPs is the "rtc" node name. Signed-off-by: Sergiu Moga Reviewed-by: Krzysztof Kozlowski Reviewed-by: Tudor Ambarus --- arch/arm/boot/dts/sam9x60.dtsi | 2 +- arch/arm/boot/dts/sama7g5.dtsi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/sam9x60.dtsi b/arch/arm/boot/dts/sam9x60.dtsi index 57ba47c54043..af7602cb65f7 100644 --- a/arch/arm/boot/dts/sam9x60.dtsi +++ b/arch/arm/boot/dts/sam9x60.dtsi @@ -688,7 +688,7 @@ shutdown_controller: shdwc@fffffe10 { status = "disabled"; }; - rtt: rtt@fffffe20 { + rtt: rtc@fffffe20 { compatible = "microchip,sam9x60-rtt", "atmel,at91sam9260-rtt"; reg = <0xfffffe20 0x20>; interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>; diff --git a/arch/arm/boot/dts/sama7g5.dtsi b/arch/arm/boot/dts/sama7g5.dtsi index 1530d88ce80f..87af6c680322 100644 --- a/arch/arm/boot/dts/sama7g5.dtsi +++ b/arch/arm/boot/dts/sama7g5.dtsi @@ -133,7 +133,7 @@ shdwc: shdwc@e001d010 { status = "disabled"; }; - rtt: rtt@e001d020 { + rtt: rtc@e001d020 { compatible = "microchip,sama7g5-rtt", "microchip,sam9x60-rtt", "atmel,at91sam9260-rtt"; reg = <0xe001d020 0x30>; interrupts = ; From patchwork Thu Mar 3 14:06:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergiu Moga X-Patchwork-Id: 12767549 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 1341AC433F5 for ; Thu, 3 Mar 2022 14:14:14 +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=2G4XEFQ5DwC2YIvKDf8be3Vdp5NzWS1hNNHk++kQCeE=; b=GgpL4QDbl6ZOFW 2HF/eESvsF/jkhxxvnp5KHQ/v9qOjFnfGv4Mn7eBMiPQD7XRC2i/YRzKA7mo0QOjxfyS9q145inq5 KGcrvnU0a8nyAtzgSarGpVMEiA8QY8aVHO/sVFbAqXI/NDFdGmsUP1qCVUQns558maFtUJL7razr0 iDD8z0MGSItIEpYMnsxeA1QKPfmKRUzRC1O6AVXq3nDtETs+mnrtM9YNLQB82bg1fmMlcrSqY34aN wI6T2MHwRUxQAU+gJyJxI1LDFPJ4n7bo9n4r6hF9aYWMSUEgNtjfb/Q8wjanMTetU33bjOsrMqjxw UyY4knTTwEwN9S3BdtgQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nPmCT-006ZvX-Jq; Thu, 03 Mar 2022 14:13:01 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nPmCL-006Zrm-Bv for linux-arm-kernel@lists.infradead.org; Thu, 03 Mar 2022 14:12:55 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1646316773; x=1677852773; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Ii1IDpzBCywstrqs0ihtCZsjxQTenixL/7CD9yqjDzk=; b=0IJkRaYFQ/844HdRqB61/ab3AYjH3bfB7/e/j/ucrZeb1Z8CCqsBZ2sh 6gMzohKnBixuCz3P4WJ17zgRc0dbI7xHDlWA/r8r/1iYyucjHJoi5EsB0 SZ0dfq8D+KE18wfYHfu77UT1ZoouUVYGcdlXGfmNeK1V/KYKekLrKtES6 XH0xEodoroq7V8s4vGoa5C8ojPqrPcx0XPl1jxwc9cn8+RiDsmonhjEO9 YzANjPrioefLETWGwiZ1d0mks44Pp7eksUMEOt0SX0sACSQrI4FgRjmkV 70lL8FPf9LVQN1NgqBhOwEWlOL7NWgmGAe1r6+wFZWezXxjeMzNNTol21 g==; X-IronPort-AV: E=Sophos;i="5.90,151,1643698800"; d="scan'208";a="155125685" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 03 Mar 2022 07:12:53 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Thu, 3 Mar 2022 07:12:52 -0700 Received: from ROB-ULT-M68701.amer.actel.com (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Thu, 3 Mar 2022 07:12:46 -0700 From: Sergiu Moga To: , , , , , CC: , , , , Sergiu Moga Subject: [PATCH v2 4/5] dt-bindings: rtc: convert at91sam9 bindings to json-schema Date: Thu, 3 Mar 2022 16:06:25 +0200 Message-ID: <20220303140626.38129-5-sergiu.moga@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220303140626.38129-1-sergiu.moga@microchip.com> References: <20220303140626.38129-1-sergiu.moga@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220303_061253_456004_06EDC207 X-CRM114-Status: GOOD ( 16.94 ) 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 Convert RTC binding for Atmel/Microchip SoCs to Device Tree Schema format. Signed-off-by: Sergiu Moga --- .../bindings/rtc/atmel,at91sam9-rtc.txt | 25 -------- .../bindings/rtc/atmel,at91sam9-rtc.yaml | 61 +++++++++++++++++++ 2 files changed, 61 insertions(+), 25 deletions(-) delete mode 100644 Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.txt create mode 100644 Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.yaml diff --git a/Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.txt b/Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.txt deleted file mode 100644 index 3f0e2a5950eb..000000000000 --- a/Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.txt +++ /dev/null @@ -1,25 +0,0 @@ -Atmel AT91SAM9260 Real Time Timer - -Required properties: -- compatible: should be one of the following: - - "atmel,at91sam9260-rtt" - - "microchip,sam9x60-rtt", "atmel,at91sam9260-rtt" -- reg: should encode the memory region of the RTT controller -- interrupts: rtt alarm/event interrupt -- clocks: should contain the 32 KHz slow clk that will drive the RTT block. -- atmel,rtt-rtc-time-reg: should encode the GPBR register used to store - the time base when the RTT is used as an RTC. - The first cell should point to the GPBR node and the second one - encode the offset within the GPBR block (or in other words, the - GPBR register used to store the time base). - - -Example: - -rtt@fffffd20 { - compatible = "atmel,at91sam9260-rtt"; - reg = <0xfffffd20 0x10>; - interrupts = <1 4 7>; - clocks = <&clk32k>; - atmel,rtt-rtc-time-reg = <&gpbr 0x0>; -}; diff --git a/Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.yaml b/Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.yaml new file mode 100644 index 000000000000..5a639c0ec2c0 --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.yaml @@ -0,0 +1,61 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright (C) 2022 Microchip Technology, Inc. and its subsidiaries +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rtc/atmel,at91sam9-rtc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Atmel AT91 RTT Device Tree Bindings + +allOf: + - $ref: "rtc.yaml#" + +maintainers: + - Alexandre Belloni + +properties: + compatible: + oneOf: + - items: + - const: atmel,at91sam9260-rtt + - items: + - const: microchip,sam9x60-rtt + - const: atmel,at91sam9260-rtt + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + + atmel,rtt-rtc-time-reg: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: | + Should encode the GPBR register used to store the time base when the + RTT is used as an RTC. The first cell should point to the GPBR node + and the second one encodes the offset within the GPBR block (or in + other words, the GPBR register used to store the time base). + + start-year: true + +required: + - compatible + - reg + - interrupts + - clocks + - atmel,rtt-rtc-time-reg + +additionalProperties: false + +examples: + - | + rtc@fffffd20 { + compatible = "atmel,at91sam9260-rtt"; + reg = <0xfffffd20 0x10>; + interrupts = <1 4 7>; + clocks = <&clk32k>; + atmel,rtt-rtc-time-reg = <&gpbr 0x0>; + }; From patchwork Thu Mar 3 14:06:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergiu Moga X-Patchwork-Id: 12767550 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 AB14AC433EF for ; Thu, 3 Mar 2022 14:14:29 +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=L9X5qKwJX0Krd3OTRwecJ5GC6yuaG8HxB7zBAZ3LP/E=; b=npVdtzc0Csrjd6 3y/WmLm3K+ns599uH+um+uHeEO+4s1EfApqXr0NciZlbKUR+VNKf6o9MVBEhROo9w81OTmsttdLQg T5rhPEfrWQR9+/uUqCazyCVMWCzSpFpVtVsmhHpfaOiRfXzj4t+S35ymN0kIQ5p3wK0QjJJSvE5OI zMKmW/4wPM90WTnNtk47kWBsEu759rTLdB12JB3GE1x3i5NwHvlGj+WM+QEGKZux4yrDgXSiPprVZ 2vFxbbE3PS/COf2fnxVO4eMDTkwmZRCcxHVZj9fjsSfxxrF+kkLk5ODtpce4V1JwVoDlKRle6oJfI 28LSb6keL36br7qG1BXA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nPmCf-006a08-1p; Thu, 03 Mar 2022 14:13:13 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nPmCT-006Zvi-1t for linux-arm-kernel@lists.infradead.org; Thu, 03 Mar 2022 14:13:02 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1646316781; x=1677852781; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=mw3l0iGOywkqPQnUnJMMMA0UyYwQBMd/QJwYxJQH7p0=; b=FSKGPnuxaxE0QFSoBznzdYVdwLXrmxYY+jJw7W4fxquSAQrzaEFDCa3g TW5gDrgqULxLHJkJnSAymHGYP2kFGoQq/S96yHL62zLhNLBYY8iGiRtdE 2OeB0X4s02VbKLtF7s7UskLVsenDJpigIhPHn04BVQ8AQcVo8jxIVawNT KDL3rwUtziyMsi0OhdLnjLH5bN4Bz+cxjpChLuJLVWMDZRtHc9i63Mv1P 5eh+XRU/A8mVo6gbUhIXrnK8F2C8J6MxRpn++l8caAe1iP/HTlEjIn+i/ MrPH0ieTjf7h6HfoVrZiULCTi/JgXW7nPp1KCVO2HR29GlpW3BTgfCWzy g==; X-IronPort-AV: E=Sophos;i="5.90,151,1643698800"; d="scan'208";a="155125707" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 03 Mar 2022 07:13:01 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Thu, 3 Mar 2022 07:12:59 -0700 Received: from ROB-ULT-M68701.amer.actel.com (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Thu, 3 Mar 2022 07:12:54 -0700 From: Sergiu Moga To: , , , , , CC: , , , , Sergiu Moga Subject: [PATCH v2 5/5] dt-bindings: rtc: at91: Add SAMA7G5 compatible strings list Date: Thu, 3 Mar 2022 16:06:26 +0200 Message-ID: <20220303140626.38129-6-sergiu.moga@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220303140626.38129-1-sergiu.moga@microchip.com> References: <20220303140626.38129-1-sergiu.moga@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220303_061301_147443_57F2DB13 X-CRM114-Status: UNSURE ( 7.06 ) 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 Add compatible strings list for SAMA7G5. Signed-off-by: Sergiu Moga Reviewed-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.yaml b/Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.yaml index 5a639c0ec2c0..d87aa67b442f 100644 --- a/Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.yaml +++ b/Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.yaml @@ -21,6 +21,10 @@ properties: - items: - const: microchip,sam9x60-rtt - const: atmel,at91sam9260-rtt + - items: + - const: microchip,sama7g5-rtt + - const: microchip,sam9x60-rtt + - const: atmel,at91sam9260-rtt reg: maxItems: 1