Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp8228809ybi; Tue, 9 Jul 2019 11:32:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqyJbYP9bhx/eQm3hhnT/aiVIapnIPxPzu6l4L6N41AC7fIeihOM8ioS6IJ+DVATeRZGzOsV X-Received: by 2002:a17:90a:8a15:: with SMTP id w21mr1671943pjn.134.1562697170458; Tue, 09 Jul 2019 11:32:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562697170; cv=none; d=google.com; s=arc-20160816; b=XSaQScCmlxl5MX1ntHOAKnPhh5RRPE3QySEfSEBInOMtL1ZMbQdz/Oa33dH4OLPiOJ nvSDNy+qjIHNYj/R9dSEpTGH4pkVcSlY1zONm8gcDQUGi3YZJjECxTo2WzSHE8Nl8Dh0 BP4GrpZUVdhrvZ3gj92gWIMQYYaX8qdpoAc8LLAkLR06vusVWUPv/fLC2Zn1gUHdXGX5 k3C7lfP386bF5rW2Gg3TFWEf5N71pbZF6r4r5I28MLQ+a0TMF7j3SpALc+eD4IxzhpOf AQRF2jDQOI/642fPVAE9fplWRIvZCMpNzwriEe3kp/yR38WEsNNpCGxgeFdXAvKS76EQ ywqQ== 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=9STqI1Jzq/esB4/bjEEc0g84CBMMWQdoQcVCId/e994=; b=siGLNK0yPYhS5RHpZL7rIqD4gz3mgrt/Kn1Tj3ifsKGoAfoFXh25TH1swdnA3O4YGk /YCMuYdvy1kz0QjoEX1IJ7Fu0xlFAyjtKO4XvOK4Okd0t7GjDJNMLAY0FCND4SZlQR+D hokU4xrv9boYB5d2o9iNoZMj1WQ1JLrL3qq4eO95nzkj+xt2RAZfrKl9S19ZvQuFmFcE /uDVZekVMtdzAqZ7eRLkuuTRdyL/3Tnp8FfdDcU0mbMNrjqbL4a71hRFLKqLxEImUGl+ SAAzaJ43Sxp5sMqCstCJzHGXCF4QFM8qZeGRPS42eQV2d7c5q7kSXv3lxTxS3dC8yWHy R2YQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=o86r0i6n; 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 o6si3647313pje.1.2019.07.09.11.32.35; Tue, 09 Jul 2019 11:32:50 -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=o86r0i6n; 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 S1728416AbfGISWp (ORCPT + 99 others); Tue, 9 Jul 2019 14:22:45 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:44046 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727669AbfGISWo (ORCPT ); Tue, 9 Jul 2019 14:22:44 -0400 Received: by mail-pg1-f195.google.com with SMTP id i18so9858581pgl.11; Tue, 09 Jul 2019 11:22: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=9STqI1Jzq/esB4/bjEEc0g84CBMMWQdoQcVCId/e994=; b=o86r0i6nZQWZmd7Ez3IDEDgeftma4RvtOLzhXESJHq0UoKm2E6xlpazwDyZ/bx+87o xw7OyLrvdsezFpQtk8mZJ46NoRhS42skGhoxIl+5A3mHjtC6xzgIn9iRGyBFbUMIruJp uxzY5sO9HZsaB6I9mcdFUP3UmhpPaGT5oeoYnycmzgstaEqHbn6zdRQtFMnY+MBKR0e0 HSaQKfvhrBpClNIMAPm53/OrZodOgkYMNMDby6msKpwo9kdFVwvhwsN+3ZWWgZc78d8+ OoNfk53WvPr4HlOgfm42XSa5ks6ZRb+Sd7hSjk8oGLwpR2+4mhX2c9CS/Oy9Rz7LeaiD 2B8g== 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=9STqI1Jzq/esB4/bjEEc0g84CBMMWQdoQcVCId/e994=; b=jTUYn9OCIxk/Xew+VMDPaPH34zj1teaWbnrXIHU+F5/fpwiuV3wOSCO3gfgZuY78Yf RqM3owQ2VBRawRvlwWCZhw/5LkMVZRAEOJmgGx+cLzOBsJAg9VHr3W7cLyCR3U9zz+O9 wFD4NuV644V2FVhlpTreyOZ6nTufYx3nB9g8adG6MSMavs3RQ4CDqxJGZt0O15zpXLEF R3s1lET+ZtuT2FJ9nY6JbZOTPJMhgYLlLRowgCBqochgjjlFdv568Eg3M1+95r2MtvZD aZdg0qKD10UP4ItMv6Kx7XBqTw8Tzpf7RPJVPi/XfK+aO1/VbsV2PA3+X6cAtYzApryr uLDA== X-Gm-Message-State: APjAAAVOdSzoyx0SVeSfCB/Afq3hyTSYbAYywK7948PggRTNdqPlrxE5 fEnrtLy/6x1V7JLla2clfvIOpVl2CFYFog== X-Received: by 2002:a17:90a:1b4a:: with SMTP id q68mr1573355pjq.61.1562696563612; Tue, 09 Jul 2019 11:22:43 -0700 (PDT) Received: from localhost.localdomain ([2001:19f0:7001:2668:5400:1ff:fe62:2bbd]) by smtp.gmail.com with ESMTPSA id m69sm21008639pga.11.2019.07.09.11.22.36 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 09 Jul 2019 11:22: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 4/5] staging: mt7621-dts: add dt nodes for mt7621-pll Date: Wed, 10 Jul 2019 02:20:17 +0800 Message-Id: <20190709182018.23193-5-gch981213@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190709182018.23193-1-gch981213@gmail.com> References: <20190709182018.23193-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 clock accordingly. Signed-off-by: Chuanhong Guo --- drivers/staging/mt7621-dts/mt7621.dtsi | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/drivers/staging/mt7621-dts/mt7621.dtsi b/drivers/staging/mt7621-dts/mt7621.dtsi index a4c08110094b..12717f570ceb 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", "syscon"; - /* 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