Received: by 10.223.176.5 with SMTP id f5csp464090wra; Tue, 6 Feb 2018 01:54:56 -0800 (PST) X-Google-Smtp-Source: AH8x226HeJsJvWfLTa3N8gYMnJSBDxv1nzY/J8IMJ8LHddPqILWj4ZSegywey2QGqRk3eqUsE6LB X-Received: by 2002:a17:902:5914:: with SMTP id o20-v6mr1893311pli.196.1517910896217; Tue, 06 Feb 2018 01:54:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517910896; cv=none; d=google.com; s=arc-20160816; b=PJ8bjb1pHcFmfqL1q9QKkoqInZp1Qhky/oVpnSAvG9IGOZiukcj4VNjc77M9IPDF5b XITTYa1xf8rEk6HAp29emynVNyFB66dF8Tuj9+US1mPxEhY5sjWhCMgAwNrpjgQS06bY AKWfvdemALAtuPuZGXuX+MZ0nSARv4zIl2ntX1uuYGlY9DoE+RDI0Gn+c9jKckfER10n uqbj6q3nF9T70RbgGSn19mnGXdOLqBLoCa9LxOcnEehmbH0MTQxcHvbrcq5HVNUXoGbe OAjrVheiH4WRRcIOS5ZTUk/KY8RydBTQG/b89aKVtTgFcyQlE+l9IoOnRqZP97V/pC2G nZHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=ifySfuwozcoEzn656q+tOtsT0EaWmpF89cs7FuXjCYk=; b=PGyYt5CLHYQ3j1T3h4mHTohJNFdeaP3nWvWKglxJ0yb+nxB1t4szKHy8VXHTIMfoZQ 8Qy5YHpJU1+5h9ph85pqMhPSpb9QxLUdwqxbh/Rqp18kLVN+xQKs2zhytnE0AQS1Ald4 cgazT5bfH2zdz1KEo70y4NBiwBlW2TcNlNM9XhIfrTCR8g+O2Iiv7JFHeJtiSC1swxCo Wfg+da7GGhchhN0847iAytIo5TL/+VOIXlQFEujDemfw6o/cH0uLZvtY1YI3lrHs557Q iyOCig5QjgIzNhiHtAEsVuBOsrTnC6cnRbiHjgV1R9FGDDlLXMKK3AzhHDtI6t1x5uBw j5kg== 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 b89si2148648pfc.274.2018.02.06.01.54.41; Tue, 06 Feb 2018 01:54:56 -0800 (PST) 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 S1752749AbeBFJxj (ORCPT + 99 others); Tue, 6 Feb 2018 04:53:39 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:26363 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1752532AbeBFJxS (ORCPT ); Tue, 6 Feb 2018 04:53:18 -0500 X-UUID: 29d4de5f1a4a4dfba778bbb393e4c072-20180206 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1012040172; Tue, 06 Feb 2018 17:53:15 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Tue, 6 Feb 2018 17:53:13 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Tue, 6 Feb 2018 17:53:13 +0800 From: To: , , , , CC: , , Sean Wang , Stephen Boyd Subject: [PATCH v2 02/16] arm64: dts: mt7622: add clock controller device nodes Date: Tue, 6 Feb 2018 17:52:51 +0800 Message-ID: <1ecd697e189a0a9c202e5792f931e510b35b746b.1517910489.git.sean.wang@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sean Wang Add clock controller nodes for MT7622 and include header for topckgen, infracfg, pericfg, apmixedsys, ethsys, sgmiisys, pciesys and ssusbsys for those devices nodes to be added afterwards. In addition, provides an oscillator node for the source of PLLs and dummy clock for PWARP to complement missing support of clock gate for the wrapper circuit in the driver. Signed-off-by: Sean Wang Cc: Stephen Boyd --- arch/arm64/boot/dts/mediatek/mt7622.dtsi | 76 ++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7622.dtsi b/arch/arm64/boot/dts/mediatek/mt7622.dtsi index b111fec..73e5d62 100644 --- a/arch/arm64/boot/dts/mediatek/mt7622.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7622.dtsi @@ -8,6 +8,8 @@ #include #include +#include +#include / { compatible = "mediatek,mt7622"; @@ -48,6 +50,19 @@ clock-frequency = <280000000>; }; + pwrap_clk: dummy40m { + compatible = "fixed-clock"; + clock-frequency = <40000000>; + #clock-cells = <0>; + }; + + clk25m: oscillator { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <25000000>; + clock-output-names = "clkxtal"; + }; + psci { compatible = "arm,psci-0.2"; method = "smc"; @@ -78,6 +93,22 @@ IRQ_TYPE_LEVEL_HIGH)>; }; + infracfg: infracfg@10000000 { + compatible = "mediatek,mt7622-infracfg", + "syscon"; + reg = <0 0x10000000 0 0x1000>; + #clock-cells = <1>; + #reset-cells = <1>; + }; + + pericfg: pericfg@10002000 { + compatible = "mediatek,mt7622-pericfg", + "syscon"; + reg = <0 0x10002000 0 0x1000>; + #clock-cells = <1>; + #reset-cells = <1>; + }; + sysirq: interrupt-controller@10200620 { compatible = "mediatek,mt7622-sysirq", "mediatek,mt6577-sysirq"; @@ -87,6 +118,20 @@ reg = <0 0x10200620 0 0x20>; }; + apmixedsys: apmixedsys@10209000 { + compatible = "mediatek,mt7622-apmixedsys", + "syscon"; + reg = <0 0x10209000 0 0x1000>; + #clock-cells = <1>; + }; + + topckgen: topckgen@10210000 { + compatible = "mediatek,mt7622-topckgen", + "syscon"; + reg = <0 0x10210000 0 0x1000>; + #clock-cells = <1>; + }; + gic: interrupt-controller@10300000 { compatible = "arm,gic-400"; interrupt-controller; @@ -107,4 +152,35 @@ clock-names = "baud", "bus"; status = "disabled"; }; + + ssusbsys: ssusbsys@1a000000 { + compatible = "mediatek,mt7622-ssusbsys", + "syscon"; + reg = <0 0x1a000000 0 0x1000>; + #clock-cells = <1>; + #reset-cells = <1>; + }; + + pciesys: pciesys@1a100800 { + compatible = "mediatek,mt7622-pciesys", + "syscon"; + reg = <0 0x1a100800 0 0x1000>; + #clock-cells = <1>; + #reset-cells = <1>; + }; + + ethsys: syscon@1b000000 { + compatible = "mediatek,mt7622-ethsys", + "syscon"; + reg = <0 0x1b000000 0 0x1000>; + #clock-cells = <1>; + #reset-cells = <1>; + }; + + sgmiisys: sgmiisys@1b128000 { + compatible = "mediatek,mt7622-sgmiisys", + "syscon"; + reg = <0 0x1b128000 0 0x1000>; + #clock-cells = <1>; + }; }; -- 2.7.4