Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1653387ybg; Sun, 27 Oct 2019 02:11:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqwckHBfgGuz9iNYbCkTk8Y6/o3Ns142/uFHmThQ8xiXYXBCdhaBpuVaBWWcv12kh0nhSjbc X-Received: by 2002:a17:906:448e:: with SMTP id y14mr11611990ejo.136.1572167518597; Sun, 27 Oct 2019 02:11:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572167518; cv=none; d=google.com; s=arc-20160816; b=n1f+17DuQ30eFTIPBoR+s87zdt0CQTltRny1XG/JO41o+hQXtkdgyHNKGsJ+wuhmp7 Y2TW1ZnvPihWvGrqMFAmKTptY9IyfOczF+ghDlCH17LRQuFsbRigFcAwHjEMSjzNGjyE 3vlsXYw65nR2cjk4eZWmMGjAI4sCXLvjBksZ8ig7HweTaSV2oAx3yNIEiceQgTnDc+A8 eWfL8xBaQ89Atzhp5wJwZloK0IBG7eZgD16jvvyOLS4OZI6YvbGKiikfLEykdghQ9L0z u+9sJAjP180wi6DI2X+6qntvKAMBNPdevshdWs4HdBOCdkyP2w98FYp3uJKevrga5Iue GXZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=Do6nIb9Z70qlsuQqNumDqwmMSC4Pw/IW1o+SQSIazuU=; b=f/JukyyEoxy39Vmy1a6kJmDQX0HCLKZRinhRnvowu8D/Pd49Xz5/R48qKEBBLcQvsL whTzWM8mKgYUkbNcqsXrQuYk//DPwWjL8vUC1QMFSgdh3Wu3E4XGJiNRuIygazq1zQ6J AxHbYh0EfYKKJA21qUaWTe00nLAfECZJ0yECFRlY82IiM1upB78guXjHBnIQIPgRjmiy w6vNhj3q0JpWigInZrEbFLkUJvcRymQjcRaNQeMm5o2ZIZTspSkZzXNnojboeN3P6Bwx JD6+L9v4ScB3zOwWIieiF8KTTyzxiJtb9ylG6yMWCLh49S+Vsqgz2KQf6HmNYWG4VDfk DRpQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e2si4413958edc.97.2019.10.27.02.11.02; Sun, 27 Oct 2019 02:11:58 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726654AbfJ0JJ5 (ORCPT + 99 others); Sun, 27 Oct 2019 05:09:57 -0400 Received: from mx1.unisoc.com ([222.66.158.135]:27261 "EHLO SHSQR01.spreadtrum.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726079AbfJ0JJ5 (ORCPT ); Sun, 27 Oct 2019 05:09:57 -0400 Received: from ig2.spreadtrum.com (bjmbx01.spreadtrum.com [10.0.64.7]) by SHSQR01.spreadtrum.com with ESMTPS id x9R99ZfK087430 (version=TLSv1 cipher=AES256-SHA bits=256 verify=NO); Sun, 27 Oct 2019 17:09:35 +0800 (CST) (envelope-from Chunyan.Zhang@unisoc.com) Received: from localhost (10.0.74.79) by BJMBX01.spreadtrum.com (10.0.64.7) with Microsoft SMTP Server (TLS) id 15.0.847.32; Sun, 27 Oct 2019 17:09:42 +0800 From: Chunyan Zhang To: Rob Herring , Mark Rutland CC: , , Orson Zhai , Baolin Wang , Chunyan Zhang , Chunyan Zhang Subject: [PATCH 1/2] arm64: dts: Add SC9863A clock nodes Date: Sun, 27 Oct 2019 17:09:02 +0800 Message-ID: <20191027090904.14349-2-chunyan.zhang@unisoc.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191027090904.14349-1-chunyan.zhang@unisoc.com> References: <20191027090904.14349-1-chunyan.zhang@unisoc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.0.74.79] X-ClientProxiedBy: shcas04.spreadtrum.com (10.29.35.89) To BJMBX01.spreadtrum.com (10.0.64.7) X-MAIL: SHSQR01.spreadtrum.com x9R99ZfK087430 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add clock devicetree nodes for SC9863A. Signed-off-by: Chunyan Zhang --- arch/arm64/boot/dts/sprd/sc9863a.dtsi | 94 +++++++++++++++++++++++++++ arch/arm64/boot/dts/sprd/sharkl3.dtsi | 21 ++++++ 2 files changed, 115 insertions(+) diff --git a/arch/arm64/boot/dts/sprd/sc9863a.dtsi b/arch/arm64/boot/dts/sprd/sc9863a.dtsi index 578d71a932d9..ceecf551fd01 100644 --- a/arch/arm64/boot/dts/sprd/sc9863a.dtsi +++ b/arch/arm64/boot/dts/sprd/sc9863a.dtsi @@ -6,6 +6,7 @@ */ #include +#include #include "sharkl3.dtsi" / { @@ -168,6 +169,99 @@ }; soc { + apahb_gate: apahb-gate { + compatible = "sprd,sc9863a-apahb-gate"; + sprd,syscon = <&ap_ahb_regs>; /* 0x20e00000 */ + clocks = <&aon_clk CLK_AP_AXI>; + #clock-cells = <1>; + }; + + ap_clk: clock-controller@21500000 { + compatible = "sprd,sc9863a-ap-clk"; + reg = <0 0x21500000 0 0x1000>; + clocks = <&ext_32k>, <&ext_26m>, + <&pll 0>, <&rpll 0>; + #clock-cells = <1>; + }; + + pmu_gate: pmu-gate { + compatible = "sprd,sc9863a-pmu-gate"; + sprd,syscon = <&pmu_regs>; /* 0x402b0000 */ + clocks = <&ext_26m>; + #clock-cells = <1>; + }; + + aon_clk: clock-controller@402d0000 { + compatible = "sprd,sc9863a-aon-clk"; + reg = <0 0x402d0000 0 0x1000>; + clocks = <&ext_26m>, <&pll 0>, + <&rpll 0>, <&dpll 0>; + #clock-cells = <1>; + }; + + aonapb_gate: aonapb-gate { + compatible = "sprd,sc9863a-aonapb-gate"; + sprd,syscon = <&aon_apb_regs>; /* 0x402e0000 */ + clocks = <&aon_clk CLK_AON_APB>; + #clock-cells = <1>; + }; + + pll: pll { + compatible = "sprd,sc9863a-pll"; + sprd,syscon = <&anlg_phy_g2_regs>; /* 0x40353000 */ + clocks = <&pmu_gate 0>; + #clock-cells = <1>; + }; + + mpll: mpll { + compatible = "sprd,sc9863a-mpll"; + sprd,syscon = <&anlg_phy_g4_regs>; /* 0x40359000 */ + clocks = <&pmu_gate 0>; + #clock-cells = <1>; + }; + + rpll: rpll { + compatible = "sprd,sc9863a-rpll"; + sprd,syscon = <&anlg_phy_g5_regs>; /* 0x4035c000 */ + clocks = <&pmu_gate 0>; + #clock-cells = <1>; + }; + + dpll: dpll { + compatible = "sprd,sc9863a-dpll"; + sprd,syscon = <&anlg_phy_g7_regs>; /* 0x40363000 */ + clocks = <&pmu_gate 0>; + #clock-cells = <1>; + }; + + mm_gate: mm-gate { + compatible = "sprd,sc9863a-mm-gate"; + sprd,syscon = <&mm_ahb_regs>; /* 0x60800000 */ + clocks = <&aon_clk CLK_MM_AHB>; + #clock-cells = <1>; + }; + + mm_clk: clock-controller@60900000 { + compatible = "sprd,sc9863a-mm-clk"; + reg = <0 0x60900000 0 0x1000>; /* 0x60900000 */ + clocks = <&aon_clk CLK_MM_AHB>; + #clock-cells = <1>; + }; + + vspahb_gate: vspahb-gate { + compatible = "sprd,sc9863a-vspahb-gate"; + sprd,syscon = <&mm_vsp_ahb_regs>; /* 0x62000000 */ + clocks = <&aon_clk CLK_MM_AHB>; + #clock-cells = <1>; + }; + + apapb_gate: apapb-gate { + compatible = "sprd,sc9863a-apapb-gate"; + sprd,syscon = <&ap_apb_regs>; /* 0x71300000 */ + clocks = <&ext_26m>; + #clock-cells = <1>; + }; + funnel@10001000 { compatible = "arm,coresight-dynamic-funnel", "arm,primecell"; reg = <0 0x10001000 0 0x1000>; diff --git a/arch/arm64/boot/dts/sprd/sharkl3.dtsi b/arch/arm64/boot/dts/sprd/sharkl3.dtsi index 3ef233f70dc4..938cd62e6636 100644 --- a/arch/arm64/boot/dts/sprd/sharkl3.dtsi +++ b/arch/arm64/boot/dts/sprd/sharkl3.dtsi @@ -185,4 +185,25 @@ clock-frequency = <26000000>; clock-output-names = "ext-26m"; }; + + ext_32k: ext-32k { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <32768>; + clock-output-names = "ext_32k"; + }; + + ext_4m: ext-4m { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <4000000>; + clock-output-names = "ext-4m"; + }; + + rco_100m: rco-100m { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <100000000>; + clock-output-names = "rco-100m"; + }; }; -- 2.20.1