Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp8993246ybi; Tue, 23 Jul 2019 19:38:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqzHswRVIz9hEdaX/0ETja/xM5jzaPDFMpXDP1HTmyRHIoWoDKwwG0pjDAfaoyOUvxp8vUw3 X-Received: by 2002:a17:902:8ec3:: with SMTP id x3mr82103363plo.313.1563935915237; Tue, 23 Jul 2019 19:38:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563935915; cv=none; d=google.com; s=arc-20160816; b=Me4y3hWPko/h6YG9QssiuvaEOv6U1va+hK2Wdc6D63AIeUY6jCkmtd3/c/L97y1usD M8k03pr/Ioh+kqkhE0Rdgm6wKI7E7kA/3HJ5X5PlUQxllZvpkUEEqs8H+UGO2oQ+34RX VVe4iUpHf38x6Qk2QLpMfyJCBGKwrmY3eOagfkWfwBxUEtaEKhggj1adsk2sRd4w8m++ zyicQPay70GBQaFj8o9clLIbpqueLEouwO7FmmblQtWv85ocPHxMRkDNjbL+OdziEGdc 50/qaUn2vYufFKCOEHs2szyTe8z9dsjlEp99Ll50+1BHQAAQGBiU5oIzRfyC9+PWqQMp dxmQ== 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 :dkim-signature; bh=qRMlM2gUSInEC6RWWvSWyihO1TIAbroHme9s+jonTRc=; b=RPYGqo7PwVfhEAol2XxSCVStStzhHniDBHl4peabxgQK5sztJsPV6kN4zaObB2myKE /UX/vB1WJvZ1KkXPzSaaM3X3e/ng6MaA4kc3NwshkViD40wMGPybwXFNSKBfu12X2SWa W4b2vO25FUIdUt1uhaaPuV7w2ssc+x1DP++rVdqig21m7xa8niMc8bat8Oq5ImxdZlUk vaTAGmFRVTJkksuOdIChdZr721Yhtk+rVho2OiMKgYKGD7neHAh7Yn+lng8/uu5x3GHU HhlbkEXkwhBvt6xqFGco9IGAV5ejRim+k+k1oBAHEr6fm88OWfFPfcDgWlywV8CesKLC ARHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uakhSOoJ; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m42si13744015pje.31.2019.07.23.19.38.20; Tue, 23 Jul 2019 19:38:35 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uakhSOoJ; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387461AbfGXCYr (ORCPT + 99 others); Tue, 23 Jul 2019 22:24:47 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:42509 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728052AbfGXCYo (ORCPT ); Tue, 23 Jul 2019 22:24:44 -0400 Received: by mail-pf1-f195.google.com with SMTP id q10so20080018pff.9; Tue, 23 Jul 2019 19:24:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=qRMlM2gUSInEC6RWWvSWyihO1TIAbroHme9s+jonTRc=; b=uakhSOoJr7OLv33vGsuhtq2Ax1mkcbw1w3DshzvnsB11Jgvts/botujxNjtMMGf3BD nPjs20j2kLIW8b0TVsHSLGyqAF50zmL2OPm53LfVnH6zm4hr6Zyw6s2Rcd7dPU9gG3gC NPTyac0LdjUbzZ9uc+UhlJ8OughYsGXd6wMtLurs588+3WrMHwS1KYYz30r2BHvqI5Mn do9Wm3Mx0W4fSY77x8zmGEC1S2ppgFhZR8fUmDjkIsOpA4xDs8H0mFf6zR6uFnKShxYE oWAtVJA6PO5CLbreAX4+kIV1V1lFNrZL+qYwabWMZaZLCOUkfCzTPpuGNWvemLxQ3srs MfPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=qRMlM2gUSInEC6RWWvSWyihO1TIAbroHme9s+jonTRc=; b=X1nVb8gPML/72wDKEZkOHwpkop83FjvcsgZSnrwXGmzys+Y7vDCleKtISXnx2IW6gS D2RWg47pFJjWUhtGGBO9+oz750dCmLRr2U/bqUukeNQsRSqUQJt1rLrS5SaqBR6q8Hn/ 2JUCpYIhvbby1dCKlMnxZe2pCW3dOKiF6orSurco1BmTPQZr7Vh/QBjp12etdyqphYzS axAPvkbcD3WWPlPR1C8kBGssNXNSmq8gA9lzzA6kom0s/MUlmgMhcaWF0GF0vewb7cRi gEEqQBQZ6ynp+tJCgBCe2ZIbC2obtTseIFfX9ttYU61BIqqprnoIESBGBGxDbMErJF6R Wn8w== X-Gm-Message-State: APjAAAV2z+zSpTs7YIfTHMEEfv2WIhhUGbTvj49X5SmKSV//sV2iQOXe ExASFXPVmAclNwV/AVqq0NAr4T6DSjk= X-Received: by 2002:aa7:81d9:: with SMTP id c25mr8963389pfn.255.1563935083841; Tue, 23 Jul 2019 19:24:43 -0700 (PDT) Received: from guoguo-omen-lan.lan ([107.151.139.128]) by smtp.gmail.com with ESMTPSA id s185sm63468029pgs.67.2019.07.23.19.24.38 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 23 Jul 2019 19:24:43 -0700 (PDT) From: Chuanhong Guo To: linux-clk@vger.kernel.org (open list:COMMON CLK FRAMEWORK), devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list), linux-mips@vger.kernel.org (open list:MIPS), devel@driverdev.osuosl.org (open list:STAGING SUBSYSTEM) Cc: Michael Turquette , Stephen Boyd , Rob Herring , Mark Rutland , Ralf Baechle , Paul Burton , James Hogan , John Crispin , Greg Kroah-Hartman , Weijie Gao , NeilBrown , Chuanhong Guo Subject: [PATCH v2 6/6] staging: mt7621-dts: add dt nodes for mt7621-pll Date: Wed, 24 Jul 2019 10:23:10 +0800 Message-Id: <20190724022310.28010-7-gch981213@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190724022310.28010-1-gch981213@gmail.com> References: <20190724022310.28010-1-gch981213@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This commit adds device-tree node for mt7621-pll and use its clocks accordingly. Signed-off-by: Chuanhong Guo --- Changes since v1: 1. drop cpuclock node in gbpc1.dts 2. drop syscon in mt7621-pll node drivers/staging/mt7621-dts/gbpc1.dts | 5 ----- drivers/staging/mt7621-dts/mt7621.dtsi | 15 +++++++-------- 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/drivers/staging/mt7621-dts/gbpc1.dts b/drivers/staging/mt7621-dts/gbpc1.dts index 1fb560ff059c..d94b73243268 100644 --- a/drivers/staging/mt7621-dts/gbpc1.dts +++ b/drivers/staging/mt7621-dts/gbpc1.dts @@ -106,11 +106,6 @@ clock-frequency = <225000000>; }; -&cpuclock { - compatible = "fixed-clock"; - clock-frequency = <900000000>; -}; - &pcie { pinctrl-names = "default"; pinctrl-0 = <&pcie_pins>; diff --git a/drivers/staging/mt7621-dts/mt7621.dtsi b/drivers/staging/mt7621-dts/mt7621.dtsi index d89d68ffa7bc..7b82f7f70404 100644 --- a/drivers/staging/mt7621-dts/mt7621.dtsi +++ b/drivers/staging/mt7621-dts/mt7621.dtsi @@ -1,4 +1,5 @@ #include +#include #include / { @@ -27,12 +28,11 @@ serial0 = &uartlite; }; - cpuclock: cpuclock@0 { - #clock-cells = <0>; - compatible = "fixed-clock"; + pll: pll { + compatible = "mediatek,mt7621-pll"; - /* FIXME: there should be way to detect this */ - clock-frequency = <880000000>; + #clock-cells = <1>; + clock-output-names = "cpu", "bus"; }; sysclock: sysclock@0 { @@ -155,7 +155,6 @@ compatible = "ns16550a"; reg = <0xc00 0x100>; - clocks = <&sysclock>; clock-frequency = <50000000>; interrupt-parent = <&gic>; @@ -172,7 +171,7 @@ compatible = "ralink,mt7621-spi"; reg = <0xb00 0x100>; - clocks = <&sysclock>; + clocks = <&pll MT7621_CLK_BUS>; resets = <&rstctrl 18>; reset-names = "spi"; @@ -372,7 +371,7 @@ timer { compatible = "mti,gic-timer"; interrupts = ; - clocks = <&cpuclock>; + clocks = <&pll MT7621_CLK_CPU>; }; }; -- 2.21.0