Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4557420ybi; Tue, 30 Jul 2019 04:11:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqz9dedcqFqUXIWnVuBfbqbPYKPKn0aCYL+3gshdJjZj/1FacJuxI+p7qlIwY5WflbEeilGg X-Received: by 2002:a17:90a:2343:: with SMTP id f61mr118156300pje.130.1564485094653; Tue, 30 Jul 2019 04:11:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564485094; cv=none; d=google.com; s=arc-20160816; b=CZhUEznsy9Wk5p7WT6cZq78+xECcpPOcZJXw3qKESNCVNJ2oo1GW+shAas6Lds/uiG VTyVqJf6dlRr9+TPfN939924fhZB7wur/HyeqrqZJKWiqfgKn/pkUJBidQOkSdLk3ZIY 0i/7fqW3Dy6Q7C0banMJ3sY28wWZWlrMJj7EIQoiqs2NzXoiH5aqHgB+bKigKdkIaA8z WT70rg9TZYiqycCB5oxlO8h9lHHl6LVek86XE9RIxMcsL6BEXTUViYqoKFLk11vSwV+T z6yUb625Z7zOES6WxTbhrq+0FLRP3Kge0h53ftdrSvcSaDxtjJ2u6fcRP0GswnW8/Wvp qKBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=2cJ2uVCGaURXEKbxJ7Y3EMekmjadOHdt2QTFr5yJX6g=; b=sb22U2j2bXU3LD9vBJBoJe7YXO+KkWTHGnuehK+uFY4dinP3F6hgZNXEMr4lhaUiko 3HUFgejTnsiGq8XfLsd4b58OfIwO/GimNy+DQMwFrE7hHQNrcuqX39IZVBwA33YYewUA vTU7fToEDFoFucOf+eZVhOFyJfA5Oe85WJvAYV0GVt/sn9vArjSEbXITFCWo6Dg56jXz oxsQJTm4FMoK43ggNYhTBAaP3ooyi2q5ZBXo2BpAjbft/VLn/cn7QKdGSUufEFygmBiK S4xuzCImjeKzG53oRI549hKbH1oP3VyAXG+6+VH3AR2Em7sW0TNuwwoG4qeydGolrnvz 9tEA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l64si25494169pjb.93.2019.07.30.04.11.19; Tue, 30 Jul 2019 04:11:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730281AbfG3JQS (ORCPT + 99 others); Tue, 30 Jul 2019 05:16:18 -0400 Received: from inva020.nxp.com ([92.121.34.13]:44286 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729086AbfG3JQK (ORCPT ); Tue, 30 Jul 2019 05:16:10 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 25DCF1A061B; Tue, 30 Jul 2019 11:16:08 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 63AFD1A0615; Tue, 30 Jul 2019 11:16:04 +0200 (CEST) Received: from titan.ap.freescale.net (TITAN.ap.freescale.net [10.192.208.233]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id BB246402E0; Tue, 30 Jul 2019 17:15:59 +0800 (SGT) From: Biwen Li To: robh+dt@kernel.org, mark.rutland@arm.com, leoyang.li@nxp.com Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Biwen Li Subject: [PATCH 2/3] arm64: dts: ls1012a/ls1043a/ls1046a/ls1088a/ls208xa: add ftm_alarm0 node Date: Tue, 30 Jul 2019 17:06:33 +0800 Message-Id: <20190730090634.25070-2-biwen.li@nxp.com> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20190730090634.25070-1-biwen.li@nxp.com> References: <20190730090634.25070-1-biwen.li@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch adds ftm_alarm0 DT node - add new rcpm node - add ftm_alarm0 node - aliases ftm_alarm0 as rtc1 Signed-off-by: Biwen Li --- arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi | 15 +++++++++++++++ arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi | 14 ++++++++++++++ arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi | 15 +++++++++++++++ arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi | 14 ++++++++++++++ arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi | 14 ++++++++++++++ 5 files changed, 72 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi index ec6257a5b251..401210e3afd2 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi +++ b/arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi @@ -22,6 +22,7 @@ rtic-c = &rtic_c; rtic-d = &rtic_d; sec-mon = &sec_mon; + rtc1 = &ftm_alarm0; }; cpus { @@ -500,6 +501,20 @@ <0000 0 0 4 &gic 0 113 IRQ_TYPE_LEVEL_HIGH>; status = "disabled"; }; + + rcpm: rcpm@1ee2140 { + compatible = "fsl,ls1012a-rcpm", "fsl,qoriq-rcpm-2.1+"; + reg = <0x0 0x1ee2140 0x0 0x4>; + #fsl,rcpm-wakeup-cells = <1>; + }; + + ftm_alarm0: timer@29d0000 { + compatible = "fsl,ls1012a-ftm-alarm"; + reg = <0x0 0x29d0000 0x0 0x10000>; + fsl,rcpm-wakeup = <&rcpm 0x20000>; + interrupts = <0 86 0x4>; + big-endian; + }; }; firmware { diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi index 71d9ed9ff985..9ff5dd32e87d 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi +++ b/arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi @@ -27,6 +27,7 @@ ethernet4 = &enet4; ethernet5 = &enet5; ethernet6 = &enet6; + rtc1 = &ftm_alarm0; }; cpus { @@ -767,6 +768,19 @@ big-endian; }; + rcpm: rcpm@1ee2140 { + compatible = "fsl,ls1043a-rcpm", "fsl,qoriq-rcpm-2.1+"; + reg = <0x0 0x1ee2140 0x0 0x4>; + #fsl,rcpm-wakeup-cells = <1>; + }; + + ftm_alarm0: timer@29d0000 { + compatible = "fsl,ls1043a-ftm-alarm"; + reg = <0x0 0x29d0000 0x0 0x10000>; + fsl,rcpm-wakeup = <&rcpm 0x20000>; + interrupts = <0 86 0x4>; + big-endian; + }; }; firmware { diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi index b0ef08b090dd..d216375b174f 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi +++ b/arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi @@ -28,6 +28,7 @@ ethernet5 = &enet5; ethernet6 = &enet6; ethernet7 = &enet7; + rtc1 = &ftm_alarm0; }; cpus { @@ -771,6 +772,20 @@ queue-sizes = <64 64>; big-endian; }; + + rcpm: rcpm@1ee208c { + compatible = "fsl,ls1046a-rcpm", "fsl,qoriq-rcpm-2.1+"; + reg = <0x0 0x1ee208c 0x0 0x4>; + #fsl,rcpm-wakeup-cells = <1>; + }; + + ftm_alarm0: timer@29d0000 { + compatible = "fsl,ls1046a-ftm-alarm"; + reg = <0x0 0x29d0000 0x0 0x10000>; + fsl,rcpm-wakeup = <&rcpm 0x20000>; + interrupts = ; + big-endian; + }; }; reserved-memory { diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi index dacd8cf03a7f..61cb897b940a 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi +++ b/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi @@ -18,6 +18,7 @@ aliases { crypto = &crypto; + rtc1 = &ftm_alarm0; }; cpus { @@ -745,6 +746,19 @@ }; }; }; + + rcpm: rcpm@1e34040 { + compatible = "fsl,ls1088a-rcpm", "fsl,qoriq-rcpm-2.1+"; + reg = <0x0 0x1e34040 0x0 0x18>; + #fsl,rcpm-wakeup-cells = <6>; + }; + + ftm_alarm0: timer@2800000 { + compatible = "fsl,ls1088a-ftm-alarm"; + reg = <0x0 0x2800000 0x0 0x10000>; + fsl,rcpm-wakeup = <&rcpm 0x0 0x0 0x0 0x0 0x4000 0x0>; + interrupts = <0 44 4>; + }; }; firmware { diff --git a/arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi index 3ace91945b72..908386042c5b 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi +++ b/arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi @@ -24,6 +24,7 @@ serial1 = &serial1; serial2 = &serial2; serial3 = &serial3; + rtc1 = &ftm_alarm0; }; cpu: cpus { @@ -758,6 +759,19 @@ reg = <0x0 0x04000000 0x0 0x01000000>; interrupts = <0 12 4>; }; + + rcpm: rcpm@1e34040 { + compatible = "fsl,ls208xa-rcpm", "fsl,qoriq-rcpm-2.1+"; + reg = <0x0 0x1e34040 0x0 0x18>; + #fsl,rcpm-wakeup-cells = <6>; + }; + + ftm_alarm0: timer@2800000 { + compatible = "fsl,ls208xa-ftm-alarm"; + reg = <0x0 0x2800000 0x0 0x10000>; + fsl,rcpm-wakeup = <&rcpm 0x0 0x0 0x0 0x0 0x4000 0x0>; + interrupts = <0 44 4>; + }; }; ddr1: memory-controller@1080000 { -- 2.17.1