From patchwork Tue Jan 8 13:30:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 154969 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp4885400jaa; Tue, 8 Jan 2019 05:31:36 -0800 (PST) X-Google-Smtp-Source: ALg8bN4MIhuO8iJB5BhmmPc6DyCJjIi9MbILFlPR3V8BkMgD/3kth3o9ItRhlcarkJyyXs8FhvXD X-Received: by 2002:a63:ac46:: with SMTP id z6mr1560978pgn.162.1546954296215; Tue, 08 Jan 2019 05:31:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546954296; cv=none; d=google.com; s=arc-20160816; b=XaKN1SGzbk1HDBWEvXyWsGbIVjxjTgMFA5pS1rUHI3MRKchJ93UacOm9xy4UUe1fyr 4Wmzqz44VO7oqEzk6LqxPTG+0hIzfrS/EtjqT74KNeiENSEbLCZE9yOc8syHJb5rD2VR 9nH5vGn2ZskdHiDVYL3gte3Csnxg48DZf3Q9aWkzxWUkFHh45o8d+u8QyePnAIyGFnvN cxgq68WrP6y9bvkUqaFl/hi6roaAC2QcX1ybuCzDB7iXQAlPE+MUcDkhZWfgdH0/ykpx El+mAMo9J2HvR+lM/zv0L5elUYrABsnVqUtcMHbj8JXhUwKrwbP6SNK+zQLDURsFJois BZPw== 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:to:from:dkim-signature; bh=u/6FEYlxM96pwJ1Qm+SkmI5JogO6aWRB2nRQmlpOFAE=; b=mEmXQWnPR4HbeqrBYE4zi1H/H6vVqWxcNpyY8DT+qzoY9IjsCX/N1TELJEGQnlVfo+ yp+I+b+y6SawWdfmMounKhjuD1r2vPw6k85BXAMiON/TjWjyzfB/T6rmK+8ZMnvN39/B Q9ULmXG1G0AnAUJEHCWuwDhDjS17z6hHhB79eDWTKx43Pf6B6glizURDfX62h8lKWImh Xgfw4sa6RqPxoJT+y8SrkSfu/N6PhioSqlrS7ynSoTlj65Cuzyo5nCoYIJJCfNrnieUB bVIw9MBDhS0X5beCWbRyrPwXY53qLBcOtNXqhroxsHdAGtXsvJk9uyhZC6UTKKj/vEQc vhSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=gMmRvNkg; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q5si8208432pgb.245.2019.01.08.05.31.36; Tue, 08 Jan 2019 05:31:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=@ti.com header.s=ti-com-17Q1 header.b=gMmRvNkg; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728379AbfAHNbe (ORCPT + 7 others); Tue, 8 Jan 2019 08:31:34 -0500 Received: from lelv0143.ext.ti.com ([198.47.23.248]:39444 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727654AbfAHNbe (ORCPT ); Tue, 8 Jan 2019 08:31:34 -0500 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x08DVTUu075124; Tue, 8 Jan 2019 07:31:29 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1546954289; bh=u/6FEYlxM96pwJ1Qm+SkmI5JogO6aWRB2nRQmlpOFAE=; h=From:To:Subject:Date:In-Reply-To:References; b=gMmRvNkgGIPsXslnbXAMXJt9F3y3xSnCzwnd10zH41j3BFIXlDlm+eQ7VyZ5a092w VS4ZeyPskbL+du/fXBpt9iZW1na6aXyBHyLKLgfYqpspp+WNgQExqLGFhRaZRK+PXD m3HvJujol3vGQFJEw99d5YDZCwWVdlSKCX9eQyIk= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x08DVT5i120695 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 8 Jan 2019 07:31:29 -0600 Received: from DFLE101.ent.ti.com (10.64.6.22) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Tue, 8 Jan 2019 07:31:27 -0600 Received: from dflp33.itg.ti.com (10.64.6.16) by DFLE101.ent.ti.com (10.64.6.22) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Tue, 8 Jan 2019 07:31:27 -0600 Received: from gomoku.home (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id x08DVMuf011668; Tue, 8 Jan 2019 07:31:25 -0600 From: Tero Kristo To: , , , , , , Subject: [PATCH 1/3] dt-bindings: clock: ti, sci-clk: Add support for parsing clock info from DT Date: Tue, 8 Jan 2019 15:30:21 +0200 Message-ID: <1546954223-9738-2-git-send-email-t-kristo@ti.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1546954223-9738-1-git-send-email-t-kristo@ti.com> References: <1546954223-9738-1-git-send-email-t-kristo@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org By default, the available clock info is queried from firmware, which can be quite a lengthy operation if there is a very large amount of clocks available. Add option for parsing the used clocks from DT instead, and only register these which can improve the boot time of the device quite a lot. Signed-off-by: Tero Kristo --- Documentation/devicetree/bindings/clock/ti,sci-clk.txt | 7 +++++++ 1 file changed, 7 insertions(+) -- 1.9.1 -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki diff --git a/Documentation/devicetree/bindings/clock/ti,sci-clk.txt b/Documentation/devicetree/bindings/clock/ti,sci-clk.txt index 4e59dc6..c757ae1 100644 --- a/Documentation/devicetree/bindings/clock/ti,sci-clk.txt +++ b/Documentation/devicetree/bindings/clock/ti,sci-clk.txt @@ -18,6 +18,13 @@ Required properties: and clocks IDs for 66AK2G SoC are documented at http://processors.wiki.ti.com/index.php/TISCI#66AK2G02_Data +Optional properties: +------------------- +- ti,scan-clocks-from-dt: Scan clock tree info from DT. By default, + clocks are queried from firmware, which can be rather slow operation, + especially if there is a really large number of clocks available out + of which only a handful are ever used by kernel. + Examples: --------