From patchwork Fri Mar 4 16:11:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergiu Moga X-Patchwork-Id: 12769412 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 E34DBC433F5 for ; Fri, 4 Mar 2022 16:15:13 +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=ln0zl3bvoZOdhUJuQYOgml41DyvaROlf8qi/YqAWZvA=; b=Oc3KyzSGcujYM7 +PP0m/v8NoUPxKBl/6eJBzQdlkjAXNWrCbqzlKQZEhKysYqUahf0VjejWZSPSvzWtIyCl3F3FWWTt cxiBjmOke8sYEsEwE01Yi7djN1tiDM9OXX8C57I8a/j88VrjFd6fhIMZWMvVTaL3xWi3pwCdu+8FY sUuyxzx1tujW6PKf0gO1IfjR3APHIWOLN4SW81E8U4Vi+wqZBttul2d74+CmI61472+s7TtrUmzrU e8o1LFtTAMWrISkomXDoyOGY4z4NaM+96qrUFr3ax9Qkpa4JME7YqCEULUaQrfT5r33FHYdVRNvSX AQGAmHIt7QPChPTzPuIQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nQAYx-00Awtq-Fn; Fri, 04 Mar 2022 16:13:51 +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 1nQAXV-00Aw6d-T8 for linux-arm-kernel@lists.infradead.org; Fri, 04 Mar 2022 16:12:23 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1646410341; x=1677946341; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=npqRMShON8GS89evuY+tYR/KdBqmSoerlGzVS1IANk8=; b=MkpnB7pVowuyFovUHPspAbZ0m32m1Wp8VQMy8dMoh1xuonnG16hz2mM8 u3bFqRMxG+NdpqF0bom94RClXEz65mjD4ZcnDQyFZ+gjS7uaQzX87FJjX tzfik+2odUZK4MBaXxrddFHTy0nuKVfb9afuiamoOjrTLpenaUzTlFJbg oB+LxO2GJXP2NWFQ4hc/nuvCktx3yf7xuPg4/dww8TzVAfleqzN4Tcu9D zKi6SbsVaBsfJ9CH5TLbuvgAWyIOzyqF9oYnfGN05MIXsDo4FXcNdubyf mGPlqsPzMUIJZbAk7L/M62CfgtgUmBSmwPlGa2RY3WtahjByVqiZGhYL9 w==; X-IronPort-AV: E=Sophos;i="5.90,155,1643698800"; d="scan'208";a="155743487" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 04 Mar 2022 09:12:18 -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; Fri, 4 Mar 2022 09:12:18 -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; Fri, 4 Mar 2022 09:12:14 -0700 From: Sergiu Moga To: , , , , , CC: , , , , Sergiu Moga Subject: [PATCH v4 1/4] ARM: dts: at91: Add the required `atmel, rtt-rtc-time-reg` property Date: Fri, 4 Mar 2022 18:11:56 +0200 Message-ID: <20220304161159.147784-2-sergiu.moga@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220304161159.147784-1-sergiu.moga@microchip.com> References: <20220304161159.147784-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-20220304_081222_005884_F5BD34BD X-CRM114-Status: UNSURE ( 8.22 ) 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 board files that were missing it. Signed-off-by: Sergiu Moga Reviewed-by: Tudor Ambarus --- arch/arm/boot/dts/at91sam9261ek.dts | 4 ++++ arch/arm/boot/dts/at91sam9263ek.dts | 4 ++++ arch/arm/boot/dts/at91sam9rlek.dts | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/at91sam9261ek.dts b/arch/arm/boot/dts/at91sam9261ek.dts index beed819609e8..3c1f40b4a13e 100644 --- a/arch/arm/boot/dts/at91sam9261ek.dts +++ b/arch/arm/boot/dts/at91sam9261ek.dts @@ -178,6 +178,10 @@ dbgu: serial@fffff200 { status = "okay"; }; + rtc@fffffd20 { + atmel,rtt-rtc-time-reg = <&gpbr 0x0>; + }; + watchdog@fffffd40 { status = "okay"; }; diff --git a/arch/arm/boot/dts/at91sam9263ek.dts b/arch/arm/boot/dts/at91sam9263ek.dts index 71f60576761a..4d922c10c26c 100644 --- a/arch/arm/boot/dts/at91sam9263ek.dts +++ b/arch/arm/boot/dts/at91sam9263ek.dts @@ -102,6 +102,10 @@ mtd_dataflash@0 { }; }; + rtc@fffffd20 { + atmel,rtt-rtc-time-reg = <&gpbr 0x0>; + }; + watchdog@fffffd40 { status = "okay"; }; diff --git a/arch/arm/boot/dts/at91sam9rlek.dts b/arch/arm/boot/dts/at91sam9rlek.dts index 62981b39c815..a26f9f70b6b2 100644 --- a/arch/arm/boot/dts/at91sam9rlek.dts +++ b/arch/arm/boot/dts/at91sam9rlek.dts @@ -212,6 +212,10 @@ watchdog@fffffd40 { status = "okay"; }; + rtc@fffffd20 { + atmel,rtt-rtc-time-reg = <&gpbr 0x0>; + }; + rtc@fffffe00 { status = "okay"; }; From patchwork Fri Mar 4 16:11:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergiu Moga X-Patchwork-Id: 12769413 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 DCAA6C433F5 for ; Fri, 4 Mar 2022 16:15:44 +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=BzHX7icwraej9nTp7ImvtR5lBlVlZnfmT/Qi9RHztEI=; b=aknRZ/Hmu+PmNf 5vqlrVEgw2veF3TQ7XDGSR8HWgqOY0A9CK1rJH2MC0yb1O97IWrK4fVaED3zPVZeCpZEdvnazVRJi +sikKQ0qeMUuy0v2HiFnj0AOzy0qH4jgJ4BfQ9zMeOzveBzetF4GEf76WKIPB0OWKYBWvwAVwbn88 AY4PAyPRO2Y5fwUMYqrRwL3d8EE/wn0K8hvINIeGUQ71Qef+S8zHrrFgR2ZVmvCMGhVvgYhNfeU0p KXZuUFL5sAnth/+bk2+rLYVqOUVE8Scf2l2zIqTtTgMaOYjFh4V3cN2NQCbZAc51U/9fZw4QSekD5 rEJBopnCABvkwsXWZmFg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nQAZR-00AxAy-VJ; Fri, 04 Mar 2022 16:14:22 +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 1nQAXd-00AwBq-IT for linux-arm-kernel@lists.infradead.org; Fri, 04 Mar 2022 16:12:32 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1646410349; x=1677946349; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=8UhWB4qageMflj2sZl7yJGGmOOPfpidhTrXSN6f9UUQ=; b=t+0793E+Tpd4MexWntNTemnUmqDvzumQwZMylR72mOUB2xPMokT4vbX+ 57snUmdhJdVztkEcsGEbivzbgvBInnrfIQBSM0EudZIhEWymRSoLu4hMD m383JiUl5cQvRWGm2XXNCMGFwt8rrD1DkO1PsEyUG/RNQwv7Mx/51BKs6 JfR8m+biAXfhliYbNVKqS7wFK/cs916I3KDjjvTy65Kfb4IJbkXtmgPw9 I6ev8+WGC8KOJ4+bQdTLr7prbvpZhKh0ekNINwWNwjMW0HBci/ab6wVRZ HeaiIKBjmZyvSHT53K9UOkqut5JROsZ0HGHz0UzzNJbSpYhjoR/yzUZCS g==; X-IronPort-AV: E=Sophos;i="5.90,155,1643698800"; d="scan'208";a="155743557" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 04 Mar 2022 09:12:26 -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; Fri, 4 Mar 2022 09:12:24 -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; Fri, 4 Mar 2022 09:12:20 -0700 From: Sergiu Moga To: , , , , , CC: , , , , Sergiu Moga , Tudor Ambarus Subject: [PATCH v4 2/4] ARM: dts: at91: Use the generic "rtc" node name for the rtt IPs Date: Fri, 4 Mar 2022 18:11:57 +0200 Message-ID: <20220304161159.147784-3-sergiu.moga@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220304161159.147784-1-sergiu.moga@microchip.com> References: <20220304161159.147784-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-20220304_081229_643533_AFF03928 X-CRM114-Status: GOOD ( 10.90 ) 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 998629a3c34f..c328b67bea0c 100644 --- a/arch/arm/boot/dts/sam9x60.dtsi +++ b/arch/arm/boot/dts/sam9x60.dtsi @@ -684,7 +684,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 e6d0c90cf710..5d8841d0831a 100644 --- a/arch/arm/boot/dts/sama7g5.dtsi +++ b/arch/arm/boot/dts/sama7g5.dtsi @@ -170,7 +170,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 Fri Mar 4 16:11:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergiu Moga X-Patchwork-Id: 12769414 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 21FC4C433F5 for ; Fri, 4 Mar 2022 16:16: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=KjJJASrcLwRw/F6pAcYR4FBhRdXvXSuOSgQI7C8++Dw=; b=NZhlNMMHnNliL5 /8zGp69v688gAjYUqbmPJnjV4gN9sEy1cjQG6iInSJYgIvLLcMXn905bdx24MCuK6Ijekn9MFRP5u +n+Yf8+2ryCP4Kul0628vmuou7vaV2ENFnBaomxMO1TsuawT4jqtvdTZ5lx4gQvWH7K7G9R4ek47O 6oKw6sWKUBs1Kyb9v/BnWBW74YlPARbIV3DD3JjRxN0F46QKLbVBI3nUOyRj+iV3teJQKrwqmNMkJ zibpPaglnECqyUvSEOABqgS/T0vzRQSTuFvBHwmTWCAy7g62vTYS8pU8LZope37Gw365XXZRlogLg uglWWDjGNtuERZEYtuJg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nQAa1-00AxTy-EF; Fri, 04 Mar 2022 16:14:57 +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 1nQAXk-00AwBq-9k for linux-arm-kernel@lists.infradead.org; Fri, 04 Mar 2022 16:12:37 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1646410355; x=1677946355; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=3twr+wH4YG8dvr+phLPiUgUe0mcYyxeg6BWSNTEIEoc=; b=wdaTBGjqbQjrPbL0ZX8W902GA9CddgaXkXJAz7CCvUIHGhS5ThFTUMUS CfqXDeEvXPlrit+plAmRxc62a8WNZEPJNQxpJuWqG64KC0PTrC/4m1dlv uCwHhTNN2C4IJSnCvD5vJRebPWreVfTb+ebC8h5cIzpYoG0WrJyP7r5A3 J5LbCsEgCpW5wnfQ5cn9b1+wXWXSLpHtBryosVla3XK6FaRN+Jpiu9PRa pbIk2BGZO1cK9urqyZ9urPIPogSUrfTY3Mu1cezcH74D7M3ADXRzFPKc5 8Oo+Pep35wtF9mbxGsdm4O/K5EZNc5HsUzmQfnNDDMHVQhLjPou5vG0C7 w==; X-IronPort-AV: E=Sophos;i="5.90,155,1643698800"; d="scan'208";a="155743595" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 04 Mar 2022 09:12:29 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Fri, 4 Mar 2022 09:12:30 -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; Fri, 4 Mar 2022 09:12:26 -0700 From: Sergiu Moga To: , , , , , CC: , , , , Sergiu Moga Subject: [PATCH v4 3/4] dt-bindings: rtc: convert at91sam9 bindings to json-schema Date: Fri, 4 Mar 2022 18:11:58 +0200 Message-ID: <20220304161159.147784-4-sergiu.moga@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220304161159.147784-1-sergiu.moga@microchip.com> References: <20220304161159.147784-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-20220304_081236_413888_B67038CA X-CRM114-Status: GOOD ( 16.96 ) 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 Reviewed-by: Rob Herring Reviewed-by: Krzysztof Kozlowski --- .../bindings/rtc/atmel,at91sam9-rtc.txt | 25 ------- .../bindings/rtc/atmel,at91sam9-rtc.yaml | 65 +++++++++++++++++++ 2 files changed, 65 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..d2452067bfe4 --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.yaml @@ -0,0 +1,65 @@ +# 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 + items: + - items: + - description: Phandle to the GPBR node. + - description: Offset within the GPBR block. + 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). + +required: + - compatible + - reg + - interrupts + - clocks + - atmel,rtt-rtc-time-reg + +unevaluatedProperties: false + +examples: + - | + #include + + rtc@fffffd20 { + compatible = "atmel,at91sam9260-rtt"; + reg = <0xfffffd20 0x10>; + interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>; + clocks = <&clk32k>; + atmel,rtt-rtc-time-reg = <&gpbr 0x0>; + }; From patchwork Fri Mar 4 16:11:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergiu Moga X-Patchwork-Id: 12769415 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 4BBD8C433EF for ; Fri, 4 Mar 2022 16:16:52 +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=dpEYNg1y+X1sb6+jCXm8FSE9+vtY56goqAmpuCTxKkw=; b=h0gUiUt2nPAp4/ ULHiXORea5ngWYPxrbNuZ29Ek05mMb9/gfJtjFWkEkt9aNV4GFzw8CtW6+smSyYlPlV36Ve5Dq9c0 BPAhZkEZjiygDV7KPC3Av5GZm8rDYdh/0WalhBHO5A0DkicEl8ZZcM60bqcdciB1xj8qVwUU43lsg x5xNYtJNTnvbJczaHsVpBCcki9+Wit2YGr4yPaxO/8RzBRSjInL3Un5N6pEFGFFfwaoXfqu1jBtpt CiLbw4zLJ8QIpXmRqSId6vNWv/+FsUqczrykTjNCBBU7A3px0LdIsJIr7hqSjF1ozTbWyZqc0X1th lFZzii56niTWXyHigc3A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nQAaV-00Axke-92; Fri, 04 Mar 2022 16:15:27 +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 1nQAXp-00AwIX-DL for linux-arm-kernel@lists.infradead.org; Fri, 04 Mar 2022 16: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=1646410361; x=1677946361; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ItwHa2LGg6vVjt4JwnVSxcBCS+3q6NmheNIr1H3INP4=; b=FqyacSBVeBCvFvgc1Cp6wOlWBZmgZgt6A06qLnjHDhlnC+Iv9Y8MbM2w YxpJEqq7St03un4dGKKALp4/dhgyyc6uGno0HPFRfx+aYO0X+2OAyVydl cOk3GAB30X20Vug4XfkLskgdcilBHMGCbn4bDVKbn/JosFD89IAeTXoLF CrY/mZ0laRRoBZkOghBjPImLd+bnxZeQXtuzvOIlZ5t000/Cpy1dlNbjE bh9mb6aWPe/of574qKCwgaD9uS2BiWkfAEuvJiN/IUoJMLDMS7YToQZbK pvbxWKGs1gf1b0HEFUYmXzVX0OJ7jbQy7PSZrHxl0dFHrHshzA4aGwuWe g==; X-IronPort-AV: E=Sophos;i="5.90,155,1643698800"; d="scan'208";a="150883336" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 04 Mar 2022 09:12:37 -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; Fri, 4 Mar 2022 09:12:36 -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; Fri, 4 Mar 2022 09:12:32 -0700 From: Sergiu Moga To: , , , , , CC: , , , , Sergiu Moga Subject: [PATCH v4 4/4] dt-bindings: rtc: at91: Add SAMA7G5 compatible strings list Date: Fri, 4 Mar 2022 18:11:59 +0200 Message-ID: <20220304161159.147784-5-sergiu.moga@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220304161159.147784-1-sergiu.moga@microchip.com> References: <20220304161159.147784-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-20220304_081241_537326_BE466B42 X-CRM114-Status: UNSURE ( 7.23 ) 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 Reviewed-by: Tudor Ambarus --- 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 d2452067bfe4..e5c3c384e172 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